From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruno Tavernier Subject: Re: [PATCH] Compiling multiple times the LaTeX output Date: Thu, 07 Oct 2010 11:09:35 +0900 Message-ID: <87wrpu4uu8.fsf@gmail.com> References: <87zkv0pqyi.fsf@mundaneum.com> <87r5gcshnf.fsf@noorul.maa.corp.collab.net> <874od7uzsa.fsf_-_@mundaneum.com> <30671.1285861145@gamaville.dokosmarshall.org> <87vd5njhm8.fsf@mundaneum.com> <21895.1285949541@alphaville.usa.hp.com> <87mxqrek7p.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=46579 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3gGE-0008Qu-33 for emacs-orgmode@gnu.org; Wed, 06 Oct 2010 22:31:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3gG8-0000Mm-1l for emacs-orgmode@gnu.org; Wed, 06 Oct 2010 22:31:09 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:34603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3gG7-0000Mc-MI for emacs-orgmode@gnu.org; Wed, 06 Oct 2010 22:31:04 -0400 Received: by pvc7 with SMTP id 7so117616pvc.0 for ; Wed, 06 Oct 2010 19:31:02 -0700 (PDT) In-Reply-To: (Matthew Leifer's message of "Wed, 6 Oct 2010 21:39:17 +0100") 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: Matthew Leifer Cc: org Hey Matthew, Thanks for the pointers. I toyed with it a bit but that wasn't very successful. > That is odd. texi2dvi should default to using regular latex. You usually > have to pass a -p option or use the alias texi2pdf in order to use > pdflatex. It does default to latex, what I meant was that it default to pdflatex with org-mode current setup. > It might be that you have a LATEX environment variable set. In any case, you > can alter this behaviour by setting the LATEX environment variable, e.g. > setting the variable LATEX=xelatex will make texi2dvi use xelatex instead of > regular latex. Setting the variable LATEX=xelatex indeed makes the compilation goes via xelatex. However, texi2dvi seems to expect a .dvi to be generated (which xelatex does not do) and thus fail to compile. > Finally, regarding .eps files, note that the latest version of pdflatex can > handle .eps graphics without having to go through the latex->dvips->ps2pdf > route so it might be worth your while upgrading. Failing that, you can put \ > usepackage{epstopdf} in your preamble and then older versions of pdflatex will > work just fine. pdflatex -v ,---- | pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Arch Linux) `---- and still none of the above work. .eps file still require latex. Nevermind though, the "#+LATEX_CMD" approach that is mentionned in my previous post in this thread does the job. :-) Emacs ought to be customized by the user! -- Bruno