
각 슬라이드에 하이퍼링크가 있는 비머 프리젠테이션이 있습니다. 이를 통해 PDF의 다른 섹션으로 이동할 수 있습니다.
때때로 이러한 버튼은 슬라이드의 텍스트, 수식 및 그림을 방해합니다. 키를 누를 때만 표시되도록 하는 방법이 있나요?
암호:
\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
이는 Acrobat Reader에서 작동하는 OCG 기반(예: PDF 레이어) 솔루션입니다.
키를 누르는 대신 마우스 포인터를 슬라이드 풋에 접근하면 탐색 컨트롤의 표시 여부가 전환됩니다.
\documentclass{beamer}
\usepackage{ocgx2}
%patch hyperref to make PDF Annotations PDF-Layer-(OCG)-aware
\makeatletter
\let\Hy@setpdfborderOrig\Hy@setpdfborder
\def\Hy@setpdfborder{\ocgbase@insert@oc\Hy@setpdfborderOrig}%
\makeatother
\AtBeginSection[]{\label{sec:\thesection}}
\newcounter{prevsec}
\title{Some Title}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
\setcounter{prevsec}{\thesection}%
\ifnum\theprevsec>1
\addtocounter{prevsec}{-1}%
\fi%
\parbox{\paperwidth}{%
\toggleocgs[triggerocg=onmouseenter]{navLayer}{\phantom{\rule{\paperwidth}{.2cm}}}\\
\begin{ocg}{navLayer}{navLayer}{off}
% dumb PDF annotation to work-around an AR bug
\immediate\pdfannot width 3pt height 3pt depth 0pt{/Ff 65537/FT/Btn/Subtype/Widget}%
\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}}%
\end{ocg}\\%
\toggleocgs[triggerocg=onmouseenter]{navLayer}{\phantom{\rule{\paperwidth}{.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}