如何在Rmarkdown中为一位作者添加多个从属关系?

时间:2019-05-24 07:51:54

标签: r rstudio markdown r-markdown

我正在使用Rmarkdown撰写科学论文。我努力将2所大学添加到1个作者中。多次交配后,仍未找到合适的解决方案。我的期望与Authora,b一样。

---
title: my title
author:
- affiliation: group1
  name: Author1
- affiliation: group2
  name: author2

address:
- address: abc
  code: group1
- address: b
  code: group2

我希望author1可以有两组地址。

1 个答案:

答案 0 :(得分:0)

使用引号:

---
title: my title
author:
- affiliation: group1
  name: 'Author1 Author2'
- affiliation: group2
  name: author2

address:
- address: abc
  code: group1
- address: b
  code: group2
---