rmarkdown: how to use multiple bibliographies for a document

前端 未结 1 1270
无人及你
无人及你 2021-01-05 05:22

[My environment: Win 7 Pro / R 3.2.1 / knitr_1.12.3 / R Studio Version 0.99.892]

I am trying to write an article in .Rmd format using R Studio, Knit ->

相关标签:
1条回答
  • 2021-01-05 05:38

    For the record: I raised this as an issue for pandoc-citeproc at https://github.com/jgm/pandoc-citeproc/issues/220

    It turns out that there were problems in how pandoc-citeproc handles some characters in @{string={}} and non-ASCII characters in .bib files, so what I was trying now works, with hard-coded pathnames, in all the forms I tried.

    To make it work more like processing of .Rnw files via Latex/bibtex it would be nice to be able to use something like

    bibliography: 
      - `r system(kpsewhich statistics.bib)`
      - `r system(kpsewhich graphics.bib)`
    

    Those commands do find the right files in an R session, but not from a YAML header.

    0 讨论(0)
提交回复
热议问题