Document ClassesHyperlinks in Presentation

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
pieffebi
Posts: 2
Joined: Mon Dec 02, 2013 2:48 pm

Hyperlinks in Presentation

Post by pieffebi »

Hi,

I was trying to hyperlink the pages of my beamer presentation but, despite I was following some examples found on the web, had no success. The beamer button was created correctly, but the link was (apparently) missing.

I downloaded used "minimal example" in this post by bkarpuz and it worked all right.

After some experimenting I found out that the problem in my document has apparently to do with the shrinking option.

The behavior I'm observing can be reproduced in the example posted by bkarpuz. Actually I wrote my post thinking I was replying to the original topic, but it showed up as new, probably because the original topic was solved (sorry about that). I'm amending my post so that it can be understood by itself. The code still refers to the example posted by bkarpuz.

If I change the "introduction" frame of the example so that the button is on the same line as the preceding text (i.e. I delete the newline \\) and the frame is shrunk down.

Code: Select all

\begin{frame}[shrink=15]
  \frametitle{Introduction}
  Some introductory text here.
  \hyperlink{mr<1>}{\beamerskipbutton{Skip Introduction}}
\end{frame}
The button looses its hyperlink. I am doing this in order to reproduce the situation in my original document, where the hyperlink was on the same line as some text, inside a shrunk frame.

The introduction of the shrinking factor or the removal of the newline sequence do not singularly affect the link. That is, the link works in both of the following cases

Code: Select all

% case 1: only shrink factor, newline present
\begin{frame}[shrink=15]
  \frametitle{Introduction}
  Some introductory text here. \\
  \hyperlink{mr<1>}{\beamerskipbutton{Skip Introduction}}
\end{frame}

Code: Select all

% case 2: no shrink factor nor newline
\begin{frame}
  \frametitle{Introduction}
  Some introductory text here.
  \hyperlink{mr<1>}{\beamerskipbutton{Skip Introduction}}
\end{frame}
Is this a known behavior? Is the newline sequence \\ mandatory before an hyperlink? From the examples I have found on the internet, I'd say no. But, on the other hand, each hyperlink in the example of bkarpuz is preceded by a \\.


Thanks a lot for any insight.
Francesco
Last edited by localghost on Mon Dec 02, 2013 6:02 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply