# [tex-live] listings.sty Suddenly Broke

Mon Dec 14 23:47:31 CET 2009

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am not sure this is a TexLive question. Heck, I am not sure of anything right
now except that when I built the document 10 days ago listings.sty numbered the
listings correctly. Today, not so much.

Sample file: testing.tex
\documentclass{article}
\usepackage{listings}[2007/02/22]
% comment one
% comment two  --- need to fill out the line count a little bit

\begin{document}
Testing
\lstinputlisting[numbers=left,linerange={3-4,7-8}]{testing.tex}
\end{document}

Output: xelatex testing.tex
Testing
1 % comment one
2 % comment two  --- need to fill out the line count a little bit
3 Testing
4 \lstinputlisting[numbers=left,linerange={3-4,7-8}]{testing.tex}

The _lines_ are the right lines, extracted from the file. The line numbers, on
the other hand, are wrong. Using firstnumber=3 it is possible to get the first
group of numbers right.

I am using XeLaTeX (the real files are all fontified and such) but this sample
compiles and produces the same output for latex, pdflatex, and xelatex (didn't
try any other flavors).

What has changed in the last week? Nothing that I know of. No, really, I have
done standard updates but I have not touched TeXLive since I dropped 2009 on the
machine. The data files have been updated a lot but I distilled the problem down
to this sample and it doesn't want to work.

I would appreciate any guidance available because I am pulling out large clumps
of hair since this should not have changed.

- -bcl

- --
Assistant Professor of CS                                      315-267-2944
SUNY Potsdam                44 Pierrepont Ave. Potsdam, NY 13676
Dunn 340
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksmwHwACgkQ8BNnKqzDhEsdSQCdE3eCQoAkwdtjO1m6upJ8Ojd9
sNYAoJHvojFHWcgMUL0UPgeIoyEl5pQH
=kC79
-----END PGP SIGNATURE-----