On 28 June 2011 10:00, William Ehlhardt <[email protected]> wrote: > I'm writing a project user manual currently, and I'd like to use HTML > due to its ability to hyperlink. The software being documented is a > numerical model, so the documentation has a lot of equations in it. > > Unfortunately, since MathML is poorly supported in browsers, I'd like > to render my LaTeX equations as images instead of MathML. I see that > the [latex] block already does the image generation and inclusion, > filtering it through latex2png.py. I can't figure out how to make the > resulting image get displayed inline with the text instead of as its > own block. > > Is there an easy way to do this? I assume I have to add a special > filter LaTeX inline macro, but I can't figure out the syntax to do so.
Unfortunately filters only work on blocks so no there is no easy way to do it. Off the top of my head I can see two ways you could do it: 1. with care and a makefile to generate the images from separate latex equation files you can include the images in the document. If you are like me thats going to be error prone. 2. Write a pre-processor to extract inline equations pass them through latex2png and replace the equation with an image macro to include the png. Some work by a programmer but then easier to use. Cheers Lex -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
