On Mon, Jan 03, 2005 at 11:20:22AM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Kayvan" == Kayvan A Sylvan <[EMAIL PROTECTED]> writes: > > Kayvan> On Sat, Jan 01, 2005 at 01:38:07PM +0000, Angus Leeming wrote: > >> The GUI stuff is icing that will take 10 minutes; I'm happy to do > >> that. However, I'd prefer to leave the configure stuff to you. > >> Happy? > >> > > Kayvan> Sure. This patch almost works right. LyX now checks the new > Kayvan> variable (which was set by configure) and does the right > Kayvan> thing. > > Your patch does not sound right. It says that under cygwin, all > programs should use dos-style paths. If this is the case, a simple > #ifdef __CYGWIN__ could be used to hardcode this into LyX...
No, it's the other way around. In my case, the teTeX that comes with Cygwin does not need dos-style paths. > However, I guess that the situation is that _some_ programs (like > teTeX) will need to use dos-style paths. In this case, what we may > need is a new converter flag that says whether a converter require > external or internal paths. Hmmm... Yes, that can happen. I route around such problems though. For example: The Acrobat reader program needs dos paths. So, I use the following shell script (as /usr/local/bin/acroread): #!/bin/sh if [ $# -eq 1 ] then FILE=`cygpath -a -w "$1"` else FILE='' fi exec acroread.link "$FILE" The /usr/local/bin/acroread.link is a symlink to the latest AcroRdr executable. In my case, /cygdrive/c/Program Files/Adobe/Acrobat 6.0/Reader/AcroRd32.exe is what the link points to. > Could you tell us, among all helpers programs used with LyX on > windows, which ones require dos names, which ones require unix names > and which ones can use both? I think this would give us an idea on how > to proceed. I think it really depends. There are native ports of various TeX implementations that need native windows paths, and there might even be a tetex port that needs native paths. By the way, the test for whether or not we need path correction already existed in $(srcdir)/lib/configure.m4 and I merely added a way for LyX to make use of the information. This is why the test must be run in lib/configure and not hardcoded. My particular installation will work just fine if I switch from tetex to MikTeX (which needs windows-style paths) after doing Tools->Reconfigure. This would not be the case with a hard-coded requirement (needing either Unix-style or Windows-style paths). ---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)