MathML Meetup – Presentation Elements
- July 20th, 2011
- Posted in MathML . rdc2011
- By rdcHQ
- Write comment
This week in the MathML Track, we’re learning all about Presentation Elements by working with the code, which is the best way to learn how to do it!
Jasper has authored 243 equations which are now viewable in our repository – and powered by MathJax, so they render in any browser. However, if you are using Safari, you will encounter a few encoding errors like the ones below:

These are MathML elements that can be coded in Amaya and recognized by many equation editors, but not currently recognized by every browser. Since our final equations will be used in a web environment, the XML entity should be used:
<!ENTITY InvisibleTimes "⁢" ><!--INVISIBLE TIMES -->
A list of these entities is maintained by the W3C along with visual reference of many of the Unicode characters. It is worth noting that these groupings correspond to to the glyph menus in Inkscape (which is the tool we are using in our SVG Track,), which illustrates how useful and interoperable open source tools can be when they conform to web standards.
At this point, we are more than halfway through the equations (BTW, they validate!), and are now thinking about some visuals that will help our documentation effort, as well as distill some of the dense concepts in the W3C specification. Stay tuned!



Congratulation! Jasper’s page with equations looks great!
Two comments:
1. In several places, you use the incorrect multiplication dot symbol. For example, in the equation that follows the tag , . should be replaced by ·
See this link
http://zvon.org/comp/s/unicode_reference/index.html?searchType=103&id=Mathematical%20Alphanumeric%20Symbols&start=Monospace%20digits#183
. should be only used for the decimal dot.
2. The equations that involve summation (for example, the equation that follows ) may look better if the parts that give the lower and upper bounds of the summation appear below and above the summation sign (as opposed to being a subscript and a superscript, respectively). To get this, wrap the equation in . Compare the results in the following two links:
http://jeuclid.sourceforge.net/jeuclid-testsuite/svg3/Topics/LargeOp/sum1-full.xhtml
http://jeuclid.sourceforge.net/jeuclid-testsuite/svg3/Topics/LargeOp/sum2-full.xhtml
MathML-ically yours
The editor ate some of my text…
Two comments:
1. In several places, you use the incorrect multiplication dot symbol. For example, in the equation that follows the tag gov.ca.bsc.2010.01_082_03, . should be replaced by & CenterDot ; (just ignore the extraneous spaces).
See this link
http://zvon.org/comp/s/unicode_reference/index.html?searchType=103&id=Mathematical%20Alphanumeric%20Symbols&start=Monospace%20digits#183
. should be only used for the decimal dot.
2. The equations that involve summation (for example, the equation that follows gov.ca.bsc.2010.02.2_114_01) may look better if the parts that give the lower and upper bounds of the summation appear below and above the summation sign (as opposed to being a subscript and a superscript, respectively). To get this, wrap the equation in an mstyle tag with attribute displaystyle set to true. Compare the results in the following two links:
http://jeuclid.sourceforge.net/jeuclid-testsuite/svg3/Topics/LargeOp/sum1-full.xhtml
http://jeuclid.sourceforge.net/jeuclid-testsuite/svg3/Topics/LargeOp/sum2-full.xhtml
I give up … The editor ate the mo tag around .
Greetings, @txt!
If you surround your equation with the <pre> command, the equation will automagically render!
If you want to display code, you will need to replace the “less than” and “greater than” with &lt; and &gt;, respectively.
<math xmlns="http://www.w3.org/1998/Math/MathML"> <munderover> <mo>∑</mo> <mrow> <mi>i</mi> <mo>=</mo> <mn>0</mn> </mrow> <mi>∞</mi> </munderover> <msub> <mi>x</mi> <mi>i</mi> </msub> </math>Thanks for your interest in our project – would you like to pitch in and write some equations?
“given enough eyeballs, all bugs are shallow”
Sure, why not? Here are a couple.
Page_055_01.jpg
V
bz
=
R
p
P
z
+
R
a
A
z
β
6
3
=
β
2
Automagic shmatomagic no more.
test
Hello @txt
I would need to make you a user on our system in order for you to submit equations (the system is set up to not allow anonymous users to submit code)
If you look at the test comment below, I was able to send markup anonymously, but I had to replace the “less than” and “greater than” with < and > as I explain above. We lose the indentation, but I could put that back in.
And I would be happy to make you a user with privileges just to edit the equations – let me know!
<math xmlns=”http://www.w3.org/1998/Math/MathML”>
<munderover>
<mo>∑</mo>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>0</mn>
</mrow>
<mi>∞</mi>
</munderover>
<msub>
<mi>x</mi>
<mi>i</mi>
</msub>
</math>
<math display=”inline” xmlns=”http://www.w3.org/1998/Math/MathML”>
<mrow>
<mtable columnalign=”left”>
<mtr>
<mtd>
<msub>
<mi>V</mi>
<mi mathvariant=”italic”>ot</mi>
</msub>
</mtd>
<mtd>
<mo>=</mo>
<mfrac>
<mrow>
<msub>
<mi>R</mi>
<mi>p</mi>
</msub>
<msub>
<mi>P</mi>
<mi>z</mi>
</msub>
<mo>+</mo>
<msub>
<mi>R</mi>
<mi>a</mi>
</msub>
<msub>
<mi>A</mi>
<mi>z</mi>
</msub>
</mrow>
<mrow>
<msub>
<mi>E</mi>
<mi>z</mi>
</msub>
</mrow>
</mfrac>
</mtd>
</mtr>
<mtr>
<mtd>
</mtd>
<mtd>
<mo>=</mo>
<mfrac>
<mrow>
<mn>5</mn>
<mo>×</mo>
<mn>100</mn>
<mo>+</mo>
<mn>0.06</mn>
<mo>×</mo>
<mn>2,000</mn>
</mrow>
<mrow>
<mn>1.0</mn>
</mrow>
</mfrac>
</mtd>
</mtr>
<mtr>
<mtd>
</mtd>
<mtd>
<mo>=</mo>
<mn>620</mn>
<mspace width=”0.3em” />
<mtext>cfm</mtext>
</mtd>
</mtr>
</mtable>
</mrow>
</math>
Excellent!
The code above is the equation for Page_057_01.jpg
I need to organize the equations since our last update so it is clear which ones are left to do -
Hi, @txt
I divided the remaining equations into five sets. If you want to keep coding, you can enter the equations in the same manner as you are here (converting the < and >)
It would probably work best to have an equation editor open alongside the listed equations and then copy your markup into the text area below. I will improve the interface as time permits – I was unexpectedly and pleasantly surprised to have a contributor so soon.
The mathml expression I submitted does not display correctly in your post, most likely because in your version the attributes are unnecessarily wrapped twice in double quotation marks. For example, replace
display=””inline””
with
display=”inline”
Do the same for the other attributes and repost the mathml expression. In the correct mathml expression, the three rows would be aligned at the equal sign and there would be a space in the last row before “cfm”.
Converting back and forth from < and > into < and > is not very efficient …
Greetings @txt
I moved your equation into the same sandbox environment that Jasper’s equations are in, and it does indeed align correctly.
So, it appears that MathJax is not playing nice with WordPress – I will look into this in greater detail. I know WP3.2 now has support for LaTeX (although I highly doubt that this affects the editing of equations, which is where we are experiencing difficulty).
I definitely invite and encourage your participation so I want to solve this! Our primary goal is completing the Presentation MathML for our track so building the ultimate editing UI is secondary in that regard … but (as we like to say at #rdcHQ) everything else is “Extra Credit!”
Stay tuned!