On Tuesday 23 September 2003 10:53 pm, Kayvan A. Sylvan wrote:
> Under Cygwin, LyX already attempts to fix the path (for all exported
> files, paths to pictures, etc). The fix is to output the Windows name
> (e.g. "C:/Cygwin/Home/Kayvan/foo.lyx") for all file references.

Well, apart from the final switch of '\' to '/', that seems like a sensible 
thing to do. (Yes, I understand that there are reasons to do that.)

What I think would be interesting, however, is to try

        char dp[255];
        cygwin_conv_to_full_win32_path(p.c_str(), dp);
-       dos_path = subst(dp,'\\','/');
+       char dp_short[255];
+       GetShortPathName(dp, dp_short, 255);
+       dos_path = subst(dp_short,'\\','/');

and see if that works too.

> This does not work when the underlying TeX installation is
> the newest version of tetex for Cygwin.

Ok, I'll bite. What goes wrong? Why?
Angus

Reply via email to