From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: George Politis Newsgroups: gmane.emacs.help Subject: Re: How can I configure Emacs to use XeLaTeX without AUCTeX Date: Wed, 16 Jan 2013 22:43:30 +0100 Organization: les newsgroups par Orange Message-ID: <871udkst19.fsf@superpointer.com> References: <0b8caba6-81e8-4e7b-8b8b-8e6e97390f57@googlegroups.com> <87622ynxjs.fsf@superpointer.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358373014 6915 80.91.229.3 (16 Jan 2013 21:50:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2013 21:50:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 22:50:33 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TvasP-0002Rl-V5 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jan 2013 22:50:30 +0100 Original-Received: from localhost ([::1]:54147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvas9-0004nF-JE for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jan 2013 16:50:13 -0500 X-Received: by 10.180.86.201 with SMTP id r9mr784836wiz.4.1358372805747; Wed, 16 Jan 2013 13:46:45 -0800 (PST) Original-Path: usenet.stanford.edu!m1no3385395wiv.0!news-out.google.com!i11ni1870wiw.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!feeder.news.orange.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (windows-nt) Cancel-Lock: sha1:fpRUNXzJVUG6Uwkmbb7x2Qds0PI= Original-Lines: 30 Original-NNTP-Posting-Date: 16 Jan 2013 22:46:45 CET Original-NNTP-Posting-Host: 92.139.49.63 Original-X-Trace: 1358372805 reader.news.orange.fr 1400 92.139.49.63:8585 Original-X-Complaints-To: abuse@orange.fr Original-Xref: usenet.stanford.edu gnu.emacs.help:196358 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88653 Archived-At: George Politis writes: > Stefan Monnier 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")