----- Original Message ----- From: "Enrico Forestieri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <lyx-users@lists.lyx.org>
Sent: Friday, February 24, 2006 4:33 PM
Subject: Re: LyX on Cygwin


On Fri, 24 Feb 2006 14:13:04 -0800, Stephen Harris wrote:

The View function doesn't work. It complains about missing
TeX class "article" when I first load the .lyx document and
C:\texmf~ is in my PATH.

Try reconfiguring after adjusting path_prefix (see below).


SH: The rest of the error message is "LyX will not be able to produce output."

                         The Tex Information produces a
window but it contains no information.

Yes, I also see this, but then this also happens with 1.3.7.


Perhaps normal for Cygwin/Linux but you can see all these
files and their paths with Uwe or Angus native LyXwin. Or
with Mingw build of LyX1.4.0_pre3. It is how I used to check
that LyX communicated with Miktex:texmf

I used mount -f C: /c  (not mount -f C: /cygdrive/c ?) as advised.

Correct. To see if that works try "ls /c" in a cygwin shell.


Yes I see lots of my stuff. When I use File->Open it still
displays the path in terms of /cygdrive/c/ which makes me nervous.

Path prefix had no entries which I thought was a bit strange.

It is normal. In 1.3.7 entries are added by the windows installer.

I've tried both of these in Path prefix
C:/reader7/Reader/acrord32
/c/reader7/Reader/acrord32

I've tried both of these absolute paths in File formats Viewer
C:/reader7/Reader/acrord32
/c/reader7/Reader/acrord32
originally it just said Viewer pdflatex, acrord32, but didn't work.

Please *always* use posix syntax in path_prefix, i.e., /c/reader7/...
and *not* C:/reader7/...


Ok, the reason I tried both was because /c/reader7/Reader/acrord32
failed to enable the pdflatex Viewing function.

The Working directory automatically generated by LyX is
C:/Cygwin/.xemacs

Uh? It seems that you have not set the HOME variable. LyX/Cygwin uses
HOME instead of USERPROFILE. Perhaps I should patch the sources such
that USERPROFILE is used as a fallback if HOME is not set.
For the moment, you can fix this by adding the HOME var in the same
way you add the PATH var but in the user section. Set HOME to a folder
of your choice and then try launching LyX with the option "-dbg init"
to see what it thinks your home_dir is.


I used to have Xemacs for Cygwin installed. I set the HOME variable
to C:\Cygwin\.xemacs for it. I now have another version of Xemacs set
to HOME there also so if I change it I have to move init.el files etc.

The tmp directory generated by LyX is C:/Cygwin/tmp

This is correct.

I also tried putting C:/texmf/miktex/bin in Path prefix
and also the path to article.cls which is in ~/.../base
separated from each other with a :  also :C:/reader7/etc

As I noted above, always use posix syntax in path_prefix, so
write that as /c/texmf/miktex/bin:/c/reader7/etc
The ':' char must only be used as a separator.
Please try the following as path_prefix (I am assuming that your
AcroRd32.exe is in C:\reader7\Reader\acrord32 and that you issued
the "mount -f C: /c" command)

/usr/local/bin:/usr/bin:/usr/X11R6/bin:/c/texmf/miktex/bin:/c/reader7/Reader/acrord32


Oops. No acrord32 is short for the acrord32.exe I just noticed this
after trying it and it failed. So I tried :/c/reader7/Reader/ which didn't
work. I just tried it without the trailing slash /, and it didn't work.

I start LyX with an icon linked to C:\cygwin\usr\local\bin\LyX-1.4.0.exe
and it gives me an error message "Locale en_US could not be set"
which has never mattered in the past. My language is set to English in LyX.
The Locale error follows after the "LyX will not be able to produce output."

After modifying path_prefix, save the preferences and *restart* LyX.


I did that. I did that, tried Reconfigure, closed and opened, to no avail.

I'm not sure what is broken because of being a Pre version.
For instance Import Latex is missing, it just has text imports.

This is a known issue when a version suffix is used (the configure
script should be called with the option --version-suffix=<the_suffix>
but it is not). To fix this do the following in a cygwin shell:

 cd /usr/local/bin
 ln -s tex2lyx-1.4.0.exe tex2lyx

and then reconfigure LyX.


By cracky it worked! I can now import Latex.

Anyway your instructions are proven to work. A new user
can search the archives and find clarifications in this thread.
I've remembered to modify, apply, save, and Reconfigure.

My favorite test file, sample.lyx, does convert eps and jpeg,

I think that you have a working copy of LyX. You should simply fix
some glitches.

--
Enrico


I've watched Reconfigure process. It says yes to finding pdflatex
and acrord32 and gsview32. I don't have any Viewers, no DVI or
Postscript. I added :/c/gs/gs8.51/bin:/c/ghostgum/gsview to Path
prefix and turned on Instant Preview. No previewers. Before when
I had this problem I ran sh configure from lyx/resources/lyx I'll
give that -dbg init a try before closing. yes my hom_dir is .xemacs
ctrl-d applied to splash.lyx says "No information for exporting the
format DVI." Something is causing that 'missing TeX class "article"

-dbg init partial output [I tried exporting from the LyX command line.]
----------------------------------------
No information for exporting the format DVI.
Error: Couldn't export file
----------------------------------------
No information for exporting the format DVI.
Error: Couldn't export file
----------------------------------------
No information for exporting the format LaTeX.
sh: -c: line 0: syntax error near unexpected token `&'
sh: -c: line 0: `( /c/texmf/miktex/bin/latex.exe ) <  &'
Error: Couldn't export file
----------------------------------------

yes it basically works,
Stephen



Reply via email to