简体   繁体   English

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

[英]R Markdown (Pandoc) beamer presentation with short title

I am trying to use beamer_presentation in RMarkdown and in the YAML header I include, say, title: "Long title" .我试图在 RMarkdown 和 YAML 标头中使用beamer_presentation ,例如, title: "Long title" This title appears on the first title page of my slides but also at the bottom of all slides.此标题出现在我的幻灯片的第一个标题页上,但也出现在所有幻灯片的底部。 However, at the bottom of all slides I would like a shorter title to appear.但是,在所有幻灯片的底部,我希望出现一个较短的标题。 I wonder if something like short-title: "Short title" could be used.我想知道是否可以使用类似short-title: "Short title" I know that there is uiucthemes that allows that, but I don't want to use the uiuc style.我知道有uiucthemes允许这样做,但我不想使用 uiuc 样式。 Thanks!谢谢!

You can pass an optional argument to the \\title macro which will be used in the footline:您可以将可选参数传递给将在脚注中使用的\\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

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM