This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XSL implementation of DBTeXMath


Hi,

I just commit few changes to XSL stylesheets to CVS. XSL stylesheets now
directly support TeX equations in documents. It is XSL based
implementation of DBTeXMath by Allin Cottrell

http://ricardo.ecn.wfu.edu/~cottrell/dbtexmath/

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>

Note that alt element now contains TeX version of equation. If you want
to get print version of this document, just run your favorite XSLT
procesor with common fo/docbook.xsl stylesheet and parameters:

passivetex.extensions=1
tex.math.in.alt=plain         (or latex)     -- it doesn't matter at
this stage

You will get FO file with special PIs for PassiveTeX. After processing
FO file with PassiveTeX, you will get PDF file with nice TeX equations.

For HTML (or chunked, or HTML Help) version, just run common stylesheet
with parameter tex.math.in.alt set to plain or latex (depending on your
preffered TeX macro package). Generated HTML files will contain
references for images (eg. eq1.gif in my example above). Stylesheet will
also create file tex-math-equations.tex. 

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. ;)

				Jirka

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]