I need a table of contents at the beginning of my appendix section. However, the following includes sections from the main text as well
\appendix
\tableofcontents
How can I get rid of those sections from the main text and just keep the ones from the appendix?
Best Answer
Background: It is quite logical that the table of contents is just created for the entire file, since every chapter/section/subsection/etc. are written to a .toc file and the
\tableofcontents
command just reads from that file (this is also thereason why you have to compile twice in order for the toc to be included correctly.Now, to solve your question, you can use the minitoc package like this: