From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to get BibTeX to work with Org mode LaTeX export? Date: Sat, 18 May 2013 10:37:31 -0400 Message-ID: <87d2so2w2c.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdiGX-00069L-RH for emacs-orgmode@gnu.org; Sat, 18 May 2013 10:37:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdiGX-0003mS-0u for emacs-orgmode@gnu.org; Sat, 18 May 2013 10:37:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:51656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdiGW-0003mO-Q3 for emacs-orgmode@gnu.org; Sat, 18 May 2013 10:37:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UdiGV-0006h1-Ga for emacs-orgmode@gnu.org; Sat, 18 May 2013 16:37:43 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 May 2013 16:37:43 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 May 2013 16:37:43 +0200 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 Jay Kerns writes: >> - The question is about how to get Org mode to do the whole job, as there is >> a command for it which is supposed to do exactly that but it doesn't. >> > > Have you tried (something like) the following in your init file? > > (setq org-latex-pdf-process (quote ("texi2dvi --pdf --clean --verbose > --batch %f" "bibtex %b" "texi2dvi --pdf --clean --verbose --batch %f" > "texi2dvi --pdf --clean --verbose --batch %f"))) > > You can read more about this variable (and customize it) with > > C-h v org-latex-pdf-process RET > > I hope this helps, If texi2dvi works, then there is no need for a three-element list: just the first invocation of texi2dvi should be enough to do the job. If texi2dvi does *not* work, then a three-element list is necessary (but not necessarily sufficient): an invocation of pdflatex, followed by bibtex, followed by (at least) another invocation of pdflatex (followed by more invocations of pdflatex if there are still complaints). -- Nick