From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature request: an org user variable for which "latex" command to run Date: Thu, 23 Apr 2009 06:48:20 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwqrO-0002T0-CN for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 00:48:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwqrI-0002Sn-TQ for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 00:48:28 -0400 Received: from [199.232.76.173] (port=43093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwqrI-0002Sk-Ks for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 00:48:24 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:51010) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwqrI-0005IQ-1p for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 00:48:24 -0400 Received: by ewy6 with SMTP id 6so324982ewy.42 for ; Wed, 22 Apr 2009 21:48:22 -0700 (PDT) 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: Scot Becker Cc: David Moffat , Org-mode ml This is now implemented, please check the variable `org-latex-to-pdf-process'. Nick, I used a a modified version of your patch, to make the whole process configurable, and to make it possible to include a BibTeX run. Thanks to all who have contributed to this discussion. - Carsten On Apr 22, 2009, at 4:47 PM, Scot Becker wrote: > All, > > org-latex.el currently runs the passes this to the shell when running > the `C-c C-e p' or `C-c C-e d' (process via LaTeX to PDF) commands: > > "pdflatex -interaction nonstopmode %s" > > But a person (like this person) might want to use a different shell > command to invoke latex, in particular LuaTeX, or XeTeX, two > unicode-aware successors to pdflatex which also output pdf files. > > I use xelatex for it's unicode compatibility and font handling, and > I'd love to be able to use the speedy C-c C-e d command to get myself > from .org file to visible PDF---like all the other kids on my street. > > I note that emacs already has a variable 'latex-run-command' used by > latex-mode for invoking latex with C-c C-b. You will know better than > I the relative advantages and disadvantages to reusing it. However > (1) it is still set to 'latex' out of the box, and so could require > user changes on some systems to get it to process to a PDF and not to > a DVI (though not on TeXLive 2008, where latex -> pdflatex). (2) It > seems a refined (i.e. complex) system: latex-mode uses > 'latex-run-command' as its 'tex-command' to process the contents of a > buffer. What it passes to the shell is the value of > 'latex-run-command' + 'tex-start-options' + 'tex-start-commands' and > finally the filename (though it can be inserted elsewhere with a '*', > not org's typical '%s'), at least that's as far as I understand it. > > Perhaps we don't need to be so clever. Maybe just an > 'org-latex-to-pdf-command' variable, with the default as above? > > Thanks, > Scot > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode