Brion Vibber brion@pobox.com writes:
Tomasz Wegrzanowski wrote:
On Thu, May 13, 2004 at 10:27:40PM +0200, David Kastrup wrote:
I have just taken a look at some Wikimedia pages, and it struck me as
odd that inline math was rendered without attention to the baseline.
HTML side is the difficult one, not the TeX side. How to do that in HTML ?
Well, if we can get the height in pixels of the image (easy) _and_ the Y-pixel position in the image of the baseline (????) it might be possible to use relative positioning on the <img> to bump it down a few pixels to match with the surrounding text baseline, something like:
<img src="/math/123465.png" style="position:relative; top:4px" />
I haven't tested this theory, and that's dependent on getting the information out of the renderer.
Well, as I already wrote: the information can be retrieved by using preview.sty and/or dvipng, easily. dvipng has command line options for writing out the ascender/descender information, and preview.sty will output the interesting information if you just use the "lyx" option.