----- Original Message -----
From: "Enrico Forestieri" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, March 12, 2006 9:10 AM
Subject: Re: No VIEW->DVI in LyX Win32
Stephen Harris <[EMAIL PROTECTED]> writes:
I tested Chuck's method. He is not getting a DVI viewer because the
latex.exe is found during "sh configure" to be "not useable". So by
"native LyX version", you don't mean a binary, but that LyX can be
compiled under Cygwin to use Qt3 and Cygwin LyX helpers?
The WinLyX binary install bombs for finding xpdf also.
This is ridiculous ... here the configure script is trying to ascertain
if the latex.exe is version 2e, which obviously the cygwin version is,
but it fails to recognize it. This means that the check for latex2e in
configure must be changed accordingly.
I have disinstalled the cygwin tetex packages as I use MikTeX and now
I don't have a fast internet connection to try it personally. Perhaps
you can help me in solving this problem? Please, put the following 5 lines
in a file named test.ltx and then run the cygwin latex.exe on it
(/bin/latex test.ltx):
\nonstopmode\makeatletter
\ifx\undefined\documentclass\else
\message{ThisIsLaTeX2e}
\fi
\@@end
After you have done it, please paste the output in your reply, such that
I can have a look at it.
Same result from Cygwin shell or Dos shell:
[EMAIL PROTECTED] /usr/share/texmf
$ /bin/latex test.ltx
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea: Running mktexfmt latex.fmt
/usr/bin/mktexfmt: line 333: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!
---------------------------------------
same file but named testdos.ltx made from Notepad
[EMAIL PROTECTED] /usr/share/texmf
$ /bin/latex testdos.ltx
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea: Running mktexfmt latex.fmt
/usr/bin/mktexfmt: line 333: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!
Another point which may be important is that the configure script has
DOS style line endings and this can be the reason for the failed test.
So, proceed in this way:
1) Use notepad (not a cygwin text editor) to create test.ltx
2) perform the check from a cygwin shell: "/bin/latex test.ltx"
3) convert test.ltx to unix line endings with "dos2unix text.ltx"
4) redo the the check on the converted file: "/bin/latex test.ltx"
If the line endings style is the problem, the fix is almost trivial.
The results are the same testing from Cygwin shell and Dos shell
on test.ltx or testdos.ltx, converted by dos2unix or not:
[EMAIL PROTECTED] /usr/share/texmf
$ /bin/latex testdos.ltx
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea: Running mktexfmt latex.fmt
/usr/bin/mktexfmt: line 333: /texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!
So I checked to see that I had fmtutil.cnf and latex.fmt. I did.
So I copied fmtutil.cnf into the /usr/share/texmf directory and
tried /bin/latex test.ltx again. Same result as above.
Then I copied latex.fmt into the /usr/share/texmf directory and
tried /bin/latex test.ltx again. This time I got a different result:
[EMAIL PROTECTED] /usr/share/texmf
$ /bin/latex test.ltx
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
---! Must increase the hyph_size
(Fatal format file error; I'm stymied)
Same result on the Notepad produced (identical) testdos.ltx from Dos.
Yes, I have uploaded a cygwin package for LyX 1.4.0 to
ftp.devel.lyx.org/pub/incoming but it is not downloadable from there,
so someone must move it to a suitable place.
--
Enrico
Perhaps Chuck will comment on whether his system reports a "useable latex".
Your file is still in Incoming, I suppose, I can't see it.
Regards,
Stephen