[OS X TeX] Modification of the TOC

Adam M. Goldstein amgoldstein at mac.com
Mon Jan 22 20:00:28 CET 2007

On Jan 22, 2007, at 1:36 PM, Christian Burk wrote:

> Hello,
>
> at the moment my TOC is modified with the following code:
>
> -------
> \usepackage [dotinlabels]{titletoc}
> 	\titlecontents {chapter} [6pc] %
> 		{\contentslabel[\textsc{\chaptername}\ \thecontentslabel]{6pc}}
> 		{\hspace{-4pc}}{\hfill\contentspage}
>
> -------
>
> With this modofication I get the word "Chapter" in front of all
> chapters in the TOC. After including an appendix unfortunately this
> also gets the word "Chapter" in the TOC, but it should be have
> "Appendix" in front of it. Now it locks like the following...
>
> Chapter 1 BlaBla...............1 (This is a real chapter)
> Chapter A DuDa.................2 (This is an appendix and should
> have "Appendix" instead of "Chapter")
>
> How could I modify the TOC to get "Appendix" in front of appendics?
>

there is an \appendix command which, I believe, changes "chapter" to
"appendix" and creates corresponding TOC entries.

I wish I could help more on this---I've always struggled just to get
it close to what I want---I am pretty sure that this command is
documented in a variety of places though.

--
amgoldstein <at> mac <dot> com
http://homepage.mac.com/amgoldstein