Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cite multiple papers in RMarkdown

How do I cite multiple papers in RMarkdown as I would do in LaTex with

\cite{Bartel2004, Bartel2009a}

I tried

[@Bartel2004, @Bartel2009a]

which renders to

(D. P. Bartel 2004, David P. Bartel (2009))

which is not too bad, but the second brackets should not be there.

EDIT:

  • minimal working example at github gist.
  • pandoc version

    pandoc 1.19.2.1
    Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
    
like image 663
Gregor Sturm Avatar asked Jun 26 '17 19:06

Gregor Sturm


1 Answers

According to this Github issue:

Multiple citations in the same bracket should be separated by a semicolon ; instead of a comma.

So you need to use [@Bartel2004; @Bartel2009a] instead of [@Bartel2004, @Bartel2009a].

like image 80
Yihui Xie Avatar answered Sep 17 '22 18:09

Yihui Xie