auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] «global.sty» include, master, subfiles


From: Mosè Giordano
Subject: Re: [AUCTeX-devel] «global.sty» include, master, subfiles
Date: Sun, 8 Mar 2015 19:12:51 +0100

2015-03-08 18:42 GMT+01:00 Uwe Brauer <address@hidden>:
>
>    > 2015-03-08 18:19 GMT+01:00 Uwe Brauer <address@hidden>:
>
>    > Yes, it's correct.  You can either add that directory to
>    > `TeX-style-private' or move/link the file in a directory present in
>    > `TeX-style-private', the decision is up to you.
>
> It seems not to work.
>
> Here is what I did:
> create a file teststy.sty
> ,----
> |
> | \ProvidesPackage{estad}
> | \makeatletter
> |
> | \usepackage{amssymb,amsfonts,amsmath,amsthm}
> | \usepackage{graphics,graphicx}
> |
> |
> | \makeatother
> `----
>
> Then a file testty.el is created in the auto subdirectory.
> (/home/oub/tex/sty/auto) which is now in my TeX-style-private variable
>
> This file looks as
>
> ,----
> | (TeX-add-style-hook
> |  "teststy"
> |  (lambda ()
> |    (TeX-run-style-hooks
> |     "amssymb"
> |     "amsfonts"
> |     "amsmath"
> |     "amsthm"
> |     "graphics"
> |     "graphicx")))
> |
> `----
>
> So I create a new file
> \documentclass{article}
>
> \usepackage{teststy}
>
> \begin{document}
> this is a test
>
>
> \end{document}
> and I run the command
> LaTeX-environment it should now offer my say, align, which is a typical
> amsmath environment, but it does not,

What's the value of `TeX-active-styles' in this buffer (without the
explicit loading of amsmath)?

A TeXnical note: amssymb loads amsfonts, so it's useless to load both.

Bye,
Mosè



reply via email to

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