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}%
\expandafter\xdef\csname frame@\the@countingframe @end\endcsname{Navigation#2}}
% 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)
\def\hyperlinkframeendnext{%
\@tempcnta=\c@framenumber%
\ifnum\@tempcnta<\inserttotalframenumber%
\advance\@tempcnta by 1%
\fi%
\expandafter\hyperlink\csname frame@\the\@tempcnta @end\endcsname}
\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}