-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URLs on notes page not clickable #115
Comments
Thanks for reporting ! The links of the “current page” preview in the presenter window (what you call the “right screen”, so next to the notes widget) do work, right? That would provide a workaround if the links in the notes are simply reproducing the links in the displayed slide. Interestingly, the link on the notes page does not seem to work with the PDF you provide in okular, and when I open it with adobe reader (the only/old version for Linux, v9.5.5 from April 2013) only the link in the notes part works, not the one in the main page. Regardless, there seem to be 3 URI annotations in the PDF, all pointing to |
What seems to be the problem are the coordinates of the link annotations in the pdf. This is some debug output printing the locations of the links, in absolute numbers and relative positions (%):
x coordinates are 0 at the left-most edge of the full slide (content + notes), and 725 or 100% at the right-most edge. y coordinates are 0 at the bottom and of the slide and 272 or 100% at the top of the slide. As you can see the 3rd URI is placed correctly and corresponds to the link in the current slide. The 1st URI is placed incorrectly a little higher and to the left of the link in the current slide (hovering the mouse over there show the mouse as a pointer). The 2nd URI is placed out of the bounds of the slide as the y coordinates are over 100%. Even when removing any fancy templating of the notes slide (i.e. |
Thank you for looking into this and, by the way, thank you for providing this unique tool! Your finding regarding the positioning of the URI is interesting. I find it a bit puzzling that other PDF viewers seem to not have this problem. If I open the file in Sumatra or Acrobat, the link in the notes page is clickable and the URI appears to be positioned correctly. Does this fit with your observation? |
I’m afraid I don’t have Sumatra or Acrobat to test here. I’ll report the bug at the pgf repo and see what they have to say about it. |
Thank you! |
Partial fix for #115, still requires figuring out why the links are in the wrong place.
Compiling with |
For people reaching this issue after hours of search. The linked pgf issue provides a hacky solution for the Here's the full hack. \makeatletter
\AtBeginNote{%
\let\hyper@link@\hyper@link@note%
\let\hyper@linkurl\hyper@linkurl@note%
}
\AtEndNote{%
\let\hyper@link@\hyper@link@default%
\let\hyper@linkurl\hyper@linkurl@default%
}
\let\hyper@link@default\hyper@link@
\let\hyper@linkurl@default\hyper@linkurl
\def\hyper@link@note[#1]#2#3#4{%
\begingroup%
\parbox[t][0pt][t]{0pt}{%
\hfuzz=\maxdimen%
\hspace*{\paperwidth}%
\vbox{\hyper@link@default[{#1}]{#2}{#3}{\phantom{#4}}}%
}%
\Hy@colorlink\@urlcolor#4\Hy@xspace@end\Hy@endcolorlink%
\endgroup%
}
\def\hyper@linkurl@note#1#2{%
\begingroup%
\parbox[t][0pt][t]{0pt}{%
\hfuzz=\maxdimen%
\hspace*{\paperwidth}%
\vbox{\hyper@linkurl@default{\phantom{#1}}{#2}}%
}%
\begingroup%
\Hy@colorlink\@urlcolor#1\Hy@xspace@end\Hy@endcolorlink%
\endgroup%
\endgroup%
}
\makeatother |
Partial fix for Cimbali#115, still requires figuring out why the links are in the wrong place.
Actually I disagree with @Cimbali from 2019, this shouldn’t be closed. It’s an ongoing issue that we just can’t do anything about, but that doesn’t mean we shouldn’t track it. |
See the issue below. Thank you for any suggestions how to overcome this problem.
Environment
Pympress
Expected behaviour
URLs on a second screen notes page should be clickable
Steps to reproduce
test_slide.pdf
Problem
The link on the presentation page (left screen) is clickable and opens a browser window. The link on the notes page (right screen) is not clickable. This is independent of the document being compiled with XeLatex, PDFLatex or dvips/ps2pdf. Clicking works as expected in other viewers (Sumatra, Adobe Acrobat).
From pympress.log (possibly unrelated):
The text was updated successfully, but these errors were encountered: