Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The following document compiles fine and the link is shown as I would like it to be shown. But when I click on "here" in the resulting pdf I am taken to page 1 instead of the page where the reference is. I would like to be taken to the referenced page.

\documentclass[english]{beamer}
\usepackage{babel}
\begin{document}

\begin{frame}
\frametitle{the referencing slide}
As you can see \hyperref[refthis]{here}
\end{frame}


\begin{frame}
\frametitle{random stuff}
in between slide
\end{frame}

\begin{frame}
\frametitle{Reference this}

I want to reference this frame. \label{refthis}

\end{frame}
\end{document}
share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

One option would be to use the \hyperlink, \hypertarget mechanism provided by hyperref:

\documentclass[english]{beamer}
\usepackage{babel}

\begin{document}

\begin{frame}
\frametitle{the referencing slide}
As you can see \hyperlink{refthis}{here}
\end{frame}

\begin{frame}
\frametitle{random stuff}
in between slide
\end{frame}

\begin{frame}
\frametitle{Reference this}
\hypertarget{refthis}{}
I want to reference this frame.
\end{frame}

\end{document}

Another option could be to use \hyperlink and the labelling mechanism for frames:

\documentclass[english]{beamer}
\usepackage{babel}

\begin{document}

\begin{frame}
\frametitle{the referencing slide}
As you can see \hyperlink{refthis}{here}
\end{frame}

\begin{frame}
\frametitle{random stuff}
in between slide
\end{frame}

\begin{frame}[label=refthis]
\frametitle{Reference this}
I want to reference this frame.
\end{frame}

\end{document}
share|improve this answer
    
Thank you for the answer and for providing more than one option. –  scottkosty Mar 29 '12 at 9:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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