ports/140162: teTeX listings module bug

Yasir M. Arsanukaev yasir27 at mail.ru
Sun Nov 1 10:50:02 UTC 2009


>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 at 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:



More information about the freebsd-ports-bugs mailing list