From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Feature request: an org user variable for which "latex" command to run Date: Wed, 22 Apr 2009 15:47:59 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwdk6-000352-Pb for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 10:48:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwdk2-00033I-6N for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 10:48:06 -0400 Received: from [199.232.76.173] (port=54046 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwdk2-00033A-1m for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 10:48:02 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:56011) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lwdk1-0007NV-He for emacs-orgmode@gnu.org; Wed, 22 Apr 2009 10:48:01 -0400 Received: by bwz5 with SMTP id 5so2047788bwz.42 for ; Wed, 22 Apr 2009 07:47:59 -0700 (PDT) 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: Org-mode ml 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