From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Bibtex and latex export Date: Wed, 15 Sep 2010 14:48:14 -0500 Message-ID: <4C9122FE.1080306@ccbr.umn.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=43984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovxxs-0004cz-HX for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 15:48:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ovxxq-0008FG-Vw for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 15:48:20 -0400 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:1099) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovxxq-0008F5-Kz for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 15:48:18 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rafael Calsaverini Cc: emacs-orgmode Rafael, I asked the same question last week :). http://www.mail-archive.com/emacs-orgmode@gnu.org/msg30073.html I've just now looked into the org-latex.el file, and found: (defcustom org-latex-to-pdf-process '("pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction nonstopmode -output-directory %o %f") "Commands to process a LaTeX file to a PDF file. This is a list of strings, each of them will be given to the shell as a command. %f in the command will be replaced by the full file name, = %b by the file base name (i.e. without extension) and %o by the base directo= ry of the file. The reason why this is a list is that it usually takes several runs of pdflatex, maybe mixed with a call to bibtex. Org does not have a clever mechanism to detect which of these commands have to be run to get to a=20 stable result, and it also does not do any error checking. Alternatively, this may be a Lisp function that does the processing, so y= ou could use this to apply the machinery of AUCTeX or the Emacs LaTeX mode. This function should accept the file name as its single argument." :group 'org-export-pdf :type '(choice (repeat :tag "Shell command sequence" (string :tag "Shell command")) (function))) Looks like you can just customize that variable, easy! --Erik Rafael Calsaverini wrote: > Hi there,=20 >=20 > I'm trying to use org-mode to compose latex documents and I'm having a=20 > problem with bibtex. When I export to pdf with C-c C-e p, pdflatex runs= =20 > and everything works gracefully with respect to the latex code (the=20 > output is even prettier than I used to have patience to do only with=20 > latex), but bibtex isn't called.=20 >=20 > I've tried to fiddle with org-exp-bibtex, which is nice, but apparentl= y=20 > it don't call bibtex either.=20 >=20 > I've tried to edit the function that calls pdflatex to include a call t= o=20 > bibtex, but to be honest I know zero about lisp, so I couldn't even edi= t=20 > a simple list of commands. :P (I must be the only emacs user in the=20 > world that can't write or read lisp... it would be swell if I could use= =20 > haskell to extend emacs instead of lisp :P).=20 >=20 > How should I go about automatically including a call to bibtex whenever= =20 > I want to export my org document as a pdf? >=20 > Thanks for your time, and sorry to bore you with simple questions... > --- > Rafael Calsaverini > Dep. de F=EDsica Geral, Sala 336 > Instituto de F=EDsica - Universidade de S=E3o Paulo >=20 > rafael.calsaverini@gmail.com > http://stoa.usp.br/calsaverini/weblog > CEL: (11) 7525-6222 > USP: (11) 3091-6803 >=20 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode