Andre Poenitz <[EMAIL PROTECTED]> writes: > Sort of finished. > > If you have '\preview true' in your preferences, math insets will get > 'previewed' unless the cursor is in the inset. In the latter case we get > the usual mathed behaviour. > > ########################### NOTE ############################# > previewUpdate() which will start the pdflatex/dvips conversion > is currently called by metrics() which in turn is called by > InsetFormula::width(). So if you have lots of width() call and the > conversion cache is cold, this is almost equivalent to a fork bomb. > You have been warned. > ########################### NOTE ############################# > > Apart from that it looks not too bad. We should probably a bit more lazy > about initiating the coversion, maybe just on startup and on "cursor > leaves inset", not after almost every keystroke as we do now. > > And there are cosmetic issues. I don't know how to get the baseline of the > preview, the background is still white etc...
Background: see separate post with PostScript code. How do you generate the LaTeX that you run through for the preview? Depending on that, a baseline may be extracted (would have to be probably output as text on the terminal. At least that's what preview.sty that we use in preview-latex for chopping up things into pieces does). -- David Kastrup, Kriemhildstr. 15, 44793 Bochum Email: [EMAIL PROTECTED]