我在.Rmd文件中定义了关键字,但是它们在输出PDF中是不可见的。
电流输出

预期结果

电流.Rmd
.Rmd文件的第一行如下所示:
---
title: "No keywords within the output file"
abstract: "This is sample text for abstract. Generally speaking, I would like to show keywords list below an abstract (as in case of the linked example)"
keywords: "keywordA, keywordB"
author: "Mateusz Kędzior"
output:
bookdown::pdf_document2:
keep_tex: true
number_sections: yes
toc: false
base_format: rticles::elsevier_article
---
```{r setup, include=FALSE}knitr::opts_chunk$set(echo =真)
## Elsevier article
This is an R Markdown document.
I'm trying to prepare an Elsevier article. 发布于 2017-02-16 15:59:03
我想知道base_format在您的示例中是否真的做了任何工作(输出与base_format和不带base_format的情况相同)。由于base_format是pdf_book的一个参数,请考虑将YAML头更改为
---
title: "No keywords within the output file"
author:
- name: "Mateusz Kędzior"
abstract: "This is sample text for abstract. Generally speaking, I would like to show keywords list below an abstract (as in case of the linked example)"
keywords: "keywordA, keywordB"
output:
bookdown::pdf_book:
keep_tex: true
number_sections: yes
toc: false
base_format: rticles::elsevier_article
---它提供了以下输出:

或者,在摘要中添加关键字:
abstract: "This is sample text for abstract. Generally speaking, I would like
to show keywords list below an abstract (as in case of the linked example) \\par
\\textbf{Keywords:} a, b"要获得

https://stackoverflow.com/questions/42272048
复制相似问题