Michael <[EMAIL PROTECTED]> writes: > Very nice, thanks a lot for the information! > I still have questions:
> 1. How to send this complete Latex document to a script? Now that I don't know. I know nothing at all about OneNote. I was envisioning that you'd be typing pure LaTeX directly into OneNote and that when you hit return, OneNote would transfer this LaTeX snippet to your colleague's OneNote session. Your colleague's OneNote would then initiate the generation of the images by writing a complete LaTeX document to the hard disk and launching the script to process this document and generate the image. If all goes well, OneNote would display the image. If image-generation failed, it would display the raw LaTeX snippet. Does that make sense? I see below that you're actually thinking of embedding a LyX window within OneNote. I think that that's a whole different kettle of fish. Much, much more difficult/work. > 2. Does this generated preview image have a reasonably good width and > height, I am guessing that as a compiled document, it might have a large > white margin? Or it is precisely a snippet of an equation? It is precisely a snippet of an equation. You can control the image size by a parameter passed to the script when it is invoked. Read the introductory blurb. Go play with LyX and the lyxpreview2bitmap.py script. I think that at the moment the script may delete everything that's no longer needed from the temp directory when it's finished. If you hack the script a little so that it doesn't do that, you'll be able to see the LaTeX document that LyX uses to generate a single preview and you'll be able to follow through the logic of what the script does to generate the image. You'll find that the script generates a metrics file that contains information about the ascent/descent info of the image, so that LyX can position the image correctly relative to the baseline. > 3. The LyX's inset math box (the half-WYSIWYG one before the instant > preview) is still very good interface, is there a way to single it out? Not easily. That's a lot of work and assumes that you can get access to OneNote's internal hooks to display the thing anyway. Angus
