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: Re: [docbook-apps] Docbook with Math ML/Latex => PDF


Here's a real-world example, copied (almost) straight from one of my

	  <textobject role="tex">
	      P(k \textrm{ heads in } n \textrm{ flips}) \;=\;
	      {n \choose k} p^k (1 - p)^{n-k}
	  <textobject role="MathML">
	    <xi:include href="texmath/1775461169.xml"/>

I validate this "shallowly" through nxml-mode within emacs using my
own RelaxNG customization on top of docbook-rng-4.5/docbook.rnc which
essentially mixes in xinclude in strategic places, and includes
mathml2 in a way consistent (I think) with the official DocBook 4.5
MathML extension. For "deep" validation I use "xmllint --nonet --noout
--xinclude --postvalid ...".


DeanNelson@aol.com wrote on Mon, 20 Oct 2008 15:12:44 EDT:

> All,
> In my application, I need to do both PDF and HTML. I would like to do it
> similar to a mediaobject and use "role" to differentiate the processign path
> needed.
> <equation>
>    <mediaobject>
>        <imageobject role="html"> .....</imageobject>
>        <textobject role="pdf">  **include the MML file ***  </textobject>
>    </mediaobject>
> </equation>
> Something like that. But what is the preferred way of including MathML in a
> mediaobject? Or is there a more sane manner in which to go about this task?

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