I need to customize my Appendix but can not figure out how.
I need:
- Entry in my Main ToC at the beginning of the document generated with
\tableofcontents
- Change the Name of Appendices displayed in the ToC to the German "Anhang"
- Insert the Appendix after my References
- Titel Page with "Anhang"
- ToC showing each Chapter/section of the Appendix and page number
What would be the best way to do this using the Appendix package?
Thanks!
EDIT: I need to edit the MWE so that the entries that currently show up in the Main ToC do not show any more, only the Entry: "Anhang". The first Page after the appendix Titel Page should be a separate ToC that shows the entries of the appendix and the page number.
Here is a MWE:
\documentclass[a4paper,12pt,twoside,ngerman]{scrartcl}
\usepackage{setspace}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[toc,title,page]{appendix} % Anhang
\renewcommand{\appendixpagename}{\appendixname}
\renewcommand{\appendixtocname}{\appendixname}
\begin{document}
\tableofcontents %Inhaltsverzeichnis
\newpage
\section{Section}
Test 123
\newpage
\subsection{SubSection 1}
Test 123
\newpage
\begin{appendices}
\section{Test}
TEST 123
\section{Test 2}
TEST 123
\section{Test 3}
TEST 123
\end{appendices}
\end{document}
Best Answer
With a KOMA-Script class you can use the automatically loaded package
tocbasic
to define an additional ToC.If you switch to
scrreprt
you can use:Dots between all TOC entries and their page numbers:
If you want to add dots between the chapter entries and their page numbers in all TOCs insert the following line in your preambel:
If you want to add these dots only in the appendix TOC use either
or