LaTeX forum ⇒ General ⇒ Problem with formatting TOC - Appendix package Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
ThesisDrama
Posts: 3
Joined: Mon Aug 06, 2018 9:59 am

Problem with formatting TOC - Appendix package

Hi all!

I am having trouble with one formatting option in the Appendix package. It shows me the appendices in the TOC but I want it to add "Appendix" right before each one of them. This would be possible just adding [titletoc] to the package, but somehow it is not working

Could it be that Appendix package has conflict with another package? How to fix it? I already compiled it quite some times in case that was the issue. I don't get any error while compiling, it simply doesn't work.

This is the code for my main thesis file (all the individual chapters are independent files). It is full of other packages, but I guess it is better to have the whole pic.


Stefan Kottwitz
Posts: 9191
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

Instead of the simple \appendix command, use the appendices environment:

%\appendix\begin{appendices}\chapter{First Appendix}\chapter{Second Appendix}\end{appendices}

appendix.png (18.39 KiB) Viewed 6372 times

Stefan

ThesisDrama
Posts: 3
Joined: Mon Aug 06, 2018 9:59 am
Thanks Stefan! I will try that. How could I integrate the appendices environment with my appendix files as /input? (So to avoid including all the stuff from those within my "master" file)

Thanks a lot!!

Stefan Kottwitz
Posts: 9191
Joined: Mon Mar 10, 2008 9:44 pm
You could include chapters by \include{chapterfilename}. That is ok with label and references, and starts a new page for each chapter.

Furthermore, you can use \input{filename}. In this file, you could write your appendix commands, also the \include commands. \input is like if it's typed in the mail file (\include in contrast, has some logic, such as starting a new page). That's why I use \input for all except single chapters.

Stefan