emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Arne Babenhauserheide <arne_bab@web.de>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <878vhjisvk.wl%arne_bab@web.de> (raw)


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	other threads:[~2012-04-26 14:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vhjisvk.wl%arne_bab@web.de \
    --to=arne_bab@web.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).