我正在努力容纳多位作者和附属机构,如下所示。
---
title: "Title"
author: |
| Author1^1^, Author2^2^, Author3^1^ and Author4^2^
| 1. Affiliation1
| 2. Affiliation2
date: "Wednesday, April 10, 2015"
output:
pdf_document
---
上面我得到了
如何修改默认的R markdown Yaml标头以获取作者字段中的自定义输出?我想。
答案 0 :(得分:1)
我正在寻找一种很好的方法,可以在其他内容中添加不同的附属关系模板'我可以这样做:
---
title: Title
author:
- name: Sergio Ibarra Espinosa^a^
email: sergio.ibarra@iag.usp.br
- name: María de Fátima Andrade^a^
- name: Seaghán Mhartain^b^
- name: Rita Yuri Ynoue^a^
address:
- code: 1
address: Instituto de Astronomía, Geofísica e Ciências Atmosféricas, Universidade de São Paulo
- code: 2
address: Faculdade de Medicina, Universidade de São Paulo
abstract: abstract
It consists of two paragraphs.
bibliography: mybibfile.bib
output: rticles::elsevier_article
---
产生了以下结果:
我希望它可以提供帮助