rmarkdown 投影仪演示文稿中的多行多位作者

use*_*705 0 r r-markdown

我想在 Rmarkdown 投影仪演示文稿中将作者的名字分成两行。我的 YAML 如下:

---
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
---
Run Code Online (Sandbox Code Playgroud)

但作者的名字仍然印在同一行上。怎样才能分成两半呢?

Kev*_*eau 5

如果您在第一作者之后使用该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
---
Run Code Online (Sandbox Code Playgroud)

  • @user7892705,不用担心。如果符合您的期望,请标记为已接受的答案。 (2认同)