2017-09-17 36 views
0

我想在Rmarkdown beamer演示文稿中将作者的名称分为两行。我的YAML如下:rmarkdown beamer演示文稿中的多行作者的多位作者

--- 
title: "***" 
author: 
- Author One 
- Author Two 
date: "`r format(Sys.time(), '%d %B %Y')`" 
fontsize: 14pt 
output: 
    beamer_presentation: 
    fig_height: 5 
    fig_width: 8 
    highlight: tango 
    theme: metropolis 
incremental: true 
--- 

但是,作者的名字仍然印在同一行上。我怎么能分成两个?

回答

2

如果您在第一个作者之后使用TeX命令\newline,它将在第二行显示。

--- 
title: "***" 
author: 
- Author One\newline 
- Author Two 
date: "`r format(Sys.time(), '%d %B %Y')`" 
fontsize: 14pt 
output: 
    beamer_presentation: 
    fig_height: 5 
    fig_width: 8 
    highlight: tango 
    theme: metropolis 
incremental: true 
--- 
+0

是的正确!谢谢 – user7892705

+2

@ user7892705,别担心。如果符合您的期望,请标记为已接受的答案。 –

相关问题