1

I'm using a table of contents in my beamer presentation, in which I include the first and the last slide number of each section. For this I place separate labels in the first and in the last slide, for example \label{corpbeg} and \label{corpend} and then I write

\begin{frame}{Table of Contents}
\begin{itemize}
\item …
\item Corpus\dotfill\ref{corpbeg}--\ref{corpend}
\item …
\end{itemize}
\end{frame}

(A section always has more than one slide since it contains the section title frame and at least one slide of contents.)

The problem is that this approach does not work with the bibliography, where I'm forced to use allowframebreaks:

\begin{frame}[allowframebreaks]{Bibliography}\label{biblbeg}
\bibliographystyle{plain}
\bibliography{main}
\label{biblend}
\end{frame}

doesn't work, I get the same number from \ref{biblbeg} and \ref{biblend} (i.e., begin and end of the bibliography), even though they are three frames apart.

How can I obtain a \ref towards the last slide of three-page bibliography obtained with allowframebreaks?

MWE Proposal from Manuel

\documentclass[hyperref]{beamer}

\begin{document}

\begin{frame}{Link Frame}
\ref{myHyperLabelBegin}--\ref{myHyperLabelEnd}    
\end{frame}

\begin{frame}[allowframebreaks, t, label=myHyperLabelBegin]
\begin{itemize}
    \item Test (First)
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test
    \item Test (Last)
\end{itemize}
\label{myHyperLabelEnd}
\end{frame}

\end{document}
3

Your Answer

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

Browse other questions tagged or ask your own question.