On Sat, May 26, 2012 at 10:29:24PM +0100, Peter Flynn wrote:
> On Sat, May 26, 2012 at 7:39 PM, Haines Brown <
hai...@histomat.net> wrote:
>
> > How do I initialize emacs so that under AUCTeX I can run the latex
> > command on a file marked up as LaTeX and xelatex on a file marked
> > up as XeTeX without editing the .emacs file and reloading emacs?
> It would depend on how you are asking (or expecting) Emacs to
> recognise the markup (ie, how to distinguish between a LaTeX
> document and a XeTeX document).
Thanks, Peter, but I'm not so ambitious. Nice idea, but I don't expect
emacs or AUCTeX to distinguish a LaTeX and XeTeX document, but only to
act on whichever command I issue, whether it be latex or xelatex.
Surely there are others who need to process both LaTeX and XeLaTeX documents.
It seems the default Tex-engine value is latex. It can be changed to
xelatex in the .emacs init file with (setq TeX-engine 'xetex). What I'm
after is something that would have the effect of (setq TeX-engine 'none).
In AUCTeX configuration, for TeX Engine, there is a choice of Default,
LuaTeX, Omega, XeTeX. But I don't want AUCTeX or .emacs init to decide
what engine is used, but simply to use the engine I call with C-c C-c.
Here, again, I'd choose "none" if it were in the list.
Haines