On Sun, Jun 04, 2006 at 08:16:15PM -0700, Stephen Harris wrote: > Enrico Forestieri wrote: > > "Notice that if you make a shortcut to lyx-x11.exe, you don't need to > manually start the X server. If needed, lyx-x11.exe will start the X > server using the /usr/local/bin/startxserver script which performs the > same exact actions as the /usr/X11R6/bin/startxwin.{sh,bat} scripts, > minus launching an additional xterm. > > The program lyx-x11.exe is a wrapper to the real binary lyx-x11bin.exe > and sets up a proper environment, also assuring that the X server is > running before launching lyx-x11bin.exe. The latter is thought to be > used from the command line and you can simply symlink it to "lyx" > to save typing." > -- > Enrico > > --------------------------------------------------------- > > I think this applies to using LyX after opening or inside of Cygwin. > > I wanted to put links on my Windows Desktop that would automatically > start LyX up.
It should suffice creating a shortcut to C:\cygwin\usr\local\bin\lyx-x11.exe on the desktop. You will also get a nice icon. > The problem with LyX and Xemacs too was that cyg*.dlls > were required. It is fairly ugly to copy all those files into the > /cygdrive/c/cygwin/usr/local/bin directory containing lyx-x11.exe This should not be necessary as lyx-x11.exe takes care of adding "/usr/local/bin:/usr/bin:/usr/X11R6/bin" to the PATH before launching lyx-x11bin.exe. > So I solved this less than elegantly by appending > run c:\cygwin\usr\local\bin\lyx-x11.exe > to the bottom of startxwin.bat and then renaming that to LyX11.bat > I made a similar Xemacs.bat too. Ok, this also works. lyx-x11.exe simply detects an already running X server and does not try to launch another instance of it. > So it works with a double-click from the Desktop and the Viewers > all work without a problem. It is a little more messy to exit. > Just the Lyx XWindow method works, the win-bin stuff generates > only a 4cm. x 12cm. rectangle; that is Ok because the fonts seem > crisper. I've used less than 2gigs of an 8gig harddrive and the > 450 cpu is adequate, luckily I have 224mb of memory. I put the > Bakoma fonts in /usr/share/texmf/fonts - texhash - and in /X11R6 > fonts since I wasn't exactly sure where they went. You should install fontconfig and then list the directory where you put the fonts in /etc/fonts/local.conf. As an example, here is my local.conf file: $ cat /etc/fonts/local.conf <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/local.conf file for local customizations --> <fontconfig> <!-- Enable sub-pixel rendering <match target="font"> <test qual="all" name="rgba"> <const>unknown</const> </test> <edit name="rgba" mode="assign"><const>rgb</const></edit> </match> --> <dir>/usr/local/share/fonts/bakoma</dir> <dir>/usr/local/share/fonts/ms-ttf</dir> </fontconfig> I put the bakoma fonts in /usr/local/share/fonts/bakoma. The ms-ttf directory simply contains symlinks to the Windows fonts I have in /cygdrive/c/WINNT/Fonts. > lyx-1.4.1-cygwin.tar.gz file at ftp://ftp.lyx.org/pub/lyx/bin/1.4.1 > seems to me an excellent solution for people who want LyX to work > on Win98, especially since it doesn't appear that the (Qt?)problem > is going to be fixed and enthusiasm for Win98 has waned. lyx-winbin > works well for Win XP pro of course. I think you did a bangup job > on this release even extending to non-intimidating instructions. I'm > buttering you up so you don't label my solution an abomination :-) Not at all. It is only a little convoluted ;-) > Best regards from an average Word user, You seem to find your way quite well on cygwin ;-) -- Enrico