listings.sty version doesn't compile with KOMA classes in texlive 2007-13
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
texlive-base (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: texlive-
Binary package hint: texlive-
Source package hint: texlive-base 2007-13 (source) in ubuntu hardy
listings.sty version 1.3 of 2004/09/07 doesn't work with KOMA classes, tested with scrartcl, scrbook and scrreprt, using texlive 2007-13 on Ubuntu 8.04 (hardy), confirmed on standard x86 and amd64 installation.
The compilation stops with an error message when calling \lstlistoflistings. Minimal example:
\documentclass[
\usepackage{
\begin{document}
\lstlistoflistings
\end{document}
Error message:
! Undefined control sequence.
\lstlistoflistings ...\lol@heading \@parskipfalse
l.5 \lstlistoflistings
\@parskip was used by older KOMA script versions but not by the KOMA classes included in texlive 2007-13.
The compilation of the example above works with listings.sty version 1.4 of 2007/02/22. I recommend to include at least version 1.4 in texlive further on.
Problem (and solution) confirmed for me on Hardy amd64. Version 1.4 of 2007/02/22 is the latest available from http:// www.ctan. org/tex- archive/ macros/ latex/contrib/ listings/ and works with the KOMA classes included in texlive 2007-13.
For those who do not want to manually install the new version manually, there is a workaround. You can redefine the \lstlistoflistings command like this in your document header:
\makeatletter% {\lstlistoflist ings}{% @restonecoltrue \onecolumn @restonecolfals e \parskip} {\z@}% \parindent} {\z@}% \parfillskip} {\z@ \@plus 1fil}% lol}% restonecol\ twocolumn\ fi
\renewcommand*
\begingroup
\if@twocolumn
\
\else
\
\fi
\lol@heading
\setlength{
\setlength{
\setlength{
\@starttoc{
\if@
\endgroup
}
\makeatother
(taken from http:// www.komascript. de/node/ 477)