I am failing to add a heading for the appendix to the ToC with the correct page number:
\documentclass{scrbook}
\begin{document}
\tableofcontents
\chapter{test}
\appendix
\addcontentsline{toc}{part}{\appendixname}
\chapter{First Appendix}
\end{document}

I also tried to use the \addappheadtotoc command from the appendix package, but that changes nothing (expect that it writes 'Appendices' instead).
I assume that the appendix package provides the solution, but I could not figure out how to use it.

appendicesto achieve the same. – Matthias Pospiech Dec 08 '11 at 09:41\csname phantomsection\endcsnamebefore the\addcontentslineto get correct links if you'll use packagehyperrefsome day. – Schweinebacke Dec 08 '11 at 10:13\chapterusually invokes\clear[double]page, putting the\addcontentslineafter the\chaptercommand would avoid having to invoke the manual page break. of course, whenhyperrefis used, that would position the link below the appendix title. – barbara beeton Dec 08 '11 at 14:07\addcontentslinewas there for the purpose of putting in the entry for the appendix itself. on the other hand, my preference (based at least partly on ams practice) is to omit the page number from a "part" heading in the t-of-c. ymmv. – barbara beeton Dec 08 '11 at 18:24