2015-03-08 18:42 GMT+01:00 Uwe Brauer <o...@mat.ucm.es>: > > > 2015-03-08 18:19 GMT+01:00 Uwe Brauer <o...@mat.ucm.es>: > > > 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è _______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel