Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

So when you create an index or a listoflistings, they are not listed in \tableofcontents.

\appendix
\newpage
\printindex
\newpage
\lstlistoflistings

To make them appear, I entered custom content lines

\appendix
\newpage
\addcontentsline{toc}{section}{Listings}
\lstlistoflistings

\addcontentsline{toc}{section}{Index}
\printindex

They now appear, but without numbering;

A. Bibliography
Listings
Index

How can I make them get the correct numbering? I don't want it to be static, because the order may change or some more appendices are added...

share|improve this question

2 Answers 2

up vote 4 down vote accepted

a bibliography and an index are never numbered!

share|improve this answer
    
Um, okay... Why's that? –  Florian Peschka May 4 '11 at 7:02
    
@ApoY2k: TRADITION. Do yourself a favour and page through a number of books. Even beter try to find a copy of a good style manual such as the Chicago Manual of Style. –  Danie Els May 4 '11 at 7:15
    
it is obviously that they are at the end of each publication, if present. It makes no sense to have it numbered. –  Herbert May 4 '11 at 7:18
    
So I also shouldn't list them in the TOC? –  Florian Peschka May 4 '11 at 7:20
    
some people say yes and some no, so it is your decision ... –  Herbert May 4 '11 at 7:22

As option to your document class:

\documentclass[...,
liststotocnumbered, % All lists are numbered in the TOC
...]{scrarctl}
share|improve this answer

Your Answer

 
discard

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.