
He declarado una serie de \hyperlinksection
s:
\documentclass{beamer}
\usepackage[]{hyperref}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
\quad\hyperlinkpresentationstart{\beamerreturnbutton{Back to start}}%
\quad\hyperlinksectionstart{\beamerreturnbutton{Back to section start}}%
\quad\hyperlink{Detailed_Analysis}{\beamergotobutton{Detailed Analysis}}%
\quad\hyperlinksectionstartnext{\beamerskipbutton{Next section}}%
\quad\hyperlinksectionendprev{\beamerskipbutton{previous section}}%
\vspace*{0.2cm}%
}
\begin{document}
\section{sec1}
\begin{frame}%{ss}
1st section/ page 1 out of 1
\end{frame}
\begin{frame}
1st section/ page 2 out of 2
\end{frame}
\begin{frame}[label=Detailed_Analysis]
Detailed Analysis
\end{frame}
\section{sec2}
\begin{frame}
2nd section
\end{frame}
\section{sec3}
\begin{frame}
3rd section
\end{frame}
\end{document}
Los hipervínculos "Volver al inicio", "Volver al inicio de la sección", "Análisis detallado", "Siguiente sección" funcionan, pero el hipervínculo "Sección anterior" no salta a la sección anterior, sino a la sección "Análisis detallado". es decir:
Cuando en la 2da Sección:
si hago clic en "Sección anterior", irá a la sección "Análisis detallado" en lugar de a la "Primera sección":
¿Hay alguna manera de hacer que el Previous section
hipervínculo funcione?
Actualizar:Al usar la respuesta de @samcarter, existe este problema: Cuando en la última sección:
Si hace clic en "Siguiente Sección", el resultado deseable sería detenerse aquí, ya que esta es la última sección. Sin embargo, si haces clic en "Siguiente Sección", irás al último fotograma dentro de esta última sección:
¿Hay alguna manera de lograr el resultado deseado (es decir, cuando estemos en la última sección, si hacemos clic en "Siguiente sección", no saltemos)?
Código:
\documentclass{beamer}
\AtBeginSection[]{\label{sec:\thesection}}
\newcounter{prevsec}
\title{Some Title}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
\setcounter{prevsec}{\thesection}
\ifnum\theprevsec>1
\addtocounter{prevsec}{-1}
\fi
\quad\hyperlinkpresentationstart{\beamerreturnbutton{Back to start}}%
\quad\hyperlinksectionstart{\beamerreturnbutton{Back to section start}}%
\quad\hyperlink{Detailed_Analysis}{\beamergotobutton{Detailed Analysis}}%
\quad\hyperlinksectionstartnext{\beamerskipbutton{Next section}}%
\quad\hyperlink{sec:\theprevsec}{\beamerskipbutton{previous section}}%
\vspace*{0.2cm}%
}
\begin{document}
\section{sec1}
\begin{frame}%{ss}
1st section/ page 1 out of 1
\end{frame}
\begin{frame}
1st section/ page 2 out of 2
\end{frame}
\begin{frame}[label=Detailed_Analysis]
Detailed Analysis
\end{frame}
\section{sec2}
\begin{frame}
2nd section
\end{frame}
\section{sec3}
\begin{frame}
3rd section
\end{frame}
\begin{frame}
More content on the 3rd section
\end{frame}
\begin{frame}
Even More content on the 3rd section
\end{frame}
\end{document}
Respuesta1
Supongo que el problema es que \hyperlinksectionendprev
salta al último fotograma de la sección anterior mientras que parece que quieres ir al primer fotograma de la sección anterior.
\documentclass{beamer}
\AtBeginSection[]{\label{sec:\thesection}}
\newcounter{prevsec}
\title{Some Title}
\setbeamertemplate{footline}{%
\setcounter{prevsec}{\value{section}}
\ifnum\value{prevsec}>1
\addtocounter{prevsec}{-1}
\fi
\quad\hyperlinkpresentationstart{\beamerreturnbutton{Back to start}}%
\quad\hyperlinksectionstart{\beamerreturnbutton{Back to section start}}%
\quad\hyperlink{Detailed_Analysis}{\beamergotobutton{Detailed Analysis}}%
\quad\hyperlinksectionstartnext{\beamerskipbutton{Next section}}%
\quad\hyperlink{sec:\theprevsec}{\beamerskipbutton{previous section}}%
\vspace*{0.2cm}%
}
\begin{document}
\section{sec1}
\begin{frame}%{ss}
1st section/ page 1 out of 1
\end{frame}
\begin{frame}
1st section/ page 2 out of 2
\end{frame}
\begin{frame}[label=Detailed_Analysis]
Detailed Analysis
\end{frame}
\section{sec2}
\begin{frame}
2nd section
\end{frame}
\section{sec3}
\begin{frame}
3rd section
\end{frame}
\end{document}