我正在使用 Rmarkdown 写一篇带引用的论文。当我使用 Nature 的 CSL(或任何上标数字样式)并使用 Pandoc 和 pandoc-citeproc 进行渲染时,行内引用在标点符号之外。如何在标点符号内移动它们?谢谢!
这是一个示例 Rmd 文件:
---
title: "Test"
author: "Daijiang Li"
date: '`r format(Sys.time(), "%d %B, %Y")`'
output:
bookdown::pdf_document2:
keep_tex: yes
latex_engine: xelatex
number_sections: no
toc: no
fontsize: 12pt
linestretch: 1.5
link-citations: yes
csl: https://raw.githubusercontent.com/citation-style-language/styles/master/nature.csl
bibliography: ref.bib
references:
- id: fenner2012a
title: One-click science marketing
author:
- family: Fenner
given: Martin
container-title: Nature Materials
volume: 11
URL: 'http://dx.doi.org/10.1038/nmat3283'
DOI: 10.1038/nmat3283
issue: 4
publisher: Nature Publishing Group
page: 261-263
type: article-journal
issued:
year: 2012
month: 3
- id: fenner2012b
title: Two-click science marketing
author:
- family: Fenner
given: Martin
container-title: Nature Materials
volume: 11
URL: 'http://dx.doi.org/10.1038/nmat3283'
DOI: 10.1038/nmat3283
issue: 4
publisher: Nature Publishing Group
page: 261-263
type: article-journal
issued:
year: 2012
month: 3
---
A sentence here [@fenner2012a; @fenner2012b]. How to move the subscript citation numbers before the period?
# References
这是我在渲染时得到的截图rmarkdown
。