0

Consider the MWE:

\documentclass{beamer}
\usepackage[]{hyperref}
\setbeamercovered{transparent}

\AtBeginSection[]
{
    \begin{frame}<beamer>
    \frametitle{Overview}
    \tableofcontents[currentsection]
\end{frame}
}

\begin{document}

\section{Test 1}
\begin{frame}
\hyperlink{sec:hula}{\beamerbutton{Jump}}
\end{frame}

\section{Test 2}\label{sec:hula}
\begin{frame}
\end{frame}

\end{document}

The Jump button links to the page 4 (where the section starts), but I want it will link to page 3 (the Section ToC page). How can I do that?

2

Not tested... but if doesn't work I suppose you can play with such kind of " "trick"

\documentclass{beamer}
\usepackage[]{hyperref}
\setbeamercovered{transparent}

\newcounter{sectionTOC}

\AtBeginSection[]
{
    \stepcounter{sectionTOC}
    \begin{frame}<beamer>
    \ifnum\thesectionTOC=2
    \label{sec:hula}
    \fi
    \frametitle{Overview}
    \tableofcontents[currentsection]
\end{frame}
}

\begin{document}

\section{Test 1}
\begin{frame}
\hyperlink{sec:hula}{\beamerbutton{Jump}}
\end{frame}

\section{Test 2}
\begin{frame}
\end{frame}

\end{document}

If you want to use it multiple times a more automatic way is to not use \thesection counter:

\documentclass{beamer}
\usepackage[]{hyperref}
\setbeamercovered{transparent}


\AtBeginSection[]
{
    \begin{frame}<beamer>
    \label{sec:\thesection}
    \frametitle{Overview}
    \tableofcontents[currentsection]
\end{frame}
}

\begin{document}

\section{Test 1}
\begin{frame}
\hyperlink{sec:2}{\beamerbutton{Jump}}
\end{frame}

\section{Test 2}
\begin{frame}
\end{frame}

\end{document}

(Tested)

  • Accepted the 2nd solution – pushpen.paul Aug 15 '17 at 19:51
2

For the special case shown in your MWE where you want to link to the start of the next section, you can use \hyperlinksectionstartnext:

\documentclass{beamer}
\setbeamercovered{transparent}

\AtBeginSection[]
{
    \begin{frame}<beamer>
    \frametitle{Overview}
    \tableofcontents[currentsection]
\end{frame}
}

\begin{document}

\section{Test 1}
\begin{frame}
\hyperlinksectionstart{\beamerbutton{this section}}
\hyperlinksectionstartnext{\beamerbutton{next section}}
\end{frame}

\section{Test 2}
\begin{frame}
\end{frame}

\end{document}
  • +1 because it is more forward for the specific problem than mine... I think both of our solutions will be useful for future readers. – koleygr Aug 15 '17 at 19:40
  • @koleygr I already voted your answer as it could actually solve a problem I had for years with links in a mindmap used as table of contents :) – user36296 Aug 15 '17 at 19:44

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.