From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arne Babenhauserheide Subject: 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 Message-ID: <878vhjisvk.wl%arne_bab@web.de> Reply-To: arne_bab@web.de Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNQ6J-0007v2-EP for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 10:55:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNQ68-0006Nc-1Q for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 10:55:19 -0400 Received: from mout.web.de ([212.227.15.4]:52979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNQ67-0006Md-OS for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 10:55:07 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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