【问题标题】:How to move superscript citation numbers inside of punctuation in Markdown file?如何在 Markdown 文件中的标点符号内移动上标引文编号?
【发布时间】:2023-03-26 03:35:01
【问题描述】:

我正在使用 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 渲染时得到的屏幕截图。

【问题讨论】:

    标签: r-markdown knitr pandoc csl pandoc-citeproc


    【解决方案1】:

    添加应该足够了

    notes-after-punctuation: false
    

    到 YAML 元数据块。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-06
      • 2012-02-05
      • 2018-02-28
      • 1970-01-01
      • 1970-01-01
      • 2013-09-05
      相关资源
      最近更新 更多