Enrico Forestieri writes:

Put the following latex.bat file in <LyXdir>/bin (e.g., C:/Programme/LyX/bin)

$ cat latex.bat
@echo off
set curdir=%CD:\=/%
sed -e "s?%curdir%/??g" %1 > %1.new
move %1.new %1
latex.exe %1

Many thanks Enrico, this fixes the problem. I tested this with all possible babel languages and it works, except for turkish. The turkish language problem is bug 2005:

http://bugzilla.lyx.org/show_bug.cgi?id=2005

So perhaps you and/or Herbert Voss have an idea how to fix it also for turkish.

Essentially, the script above removes the path from the filenames.
As they are copied by LyX in the lyx_tmpdir where also the .tex file is,
latex should be able to find them.

We should implement this as soon as possible because this bug makes LyX nearly unusable for french users.

Question: why LyX uses full paths for the files it copies in lyx_tmpdir?

regards Uwe

Reply via email to