Enrico Forestieri wrote: > BigG writes: >> I have LyX 1.6.4 installed in cygwin on W2K. I have an odd problem when >> generating PDF. Take, for >> example, "doc/Customization.lyx". If I "View->PDF (pdflatex)", I get the >> latex errors window after >> Latex run number 1. The errors window actually contains just 2 warnings, >> no errors, but LyX does >> not continue with the further Latex runs, and the PDF viewer is not invoked. >> >> I have another box with LyXWindows 1.6.4 installed on W2K (and MiKTex, no >> cygwin this time). If I >> try the same thing, I don't get the latex errors window, the further Latex >> runs occur, and the PDF >> viewer is invoked. However, if I look at "Document->LaTeX Log", exactly the >> same warnings have been >> generated as before. >> >> I've tried this with other LyX files; if they cause 'pdflatex' to generate >> warnings, the cygwin >> version of LyX throws up the latex error window and does not continue with >> further latex runs; the >> 'LyXWindows' version works just fine, even though the log shows the same >> warnings are generated. >> >> This is really frustrating, since I'm sure the cygwin version used to >> behave properly. I've tried >> re-installing both LyX and tetex on cygwin, but to no avail. Anybody know >> what's happening here? > > On cygwin, tetex uses file:line:error style and LyX is fooled to think > that the warning is a fatal one. This doesn't happen with MikTeX because > of the different way the log file is formatted. > > This is a bug, please report it here: > http://www.lyx.org/trac/wiki/BugTrackerHome > > Until the bug is fixed, you can workaround it as follows. > 1) In Tools->Preferences->File Handling->Converters modify the > "LaTeX (pdflatex)->PDF (pdflatex)" converter by adding -no-file-line-error, > such that the converter reads "pdflatex -no-file-line-error $$i" > 2) Alternatively, edit the file /usr/share/texmf/web2c/texmf.cnf and change > the line "file_line_error_style = t" to "file_line_error_style = f". In this > way, you don't need to modify the preferences in LyX. > Thanks Enrico, that certainly fixed it. I've raised a ticket for it.
Bill Gordon
