我正在使用Rstudio,从Rmd文件创建pdf/html文档.标题看起来像这样:
title: "Title"
author: "Me"
date: "`r format(Sys.time(), '%B %d, %Y')`"
bibliography: bibliography.bib
output:
html_document:
toc: true
number_sections: true
Run Code Online (Sandbox Code Playgroud)
现在,我有一些部分,然后包括引用.在那之后,应该遵循一个附录,但我遇到了与此处描述的完全相同的问题:参考文献后的Pandoc插入附录
这个帖子中有一个固定的解决方案,但我不知道如何在RStudio中直接做到这一点.要获取文档,我只需按"编织html"按钮,不要自己运行任何pandoc命令.那么我应该把它放在哪里
--include-after-body
Run Code Online (Sandbox Code Playgroud)
部分,附录rmd文件应该如何?
我正在用 R Markdown 编写一份报告,其中包含参考资料。问题是 R markdown 会自动在报告末尾放置引用。我想在参考文献后面放一个附录,有什么办法吗?我看到可以使用子文档,但我希望将所有内容都放在一个唯一的.Rmd文件中。
下面是一个可重现的示例:
---
title:
author:
date:
abstract:
output:
pdf_document:
template: NULL
number_sections: true
citation_package: biblatex
bibliography: references.bib
biblio-style: bwl-FU
---
# Partie 1
\cite{greenwood_financial_1989}
<!-- where I would like the references to be -->
# Appendix
bla bla
Run Code Online (Sandbox Code Playgroud)
这是references.bib文件的内容:
@article{greenwood_financial_1989,
title = {Financial Development, Growth and the Distribution of Income},
url = {https://www.nber.org/papers/w3189},
number = {3189},
journaltitle = {NBER Working Paper Series},
date = {1989},
author = {Greenwood, …Run Code Online (Sandbox Code Playgroud)