I found a lot of questions abount appendices and ToC. Many users want appendices to be grouped in an Appendix part, however some problems arise with ToC, hyperref, PDF viewer bookmarks, and so on.
There are different solutions which require extra packages, command patching and other extra code, however none of them satisfies me. I almost found an easy way to accomplish a good result, where appendices are added to bookmarks in the right way and hyperref links point to the right page. However, the number of the "Appendix" part page is wrong (it's the number of appendix A). Is there any EASY way to fix that?
This is a MWE:
\documentclass{book}
\usepackage[nottoc,notlot,notlof]{tocbibind}
\usepackage{hyperref}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\part{First}
\chapter{One}
Lorem ipsum
\part{Second}
\chapter{Two}
Dolor sit amet
\appendix
% These two commands do all the job:
\addcontentsline{toc}{part}{Appendices}
\part*{Appendices}
\chapter{Uno}
First appendix
\chapter{Due}
Secondo appendix
\end{document}
This is the ToC (with links pointing to the right page)
I First 1
1 One 3
II Second 5
2 Two 7
Appendices 11 (this should be 9)
A Uno 11
B Due 13
Using bookmark
package instead of (in addition to) hyperref
make it worse (Appendix link and ToC page will point to chapter "Two"). Switching \addcontentsline
and \part*
doesn't solve the problem.
EDIT: for some reasons, I do not want to use appendix
package