如果使用pipes |
,可以将作者行拆分为多行:
---
title: "The title"
author: |
| The author
| The affiliation
date: "9 April 2015"
output: beamer_presentation
---
输出:
Edit (can we play with the title and author/affiliation fonts?):
如果你想改变不同的字体大小,我建议你使用演示文稿标题的includes: in_header
选项(具体请勾选this RStudio link).
这指向计算机上的一个简单的.tex
文件,您可以在其中添加专门用于演示文稿前言的LaTeX命令.因此,您可以在桌面上有一个名为preamble.tex
的文件,并使用\setbeamerfont{XX}{size={\fontsize{YY}{ZZ}}}
命令,其中XX是您想要更改的特定内容(标题、作者);YY是要应用的字体大小;ZZ是跳过线(在pt中)(更多细节请参见this link).
以你为例,我们有:
100文件在您的桌面上(或任何您想要的地方),只包含两行:
\setbeamerfont{title}{size={\fontsize{30}{25}}}
\setbeamerfont{author}{size={\fontsize{5}{20}}}
您的100文件:
---
title: "The title"
author: |
| The author
| The affiliation
output:
beamer_presentation:
includes:
in_header: ~/Desktop/preamble.tex
---
## R Markdown
This is an R Markdown presentation.
Markdown is a simple formatting syntax for
authoring HTML, PDF, and MS Word documents.
输出将是: