gpt4 book ai didi

r - Rmarkdown yaml 中的多个作者和字幕

转载 作者:行者123 更新时间:2023-12-03 06:44:09 25 4
gpt4 key购买 nike

我正在尝试关注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
---

我还想进一步自定义标题并添加副标题。可能吗?

最佳答案

我刚刚发现可以向 R markdown PDF 输出添加字幕。我在 Ubuntu 14.04 中使用 R 3.2.2 和 RStudio 0.99.473。

---
title: 'This is the title: it contains a colon'
subtitle: 'This is the subtitle'
output: pdf_document
---

关于r - Rmarkdown yaml 中的多个作者和字幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26043807/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com