From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: Having .emacs distinguish betweeen LaTeX and XeLaTeX Date: Sun, 27 May 2012 20:51:49 +0800 Message-ID: <87wr3xeqhm.fsf@xc.laptop> References: <87mx4tkhwj.fsf@engels.HistoricalMaterialism.info> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1338123355 16900 80.91.229.3 (27 May 2012 12:55:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 May 2012 12:55:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 27 14:55:54 2012 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 1SYd0j-0007Mt-NV for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2012 14:55:53 +0200 Original-Received: from localhost ([::1]:39622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYd0j-0000z3-Hk for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2012 08:55:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYd0e-0000yy-Pp for help-gnu-emacs@gnu.org; Sun, 27 May 2012 08:55:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYd0c-0004DE-VH for help-gnu-emacs@gnu.org; Sun, 27 May 2012 08:55:48 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYd0c-0004D0-F4 for help-gnu-emacs@gnu.org; Sun, 27 May 2012 08:55:46 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SYd0X-00078f-Tx for help-gnu-emacs@gnu.org; Sun, 27 May 2012 14:55:41 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 May 2012 14:55:41 +0200 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 May 2012 14:55:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:KyJLg6GH2bKvqrTrUWhrlgeLg0w= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:85015 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Haines Brown writes: > I would like to specify the TeX engine with the emacs command line, such > as with C-c C-c latex and C-c C-c xelatex, rather than having it only > call whichever TeX-engine is specified in AUCTeX configuration or in > .emacs init file. At present I can only switch between processing LaTeX > and XeLaTeX files by inserting or commenting a line in .emacs (setq > TeX-engine 'xetex) and reload emacs. You can do it by creating a custom command, by adding entries to TeX-command-list. Then you can change the command to call when using C-c C-c. =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJPwiNoAAoJEI1xjsR3leWRqPAH/iJACV2gY/ugMpwBK9nmnSQs 4lmxgv4HiGcLzZmxNrp/dDRXcKHPsXQTFbq+kclsbqt7mPsjR5vekLbaULnXDxWL bKKxmBDSA7lx2E5c5iUU9KQwBxZ9wCGveWH6KvtcRu2Azi+s5OE4NZlzRtqLPMsF YqekX7MycrUASY5ZXJaDTAIpYYHCpGyJBWzlKQHyosYZjswaBzN5xCD38YrvFtxd +DMkimajCv1o2aIDYT2LBeNyvzPMo02hrMGKpLih1pZ7Q9STVmUPUcr2m94tcuSk Kucmv9CxF5xBD3C4ht27wPEFIj7xuKhPiNBCyQSLRcrvR1k/hRQlZsb7xGFtHaw= =8bLy -----END PGP SIGNATURE----- --=-=-=--