OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: New user question on the current state of mathml in docbook


Hi,
I've just started using DocBook, among other things for writing up my
thesis. One of the things I need to be able to write is logical
formulae, and I'm aiming to generate both XHTML and pdf output.  I've
read Bob Stayton's DocBook XSL book, in which chapter 18 suggests that
I can embed MathML into equation and inlineequation elements, and use
pdftex (PassiveTeX) to generate pdf's from my .fo file. According to
the book, PassiveTeX "can handle some MathML markup".

So I tried with a simple subscripted variable:

        <inlineequation>
          <mml:math>
            <mml:mrow>
              <mml:sub>
                <mml:mi>S</mml:mi>
                <mml:mi>O</mml:mi>
              </mml:sub>
            </mml:mrow>
          </mml:math>
        </inlineequation></para>

and the pdf output contains SO with no subscript in sight.

So my questions are:
* what's the state of the art in tools for using DocBook and MathML to
generate both pdf and XHTML? Is there a better choice of tools than
xsltproc and pdftex?

* have I done something silly in the above example, or should it just work?

* do I need to do anything to pdftex (e.g. pass any command line args)
to get it to process MathML.

* is there a list of the MathML elements that pdftex does handle?

I'm using:

[temp]$ pdftex -version
pdfTeX (Web2C 7.4.5) 3.14159-1.10b
kpathsea version 3.4.5

[temp]$ xsltproc -version
Using libxml 20616, libxslt 10111 and libexslt 809
xsltproc was compiled against libxml 20614, libxslt 10111 and libexslt 809
libxslt 10111 was compiled against libxml 20614
libexslt 809 was compiled against libxml 20614

on Fedora Core 3, and I've already tweaked texmf.cnf to stop pdftex
running out of memory.

Thanks,
Ian


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]