----- Original Message ----- From: "Enrico Forestieri" <[EMAIL PROTECTED]>
To: <lyx-users@lists.lyx.org>
Sent: Monday, March 13, 2006 11:30 AM
Subject: Re: No VIEW->DVI in LyX Win32


Stephen,

Enrico: most probably your tetex installation is corrupted. Try reinstalling it.
In the meantime I've got a fast connection and tried to install again the
cygwin tetex packages. I can confirm that everything works fine with all
cygwin tools, but I had to put the following .bat files in ~\LyX\bin


SH: I did a fresh install of Cygwin because latex wasn't working and
I wanted to test the Cygwin Lyx installer that you uploaded. So this
time xpdf, xdvi(k), and latex work from the bash shell. Also I got

--------------------------------------------------

[EMAIL PROTECTED] /cygdrive/c/cygwin
$ latex test.ltx
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
file:line:error style messages enabled.
%&-line parsing enabled.
entering extended mode
(./test.ltx
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, bahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
estonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
polish, portuges, romanian, russian, serbian, slovak, slovene, spanish,
swedish, turkish, ukrainian, nohyphenation, loaded.

ThisIsLaTeX2e )
No pages of output.
Transcript written on test.log.

-----------------------------------------------------------

SH: So it seems to be working. The good news is that lyx-x11 works
pretty well. It displays Tex Information whereas lyx-winbin does not.
lyx-x11 also uses xpdf and xdvi(k) Ok. A Postscript file seems to be
made and the correct output quickly flashes on the screen but then
quits with the error message: winMultiWindowXMsgProcErrorHandler -
ERROR: BadWindow <invalid Window parameter>
I can use Windows ghostview, however.
-------------------------------------
EF:If you have the cygwin X-server and want to have fun, launch the
X11 version of LyX (lyx-x11). Then, in a terminal window, type lyxclient
and hit the Enter key. Now, in the terminal window from which you
launched lyxclient (you do not have a prompt), try typing "file-open"
without the quotes...
To quit lyxclient type "BYE:" in the terminal window.
------------------------------------------

SH: That was fun and worked. ^^^^^^^^^



latex.bat
----8<--------8<----
@echo off
sh.exe -c 'latex %*'
exit
----8<--------8<----

pdflatex.bat
----8<--------8<----
@echo off
sh.exe -c 'pdflatex %*'
exit
----8<--------8<----

python.bat
----8<--------8<----
@echo off
sh.exe -c 'python %*'
exit
----8<--------8<----

xdvi.bat
----8<--------8<----
@echo off
set DISPLAY=localhost:0.0
sh.exe -c 'xdvi %*'
exit
----8<--------8<----

Everything works like a charm. The first time I tried View->Dvi I had
the impression that LyX was hanging, but then I realized that I had
just installed tetex and it was simply busy in generating all the needed
fonts. So, the first time it took almost forever but then xdvi popped up
showing me the dvi.

In conclusion, cygwin helper apps can be used with the native version
of LyX but some of them must be called through a wrapper script. This
happens when either they are symlinks to the real apps or they are shell
scripts, or they need some environment variables to be set (like in the
xdvi case which both is a shell script and needs DISPLAY to be set).

I think I can say that if there is a problem using cygwin apps, this is
due to either a broken installation or misconfiguration.

--
Enrico



I can't use any Cygwin helper apps with lyx-winbin. They fail
with a 'can't open display' whether I have started Xwin or not.
I don't know if one of those batfiles written as a script would help.

Nor does lyx-1.3.7_win32_setup_v2 (which Chuck is using)
work with any Cygwin apps, with or without batfiles, with or
without startx for Cygwin. It works with Windows apps, as
expected, but what is the use of using Cygwin for LyX then?
I have them installed in C:\lyxcyg\bin

It was rather clever how you got the LyX installation files
and Aiksaurus to show up in the Cygwin setup, install from
directory. LyX installation is actually quite short if you start
with a working Cygwin installation. I'm going to stick with
the lyx-x11 startup. You must have spent a lot of time on
this and it is the best ever Cygwin installer for Windows.

Time for a vacation,
Stephen

Reply via email to