r-markdown - 如何在 Markdown 文件中的标点符号内移动上标引文编号?
问题描述
我正在使用 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
。
解决方案
添加应该足够了
notes-after-punctuation: false
到 YAML 元数据块。
推荐阅读
- python - HTTPSConnectionPool(host='xx.xx.xx.xx', port=443): url 超出最大重试次数
- azure - Azure 机器人服务/无法创建 Web 应用程序机器人/不支持位置
- javascript - 离子服务后找不到模块(webpack)/hot/emitter @angular-devkit/build-angular - Ionic 4
- opencv - 彩色滤光片 openCV
- c# - ASP dotnet core 中授权类和处理程序的标准是什么
- javascript - 加密和节点 10 中的未知消息摘要
- r - parse_block 中的错误(g[-1]、g[1]、params.src):重复标签 'unnamed-chunk-1
- javascript - 使用 Object.create() 从现有对象创建对象
- r - 使用 tabPanel UI 重置绘图
- php - 如何在 Laravel 5.7 中使用第三方 api 实现后备身份验证检查?