auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Insertion of braces in math mode for certain macros


From: Tassilo Horn
Subject: Re: [AUCTeX] Insertion of braces in math mode for certain macros
Date: Fri, 09 Nov 2012 09:26:59 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Tassilo Horn <address@hidden> writes:

>>   (load-file "~/Repos/el/auctex/style/amstex.el")
>>
>> using M-:, `TeX-style-hook-list' contains just an empty ("amstext")
>> entry without hook function!  That entry has been there before, too.
>
> Stupid me, of course I wanted to load amstext.el, not amstex.el.  When
> loading that manually, the \text macro gets inserted with braces as it
> should be.  So the problem is only that the style files don't get
> loaded automatically.

Ok, I've debugged that.  The reason is that I run AUCTeX from CVS, but I
run it from the checkout directory instead of installing it with "make
install".  That way, `TeX-data-directory' gets set to

  "/home/horn/Repos/el/auctex/auctex"

by (expand-file-name "auctex" (file-name-directory load-file-name)),
whereas it has to be just

  "/home/horn/Repos/el/auctex"

in the run-from-checkout case.  So when I set `TeX-data-directory' like
so before loading AUCTeX, doing C-c RET text RET inserts \text{} as it
should.

I also verified that styles get loaded correctly with the ELPA package.

So Lionel, if you also run AUCTeX from the checkout directory, set
`TeX-data-directory' to this directory before loading AUCTeX.

Bye,
Tassilo




reply via email to

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