On Sat, Oct 06, 2001 at 07:17:24PM +0200, Dekel Tsur wrote:
> \usepackage{graphics,epsfig}
> \newcommand{\setpath}[1]{
>  \def\input@path{{PATH/#1//}}
>  \graphicspath{{PATH/#1//}}
> }
>
> Where PATH is the path to the directory of the master file e.g
> /home/me/thesis and then put \setpath{chap1} in latex mode before
> including chapter1.

Thanks for the example, it's quite informative.  But hard-coding my
home directory into a LyX file (or even a per-user ~/.lyx/layouts file)
seems even more ugly to me then the hassle of a directory filled with
symlinks.  How are multiple people supposed to work on the same document
out of a common CVS repository?  Documents files, as source code, should
be location independent for processing, compilation, etc.

Of course (as I understand it) the real problem is with LyX's handling
of paths and it's use of temporary directories.  Perhaps LyX itself
needs to muck with the \input@path stuff in the TeX file in generates
in it's temporary directory.  I don't know enough about how LyX and TeX
work to say.

Has this problem been fixed in more recent versions of LyX?  Is anyone
looking into it?

-- 
Dave Chapeskie
OpenPGP Key KeyId: 3D2B6B34

Reply via email to