On 2008-12-08, Manveru wrote: > 2008/12/6 Manoj Rajagopalan wrote: >> When performing a DVI build, sometimes I get latex errors. ... >> In LyX v1.6.0 I get a message box with all the latex errors/warnings >> so it looks like LyX got the latex backend to continue past these >> errors but it does not update the DVI. So it seems like LyX is >> aborting the DVI update.
Actually, the latex run produces a DVI (if there is no unrecoverable error) but LyX does not open a DVI viewer. To see this: run view-dvi (Ctrl-D) on an error-free document, leave the DVI-viewer open, edit the source and introduce an error (e.g. a non-existing macro in an ERT), run update-dvi (Ctrl-Shift-D) see the changes in the DVI viewer. If you do not have an error-free version of the document, you can still manually open the dvi in the lyx tempdir. >> Is there any way to instruct LyX to go ahead >> with the DVI build unless latex itself dies in the process? > It is somehow interesting question, but I think it is intended. If there is some easy to fix error, it might be preferable, that no DVI viewer pops up. This is why LyX aborts not the latex run, but the viewing of the result. However, in many cases it helps a lot to see the output in order to understand what went wrong. > LyX is designed to produce error free LaTeX code This does not help a user that gets an error. As we allow for user-supplied code in the preamble and in ERT boxes, LyX cannot guarantee error free LaTeX. IMO, it would be a good thing, if LyX showed the output also if there were errors in the LaTeX run *in addition to the Error box*. The normal workflow would be to correct the error and retry, so an open DVI (or other output) viewer is no problem - I just have to remember to use the "update view" command instead of view with my second attempt. Günter
