2017-09-17 37 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,別擔心。如果符合您的期望,請標記爲已接受的答案。 –

相關問題