【发布时间】:2014-11-20 12:50:24
【问题描述】:
我正在尝试关注this pandoc example 将多个作者添加到yaml metadata block 中的Rmarkdown 文件中。 pdf 将在 RStudio(版本 0.98.932)中生成,但没有作者信息。
---
title: 'This is the title: it contains a colon'
author:
- name: Author One
affiliation: University of Somewhere
- name: Author Two
affiliation: University of Nowhere
date: "`r format(Sys.time(), '%d %B %Y')`"
tags: [nothing, nothingness]
abstract: |
This is the abstract.
It consists of two paragraphs.
output: pdf_document
---
我还想进一步自定义标题并添加副标题。可能吗?
【问题讨论】:
-
尝试删除破折号 -。并确保您使用
\t对我来说它是这样工作的 -
你把
\t放在哪里? -
哦,对不起,我删除了第二作者进行测试忘记了。不能两次调用作者密钥。因此,您可以执行类似“Name1 & Name2”的操作。我相信,从属关系也是最新 yaml 的未知参数。
标签: r yaml rstudio r-markdown