[Top][All Lists]

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

Re: [AUCTeX] GNU AUCTeX 11.89.4 released to ELPA

From: Tassilo Horn
Subject: Re: [AUCTeX] GNU AUCTeX 11.89.4 released to ELPA
Date: Tue, 24 May 2016 18:22:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

François Patte <address@hidden> writes:

Hi François,

> So, according to this:
> I reinstall the stuff from elpa and it works

Good!  Ah, I think I remember we've had this problem for some users some
years back which I didn't remember anymore.

> *but* I lost the automatic addition of local variables at the end of a
> new file like:
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: "journee_monde_indien-beamer"
> %%% End:

It won't local variables if there are no values changed from the
defaults.  So I guess you want it to query you for the master file when
creating a new TeX file.  For that, add (setq-default TeX-master 'dwim)
(or t instead of 'dwim) to your ~/.emacs.

,----[ C-h v TeX-master RET ]
| TeX-master is a variable defined in ‘tex.el’.
| Its value is ‘dwim’
| Original value was t
|   Automatically becomes buffer-local when set.
|   This variable is safe as a file local variable if its value
|   satisfies the predicate ‘(lambda (x) (or (stringp x) (member x (quote (t 
nil shared dwim)))))’.
| Documentation:
| *The master file associated with the current buffer.
| If the file being edited is actually included from another file, you
| can tell AUCTeX the name of the master file by setting this variable.
| If there are multiple levels of nesting, specify the top level file.
| If this variable is nil, AUCTeX will query you for the name.
| If the variable is t, AUCTeX will assume the file is a master file
| itself.
| If the variable is ’shared, AUCTeX will query for the name, but not
| change the file.
| If the variable is ’dwim, AUCTeX will try to avoid querying by
| attempting to ‘do what I mean’; and then change the file.
| It is suggested that you use the File Variables (see the info node in
| the Emacs manual) to set this variable permanently for each file.
| You can customize this variable.

> 2- I don't know hout to enable the beamer mode with this new version:
> adding (require 'beamer) is not working!

If you mean the beamer style with "beamer mode", that should be loaded
automatically in LaTeX documents of \documentclass{beamer}.  You can
check using `C-h v TeX-active-styles'.  The value of that variable
should contain "beamer" in such documents.  If that's not the case, you
can force AUCTeX to check again using `C-u C-c C-n'.


Attachment: signature.asc
Description: PGP signature

reply via email to

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