- From: Neil Soiffer <NeilS@dessci.com>
- Date: Thu, 26 Jan 2012 10:18:12 -0800
- To: Wendell P <wendellp@operamail.com>
- Cc: "www-math@w3.org" <www-math@w3.org>
- Message-ID: <CAESRWkB6AcAJsNwxYdzm+Q4mzQQX=9sMCK+SV5fvqGuVSH79fA@mail.gmail.com>
Several people have already said that the outputs are roughly similar. However, the MathMagic output is wrong for two reasons: 1. msup will automatically reduce the size of the superscript. Adding mathsize="50.0%" will cause a further 50% reduction is size which is almost certainly not desired. FYI: standard reduction of scripts is 71% of the size (reduces the *area* used by the script by 50%). 2. Although widely abused, mathsize, mathvariant, etc., are meant for semantically meaningful changes, not for stylistic changes. CSS is meant to be used for stylistic changes. Additionally, as Paul Topping has noted, the use of named entities is problematic in some contexts such as XHTML because they must be referenced by some DTD (with some exceptions for <, etc). In HTML5 however, there is a large set of known named entities, so using named entities is not a problem there (usually). Neil Soiffer On Tuesday, January 24, 2012, Wendell P wrote: > I used the MathType, Math+Magic, and Formulator equation editors to > render this as MathML: > > $$ \hat G^{(T)} = \frac{1}{T} \sum_{t=m+1}^{T} \pi^t $$ > http://img36.imageshack.us/img36/8418/codecogseqn.png > > Below is the slightly cleaned-up code from each. They seem to represent > quite different ideas of how things should be done. The different > versions render the same in most environments I have tried, so I would > lean toward using the simplest markup, like Formulator. In what > situations would I want to use heavier markup like Math+Magic? > > -------------------------------- > FORMULATOR > <math display='block' xmlns='http://www.w3.org/1998/Math/MathML'> > <mrow> > <msup> > <mover> > <mi>G</mi> > <mo stretchy='true'>ˆ</mo> > </mover> > <mrow> > <mo stretchy='false'>(</mo> > <mi>T</mi> > <mo stretchy='false'>)</mo> > </mrow> > </msup> > <mo>=</mo> > <mfrac> > <mn>1</mn> > <mi>T</mi> > </mfrac> > <mrow> > <munderover> > <mo>∑</mo> > <mrow> > <mi>t</mi> > <mo>=</mo> > <mi>m</mi> > <mo>+</mo> > <mn>1</mn> > </mrow> > <mi>T</mi> > </munderover> > <msup> > <mi>π</mi> > <mi>t</mi> > </msup> > </mrow> > </mrow> > </math> > -------------------------------- > MATHTYPE > <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> > <mrow> > <msup> > <mover accent='true'> > <mi>G</mi> > <mo>^</mo> > </mover> > <mrow> > <mo stretchy='false'>(</mo> > <mi>T</mi> > <mo stretchy='false'>)</mo> > </mrow> > </msup> > <mo>=</mo> > <mfrac> > <mn>1</mn> > <mi>T</mi> > </mfrac> > <mstyle displaystyle='true'> > <munderover> > <mo>∑</mo> > <mrow> > <mi>t</mi> > <mo>=</mo> > <mi>m</mi> > <mo>+</mo> > <mn>1</mn> > </mrow> > <mi>T</mi> > </munderover> > <mrow> > <msup> > <mi>π</mi> > <mi>t</mi> > </msup> > </mrow> > </mstyle> > </mrow> > </math> > > -------------------------------- > MATH+MAGIC > <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> > <semantics> > <mstyle mathcolor="#000000" mathsize="12.0pt"> > <msup> > <mover> > <mi mathvariant="italic">G</mi> > <mo accent="true">^</mo> > </mover> > <mrow> > <mi mathsize="50.0%">(</mi> > <mi mathsize="50.0%" mathvariant="italic">T</mi> > <mi mathsize="50.0%">)</mi> > </mrow> > </msup> > <mo>=</mo> > <mfrac> > <mn>1</mn> > <mi mathvariant="italic">T</mi> > </mfrac> > <mrow> > <munderover> > <mo>∑</mo> > <mrow> > <mi mathsize="50.0%" mathvariant="italic">t</mi> > <mo mathsize="50.0%">=</mo> > <mi mathsize="50.0%" mathvariant="italic">m</mi> > <mo mathsize="50.0%">+</mo> > <mn mathsize="50.0%">1</mn> > </mrow> > <mi mathsize="50.0%" mathvariant="italic">T</mi> > </munderover> > <msup> > <mo mathvariant="italic">π</mo> > <mi mathsize="50.0%" mathvariant="italic">t</mi> > </msup> > </mrow> > </mstyle> > </semantics> > </math> > > -- > http://www.fastmail.fm - Email service worth paying for. Try it for free > > >
Received on Thursday, 26 January 2012 18:18:40 UTC