2015-03-08 18:19 GMT+01:00 Uwe Brauer <o...@mat.ucm.es>: > > > Hi Uwe, > > 2015-03-08 15:25 GMT+01:00 Uwe Brauer <o...@mat.ucm.es>: > > > I reply for this problem: AUCTeX searches for style files in the > > directories listed in `TeX-style-path'. Actually, this list is built > > from other lists (see its documentation for details), of which you may > > be interested in `TeX-style-private'. Thus, you can either put (or > > link) your style file in one of the paths listed there or add the path > > of the style file to `TeX-style-private'. > > Thanks, but to be more precise: > > Suppose my new.sty file just contains statements like this: > > \usepackage{amsmath,amsthm} > \usepackage{graphics,graphicx} > > Then I just create a file > > (TeX-add-style-hook > "new" > (lambda () > (TeX-run-style-hooks "graphics") > (TeX-run-style-hooks "graphicx") > (TeX-run-style-hooks "amsthm") > (TeX-run-style-hooks "amsmath")) > LaTeX-dialect) > > and add it where my private lisp style files dwell? > > But then on a second look: the file new.sty sits in a directory which > contains a auto subdirectory, in which dwells a file, new.el which seems > to do what the above I just proposed. So all I have to do is add this > directory > > > /home/oub/tex/sty/auto > > To my TeX-style-private list and I am done, is this correct?!
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. Bye, Mosè _______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel