Since Upgrading to Ubuntu 10.04, changing counters of listings is not possible anymore

Bug #573653 reported by Sebastian Nohn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
texlive-base (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: texlive-base

$ lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04

Minimal reproduction document:

\documentclass[12pt,oneside,a4paper,bibtotoc,liststotoc]{scrreprt}
\usepackage{listings}
\usepackage{chngcntr}
\counterwithout{lstlisting}{chapter}
\begin{document}

\chapter{bla}
\begin{lstlisting}
bla
\end{lstlisting}
\end{document}

Worked on 8.04, 8.10, 9.04, 9.10

doesn't work on 10.04:

$ latexmk -pdf minimal.tex
This is latexmk, John Collins, 2 June 2004, version: 3.07a.
**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
------------
Run number 1 of pdflatex [minimal.tex]
------------
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
 restricted \write18 enabled.
entering extended mode
(./minimal.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, croatian, bulgarian, ukrainian, russian, czech, slovak, danish, dut
ch, finnish, french, basque, ngerman, german, german-x-2009-06-19, ngerman-x-20
09-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, italian, latin, mo
ngolian2a, mongolian, bokmal, nynorsk, romanian, irish, coptic, serbian, turkis
h, welsh, esperanto, uppersorbian, estonian, indonesian, interlingua, icelandic
, kurmanji, slovenian, polish, portuguese, spanish, galician, catalan, swedish,
 loaded.
(/usr/share/texmf-texlive/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2009/07/24 v3.04a KOMA-Script document class (report)
(/usr/share/texmf-texlive/tex/latex/koma-script/scrkbase.sty
(/usr/share/texmf-texlive/tex/latex/koma-script/scrbase.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/koma-script/scrlfile.sty
Package scrlfile, 2009/03/25 v3.03 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

))) (/usr/share/texmf-texlive/tex/latex/koma-script/tocbasic.sty)

Class scrreprt Warning: You've used obsolete option `bibtotoc'.
(scrreprt) Usage of this option indicates an old document and
(scrreprt) changes compatibility level using
(scrreprt) `bibliography=totoc,version=first'.
(scrreprt) If you don't want this, you should simply replace
(scrreprt) usage of option `bibtotoc' by `bibliography=totoc'.

Class scrreprt Warning: You've used obsolete option `liststotoc'.
(scrreprt) Usage of this option indicates an old document and
(scrreprt) changes compatibility level using
(scrreprt) `listof=totoc,version=first'.
(scrreprt) If you don't want this, you should simply replace
(scrreprt) usage of option `liststotoc' by `listof=totoc'.

(/usr/share/texmf-texlive/tex/latex/koma-script/scrsize12pt.clo)
(/usr/share/texmf-texlive/tex/latex/koma-script/typearea.sty
Package typearea, 2009/07/24 v3.04a KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-

)) (/usr/share/texmf-texlive/tex/latex/listings/listings.sty
(/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf-texlive/tex/latex/listings/listings.cfg))
(/usr/share/texmf-texlive/tex/latex/chngcntr/chngcntr.sty)

! Package chngcntr Error: lstlisting is not a counter.

See the chngcntr package documentation for explanation.
Type H <return> for immediate help.
 ...

l.4 \counterwithout{lstlisting}{chapter}

?

Revision history for this message
Sebastian Nohn (sebastian-nohn) wrote :

A solution/workaround seems to be this:

\lstset{
  numberbychapter=false
}

Revision history for this message
Sebastian Nohn (sebastian-nohn) wrote :

Has been a layer 8 problem with myself. Requesting to close this issue.

Changed in texlive-base (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.