Claus Hentschel wrote:
> I have analyzed the problem on Win32 compared to Linux on my system. The
> problem is, that LyX - correctly! - inserted the \document_path. On
> Win32/MS-DOS cygnus maps all drives like c:, d: etc. into the drive
> character prefixed with '//', i.e. '//c' and '//d'.
>
> All external viewer programs still are Win32/DOS programs and cannot find a
> file with that starting sequence. So just 2 minutes ago I have placed a
> patch into src/buffer.C near line 1625:
>
> #ifdef WIN9X
> LFile += "\\def\\input@path{{";
> {
> string dos_path = original_path;
>
> if( dos_path.compare(0,2,"//") == 0 ) {
> dos_path.erase(0,2);
> dos_path.insert(1,":");
> LFile += dos_path;
> } else
> LFile += original_path;
> }
> LFile += "/}}\n";
> #else
> LFile += "\\def\\input@path{{" + original_path
> + "/}}\n";
> #endif
>
A question, wouldnt it be a lot better to use cygpath -w? This is how yap and
gsview32 are currently called on the Windows platform with no problems. Why not
using the same syntax in lyxrc for all calls to external programs? Then we can
avoid hacks like that. I admit I havent followed this from the beginning though.
--->8
Roland
--
Dr.-Ing. Roland Krause
Engineering Software Research and Development Inc, Saint Louis, MO
voice: (314) 983 0649-12