Re: [docbook->html] support for MathML

Steven Watanabe <[email protected]>
Newsgroups gmane.comp.lib.boost.documentation
Organization Providere Consulting, Inc.
Message-ID <[email protected]>
AMDG

On 10/29/2011 10:27 AM, Paul A. Bristow wrote:
>
> I'm overcome with an urge to insert a math equation into a Quickbook document ;-)
> 
> Is this ready for amateur use yet?
> 

Not really.  The existing support I added
to the docbook processing is designed
to handle equations produced by doxygen.
Generating it from inside quickbook is
a bit awkward.  You can do it using escaped
docbook like this:

'''<inlineequation>
<inlinemediaobject>
<imageobject role="html">
<imagedata fileref="images/normal.png"/>
</imageobject>
<textobject
role="tex">$\frac{1}{\sqrt{2\pi\sigma^2}}e^{-\frac{\left(x-\mu\right)^2}{2\sigma^2}}$</textobject>
</inlinemediaobject>
</inlineequation>'''

The PNG image is still needed as a fallback.
Without it you'll end up with the raw
TeX if Javascript is disabled or the
MathJax server is inaccessible.

> What tool should I use to create my equation?  TeX?  Word?  or?
> 
> Or should I continue to use the existing sub and super and greek and math templates?  (Feasible)
> 

In Christ,
Steven Watanabe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.