Re: TeX-macro-global/--with-tex-input-dirs
David Kastrup <[email protected]>
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
Jan-Ake Larsson <[email protected]> writes: > * David Kastrup (2005-01-15) writes: >> But we'll still have to stuff preview.sty and its friends somewhere. > > Hmm, the real problem occurs if somebody manually loads > (/foo/bar/texmf/whatever/)preview.sty in a TEX file. Is there a way to > prevent our preview.el from loading /path/to/emacs/preview.sty in this > special case? > > This way, we'd still get automatic preview.sty loading in generic > TEX files but consistent behaviour in the special case when > preview.sty is loaded manually. We don't load anything when preview.sty is already loaded. However, we have two possibilities to get our preview.sty loaded: a) fiddle with TEXINPUTS. In this case, our extension files prlabels.def and similar will be found by the foreign preview.sty even when calling it with an explicit path. b) load our preview.sty with an explicit path. In this case, it will not be easy for our preview.sty to find the files like prlabels.def for its own options. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum