Text Formattingbeamer | Page Count in hyperlinked Slides

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

beamer | Page Count in hyperlinked Slides

Post by latexhelp1 »

In beamer, I use "appendix" slides. That is, there is a button/label. Upon clicking on it, it takes you to a supplemental slide. Then, clicking on that slide, it takes you back to the presentation.

Is there a way to do the page numbering such that the page number on the supplemental slide will be exactly the same as the initial slide?

I ask all of this with the following in mind:
  • I do not want to change the overall page count
  • I do not want to add a section to the top of my slide for the Appendix
  • I want the Appendix slides to be accessed only optionally
  • I would like for these slides to remain at the end of the presentation, if possible
  • I do not want to add any additional circles to denote slides in that subsection.
In the following minimum working example -- I pray that this example really is a minimum working example -- there are 3 slides plus one appendix slide. Slide 2 takes you to the appendix slide. Then the appendix slide takes you back to slide 2. I'd like the page counter on slide 2 to be 2 / 3.

Code: Select all

\documentclass[professionalfont]{beamer}
\mode<presentation>
\usetheme{CambridgeUS}
\useoutertheme{miniframes}

\beamertemplatenavigationsymbolsempty

\begin{document}

\section{Section 1}
\subsection{}

\frame
{
\frametitle{Slide 1}
Test slide 1
}

\frame
{
\frametitle{Slide 2}
Test slide 2

\vspace{0.5cm}
Go to appendix slide.

\vspace{0.5cm}
Appendix! \hspace{0.10cm}\hyperlink{bao<1>}{\beamergotobutton{Go!}}
}

\frame
{
\frametitle{Slide 3}
Test slide 3
}

\section*{}

\addtocounter{framenumber}{-1}
\frame[label=bao]
{
\frametitle{Appendix Slide}

Appendix Material


\vspace{0.05cm}
{
\leftskip.5\textwidth
{\tiny

\noindent \hspace{-1.8mm} \Acrobatmenu{GoBack}{\beamerreturnbutton{Go Back to Slide 2}}

}}
}

\end{document}
I would be so grateful for any help that you can provide.
Attachments
Prohibition Tables.pdf
(42.19 KiB) Downloaded 153 times
Last edited by latexhelp1 on Fri Feb 03, 2012 4:03 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: beamer | Page Count in hyperlinked Slides

Post by kaiserkarl13 »

Could you do this in the form of an overlay specification? That is, one slide that expands to three "pages" (the first and third being identical) and second an "appendix" (which is actually just another slide, though all the elements on it could be additions/replacements to the first one).
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

beamer | Page Count in hyperlinked Slides

Post by latexhelp1 »

Thank you so much for responding and for your help! I don't quite understand what you mean, however. What would this code look like?
kaiserkarl13 wrote:Could you do this in the form of an overlay specification? That is, one slide that expands to three "pages" (the first and third being identical) and second an "appendix" (which is actually just another slide, though all the elements on it could be additions/replacements to the first one).
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

beamer | Page Count in hyperlinked Slides

Post by kaiserkarl13 »

Something like this, perhaps?

Code: Select all

\documentclass{beamer}

\begin{document}

\begin{frame}
  \frametitle<1>{Main}
  \frametitle<2>{Appendix}
  \frametitle<3>{Main}
  \begin{itemize}
    \item<1> Hello!
    \item<2> Good-bye!
    \item<1,3> Hello again!
  \end{itemize}
\end{frame}

\end{document}
It sounds like what you are doing is more complicated, though. You could declare a link that you click on and then one back, with a setcounter{page}{xxx} tag in place (you could even use a reference to the original page, I suspect). Just thinking out loud.
Post Reply