用于备份幻灯片的 Latex 宏

Latex Macro for Backup Slides

我正在努力在 LaTeX beamer 中实现一项功能,该功能将对我准备演讲有很大帮助。我希望以下 MWE 为我创建一个备份幻灯片,link 并将其插入 appendbackupframes 之后,而不是将内容放入脚注中:

\documentclass[handout]{beamer}
\newcommand{\additionalinfo}[2]{\beamerbutton{#1}\footnote{#2}}
\newcommand{\appendbackupframes}{}
\begin{document}
\begin{frame}
    \additionalinfo{Beyond the world}{Show me something fancy, like a theorem
    \begin{theorem}
        Hello!
    \end{theorem}}
\end{frame}
\appendbackupframes
\end{document}

换句话说,我希望这段代码的编译方式与以下方式相同:

\documentclass{beamer}
\usepackage{hyperref}
\begin{document}
\begin{frame}
    \hyperlink{backup:1}{\beamerbutton{Beyond the world}}\label{backupback:1}
\end{frame}
\begin{frame}{Beyond the world}
\label={backup:1} Show me something fancy, like a theorem
    \begin{theorem}
        Hello!
    \end{theorem}
\hyperlink{backupback:1}{\beamergotobutton{Back}}
\end{frame}
\end{document}

对我来说,任何我可以在背面工作的解决方案(即,在 XeLaTeX 或 LuaLaTeX 中编译没有问题,但是 运行 用于预处理的外部脚本很难)都会有所帮助,因为它可以轻松地与协作者一起工作。

看来您正在寻找 beamerappendixnote 软件包:

\documentclass{beamer}
\usepackage{beamerappendixnote}
\begin{document}
\begin{frame}{Main title}
  Main content \vfill
  \appxnote{Beyond the world}{Show me something fancy, like a theorem
      \begin{theorem}
          Hello!
      \end{theorem}}
\end{frame}
\printappxnotes
\end{document}