unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How can I configure Emacs to use XeLaTeX without AUCTeX
@ 2013-01-13 18:45 George Politis
  2013-01-15  3:13 ` Stefan Monnier
       [not found] ` <mailman.17462.1358219620.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: George Politis @ 2013-01-13 18:45 UTC (permalink / raw)
  To: help-gnu-emacs

The title says it all I hope, I'd like to configure Emacs to use XeLaTeX instead of pdfLaTeX, which is the default. I'm using MiKTeX on Windows (it's in my PATH), if that makes a difference.

I'm pretty sure there must be a simple way to achieve this, but I'm by no means an Emacs expert.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* How can I configure Emacs to use XeLaTeX without AUCTeX
       [not found] <mailman.1012434.1358115555.854.help-gnu-emacs@gnu.org>
@ 2013-01-14 14:01 ` damien.thiriet77
       [not found] ` <mailman.17387.1358172127.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: damien.thiriet77 @ 2013-01-14 14:01 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,


I don't know how to use XeLaTeX without AUCTeX. With AUCTeX, you'd just have to add those lines at the end of your files:


%%% Local Variables: 
%%% coding: utf-8
%%% mode: latex
%%% TeX-engine: xetex
%%% End: 

I know this is not exactly an answer to your question, forgive me my mail is just noise, but reading your mail I thought you might not have tried the AUCTeX way.


> 
> Message: 3
> Date: Sun, 13 Jan 2013 10:45:12 -0800 (PST)
> From: George Politis 
> To: help-gnu-emacs@gnu.org
> Subject: How can I configure Emacs to use XeLaTeX without AUCTeX
> Message-ID: <0b8caba6-81e8-4e7b-8b8b-8e6e97390f57@googlegroups.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> The title says it all I hope, I'd like to configure Emacs to use XeLaTeX instead of pdfLaTeX, which is the default. I'm using MiKTeX on Windows (it's in my PATH), if that makes a difference.
> 
> I'm pretty sure there must be a simple way to achieve this, but I'm by no means an Emacs expert.
> 
> 
> ------------------------------

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How can I configure Emacs to use XeLaTeX without AUCTeX
       [not found] ` <mailman.17387.1358172127.855.help-gnu-emacs@gnu.org>
@ 2013-01-14 19:45   ` George Politis
  2013-01-14 20:09     ` Glyn Millington
       [not found]     ` <mailman.17428.1358194342.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: George Politis @ 2013-01-14 19:45 UTC (permalink / raw)
  To: gnu.emacs.help; +Cc: damien.thiriet77, help-gnu-emacs

Hi Damien,

thank you for trying to help me. I actually use AUCTeX, I'm sorry I didn't mention that in my first post. 

I have a couple of reasons why I don't want to use AUCTeX. First, it's not available everywhere; Then, every time I wish to upgrade Emacs I have to go through [this long page][1] to make sure I didn't mess up anything. Lastly, I don't see the value added.

Since no one has been able to come up with an answer so far, I'm starting to think that there is no such "simple" way, which is surprising.

[1] : http://www.gnu.org/software/auctex/download-for-windows.html

On Monday, 14 January 2013 15:01:50 UTC+1, damien.thiriet77  wrote:
> Hi,
> 
> 
> 
> 
> 
> I don't know how to use XeLaTeX without AUCTeX. With AUCTeX, you'd just have to add those lines at the end of your files:
> 
> 
> 
> 
> 
> %%% Local Variables: 
> 
> %%% coding: utf-8
> 
> %%% mode: latex
> 
> %%% TeX-engine: xetex
> 
> %%% End: 
> 
> 
> 
> I know this is not exactly an answer to your question, forgive me my mail is just noise, but reading your mail I thought you might not have tried the AUCTeX way.
> 
> 
> 
> 
> 
> > 
> 
> > Message: 3
> 
> > Date: Sun, 13 Jan 2013 10:45:12 -0800 (PST)
> 
> > From: George Politis 
> 
> > To: help-gnu-emacs@gnu.org
> 
> > Subject: How can I configure Emacs to use XeLaTeX without AUCTeX
> 
> > Message-ID: <0b8caba6-81e8-4e7b-8b8b-8e6e97390f57@googlegroups.com>
> 
> > Content-Type: text/plain; charset=ISO-8859-1
> 
> > 
> 
> > The title says it all I hope, I'd like to configure Emacs to use XeLaTeX instead of pdfLaTeX, which is the default. I'm using MiKTeX on Windows (it's in my PATH), if that makes a difference.
> 
> > 
> 
> > I'm pretty sure there must be a simple way to achieve this, but I'm by no means an Emacs expert.
> 
> > 
> 
> > 
> 
> > ------------------------------
> 
> 
> 
> Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
> 
> Je crée ma boîte mail www.laposte.net



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How can I configure Emacs to use XeLaTeX without AUCTeX
  2013-01-14 19:45   ` George Politis
@ 2013-01-14 20:09     ` Glyn Millington
       [not found]     ` <mailman.17428.1358194342.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Glyn Millington @ 2013-01-14 20:09 UTC (permalink / raw)
  To: help-gnu-emacs

George Politis <gp@superpointer.com> writes:

> Hi Damien,
>
> thank you for trying to help me. I actually use AUCTeX, I'm sorry I
> didn't mention that in my first post.
>
> I have a couple of reasons why I don't want to use AUCTeX. First, it's
> not available everywhere; Then, every time I wish to upgrade Emacs I
> have to go through [this long page][1] to make sure I didn't mess up
> anything. Lastly, I don't see the value added.
>
> Since no one has been able to come up with an answer so far, I'm
> starting to think that there is no such "simple" way, which is
> surprising.

Does this help?


http://lists.gnu.org/archive/html/help-gnu-emacs/2010-05/msg00374.html

atb



Glyn




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How can I configure Emacs to use XeLaTeX without AUCTeX
       [not found]     ` <mailman.17428.1358194342.855.help-gnu-emacs@gnu.org>
@ 2013-01-14 22:00       ` George Politis
  0 siblings, 0 replies; 8+ messages in thread
From: George Politis @ 2013-01-14 22:00 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: glyn.millington

On Monday, 14 January 2013 21:09:54 UTC+1, Glyn Millington  wrote:
> George Politis <gp@superpointer.com> writes:
> 
> 
> 
> > Hi Damien,
> 
> >
> 
> > thank you for trying to help me. I actually use AUCTeX, I'm sorry I
> 
> > didn't mention that in my first post.
> 
> >
> 
> > I have a couple of reasons why I don't want to use AUCTeX. First, it's
> 
> > not available everywhere; Then, every time I wish to upgrade Emacs I
> 
> > have to go through [this long page][1] to make sure I didn't mess up
> 
> > anything. Lastly, I don't see the value added.
> 
> >
> 
> > Since no one has been able to come up with an answer so far, I'm
> 
> > starting to think that there is no such "simple" way, which is
> 
> > surprising.
> 
> 
> 
> Does this help?
> 
> 
> 
> 
> 
> http://lists.gnu.org/archive/html/help-gnu-emacs/2010-05/msg00374.html
> 
> 
> 
> atb
> 
> 
> 
> 
> 
> 
> 
> Glyn

Hi Glyn, if I'm not mistaken, "TeX-command-default" and "TeX-command-list" are AUCTeX specific. That won't work in my case as I'd like to not use AUCTeX.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How can I configure Emacs to use XeLaTeX without AUCTeX
  2013-01-13 18:45 How can I configure Emacs to use XeLaTeX without AUCTeX George Politis
@ 2013-01-15  3:13 ` Stefan Monnier
       [not found] ` <mailman.17462.1358219620.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2013-01-15  3:13 UTC (permalink / raw)
  To: help-gnu-emacs

> 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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How can I configure Emacs to use XeLaTeX without AUCTeX
       [not found] ` <mailman.17462.1358219620.855.help-gnu-emacs@gnu.org>
@ 2013-01-15 17:52   ` George Politis
  2013-01-16 21:43     ` George Politis
  0 siblings, 1 reply; 8+ messages in thread
From: George Politis @ 2013-01-15 17:52 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> 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!


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How can I configure Emacs to use XeLaTeX without AUCTeX
  2013-01-15 17:52   ` George Politis
@ 2013-01-16 21:43     ` George Politis
  0 siblings, 0 replies; 8+ messages in thread
From: George Politis @ 2013-01-16 21:43 UTC (permalink / raw)
  To: help-gnu-emacs

George Politis <gp@superpointer.com> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> 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")


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-16 21:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-13 18:45 How can I configure Emacs to use XeLaTeX without AUCTeX George Politis
2013-01-15  3:13 ` Stefan Monnier
     [not found] ` <mailman.17462.1358219620.855.help-gnu-emacs@gnu.org>
2013-01-15 17:52   ` George Politis
2013-01-16 21:43     ` George Politis
     [not found] <mailman.1012434.1358115555.854.help-gnu-emacs@gnu.org>
2013-01-14 14:01 ` damien.thiriet77
     [not found] ` <mailman.17387.1358172127.855.help-gnu-emacs@gnu.org>
2013-01-14 19:45   ` George Politis
2013-01-14 20:09     ` Glyn Millington
     [not found]     ` <mailman.17428.1358194342.855.help-gnu-emacs@gnu.org>
2013-01-14 22:00       ` George Politis

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).