help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I configure Emacs to use XeLaTeX without AUCTeX


From: George Politis
Subject: Re: How can I configure Emacs to use XeLaTeX without AUCTeX
Date: Wed, 16 Jan 2013 22:43:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (windows-nt)

George Politis <address@hidden> writes:

> Stefan Monnier <address@hidden> writes:
>
>>> The title says it all I hope, I'd like to configure Emacs to use XeLaTeX
>>> instead of pdfLaTeX, which is the default.
>>
>> For the builtin latex-mode, you'd have to add an entry to
>> tex-compile-commands (assuming you're using tex-compile, aka C-c C-c).
>>
>> E.g.
>>
>>   (eval-after-load 'tex-mode
>>    '(add-to-list 'tex-compile-commands
>>                  '((concat "xelatex "
>>                            (if (< 0 (length tex-start-commands))
>>                                (shell-quote-argument tex-start-commands))
>>                            " %f")
>>                    t "%r.pdf")))
>>
>>
>> -- Stefan
>
> Worked like a charm, thank you Stefan!

I've actually discovered another, much simpler, way of doing this.
Simply set the latex-run-command variable to xelatex. I'm posting it
here in case someone stumbles upon this thread in the future.

(setq latex-run-command "xelatex")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]