[texhax] Index in Table of Contents

Heiko Oberdiek heiko.oberdiek at googlemail.com
Mon May 31 19:57:15 CEST 2010


On Mon, May 31, 2010 at 12:30:09PM -0400, Barbara Beeton wrote:

>     I think I have a solution.
> 
>     Just before the *\printindex* command, I inserted the command *\newpage*
>     and then the command*
>     \addcontentsline{toc}{chapter}{\protect\numberline{}Index}
>     *
> 
>     That seems to produce a Table of Contents with the correct page number for
>     the Index without forcing a page break for the index.
> 
>     I hope this is a stable solution.
> 
> if the text preceding the index ends on an
> even-numbered page, this should work.  if it
> ends on an odd-numbered page, then the page
> number generated for the index will be one
> less than the actual page.

\cleardoublepage
\addcontentsline{toc}{chapter}{\protect\numberline{}\indexname}

Yours sincerely
  Heiko Oberdiek


More information about the texhax mailing list