GeneralAppendix Entry in ToC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Red_Civ
Posts: 2
Joined: Sun Apr 07, 2013 8:07 am

Appendix Entry in ToC

Post by Red_Civ »

Hello,

I'm trying to edit my masters thesis and can't seem to get the table of contents with regards to the appendix to display how the university would like it.

The picture below shows what I had and how they would like it (bottom left comment).
Thesis Append_comment.jpg
Thesis Append_comment.jpg (138.2 KiB) Viewed 3807 times
The picture (below) is how I have it now. I can't seem to get the entry "Appendix" to show up.
Thesis Append_current.jpg
Thesis Append_current.jpg (33.89 KiB) Viewed 3807 times
At first I was using the Appendices environment but was having trouble and I don't want the Appendix title page it creates prior to the first page of the appendix. Switching to \appendix helped get rid of that 'title page' and get the A Plotted Data versus Appendix A Plotted Data that I want but I still can't get the Appendix..............105.

I'm using the book document class.

Any suggestions?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Red_Civ
Posts: 2
Joined: Sun Apr 07, 2013 8:07 am

Appendix Entry in ToC

Post by Red_Civ »

I use this.

Code: Select all

\appendix
\addcontentsline{toc}{part}{\appendixname}
\subfile{Backmatter/appendixA}
And it gets me this.
Thesis Append_current-2.jpg
Thesis Append_current-2.jpg (34.41 KiB) Viewed 3803 times
Which is closer but the font is too big and the filing dots between the text and page number are missing. Also the page number is wrong. Should be 105. Page 104 is the end of my conclusions and that page hasn't been altered.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Appendix Entry in ToC

Post by localghost »

Have a look at the appendix package. In combination with tocstyle from KOMA-Script you can customize the ToC like shown below.

Code: Select all

\documentclass[11pt]{book}
\usepackage[T1]{fontenc}
\usepackage[toc]{appendix}

\usepackage{tocstyle}
\usetocstyle{allwithdot}
\settocstylefeature[0]{entryhook}{\normalfont\bfseries}

\usepackage{blindtext}  % only for creating dummy text here

\renewcommand*{\appendixtocname}{Appendix}

\begin{document}
  \tableofcontents

  \blinddocument

  \begin{appendices}
    \blinddocument
  \end{appendices}
\end{document}
Just click on "Open in writeLaTeX" in the head of the above code box to see the rendered output instantly.


Remarks:
  • The tocstyle package is in still alpha stadium, but hasn't caused any major problems yet. You will get a corresponding warning.
Alternative packages: (for customization of the ToC)

Best regards and welcome to the board
Thorsten
Post Reply