Discussion:
Addcontentsline and the page number in the TOC
(too old to reply)
Arunaman
2005-12-07 14:06:33 UTC
Permalink
Hello,

I segmented my document in parts and I want the appendices to start
with a blank page just mentioning "Appendices", in the same lay-out as
the part titles. So I inserted the following command:

\part*{Appendices}
\addcontentsline{toc}{part}{Appendices}

This "Appendices" page then appears at p. 83 and the real text
(Appendix A) starts at p. 85. However, in the table of contents appears
the following:

Appendices...............85
Appendix A...............85

instead of the desired

Appendices...............83
Appendix A...............85
Lars Madsen
2005-12-07 14:49:29 UTC
Permalink
Post by Arunaman
Hello,
I segmented my document in parts and I want the appendices to start
with a blank page just mentioning "Appendices", in the same lay-out as
\part*{Appendices}
\addcontentsline{toc}{part}{Appendices}
This "Appendices" page then appears at p. 83 and the real text
(Appendix A) starts at p. 85. However, in the table of contents appears
Appendices...............85
Appendix A...............85
instead of the desired
Appendices...............83
Appendix A...............85
that's because \part contains a \cleardoublepage which is executed before your
\addcontentsline

You will basically need to create a \appendixpage macro (the memoir class
actually has one), where you copy the definitions from the unnumbered definition
for \part and make the nessesary changes.

But you didn't mention which document class you're using ...
--
/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal working examples.
Ulrike Fischer
2005-12-07 14:58:19 UTC
Permalink
Post by Arunaman
Hello,
I segmented my document in parts and I want the appendices to start
with a blank page just mentioning "Appendices", in the same lay-out as
\part*{Appendices}
\addcontentsline{toc}{part}{Appendices}
This "Appendices" page then appears at p. 83 and the real text
(Appendix A) starts at p. 85. However, in the table of contents appears
Appendices...............85
Appendix A...............85
instead of the desired
Appendices...............83
Appendix A...............85
In some classes \part* makes some empty pages at the end. The
\addtocontents is on the wrong page.

Depending on the class used something like this could work:

\cleardoublepage
\addcontentsline{toc}{part}{Appendices}
\part*{Appendices}
--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
Heiko Oberdiek
2005-12-07 15:10:00 UTC
Permalink
Post by Arunaman
\part*{Appendices}
\addcontentsline{toc}{part}{Appendices}
\cleardoublepage
% \phantomsection if hyperref is used
\addcontentsline{toc}{part}{Appendices}
\part*{Appendices}

Yours sincerely
Heiko <***@uni-freiburg.de>
Arunaman
2005-12-07 15:38:17 UTC
Permalink
Problem solved. Thanks a lot!!

Loading...