# Bug#306586: hyperref: nests bookmarks incorrectly

On 27.04.05 Braun Gabor (braung@renyi.hu) wrote:

Hello Heiko,

The following bug we received at our BTS. As the behaviour changes as
soon as I switch to another language I suspect that to be a bug in
babel and submitted it at the LaTeX BTS
(http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel%2F3780).
Would you be so kind to have a short look to see, if I'm wrong.
That bug is reproducible in teTeX 3.0.

Regards,
Hilmar

> I ran pdflatex twice on the input file below. After it I viewed the
> pdf file with xpdf.  On the let hand side it displayed three
> bookmarks.  Every bookmark was a child to the preceeding one.
>
> However, the second bookmark shouldn't be a child to the first one.
>
> This error does not occur if I change the option of the babel
> package to "english" instead of "magyar" or I comment out the line
> loading the babel package.  Also, I don't have the error if I
> comment out the \subsection line.
>
> ##################################
> minimal input file:
>
> \documentclass{article}
> \usepackage[magyar]{babel}
> \usepackage[bookmarksnumbered,bookmarksopen]{hyperref}
>
> \begin{document}
>
> \section{First section}
>
> \section{Second section}
>
> \subsection{A subsection}
>
> \end{document}
>
> ##################################
> other files
>
--
sigmentation fault