[Top][All Lists]

[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 18:24:19 +0100

2015-03-08 18:19 GMT+01:00 Uwe Brauer <address@hidden>:
>    > Hi Uwe,
>    > 2015-03-08 15:25 GMT+01:00 Uwe Brauer <address@hidden>:
>    > 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.


reply via email to

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