Date: Sun, 1 Nov 2009 10:46:08 GMT From: "Yasir M. Arsanukaev" <yasir27@mail.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/140162: teTeX listings module bug Message-ID: <200911011046.nA1Ak8vg050591@www.freebsd.org> Resent-Message-ID: <200911011050.nA1Ao2aB033005@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 140162 >Category: ports >Synopsis: teTeX listings module bug >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 01 10:50:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Yasir M. Arsanukaev >Release: 7.1-RELEASE >Organization: >Environment: FreeBSD conductor.loc 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: .tex file cannot be compiled if listings module used with language=erlang keyword >How-To-Repeat: compile similar .tex file: \documentclass[a4paper,11pt]{article} \usepackage{listings} \lstset{language=erlang} \begin{document} \maketitle Some erlang code: \begin{lstlisting} somefunc([H|T]) -> io:format("Elem val==~w", [H]), % prints element value somefunc(T). \end{lstlisting} \end{document} >Fix: Accordingly to http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg27341.html this can be done fixind a sole line (patch attached). Patch attached with submission follows: --- lstlang3.sty.orig 2009-11-01 17:26:42.000000000 +1000 +++ lstlang3.sty 2009-11-01 17:27:09.000000000 +1000 @@ -146,7 +146,7 @@ round,self,setelement,size,spawn,throw,time,tl,trace,trunc,% tuple,tuple_to_list,unlink,unregister,whereis,error,false,% infinity,nil,ok,true,undefined,when},% - otherkeywords={->,!,[,],\{,\},},% + otherkeywords={->,!,[,],\{,\}},% morecomment=[l]\%,% morestring=[b]",% morestring=[b]'% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911011046.nA1Ak8vg050591>