josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.35k stars 139 forks source link

notes on second screen and "destination with the same identifier" warnings #370

Open u-fischer opened 7 years ago

u-fischer commented 7 years ago

As has been noted in this tex.SX question https://tex.stackexchange.com/questions/350993/beamer-presentation-with-notes-navigation-does-not-work-properly-and-destinati notes on second screen leads to lots of "destination with the same identifier" warnings for page and navigation anchors.

beamer defines in beamerbasenavigation.sty a simplified version of \def\Hy@EveryPageAnchor which hardcodes the names of the anchors:

    \hyper@@anchor{Navigation\the\c@page}\relax%
    \hyper@@anchor{page.\the\c@page}\relax%

This means that it is impossible to manipulate the name of anchors by redefining e.g. \thepage. And as the code for notes on second screen contains \advance\c@page by-1\relax the destination anchors are no longer unique.

cpitclaudel commented 3 years ago

Would it be possible to make the definition of these anchors conditional, to avoid redefinition warnings?

lrtfm commented 1 month ago

Applying the patch available here might be helpful: https://gist.github.com/lrtfm/aeffae97d078c7261aba186af07100a7