Andy, 
I usually place the MathML in a separate file and include them when I need  
to:
 
    <equation ><title>Here is a nice  equation</title>
<xi:include  xmlns:xi="_http://www.w3.org/2001/XInclude_ 
(http://www.w3.org/2001/XInclude) "  href="met-Math-template.xml"  />
</equation>

Then the file looks like (under DB 4.5):
 
----
<?xml version="1.0" encoding="utf-16"?>
<!DOCTYPE mml:math PUBLIC "-//W3C//DTD MathML  2.0//EN"
"_http://www.w3.org/TR/MathML2/dtd/mathml2.dtd_ 
(http://www.w3.org/TR/MathML2/dtd/mathml2.dtd) "  [
<!ENTITY % MATHML.prefixed  "INCLUDE">
<!ENTITY %  MATHML.prefix "mml">
]>
<mml:math xmlns:mml="_http://www.w3.org/1998/Math/MathML_ 
(http://www.w3.org/1998/Math/MathML) "  id="mymath"> 
<mml:mrow>
<mml:mo>&sum;</mml:mo>
<mml:mn>4</mml:mn>
<mml:mo>+</mml:mo>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:math>
---
 
This works well for PDF (via Jeuclid/FOP), However, I still need to solve  
the issue of HTML output, in the "most general" scenario, as some browsers 
don't 
 like MathML yet.
 
Has anyone used MathML with mediaobjects for both PDF and HTML?
 
Dean Nelson
 
 
 
 
In a message dated 10/20/2008 7:59:33 A.M. Pacific Daylight Time,  
[EMAIL PROTECTED] writes:

Thanks  for your input Justus. I'll certainly take a look at  JEuclid.

Interesting to hear about how you embed math ml in docbook too  as that's 
something I'll also need to  address.

Thanks
Andy

[EMAIL PROTECTED] wrote:
>  Dave Pawson <[EMAIL PROTECTED]> wrote on Mon, 20 Oct 2008  13:49:51
> +0100:
>
>   
>>  http://www.antennahouse.com/product/mathml.htm
>>
>> Nikolai  has http://www.grigoriev.ru/svgmath/
>>
>> I.e. mathml to  SVG, then incorporate the SVG into docbook/fo
>>      
>
> There is also Apache FOP with the JEuclid FOP  plugin.
>
> I have used both methods; both have minor quirks but  are pretty usable
> and give satisfactory results for all of my current  needs. I currently
> prefer the latter, as it requires fewer processing  steps than svgmath.
>
> Then there is my own baby,  http://sourceforge.net/projects/pmml2svg/,
> which seeks to provide an  XSLT-only solution by converting MathML to
> SVG (for non-Gecko Web  browsers, FOP without JEuclid, inkscape etc.).
> It is currently working  as a proof of concept, and I have a student
> working on it, hoping to  make it an attractive alternative by summer
>  2009.
>
>   
>> AFAIK there is no 'recommended'  way to get mathml (either kind)
>> embedded into docbook...  yet.
>>     
>
> Yep. What I do  is:
>
> - type individual variables and very short equations  directly as
>   mathml
>
> - type more lengthy  math in LaTeX syntax into <textobject role="tex">
>    directly into the docbook source, followed by a
>
>    <textobject role="html">
>     <xi:include  href="texmath/whatever.xml"/>
>    </textobject>
>
>   I have makefile-triggered  scripts that create the whatever.xml using
>   a standalone  TeX-to-MathML converter.
>
> To reduce typing to a minimum, I use  emacs-lisp code to create the
> docbook math environments  (<[inline]equation> and subtrees).
>
> This setup works very  efficiently for me now, but takes some setting
> up.
>
>  Justus
>    


---------------------------------------------------------------------
To  unsubscribe, e-mail: [EMAIL PROTECTED]
For  additional commands, e-mail:  [EMAIL PROTECTED]



**************New MapQuest Local shows what's happening at your destination.  
Dining, Movies, Events, News & more. Try it out 
(http://local.mapquest.com/?ncid=emlcntnew00000002)

Reply via email to