我正在Rmarkdown
中制作一份报告,但作者列表的简短形式中的'et al'并未在内联引文中显示斜体。斜体确实发生在正常的引用中。
以下是一些Rmarkdown
来说明:
---
title: "testCite"
output:
html_document:
keep_md: true
csl: the-plant-journal.csl
bibliography: test.bib
---
The fly *Drosophila melanogaster* is one of the most intensively studied organisms in biology [@Adams:2000tj].
According to @Adams:2000tj, the fly *Drosophila melanogaster* is one of the most intensively studied organisms in biology.
这让我看到以下页面:
查看html
我可以看到<em>
标记未添加到内联引文中:
<p>The fly <em>Drosophila melanogaster</em> is one of the most intensively studied organisms in biology <span class="citation">(Adams <em>et al.</em>, 2000)</span>.</p>
<p>According to <span class="citation">Adams et al. (2000)</span>, the fly <em>Drosophila melanogaster</em> is one of the most intensively studied organisms in biology.</p>
the-plant-journal.csl
已下载from the repository。以下是test.bib
:
@article{Adams:2000tj,
author = {Adams, MD and Celniker, SE and Holt, RA and Evans, CA and Gocayne, JD and Amanatides, PG and Scherer, SE and Li, PW and Hoskins, RA and Galle, RF and George, RA and Lewis, SE and Richards, S and Ashburner, M and Henderson, SN and Sutton, GG and Wortman, JR},
title = {{The genome sequence of \emph{Drosophila melanogaster}}},
journal = {Science},
year = {2000},
volume = {287},
number = {5461},
pages = {2185--2195},
affiliation = {Celera Genom, Rockville, MD 20850 USA},
language = {English},
read = {Yes},
rating = {0},
date-added = {2012-03-02T23:35:05GMT},
date-modified = {2015-07-28T15:38:34GMT},
abstract = {The fly Drosophila melanogaster is one of the most intensively studied organisms in biology...},
url = {http://www.sciencemag.org/content/287/5461/2185.short}
}
}
不确定我在这里做错了什么。我正在使用Rstudio 0.99.473
来调用pandoc 1.13.1
和pandoc-citeproc 0.5
。 SessionInfo结尾。我希望这是所有必要的信息!
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS
locale:
[1] LC_CTYPE=en_AU.UTF-8 LC_NUMERIC=C LC_TIME=en_AU.UTF-8 LC_COLLATE=en_AU.UTF-8
[5] LC_MONETARY=en_AU.UTF-8 LC_MESSAGES=en_AU.UTF-8 LC_PAPER=en_AU.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] htmltools_0.2.6 tools_3.2.2 yaml_2.1.13 rmarkdown_0.8 digest_0.6.8
答案 0 :(得分:0)
我在更新为pandoc-citeproc 0.9
时已修复此问题。