Strange side effect on bookmarks in hyperref
"Daniele Giorgio Degiorgi" <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <[email protected]> |
In a document, if I use
\input{A1}
\input{A2}
\input{A3a}
\input{A3b}
\input{A4}
Where each Ax contains a chapter, I get the chapters numbered 1,2,3,4,5.
Trying to get the chapters numbered 1,2,3a,3b,4 I used
\input{A1}
\input{A2}
\let\savethechapter\thechapter
\def\thechapter{\arabic{chapter}a}
\input{A3a}
\setcounter{chapter}{2}
\def\thechapter{\arabic{chapter}b}
\input{A3b}
\let\thechapter\savethechapter
\input{A4}
Now almost all works as I want (chapter heading, sections and subsection
numbering and content) but in the bookmarks, starting with the 2. Section on
chapter 3a the indenting is wrong, that is each new section is added in the
bookmarks at the right of the preceding one.
I could find out that the problem comes from resetting chapter number and
solved the redefine \thechapter and \thesection with small effort, as in my
case \chapter and \section are inside other macros.
I just wonder if there is a safe possibility to reset chapter numbers while
using hyperref.
Daniel
------------------------------------------------------------------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml