Jaen-Marc wrote:
> Claus> BTW: What about that "file not found error" with relative files
> Claus> included? The problem could be fixed when setting \use_tempdir
> Claus> false But: in that case I can't access the Logfile, so 'View
> Claus> Latex Logfile..' results in a window, telling me that it cannot
> Claus> be opened!
>
> Claus> So I have to decide which error is better!?!!?
>
> No, we have to fix it (or maybe two bugs). Could you try again with a
> fixed use of the macros and report what problems remain?

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

This patch replaces the cygwin drive sequence into the Win32/DOS drive
sequnece.

Now all goes well ;-)

But I have another problem with fix2:

If there is an error - and there still are a lot of in my files which did
not come up in fix1 - than in fix2 near the error boxes there are some
characters removed from what I have written before. So fixing one error and
trying again results in more errors!

Do you know of errors like this????

Regards
Claus



Reply via email to