I would like to have a beamer presentation in which every frame appears in the PDF table of contents (i.e. has a bookmark). My specific presentation only has sections, so all of the frames can appear as a "subsection" on the PDF. Note that I don't want to make a subsection for each frame.
One way to do that is make up a command that patches frametitle by calling the appropriate bookmark command of hyperref. Is there any better way?
Best Answer
Here is a solution that patches an auxiliary macro in
\frametitle
, adding code that adds a bookmark and table-of-contents line as if it were a subsection (you can just comment this out if not wanted):I had to dig around in
beamerbasesection.sty
to figure that out. But it seems to work.EDIT. (by cyberSingularity): Now prevents unwanted bookmarks when the slide is not shown by also patching
\beamer@checknoslide
, and provided an additional frame to test.Note: if there are frames with multiple slides (e.g. due to
\pause
s), you may also be interested in this follow up question.