This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: XSL implementation of DBTeXMath
- From: Norman Walsh <ndw at nwalsh dot com>
- To: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 06 Dec 2001 14:43:06 -0800
- Subject: DOCBOOK-APPS: Re: XSL implementation of DBTeXMath
- References: <3C0FEA33.41BEBAC2@kosek.cz>
/ Jirka Kosek <jirka@kosek.cz> was heard to say:
| If you want include equations in DocBook (and don't want to use MathML)
| you can insert equations by usual DocBook way:
|
| <inlineequation>
| <alt>E = mc^2</alt>
| <inlinemediaobject>
| <imageobject>
| <imagedata fileref="eq1.gif"/>
| </imageobject>
| </inlinemediaobject>
| </inlineequation>
With respect, I think that's abuse of the alt tag. Might I suggest instead
supporting this with:
<inlineequation>
<inlinemediaobject>
<imageobject>
<imagedata fileref="eq1.gif"/>
</imageobject>
<textobject><phrase>E=mc squared</phrase></textobject>
<textobject role="tex"><phrase>E=mc^2</phrase></textobject>
</inlinemediaobject>
</inlineequation>
(I note that the current stylesheets assume that they can choose the first
textobject with a phrase which will no longer be true.)
| You should process this file with TeX or LaTeX to get DVI file. Then run
| dvi2bitmap utility on the DVI. Images for all equations in document are
| created -- you have also HTML document with math. Isn't it nice. ;)
Very cool.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | To enjoy yourself and make others
http://www.oasis-open.org/docbook/ | enjoy themselves, without harming
Chair, DocBook Technical Committee | yourself or any other; that, to my
| mind, is the whole of
| ethics.--Chamfort