[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#300130: tetex-extra: Bad Erlang language definition in lstlang3.sty



Package: tetex-extra
Version: 2.0.2c-6
Severity: important
Tags: patch



-- Package-specific info:
Please read and follow the instructions in the first lines below
the text: "-- Package-specific info:".
Thank you.

Press ENTER to continue
If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report. Don't forget to also include minimal examples of
other files that are needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.latex-einfuehrung.de/mini-en.html (english)

or 

http://www.latex-einfuehrung.de/mini.html (german)

##################################
\documentclass[a4paper]{article}
\usepackage{listings}

\begin{document}
\lstset{language=erlang}
	\begin{lstlisting}
	-module (pippo).
	-export (pippo).
	pippo (A,b) -> c.
	\end{lstlisting}
\end{document}

#### Simple patch: 

The problem is in the definition of "otherkeywords" at line 149 of the
file "/usr/share/texmf/tex/latex/listings/lstlang3.sty".

The bugged line is:
otherkeywords={->,!,[,],\{,\},},%

and should be simply replaced by:
otherkeywords={->,!,[,],\{,\}},%

The problem is the extra common between "\}" and "}".

HaveANiceDay

KatolaZ



##################################
other files

######################################
 List of ls-R files

-rw-rw-r--  1 root staff 79 Mar  6 12:18 /usr/local/share/texmf/ls-R
-rw-rw-r--  1 root staff 91 Mar  6 12:18 /usr/local/lib/texmf/ls-R
-rw-rw-r--  1 root users 865 Mar 13 06:25 /var/lib/texmf/ls-R
lrwxrwxrwx  1 root root 29 Feb 19 12:23 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages tetex-extra depends on:
ii  dpkg                      1.10.27        Package maintenance system for Deb
ii  gsfonts                   8.14+v8.11-0.1 Fonts for the Ghostscript interpre
ii  tetex-base                2.0.2c-6       Basic library files of teTeX
ii  tetex-bin                 2.0.2-26       The teTeX binary files
ii  ucf                       1.14           Update Configuration File: preserv

-- no debconf information



Reply to: