From: Carsten Dominik <carsten.dominik@gmail.com>
To: Scot Becker <scot.becker@gmail.com>
Cc: David Moffat <david.c.moffat@googlemail.com>,
Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Feature request: an org user variable for which "latex" command to run
Date: Thu, 23 Apr 2009 06:48:20 +0200 [thread overview]
Message-ID: <BCC84E83-00AC-4C71-8FDF-D215066C9C93@gmail.com> (raw)
In-Reply-To: <e0e1fe620904220747j64a717c0nb644d52551cc3399@mail.gmail.com>
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
next prev parent reply other threads:[~2009-04-23 4:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 14:47 Feature request: an org user variable for which "latex" command to run Scot Becker
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 ` Carsten Dominik [this message]
2009-04-23 8:18 ` Feature request: an org user variable for which "latex" command to run 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=BCC84E83-00AC-4C71-8FDF-D215066C9C93@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=david.c.moffat@googlemail.com \
--cc=emacs-orgmode@gnu.org \
--cc=scot.becker@gmail.com \
/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).