So I'm working on giving LyX the ability to output images instead of MathML/HTML for math constructs that it doesn't understand, and I've run into a problem. Basically, what I want to do is, in InsetMathHull::xhtml(), to be able to generate a preview image. I've been able to make necessary additions to the preview classes so I can wait for that to happen and get the filename back. But it doesn't work quite right, because I don't have a DocIterator to pass to addPreview(), which it needs to figure out what macros are defined at this point in the file. Any ideas how I could get such a thing? The only idea I've had is to cache one during updateBuffer(), but that seems both fragile and ugly. I'm also not sure I know precisely what the DocIterator needs to point to.

rh

Reply via email to