\documentclass[xelatex]{beamer}
\hypersetup{bookmarksopen=true,bookmarksopenlevel=3} % adding
"dvipdfmx-outline-open" makes no difference
\begin{document}
\section{First Section}
\begin{frame}Lorem ipsum\end{frame}
\subsection{First Subsection}
\begin{frame}dolor\end{frame}
\end{document}
When I process a similar document with pdflatex (adding nothing and
removing only the "xelatex" option to beamer), the bookmarks in the
resulting PDF are open, as I expect.
Is there anything that I can do to have subsection-level bookmarks
open by default when I use beamer and xelatex together?
Thank you,
John
> I find that Beamer v3.10 respects hyperref's "bookmarksopenlevel"
> option when I process documents with pdflatex, but not when I process
> them with xelatex. For example, bookmarks are not expanded for the
> following document when I process it with xelatex:
>
> \documentclass[xelatex]{beamer}
> \hypersetup{bookmarksopen=true,bookmarksopenlevel=3} % adding
> "dvipdfmx-outline-open" makes no difference
> \begin{document}
> \section{First Section}
> \begin{frame}Lorem ipsum\end{frame}
> \subsection{First Subsection}
> \begin{frame}dolor\end{frame}
> \end{document}
Which version of hyperref you are using?
I can't reproduce it with 6.81q.
Remember you need two runs to get the bookmarks.
With package `bookmark' only one run is sufficient (without atend
feature). However due to a bug option dvipdfmx-outline-open
should be given as option to package `bookmark'.
It is fixed in the next version, but the release of my bundle
isn't finished yet.
--
Heiko Oberdiek
Thank you, Heiko. I'm using 6.81q. The bookmarks are in the PDF
file, but I can't get the top-level bookmark "expanded" (so that the
lower-level bookmarks appear when I open the PDF file) even with three
runs.
I tried using the bookmark package (v1.12). Specifically, I inserted
\usepackage[dvipdfmx-outline-open]{bookmark}
into my preamble. The PDF file contained the subsection bookmark but,
curiously, not the top-level "First Section" bookmark. And the log
file contained this error message:
LaTeX Font Warning: Size substitutions with differe
nces** WARNING **
Unknown PDF object type.(
F** WARNING ** Missing number for outline item depth.o
** WARNING ** nInterpreting special command out (pdf:) failed.
t** WARNING ** )>> at page="1" position="(28.3465, 272.126)" (in
PDF)
** WARNING ** >> xxx "pdf:out [\relax ] 1<</Title(First\040Section)/
A<</S/GoTo/D
(O..."
** WARNING ** >> Reading special command stopped around >>relax ]
1<</Title(F
irst\040Section)/A<</S/GoTo/D(Outline0.1)...<<
up to 1.0pt have occurred.
I'm not sure of what to make of this. Is there another option that I
should be passing to hyperref or to the bookmark package?
Thanks again,
John
> > Which version of hyperref you are using?
> > I can't reproduce it with 6.81q.
> > Remember you need two runs to get the bookmarks.
>
> Thank you, Heiko. I'm using 6.81q. The bookmarks are in the PDF
> file, but I can't get the top-level bookmark "expanded" (so that the
> lower-level bookmarks appear when I open the PDF file) even with three
> runs.
>
> I tried using the bookmark package (v1.12). Specifically, I inserted
As I have written you need a more uptodate package (v1.15).
However it is not yet released. Temporarily you can get it from
http://www.informatik.uni-freiburg.de/~oberdiek/tmp/bookmark.pdf
See section "Installation" for more details.
--
Heiko Oberdiek