emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scot Becker <scot.becker@gmail.com>
To: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Feature request: an org user variable for which "latex" command to run
Date: Wed, 22 Apr 2009 15:47:59 +0100	[thread overview]
Message-ID: <e0e1fe620904220747j64a717c0nb644d52551cc3399@mail.gmail.com> (raw)

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

             reply	other threads:[~2009-04-22 14:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22 14:47 Scot Becker [this message]
2009-04-22 16:47 ` [PATCH] Make pdf command and args customizable. [was: Feature request: an org user variable for which "latex" command to run] Nick Dokos
2009-04-23  4:48 ` Feature request: an org user variable for which "latex" command to run Carsten Dominik
2009-04-23  8:18   ` Scot Becker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0e1fe620904220747j64a717c0nb644d52551cc3399@mail.gmail.com \
    --to=scot.becker@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).