[OS X TeX] index in table of contents

Peter Breitfeld phbrf at t-online.de
Sat Apr 1 15:30:38 CEST 2006


Am 31. Mrz 2006 um 14:18 schrieb delanoy at math.univ-lyon1.fr:

>        Hello all,
>
>  I'm using the package makeindex (so towards the end
> of my source file there is a \printindex somewhere
> ) and \tableofcontents, in a document of class "report".
>
>  My problem is that the index does not appear on the table
> of contents. If I force it by adding an \addcontentsline  after my
> \printindex command,
> as follows :
>
> \printindex
> \addcontentsline{toc}{part}{\numberline{}Word Index}
>
>  I get a wrong page number. What is the correct way to deal with
> this ?

For me, this seems to work:

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

Maybe you have to replace all "section" with "chapter" when using  
report-class.

Gruß Peter
--
==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
Peter Breitfeld                 | http://www.pBreitfeld.de
Kreuzgasse 4, 88348 Bad Saulgau | PGP/GPG Key gibt's hier



------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list