R Markdown(Pandoc)投影仪演示文稿,带简短标题

问题描述 投票:4回答:1

我正在RMarkdown中使用beamer_presentation,并且在YAML标头中使用title: "Long title"。该标题显示在我的幻灯片的第一个标题页上,也出现在所有幻灯片的底部。但是,在所有幻灯片的底部,我希望出现一个较短的标题。我想知道是否可以使用short-title: "Short title"之类的东西。我知道有uiucthemes允许这样做,但是我不想使用uiuc样式。谢谢!

yaml r-markdown pandoc beamer
1个回答
0
投票

您可以将可选参数传递给\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

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.