9

I am trying to specify a CSL style on my RMarkdown Document as below

---
documentclass: article
fontsize: 12pt
linkcolor: blue
output: pdf_document
bibliography: bibliography.bib
csl: biomed-central.csl
---

but it gives me an error

pandoc-citeproc.exe: biomed-central.csl: openBinaryFile: does not exist (No such file or directory)
pandoc.exe: Error running filter pandoc-citeproc
Error: pandoc document conversion failed with error 83

On Windows 7 64 bit and R Version 3.1.2 and RStudio 0.98.1091 How can I specify a CSL style.

A. Donda
  • 8,381
  • 2
  • 20
  • 49
Keniajin
  • 1,649
  • 2
  • 20
  • 43

3 Answers3

6

Include the .csl file in your working directory. you can download the .csl file from here

Keniajin
  • 1,649
  • 2
  • 20
  • 43
2

In addition to @Keniajin's answer, we can specify an absolute or relative path if we put it in quotes, e.g.

csl: "<folder>/biomed-central.csl"  # path to child folder
csl: "../biomed-central.csl"  # path to parent folder
csl: "X:/<folder>/biomed-central.csl"  # absolute path (in windows)

Besides, the same we can do with other linked files like *.bib or *.tex.

jay.sf
  • 60,139
  • 8
  • 53
  • 110
1

You can also specify an absolute path. This works, at least on my Linux system.

Johannes Ranke
  • 469
  • 3
  • 11