Enrico Forestieri <[EMAIL PROTECTED]> writes:
> 
> Uwe Stöhr <uwestoehr <at> ...> writes:
> > 
> > Georg Baum schrieb:
> > 
> > > Babel probably makes " active for french.
> > 
> > But why can I compile the file manually?
> 
> The exported file, perhaps. If you try to compile it by hand in the
> lyx_tmpdir, you'll find that you can't. The problem is that ':' is made
> active for french and that character is part of the filename when LyX
> tries to compile it in lyx_tmpdir on Windows.

Uwe,

please try the following experiment. 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

You must have sed.exe in your PATH.
Now try "View DVI" in LyX. It should work.
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.

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

--
Enrico


Reply via email to