![Кнопки гиперссылок на втором слое относительно содержимого фрейма](https://rvso.com/image/370315/%D0%9A%D0%BD%D0%BE%D0%BF%D0%BA%D0%B8%20%D0%B3%D0%B8%D0%BF%D0%B5%D1%80%D1%81%D1%81%D1%8B%D0%BB%D0%BE%D0%BA%20%D0%BD%D0%B0%20%D0%B2%D1%82%D0%BE%D1%80%D0%BE%D0%BC%20%D1%81%D0%BB%D0%BE%D0%B5%20%D0%BE%D1%82%D0%BD%D0%BE%D1%81%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%20%D1%81%D0%BE%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D0%BC%D0%BE%D0%B3%D0%BE%20%D1%84%D1%80%D0%B5%D0%B9%D0%BC%D0%B0.png)
На следующем кадре нижняя строка с кнопками гиперссылок перекрывается двумя изображениями:
Есть ли способ объявить в преамбуле нижнюю строку гиперссылки как находящуюся на втором уровне (фоне) относительно содержимого каждого слайда?
Код:
\documentclass{beamer}
%
%
\usepackage[english]{babel}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage[]{hyperref}
\newcommand{\btVFill}{\vskip0pt plus 1filll}
\usepackage{totcount}
\regtotcounter{section}
\newcommand\Fontvi{\fontsize{6}{5.2}\selectfont}
% Format of the title of every section:
\AtBeginSection[]{\label{sec:\thesection}
\begin{frame}{Outline}
\tableofcontents[
currentsection,
sectionstyle=show/shaded,
subsectionstyle=shaded/shaded/shaded,
subsubsectionstyle=shaded/shaded/shaded/shaded
]
\end{frame}
}
\newcounter{prevsec}
\setbeamertemplate{navigation symbols}{}
% Create footline:
\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{moredetails}{\beamergotobutton{More details}}%
\ifnum\thesection<\totvalue{section}%
\quad\hyperlinksectionstartnext{\beamerskipbutton{Next section}}%
\else%
\quad \beamerskipbutton{Next section}%
\fi%
\quad\hyperlink{sec:\theprevsec}{\beamerskipbutton{Previous section}}%
\vspace*{0.2cm}%
}
% Outline at the beginning of each subsection:
\AtBeginSubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
% Outline at the beginning of each subsubsection:
\AtBeginSubsubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\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}
\def\Blablabla{
%Some text, some text some text
\begin{enumerate}
\Fontvi
\item Some text: Some info
\item Some other text: Some other info
\end{enumerate}
}
%
\begin{frame}%[plain]
%
\begin{table}
\centering
%\vspace{-1em}
\begin{tabular}{c|c|c|c|c}
$A$ & $B$ & $C$ & $D$ and $E$ \\\hline
$1.1$ & $1.2$ & $1.3$ & $1.4$ & $1.5$
\end{tabular}
%\caption{\label{tab:widgets}An example table.}
\end{table}
\vspace{-0.5em}
%
\centering
\includegraphics[width=.48\linewidth]{example-image}
\begin{minipage}[b][0.4\textheight][c]{.45\linewidth} \Blablabla \end{minipage}\\[1em]
\includegraphics[width=.48\linewidth]{example-image}\quad
\includegraphics[width=.48\linewidth]{example-image}
\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, следующим слайдом будет контур, выделяющий предстоящий раздел 2, а также есть возможность щелкнуть по выцветшему разделу 3, чтобы перейти к разделу 3:
Используя ответ @samcarter, теперь структура по-прежнему отображается при начале нового раздела, но функция нажатия на название раздела для перехода к этому разделу отключена, как показано в этомкод 2:
\usepackage[english]{babel}
\usepackage{multirow}
\usepackage{amsmath}
\newcommand{\btVFill}{\vskip0pt plus 1filll}
\usepackage{totcount}
\regtotcounter{section}
\newcommand\Fontvi{\fontsize{6}{5.2}\selectfont}
\newcounter{prevsec}
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{}
\makeatletter
\setbeamertemplate{sidebar canvas left}
{%
\tiny%
\leavevmode%
\hbox{%
\rule{0pt}{.99\paperheight}%
\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{moredetails}{\beamergotobutton{More details}}%
\ifnum\thesection<\totvalue{section}%
\quad\hyperlinksectionstartnext{\beamerskipbutton{Next section}}%
\else%
\quad \beamerskipbutton{Next section}%
\fi%
\quad\hyperlink{sec:\theprevsec}{\beamerskipbutton{Previous section}}%
\vspace*{0.2cm}%
}%
\vskip0pt%
}
\makeatother
%
% Outline at the beginning of every section:
\AtBeginSection[]{\label{sec:\thesection}
\begin{frame}{Outline}
\tableofcontents[
currentsection,
sectionstyle=show/shaded,
subsectionstyle=shaded/shaded/shaded,
subsubsectionstyle=shaded/shaded/shaded/shaded
]
\end{frame}
}
% Outline at the beginning of each subsection:
\AtBeginSubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
% Outline at the beginning of each subsubsection:
\AtBeginSubsubsection[]
{
\begin{frame}{Outline}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
\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}
\def\Blablabla{
%Some text, some text some text
\begin{enumerate}
\Fontvi
\item Some text: Some info
\item Some other text: Some other info
\end{enumerate}
}
%
\begin{frame}%[plain]
%
\begin{table}
\centering
%\vspace{-1em}
\begin{tabular}{c|c|c|c|c}
$A$ & $B$ & $C$ & $D$ and $E$ \\\hline
$1.1$ & $1.2$ & $1.3$ & $1.4$ & $1.5$
\end{tabular}
%\caption{\label{tab:widgets}An example table.}
\end{table}
\vspace{-0.5em}
%
\centering
\includegraphics[width=.48\linewidth]{example-image}
\begin{minipage}[b][0.4\textheight][c]{.45\linewidth} \Blablabla \end{minipage}\\[1em]
\includegraphics[width=.48\linewidth]{example-image}\quad
\includegraphics[width=.48\linewidth]{example-image}
\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}
Обновление 2:В дополнение к этому, PDF-файл, созданный с помощьюкод 2похоже, имеет неправильные функции ссылок, например, если я открываю PDF-файл на странице 2, если я размещаю мышь где-то в нужной области, Go to page 1
появляется информация:
и если я нажму, то буду перенаправлен на страницу 1.
Это было uing okular
. То же самое происходит, если я открываю документ с помощью evince
:
решение1
Кнопки, похоже, по-прежнему можно нажимать, однако вам придется угадывать, где они находятся.
\documentclass{beamer}
\usepackage{totcount}
\regtotcounter{section}
\newcounter{prevsec}
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{}
% Format of the title of every section:
\AtBeginSection[]{\label{sec:\thesection}
\begin{frame}{Outline}
\tableofcontents[
currentsection,
sectionstyle=show/shaded,
subsectionstyle=shaded/shaded/shaded,
subsubsectionstyle=shaded/shaded/shaded/shaded
]
\end{frame}
}
\makeatletter
\setbeamertemplate{sidebar canvas left}{%
\begin{minipage}[t][.98\paperheight][b]{\textwidth}
\tiny%
\setcounter{prevsec}{\thesection}
\ifnum\theprevsec>1
\addtocounter{prevsec}{-1}
\fi
\quad\hyperlinkpresentationstart{\beamerreturnbutton{Back to start}}%
\quad\hyperlinksectionstart{\beamerreturnbutton{Back to section start}}%
\ifnum\thesection<\totvalue{section}%
\quad\hyperlinksectionstartnext{\beamerskipbutton{Next section}}%
\else%
\quad \beamerskipbutton{Next section}%
\fi%
\quad\hyperlink{sec:\theprevsec}{\beamerskipbutton{Previous section}}%
\end{minipage}
}
\makeatother
\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}%[plain]
%
\begin{table}
\centering
%\vspace{-1em}
\begin{tabular}{c|c|c|c|c}
$A$ & $B$ & $C$ & $D$ and $E$ \\\hline
$1.1$ & $1.2$ & $1.3$ & $1.4$ & $1.5$
\end{tabular}
%\caption{\label{tab:widgets}An example table.}
\end{table}
\vspace{-0.5em}
%
\centering
\includegraphics[width=.48\linewidth]{example-image}
\begin{minipage}[b][0.4\textheight][c]{.45\linewidth} \end{minipage}\\[1em]
\includegraphics[width=.48\linewidth]{example-image}\quad
\includegraphics[width=.48\linewidth]{example-image}
\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}