On Fri, 15 Oct 1999, Jean-Pierre.Chretien wrote:

> >>> >From anywhere but the directory un which is the LyX file:

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

When LyX calls LaTeX, LaTeX is run in the /tmp directory so the foo.tex
file that is found is the global/default one since there is no
corresponding foo.tex in the directory "."

> >>This looks like the answer.  LyX will be running LaTeX in /tmp/lyx...
> >>BUT if the file is \input shouldn't LyX have a copy of it in /tmp also or
> >>at least know of its existance?  Unless its a ERT \input maybe?
> >>
> >>A possible workaround might be to disable the use of a temporary
> >>directory.  There's a lyxrc variable for that but I can't remember its
> >>name.
> 
> I have no problem (and do it often) with .tex files of the lyx dir,
> nor when the input is an absolute one, and I use the LyX input box,
> not \input{foo} in ERT.

But how many of your .tex files have the same name as one in the system
directories?  If the answer is "none" then you won't be seeing this
problem behaviour.

> Here the path exploration does not seem to be the same in LyX and in
> LaTeX, as if LyX parsed the texmf tree BEFORE the . directory. 

No its simply the fact that "." refers to /tmp/lyx* not ~/doc or where
ever the users locally modified file exists.

> As Lars pointed out, this is not a dependency problem, as dependecies
> are only used to make LyX aware of the parsed tex file to take chnages
> there into account (if I understood correctly).

Sorry to confuse you.  I wasn't meaning the dependency stuff as such but
the fact that the users foo.tex wasn't copied to the temporary directory.
The dependency code could perhaps try to check for cases where a file that
would otherwise be considered local is in fact masked by a system file
when we operate from a /tmp directory instead.

Allan. (ARRae)

P.S.  I hope you don't mind but I CC'd this to the list since I may have
confused others with my original post.

Reply via email to