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.

2 Answers 2

0

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

1
  • 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
    Commented Jun 13, 2017 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
1
  • Original question updated to indicate the use case applies to org-ref.
    – Snelephant
    Commented Jun 13, 2017 at 10:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.