Search code examples
rknitrr-markdownpandocpandoc-citeproc

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
    

Solution

  • 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].