I'd be glad if somebody can help me resolving the following issue. Basically, hyperref is confused by my code.
I want the following document structure.
Chapter 1
Chapter 2
Solutions to Exercises
|
+ - Chapter 1
|
+ - Chapter 2
Index
Bibliography
Here is a minimal (non-)working example (I know why this will not work, but, I am unsure how to fix).
\documentclass{amsbook}
\usepackage{hyperref}
\makeindex
\begin{document}
\frontmatter
\title{A Book}
\author{Me}
\maketitle
\tableofcontents
\mainmatter
\chapter{Chapter 1}
\chapter{Chapter 2}
\part*{Solution to Exercises}
\setcounter{chapter}{0}
\chapter{Chapter 1}
\chapter{Chapter 2}
\backmatter
\printindex
\bibliography
\end{document}
Edit. The question is not a duplicate of the previous question. It does answer a part of the question however. The remaining parts:
- The index is not being printed.
- The index and bibliography are now subbookmarks of the bookmark "Solutions to Exercises".
Any help, atleast through comments, will be very helpful.
\renewcommand\theHchapter{solutions\arabic{chapter}}solves the issue. Add also\pdfstringdefDisableCommands{\def\noindent{}}after loadinghyperrefto avoid an unrelated warning. – egreg May 24 '13 at 11:45bookmarkpackage (look forstartatroot). – egreg May 24 '13 at 15:31