On 19 Nov 2002, Jean-Marc Lasgouttes wrote:
> >>>>> "Christian" == Christian Ridderstr�m <[EMAIL PROTECTED]> writes:
>
> Christian> Hi Can you specify several directories for LyX to search
> Christian> for templates?
>
> Probably not. How would that work?
>
Currently, I think LyX searches for templates in
$LYXDIR/share/lyx/templates
and
~/.lyx/templates
right? (In what order does Lyx search btw?)
What I'd like is to be able to specify more places where LyX searches for
templates, for instance by using an environment variable such as:
LYX_TEMPLATES_PATH = /prj/templates::
which would make LyX first search in /prj/templates and then in the
standard places '::'
The reason I'd like this feature is if you are several persons working in
a project, and you have common templates. Then it is not suitable to put
the common templates in ~/.lyx/templates and you probably don't have
access to $LYXDIR since you are not the systems administrator.
I would also like to have something like this for the layouts as well,
i.e. for instance an environment variable such as:
LYX_LAYOUT_PATH
An alternative would of course be to use the preferences to be able to
enter several directories for LyX to look in.
Anyway, what do you think about this. Any idea why I shouldn't submit it
as an enhancent bug?
/Christian
PS
About the implementation: Just a crazy idea, but would it be possible to
use 'KPathSea' for this? I.e. use the functionality of that software
and just have LyX do a call like 'kpsewhich my_layout.layout' if Lyx is
trying to find that layout file?
DS
--
Christian Ridderstr�m, +46-8-790 91 37 http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Design http://www.md.kth.se