Jan-Åke Larsson wrote: > May I suggest you take a look at "dvipng", available at > http://sourceforge.net/projects/preview-latex/ > > About: > This program makes PNG graphics from DVI files as obtained from TeX > and its relatives. Its benefits include speed; it is the fastest > bitmap-rendering code for DVI files known to the author. On a fairly > low-end laptop, it takes less than a second to generate 150 > one-formula images. Furthermore, it does not read the postamble, so > it can be started before TeX finishes. There is a -follow switch > that makes dvipng wait at EOF for further output, unless it finds > the POST marker that indicates the end of the DVI. It supports PK > and VF fonts, color specials, and more.
Welcome to the lyx list, Jan-Åke! When I was writing this stuff to interat with preview latex, dvipng was still very young. Do you think that it is now mature enough to use? If you look at lyxpreview2bitmap.sh, you'll see that one reason we generate ppm files rather than png ones is because we want to strip left/right borders from the previews of math insets. We use pnmcrop to do this. Does dvipng have the ability to do such a thing and if not can I file a feature request with you? -- Angus