启用 Latex 海报的转到按钮

启用 Latex 海报的转到按钮

我可以插入这样的导航按钮或转到按钮,以便当我单击该按钮时,该块将显示不同的块吗? 在此处输入图片描述

构建转到按钮的代码是:

\hyperlink{columns}{\beamergotobutton{columns page}}

现在我有这个块:

\begin{block}{Introduction}
\vspace{-20pt}
\heading{Model-assisted design}
\vspace{-20pt}
\begin{outline}
 \1 Assume a model for decision making and pre-tabulate dose transition rules to determine maximum tolerated dose (MTD)
 \1 Example: BOIN design, Keyboard design, etc.
 
\hyperlink{columns}{\beamergotobutton{columns page}}
\end{block}

我在区块末尾添加了“转到”按钮。如果我点击“转到”按钮,我想用一些新内容或新区块替换该区块,例如:

\begin{block}{new block}
new contents
\end{block}

我可以使用转到按钮来实现这种效果吗?

更新:@Jasper Habicht 提供的答案正是我想要的。在我应用海报中的代码后,我无法将转到按钮放在此列的底部:

在此处输入图片描述 在此处输入图片描述

示例代码为:

\begin{column}{\colwidth}

  \vspace{-20pt}
  \begin{block}{Abstract}

    Abstract content

  \end{block}

    \vspace{-25pt}
    \begin{block}{Introduction}
    \vspace{-20pt}
    \heading{Model-assisted design}
    \vspace{-20pt}
    \begin{outline}
     \1 Assume a model for decision making and pre-tabulate dose transition rules to determine maximum tolerated dose (MTD)
     \1 Example: BOIN design, Keyboard design, etc.
    \end{outline}
     
    
  \end{block}

    \vspace{-25pt}
    
    
    \begin{overlayarea}{\textwidth}{3cm}
    %
    \only<1>{
        \begin{block}{Introduction}<1>\label<1>{first}
        This is the first part of the text.
        \end{block}
    }
    %
    \only<2>{
        \begin{block}{More Stuff}<2>\label<2>{second}
        This is the second part of the text. Which is a bit longer, but because the overlayarea has a fixed height, it doesn't matter.
        \end{block}
    }
    %
    \only<3>{
        \begin{block}{Conclusion}<3>\label<3>{third}
        This is the third part of the text.
        \end{block}
    }
    %
    \end{overlayarea}
    
    \hyperlink{first}{\beamergotobutton{1}}
    \hyperlink{second}{\beamergotobutton{2}}
    \hyperlink{third}{\beamergotobutton{3}}
   
\end{column}

\vfill没有成功。

我该如何放置转到按钮?

答案1

不确定您到底想要实现什么,但也许您可以使用覆盖来替换不同幻灯片上的框内容。Beamer 提供的环境overlayarea具有固定大小,每个幻灯片上的大小都相同。您可以将内容放入其中,并指定仅显示在框架的第一张、第二张或第三张幻灯片上。然后您可以添加\labels 以链接到幻灯片。

因此也许是这样的:

\documentclass{beamer}
\usepackage{hyperref}

\begin{document}

\begin{frame}{Frame Title}
    
\begin{overlayarea}{\textwidth}{3cm}
%
\only<1>{
    \begin{block}{Introduction}<1>\label<1>{first}
    This is the first part of the text.
    \end{block}
}
%
\only<2>{
    \begin{block}{More Stuff}<2>\label<2>{second}
    This is the second part of the text. Which is a bit longer, but because the overlayarea has a fixed height, it doesn't matter.
    \end{block}
}
%
\only<3>{
    \begin{block}{Conclusion}<3>\label<3>{third}
    This is the third part of the text.
    \end{block}
}
%
\end{overlayarea}

\hyperlink{first}{\beamergotobutton{1}}
\hyperlink{second}{\beamergotobutton{2}}
\hyperlink{third}{\beamergotobutton{3}}

\end{frame}

\end{document}

在此处输入图片描述

相关内容