[Top][All Lists]

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

Re: [AUCTeX] Compiling with pdflatex or latex+dvipdf

From: Tassilo Horn
Subject: Re: [AUCTeX] Compiling with pdflatex or latex+dvipdf
Date: Mon, 19 Nov 2012 13:59:02 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Joost Kremers <address@hidden> writes:

>> Exactly as you've stated.  latex+dvipdf is the default.  For those
>> documents where you want to use pdflatex instead, add an entry
>>     eval: (TeX-PDF-mode 1)
>> to your master file's file variables section.
> Is that the recommended way?

Yes, at least that's how it's documented for emacs 23 and 24.

,----[ (info "(emacs)Specifying File Variables") ]
|    Do not use the `mode' keyword for minor modes.  To enable or disable
| a minor mode in a local variables list, use the `eval' keyword with a
| Lisp expression that runs the mode command (*note Minor Modes::).  For
| example, the following local variables list enables Eldoc mode (*note
| Lisp Doc::) by calling `eldoc-mode' with no argument (calling it with
| an argument of 1 would do the same), and disables Font Lock mode (*note
| Font Lock::) by calling `font-lock-mode' with an argument of -1.
|      ;; Local Variables:
|      ;; eval: (eldoc-mode)
|      ;; eval: (font-lock-mode -1)
|      ;; End:

> I have
> %%% TeX-PDF-mode: t
> in the local variables section of my LaTeX files and that works fine.

I think, that should also work fine because of

  (put 'TeX-PDF-mode 'safe-local-variable 'TeX-booleanp)

in tex.el.


reply via email to

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