Package: tetex-extra Version: 3.0-17 Severity: normal Hi,
I try to use the listings style with continued counting, i.e. firstnumber=last. Unfortunately, it is not counting correctly. The minimal file attached shows that is is off by one at the beginning of the next section, in a larger document the offset is even larger, but always the wrong numbers at the beginning of a lstlisting section are too low. Greetings, Joachim -- Package-specific info: 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) ################################## minimal input file ################################## other files ###################################### List of ls-R files -rw-r--r-- 1 root users 1075 2006-04-22 20:44 /var/lib/texmf/ls-R lrwxrwxrwx 1 root staff 25 2005-10-20 02:43 /usr/local/share/texmf/ls-R -> /var/lib/texmf/ls-R-LOCAL lrwxrwxrwx 1 root root 29 2006-05-12 18:24 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN lrwxrwxrwx 1 root root 35 2006-03-25 00:42 /usr/share/texmf-tetex/ls-R -> /var/lib/texmf/ls-R-TEXMFDIST-TETEX -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16.otto Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Versions of packages tetex-extra depends on: ii dpkg 1.13.19 package maintenance system for Deb ii tetex-base 3.0-17 Basic library files of teTeX ii tetex-bin 3.0-16 The teTeX binary files ii ucf 2.0010 Update Configuration File: preserv tetex-extra recommends no packages. -- no debconf information
\documentclass[a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[german]{babel} \usepackage{listings} \begin{document} \lstset{numbers=left, firstnumber=last} \begin{lstlisting} Line 1 Line 3 \end{lstlisting} Bla Bla BlaBlaBla \begin{lstlisting} Line 3 Line 4 \end{lstlisting} Even more blabla Even more blabla Even more blabla Even more blabla Even more blabla \begin{lstlisting} Line 5 Line 6 \end{lstlisting} \end{document}