emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: org-latex-to-pdf-process with bibtex fails to produce bibtex (w


From: Arne Babenhauserheide
Subject: [O] Bug: org-latex-to-pdf-process with bibtex fails to produce bibtex (workaround included) [7.8.03]
Date: Wed, 25 Apr 2012 20:11:27 +0200
User-agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

Dear org-hackers,

When I use org-export-as-pdf with the option to use bibtex in-between
(for reftex-mode), bibtex fails to produce the bibliography.

The non-working config is as follows:

'(org-latex-to-pdf-process (quote ("pdflatex -interaction nonstopmode
-output-directory %o %f" "bibtex %b" "pdflatex -interaction nonstopmode
-output-directory %o %f" "pdflatex -interaction nonstopmode
-output-directory %o %f")))


I could trace it down to this:

bibtex /abspath/to/file-without-ext # == %b

bibtex: Not writing to
/abspath/to/file-without-ext.blg (openout_any =
p).
I couldn't open file name
`/abspath/to/file-without-ext.blg'


To fix it, I just had to make sure that bibtex only gets the filename:

 '(org-latex-to-pdf-process (quote ("pdflatex -interaction nonstopmode
 -output-directory %o %f" "bibtex $(basename %b)" "pdflatex -interaction
 nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode
 -output-directory %o %f")))


Best wishes and happy hacking!,
Arne

Emacs  : GNU Emacs 23.4.2 (x86_64-pc-linux-gnu, GTK+ Version 2.24.8)
 of 2012-04-10 on fluss
Package: Org-mode version 7.8.03



reply via email to

[Prev in Thread] Current Thread [Next in Thread]