On Wed, Sep 24, 2003 at 12:19:05AM +0000, Angus Leeming wrote: > 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.
I'll have to try it tomorrow. I don't have access to the machine where this happens right now. > > 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? The files are not found. Apparently the newest Cygwin tetex no longer likes the c:/cygwin/home/blah/blah paths and simply expects the paths to be in normal Unix fashion (e.g. /home/blah/blah). I didn't didn't deeper than that once I implemented my hackish workaround. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)