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.

No. It produced garbage for the graphics name. I have attached the tex files
(from the LyX temp directory).

I am going to go back to my hack, since it works correctly.

Thanks!

                        ---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)

Attachment: example-angus.tex
Description: TeX document

Reply via email to