Re: MathML
- To: mathgroup at smc.vnet.net
- Subject: [mg29317] Re: [mg29303] MathML
- From: Dale Horton <daleh at wolfram.com>
- Date: Wed, 13 Jun 2001 03:10:48 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
At 03:18 AM 6/12/2001, Stephen P Luttrell wrote: >I am using Mathematica 4.1 for Windows, and I am trying to get some useful >reults from File | Save As Special | HTML + MathML. The information on >http://www.wolfram.com/news/archive/mathml.html is tantalising, so I have >tried using the W3C's Amaya browser (from http://www.w3.org/Amaya/), but get >poor results for displaying any mathematics that was in the original >Mathematica notebook (Amaya parsing errors, etc). > >Presumably there *is* a way of making use of the output from File | Save As >Special | HTML + MathML. If so, what is it? > >-- >Stephen P Luttrell >DERA Malvern, U.K. There are very few browsers with native support for MathML. Amaya and Mozilla, but they both have their problems. To view MathML in IE or Netscape, you can use an applet or plug-in. You can modify the output to call the applet or plug-in using the "MathMLWrapper" ConversionOption. Here are a couple of examples: Math Viewer (http://www.dessci.com/) Export["ex1.html", Cell[BoxData@SuperscriptBox["2", "2"], "Input"], ConversionOptions -> {"MathOutput" -> "MathML", "MathMLWrapper" -> (StringJoin[ "<applet codebase=\"/webmath/classes\" code=\"webeq.Main\">", "\n", "<param name=\"eq\" value=\"<math>", #, "</math>\">", "\n", "<param name=\"color\" value=\"#ffffff\">", "\n", "<param name=\"parser\" value=\"mathml\">", "\n", "</applet>"] &)}]; techexplorer Hypermedia Browser (http://www-4.ibm.com/software/network/techexplorer/) Export["ex2.html", Cell[BoxData@SuperscriptBox["2", "2"], "Input"], ConversionOptions -> {"MathOutput" -> "MathML", "MathMLWrapper" -> (StringJoin["<embed type=\"text/mathml\" ","width=\"25\" ", "height=\"25\" ","mmldata=\"<math>", #, "</math>\">" &)}]; Note, you may need to tweak the height and width values. -Dale