On 20/01/2011 7:14 PM, [email protected] wrote:
Maybe it's a dumb question but... What's the use of preview-latex? Couldn't we
simply create a page for each snippet and then make the usual calls to the
converters? Maybe this would simplify the process and remove all the
incompatibilities. But for the simple fact that a package like preview-latex
exists I think I'm missing something. Julien?

As far as I understand it preview-latex is useful because 1) Some macros defined outside the preview environment might still be needed by TeX to process the code inside the environment. Howver this is not always obvious to LyX (especially since we don't even attempt to parse any ERT insets. 2) It does the cropping for you (at least when using pdflatex, I don't remember for the other backends).

Aslo preview-latex was developed by or in parallel with auctex developers to provide small png previews while editing a tex file in emacs. Perhaps they know better.

--
Julien

Reply via email to