I want my table of contents and pdf-bookmarks of this example-code:
\documentclass{scrreprt}
\begin{document}
\chapter{First Chapter}
\section{First Section of First Chapter}
\section{Secont Section of First Chapter}
\chapter{Second Chapter}
\section{First Section of Second Chapter}
\section{Secont Section of Second Chapter}
\addcontentsline{toc}{chapter}{Appendix}
\appendix
\chapter{First Appendix}
\section{First Section of First Appendix}
\section{Secont Section of First Appendix}
\chapter{Second Appendix}
\section{First Section of Second Appendix}
\section{Secont Section of Second Appendix}
\end{document}
like this:
1. First Chapter
1.1 First Section of First Chapter
1.2 Second Section of First Chapter
2. First Chapter
2.1 First Section of Second Chapter
2.2 Second Section of Second Chapter
Appendix
A. First Appendix
A.1 First Section of First Appendix
A.2 Second Section of First Appendix
B. First Appendix
B.1 First Section of Second Appendix
B.2 Second Section of Second Appendix
I have a problem quite similar to this, but this solution does not work. It just prints chapter@@section section@@subsection
in the TOC.
My solution so far is to put \addcontentsline{toc}{part}{Appendix}
in front of the appendencies, but this only fix the bookmark-issue.