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 wrote: >> 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. > > b) Can't we hardcode the installation directory? Hummmmm. Not in > XEmacs, probably, since this is most easy to do at configure time. Not > at XEmacs-package install time. Something like > ------------------- > \DeclareOption* > {\InputIfFileExists{@TEXINSTALLDIR@pr\CurrentOption.def}{}{\OptionNotUsed}} > ------------------- > >> 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. > > a) How about fiddling with TEXINPUTS only if our preview.sty is to be > loaded? It is LaTeX that figures out whether preview.sty needs to get loaded explicitly. LaTeX can't fiddle with TEXINPUTS. We'd probably have to pass the directory information in some manner to preview.sty. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum