> That's great, thanks! The patch applies fine and I can't make 
> it to fail 
> with my test cases. I get a bunch of
> 
> GPL Ghostscript 8.71: Unrecoverable error, exit code 1
> 
> on the terminal but all previews appear (and I think I saw 
> those error 
> messages before, too). Nice work!

Thanks! :)
 
> > +    # latex failed
> > +    # FIXME: try with pdflatex
> > +    if not os.path.isfile(dvi_file):
> > +        error("No DVI output.")
> > +
> 
> why the FIXME?

Well, it's not a bug, but it would be better to try the pdflatex way if standard
latex fails at first (we shouldn't go to the legacy route, dvips, as it uses
standard latex too). However I think that in most cases if latex fails the code
is simply wrong and there's little pdflatex can do.
I've a special kind of comment in my environment: NV which means Next Version :D
Maybe TODO is better.

> do you notice sometimes the eqn numbers are way to the right of the LyX 
> window, half outside the LyX window?

Do they remain there or after moving the mouse/cursor they go to the right
place? I've noticed similar problems with IP images: when they're rendered for
the first time often are in the wrong place, but moving the cursor over it
solves the problem (a simple redraw?). I wanted to open a bug report but it was
very hard to reproduce.
If moving the cursor doesn't fix the problem, probably the size of the output
(A4 by default) is too big for your screen and you can solve simply reducing the
Preview Size in Preferences > Look & Feel > Display.

Feel free to edit the patch if something is wrong. Just when (and if) you commit
tell me the revision #. Thanks!

venom00

Reply via email to