11

I know that one can jump to different frames using hyperlinks and beamer buttons as in

\hyperlink{label}{\beamerbutton{displayed text}}

However, is there also a way to jump to, say, the fourth slide ("build stage") of a frame?

To be more concrete, suppose my frame is

\frame{
  \only<4>{Some text}
}

Then what link would directly lead me to the pdf page that displays "some text"?

  • What do you mean by "fourth build stage"? Do you have a frame with several slides and you want a link to the fourth slide of that frame? – Gonzalo Medina Sep 26 '15 at 2:10
  • Yes, I think that's what I mean (sorry I wasn't aware of the frame/slide distinction, will modify the question to make it clear). – mimuller Sep 26 '15 at 2:12
  • No problem. Thanks for editing and adding the clarification. – Gonzalo Medina Sep 26 '15 at 2:44
14

Sure you can do it. \hypertarget is overlay aware, so you can say something like

\hypertarget<4>{label}{\beamerbutton{I'm on the fourth slide}}

to place the target just on the fourth slide of a frame and then elsewhere use

\hyperlink{label}{\beamerbutton{I jump to fourth slide of next frame}}

to activate a button that will take you to the fourth slide previously targeted.

A complete example:

\documentclass{beamer}

\begin{document}

\begin{frame}
\hyperlink{label}{\beamerbutton{I jump to fourth slide of next frame}}
\end{frame}

\begin{frame}
\begin{itemize}[<+->]
\item First.
\item Second.
\item Third.
\item Fourth.\hypertarget<4>{label}{\beamerbutton{I'm on the fourth slide}}
\item Fifth.
\end{itemize}
\end{frame}

\end{document}

In your example, you can also use

\documentclass{beamer}

\begin{document}

\begin{frame}
\hyperlink{label}{\beamerbutton{I jump to fourth slide of next frame}}
\end{frame}

\begin{frame}
  \only<4>{Some text\hypertarget{label}{\beamerbutton{I'm on the fourth slide}}}
\end{frame}

\end{document}
  • 3
    Is also \hyperlink overlay aware? I mean, can I have a \hyperlink<6->{label} so that it would jump to the frame labeled label at overlay #6? – GertVdE Oct 9 '15 at 9:41
  • 1
    @GertVdE Yes, it is. – Gonzalo Medina Oct 9 '15 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.