On Tue, May 05, 2015 at 04:59:38PM +0200, Jürgen Spitzmüller wrote:
> 2015-05-05 15:14 GMT+02:00 Jürgen Spitzmüller:
> 
> > 2015-05-03 23:58 GMT+02:00 Enrico Forestieri:
> >
> >> commit 8c351e32be92fca91e2dd1f9ec478d5cb1ce6c8c
> >> Author: Enrico Forestieri <for...@lyx.org>
> >> Date:   Sun May 3 23:55:19 2015 +0200
> >>
> >>     Update paths of included files when saving to a different folder.
> >>
> >>     Fixes #9528 and #5115.
> >>
> >>
> > This introduces a severe problem: When saving a file with bibtex
> > bibliographies without path (because they reside in the TEXMF tree), I get
> > wrong relative paths that point to the working directory of the original
> > file instead of just the file names.
> >
> > In general, I suppose this breaks with all files that make use kpathsea
> > and the texmf directory.
> >
> 
> A probale solution would be to check whether the linked files actually
> exist in the local directory. Since LaTeX, AFAIK, prefers those to the
> TEXMF ones in that case, we can probably safely use those in that case, and
> in others do not alter the path.

I think it is better not to update the path at all if the file does not
exists at the old location, whether or not this is a bibtex database. 
I am going to commit this change after testing.

-- 
Enrico

Reply via email to