Beamer 左侧有注释,导航链接在幻灯片(右侧)和注释(左侧)上均可用

Beamer 左侧有注释,导航链接在幻灯片(右侧)和注释(左侧)上均可用

回答以下问题这个问题,并在其中一条评论中给出了建议,我尝试不仅在右侧的幻灯片上,而且在左侧的注释上提供可用的导航链接。

在同一个 MWE 上,我定制了我的笔记,包括导航链接、迷你幻灯片和笔记本身。

但是,虽然幻灯片(右侧)上的导航链接可以正常工作,但左侧(注释)上的导航链接却无法正常工作,因为它们指向了错误的幻灯片……

抱歉,MWE 太长了,我包含了我正在使用的同一套幻灯片,至于其他幻灯片组合,我没有注意到这些问题。谢谢!

平均能量损失

\documentclass[handout]{beamer}
\usepackage{pgfpages}
\setbeameroption{show notes on second screen=left}
\usetheme[compress]{Singapore}
\makeatletter
\defbeamertemplate*{headline}{miniframes theme plus}
{%
  \begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
  \end{beamercolorbox}
  \begin{beamercolorbox}{section in head/foot}
    %\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
    \vskip2pt\hbox{\insertnavigation{\paperwidth}\insertnavigation{\paperwidth}}\vskip2pt
  \end{beamercolorbox}%
  \ifbeamer@theme@subsection%
    \begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
    \end{beamercolorbox}
    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
      \usebeamerfont{subsection in head/foot}\insertsubsectionhead
    \end{beamercolorbox}%
  \fi%
  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
  \end{beamercolorbox}
}
\addtoheadtemplate{\pgfuseshading{beamer@headfade}\vskip-1.25cm}{}



%%%%%%%%%%%%%%%%%%%%
%ADDITIONAL CODE
%notes
\setbeamertemplate{note page}[plain] % Beamer manual, section 19.1
\newlength{\parskipbackup}
\setlength{\parskipbackup}{\parskip}
\newlength{\parindentbackup}
\setlength{\parindentbackup}{\parindent}
\newcommand{\baselinestretchbackup}{\baselinestretch}

\usetemplatenote{
  %for some reason I have to specify a smaller font size and 0.85 paperwidth
  \fontsize{6}{6}\selectfont
  \begin{beamercolorbox}{section in head/foot}
    \vskip2pt\insertnavigation{0.85\paperwidth}\vskip2pt
  \end{beamercolorbox}%
  \insertslideintonotes{0.3}

  \setlength{\parindent}{1em} \setlength{\parskip}{1ex}%
  \renewcommand{\baselinestretch}{1}%

  \rmfamily \tiny %better \scriptsize for the handout

  \insertnote%

  \setlength{\parskip}{\parskipbackup}%
  \setlength{\parindent}{\parindentbackup}%
  \renewcommand{\baselinestretch}{\baselinestretchbackup}%
}
%%%%%%%%%%%%%%%%%%%%



\begin{document}
    \section{Background}
    \subsection{sub1}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub2}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub3}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub4}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
    \section{Importance and objective}
        \subsection{sub1}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub2}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub3}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
    \section{Methods}
        \subsection{sub1}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub2}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub3}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
    \section{Results}
        \subsection{sub1}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub2}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub3}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
        \subsection{sub4}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
    \section{Future directions}
        \subsection{sub1}
            \begin{frame}SLIDE
            \note{notesnotesnotes}
            \end{frame}
\end{document}

编辑: 如果从此行中删除 0.85,则问题会在调整大小时出现

 \vskip2pt\insertnavigation{0.85\paperwidth}\vskip2pt

此行也被删除

 \fontsize{6}{6}\selectfont

导航按预期工作,但导航栏占用了太多空间...不能在保持链接正常工作的同时调整其大小吗?

答案1

代替

\fontsize{6}{6}\selectfont
  \begin{beamercolorbox}{section in head/foot}
    \vskip2pt\insertnavigation{0.85\paperwidth}\vskip2pt
  \end{beamercolorbox}%

经过

  \tiny
  \begin{beamercolorbox}{section in head/foot}
    \vskip2pt\hbox{\hskip-30pt\insertnavigation{\paperwidth}}\vskip2pt
  \end{beamercolorbox}%

相关内容