使用R Markdown(Pandoc)制作短标题的beamer演示文稿

6
我正在尝试在RMarkdown中使用beamer_presentation,在YAML头文件中包含title: "Long title"。这个标题会出现在幻灯片的第一页以及所有幻灯片的底部。然而,在所有幻灯片的底部,我希望出现一个较短的标题。我想知道是否可以使用像short-title: "Short title"这样的东西。我知道有uiucthemes可以实现这一点,但我不想使用uiuc风格。谢谢!

1
你可能需要使用自定义模板,请参见http://pandoc.org/MANUAL.html#templates。 - mb21
1个回答

13

您可以向\title宏传递一个可选参数,该参数将在页脚中使用:

---
title: "Long title"
output: 
  beamer_presentation:
    theme: "CambridgeUS"
    keep_tex: true
header-includes:
  - \AtBeginDocument{\title[short title for footline]{long title for title page}}

---



text

在这里输入图片描述


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接