macros - 用于备份幻灯片的 Latex 宏
问题描述
我正在努力在 LaTeX beamer 中实现一个功能,这将有助于我准备演讲。我希望以下 MWE 为我创建一个备份幻灯片,将其链接并插入到 之后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 中编译没有问题,但运行外部脚本进行预处理很难)都会有所帮助,因为它可以轻松地与合作者合作。
解决方案
推荐阅读
- java - 如何在 spring 集成中设置 KafkaHeaders.MESSAGE_KEY
- symfony - 序列化类“App\Entity\Cronjobs”的对象时检测到循环引用
- c# - 使用 DevExpress 等模板创建 TableComponent
- c# - 通过下一级服务将参数传递给依赖项
- python - 在处理上述异常(格式错误的十六进制 UUID 字符串)期间,发生了另一个异常:
- django - 调用 save() 方法后 Django 模型未更新
- java - 从回收站视图中单击时,新活动仅显示数组列表的最后一个元素 - 不知道出了什么问题
- maven - Liquibase:以不同的用户身份在更改日志中执行更改集
- reactjs - React typescript - 元素隐式具有“任何”类型,因为“字符串”类型的表达式不能用于索引类型
- python - 时间序列数据集训练测试拆分 ML