# Beamer: how to navigate to the last slide of next frame

Is it possible to navigate to the last slide of the next frame?

There is a command \hyperlinkframestartnext to jump to the first slide on the next page. I need a command like \hyperlinkframeendnext.

The question was discussed in comp.text.tex. Unfortunately, the solution proposed there doesn't work:

\documentclass[12pt]{beamer}
\usepackage[utf8]{inputenc}

\makeatletter
\newcounter{@countingframe}%
\setcounter{@countingframe}{0}%
\def\beamer@framepages#1#2{%
\ifnum\c@page<#1%
\else%
\ifnum\c@page>#2%
\else%
\gdef\beamer@startpageofframe{#1}%
\gdef\beamer@endpageofframe{#2}%
\fi%
\fi%
\stepcounter{@countingframe}%

% define \hyperlinkframeendnext, which will point to the final slide
% of the next frame (or the current frame if it's the last one in the
% presentation)
\fi%
\makeatother

\setbeamertemplate{navigation symbols}{\scriptsize\hyperlinkframeendprev{ $\vartriangleleft$ }\hyperlinkframestart{ $\vartriangle$ }\hyperlinkframeend{ $\triangledown$ }\hyperlinkframeendnext{ $\vartriangleright$ }}

\begin{document}

\begin{frame}
1\pause 2\pause 3
\end{frame}

\begin{frame}
A\pause B\pause C
\end{frame}

\end{document}

• Hi! It would be a bit easier to solve the problem if you included a minimal example that shows the issue. Anyway, this is an interesting question! – yo' Sep 19 '15 at 19:27
• I added a not working example, based on the suggestion in comp.text.tex – tom75 Sep 19 '15 at 19:30
• Just to make sure I understand your problem correctly: when you click on the first slide, you want to jump to the "ABC" slide, while this example jumps to "123"? – samcarter_is_at_topanswers.xyz Sep 20 '15 at 10:09
• Yes, when I click on the ">"-navigation-button, I want do jump to the "ABC" slide (which is the last slide on the second frame). – tom75 Sep 20 '15 at 13:33

You only need to correct one line:

\expandafter\hyperlink{\csname frame@\the\@tempcnta @end\endcsname}}


although I am more comfortable with

\def\hyperlinkframeendnext#1{\bgroup