2

Can org-ref export through ox-pandoc using a relative path to the bibliography file?

Export via org --> pandoc --> HTML succeeds when the org document contains an absolute path to the bib file. However using a path to the bib file relative to the org file directory, such as bibliography:/bib/mybib.bib, produces the error: File ‘bib/mybib.bib’ not in paths defined via bibtex-file-path.

Snelephant
  • 814
  • 1
  • 7
  • 17

2 Answers2

0

I pushed a fix to ox-word that should address this issue and make it possible to use relative paths.

John Kitchin
  • 11,555
  • 1
  • 19
  • 41
  • Export to MS Word now works using a relative path. Note: In your fix to ox-word (June 6), I had to replace two instances of the variable `bibfiles` with `bibfile` in the function `ox-export-via-latex-pandoc-to-docx-and-open` – Snelephant Jun 13 '17 at 10:36
0

It looks like you are using org-ref. The syntax for using bibliographies with ox-pandoc and pandoc is different than for regular org export. add the following to your header:

#+Bibliography: ~/path/bibliography.bib
Nick
  • 33
  • 3