josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.43k stars 145 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 5 months ago

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

JamesMenetrey commented 5 days ago

Thanks @lrtfm, your patch works perfectly (tested with LuaLaTeX)!

Hello @josephwright! Do you have any plan to address this long-standing issue, maybe with a similar fix as the one provided by @lrtfm?

Thanks for beamer BTW; it works incredibly well! Cheers