In a .Rmd
文件的标题如下,我想包含一个摘要,所以我尝试了标准的 LateX 文章形式,
\abstract{This paper explores a variety of topics related to the question of testing the equality of
covariance matrices in multivariate linear models, particularly in the MANOVA setting.
The main focus is on graphical methods that can be used to understand features of data related
to this question.}
但是,令人惊讶的是(我知道这看起来很奇怪),我的参考文献部分中的参考文献格式变得很糟糕——参考文献之间没有间距,奇怪的缩进。那么,我怎样才能包含一些看起来像摘要的内容呢?
我的 YAML 标头是:
---
title: "Notes on Testing Equality of Covariance Matrices"
author: "Michael Friendly"
date: '`r format(Sys.time(), "%B %d, %Y")`'
output:
pdf_document:
fig_caption: yes
keep_tex: yes
number_sections: yes
includes:
in_header: mystyles.tex
csl: apa.csl
bibliography:
- "C:/Users/friendly/Dropbox/localtexmf/bibtex/bib/statistics.bib"
- "C:/Users/friendly/Dropbox/localtexmf/bibtex/bib/graphics.bib"
---
编辑:仔细想想,问题可能在于pandoc-citeproc
不知何故对使用所做的事情感到困惑\abstract{}
在文件中。
The rmarkdown
包现在允许在 YAML 中包含摘要。就像这样:
abstract: "This is my abstract."
See 这篇博文 http://svmiller.com/blog/2016/02/svm-r-markdown-manuscript/举个例子。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)