ナビゲーションシンボルの前のセクションへのハイパーリンク

ナビゲーションシンボルの前のセクションへのハイパーリンク

私は一連の\hyperlinksections を宣言しました:

\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}

「最初に戻る」、「セクションの最初に戻る」、「詳細分析」、「次のセクション」のハイパーリンクは機能しますが、「前のセクション」ハイパーリンクは前のセクションにジャンプせず、「詳細分析」セクションにジャンプします。つまり、

第2セクションにいるとき:

ここに画像の説明を入力してください

「前のセクション」をクリックすると、「第 1 セクション」ではなく「詳細分析」セクションに移動します。

ここに画像の説明を入力してください

ハイパーリンクを機能させる方法はありますかPrevious section?

アップデート:@samcarterの回答を使用すると、次の問題が発生します: 最後のセクションでは:

ここに画像の説明を入力してください

「次のセクション」をクリックすると、これが最後のセクションなので、ここで停止するのが望ましい結果になります。ただし、「次のセクション」をクリックすると、この最後のセクション内の最後のフレームに移動します。

ここに画像の説明を入力してください

望ましい結果を達成する方法はありますか (つまり、最後のセクションにいるときに、「次のセクション」をクリックしてもジャンプしない)。

コード:

\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}

答え1

問題は、\hyperlinksectionendprev前のセクションの最初のフレームに移動したいのに、前のセクションの最後のフレームにジャンプしてしまうことだと思います。

\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}

関連情報