TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with the listings of my latex document. I am using the "listing*s*" package (not the "listing" package).

Although the pagenumbering is still set to "roman" right after the titlepage, the \lstlistoflistings command produces a page where the numbering is "arabic". Apparently I am not the only one with that problem. Is this maybe a bug of the listings package? Can somebody help me with this?

Here is a code sample of my .tex file.




    \include{firstquote} % page numbering ok "i"
    \include{preamble} % page numbering ok "ii"




        \renewcommand{\contentsname}{Table of Contents}
        \tableofcontents % page numbering ok "iii"
        \listoffigures % page numbering ok "iv"
        \listoftables % page numbering ok "v"
        \lstlistoflistings % here is the page that produces de problem, page numbering "1"




share|improve this question

migrated from stackoverflow.com Oct 18 '12 at 10:10

This question came from our site for professional and enthusiast programmers.

up vote 5 down vote accepted

You have reset the page numbering to \arabic by \pagenumbering{arabic}. The page numbering style is used that is active, when the page is shipout. Add a \newpage, \clearpage, or \cleardoublepage before.

\cleardoublepage % or \newpage

Consider using \frontmatter and \mainmatter, if you are using a document class that provides it (book, memoir, …). These commands take care of starting new pages and the page numbering.

share|improve this answer
Great! Thank you very much. This did the trick! – theblubberin Oct 18 '12 at 10:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.