I am using beamer
and I have a slide in an Appendix section. I hyper-reference it with a button. The Appendix does not appear as a section itself. The Appendix material is at the end of the code. I would like all of this to remain.
When I click on the button on Slide 2, it brings me to the Appendix slide. The Appendix Slide says p. 3. Even though the it is linked from Section 2.
Would it be possible to do either of the following two?
- Have the appendix slide be the same from which it is buttoned. In this case, say 2/3.
- Have the appendix slide have no page number. Just be blank.
The following code should illustrate the point.
\documentclass[professionalfont]{beamer}
\mode<presentation>
\usetheme{Warsaw}
\usetheme{CambridgeUS}
\usepackage{booktabs}
\begin{document}
\section{Section}
\subsection{}
\frame
{
\frametitle{Slide Title}
Slide 1
\hspace{0.01cm}\hyperlink{eaa<1>}{\beamergotobutton{Literature}}
}
\frame
{
\frametitle{Slide Title}
Slide 2
\hspace{0.01cm}\hyperlink{eab<1>}{\beamergotobutton{Literature}}
}
\frame
{
\frametitle{Slide Title}
Slide 3
}
\section*{}
\addtocounter{framenumber}{-1}
\frame[label=eaa]
{
\frametitle{Appendix Material}
Appendix Material here for Slide 1.
{
{\tiny
\hfill\Acrobatmenu{GoBack}{\beamerreturnbutton{}}
}}
}
\addtocounter{framenumber}{-1}
\frame[label=eab]
{
\frametitle{Appendix Material}
Appendix Material here for Slide 2.
{
{\tiny
\hfill\Acrobatmenu{GoBack}{\beamerreturnbutton{}}
}}
}
\end{document}
I would very much appreciate your help.
Best Answer
Here's one way to remove the slide numbering from the Appendix slide, via the
etoolbox
package. The idea being that you replace the insertion of the frame in thefootline
template with a\phantom
version of itself:The
beamer
footline
template is stored inbeamer@@tmpl@footline
. It's just easier replacing (or patching) the necessary commands rather than redefining it all over again.A similar approach can be used to repeat the frame number of some other slide. One way is to "capture" the frame number in a different counter, and then patch the
footline
to display that number rather than the regularframenumber
counter (via\insertframenumber
). Here is a complete minimal example:The frame number is captured via
after defining the new counter
captureframe
. In the patch to thefootline
template,\insertframenumber
is replaced with\thecaptureframe
(which defaults to an\arabic
presentation of the counter).Both of the above solutions will impact all slides/frames following the patch. So, if a modification should be made temporarily, some more work is required (but is not difficult).
Based on certain assumptions, an elementary method using macros (that does not require
etoolbox
) can be established to reference slides. The assumptions areHere is an MWE:
The usage is:
\saveframenumber{<name>}
. This stores the value of the current frame in\r@<name>
.\useframenumber{<name>}
.