【问题标题】:Italicising "et al" in inline citiations in Rmarkdown在 Rmarkdown 的内联引用中斜体“et al”
【发布时间】:2015-09-02 15:47:28
【问题描述】:

我正在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.1pandoc-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   

【问题讨论】:

    标签: rstudio r-markdown pandoc


    【解决方案1】:

    当我更新到 pandoc-citeproc 0.9 时,此问题已得到修复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-11
      • 1970-01-01
      • 1970-01-01
      • 2021-02-19
      • 1970-01-01
      • 1970-01-01
      • 2021-08-18
      相关资源
      最近更新 更多