<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
      "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>Arun Ram: MathML for math research papers</title>
<style type="text/css">
body {
    counter-reset: section 0 appendix 0;  
    text-align: justify
}

h2.title {
    text-align:center
}
p.author {
    text-align:center
}
li {
    text-indent: 0em;
}
p.indent {
    text-indent: 2em; 
}

h2.section {
    counter-reset: eqn 0 result 0 subsection 0;  
}
h2.section:before {
    content: counter(section) ". ";
    counter-increment: section 1;  /* Add 1 to section */
}
h2.appendix {
    counter-reset: eqn 0 result 0 subappendix 0;  
}
h2.appendix:before {
    content: "Appendix " counter(appendix) ". ";
    counter-increment: appendix 1;  /* Add 1 to appendix */
}
h3.subappendix:before {
    content: "A"counter(appendix) "." counter(subappendix);
    counter-increment: subappendix;  /* Add 1 to subappendix */
}
h3.subsection:before {
    content: counter(section) "." counter(subsection);
    counter-increment: subsection;  /* Add 1 to subsection */
}

div.theorem:before { 
    content: "Theorem " counter(section) "." counter(result) " "; 
    counter-increment: result 1;
    font-style: normal; 
    font-weight: bold; 
}
div.theorem{ font-style:italic }
div.proposition:before { 
    content: "Proposition " counter(section) "." counter(result) " "; 
	counter-increment: result 1;
    font-style: normal; 
    font-weight: bold; 
}
div.proposition{ font-style:italic }
div.lemma:before { 
    content: "Lemma " counter(section) "." counter(result) " "; 
    counter-increment: result;
    font-style: normal; 
    font-weight: bold; 
}
div.lemma{ font-style:italic }

table.dispeq {
   width:100%;
   }
td.eq {
   text-align:center;
     }
td.eqno {
    width: 10px;
    text-align:right;
    }
td.eqno:after { 
     content: "("counter(section)"."counter(eqn)")";
     counter-increment: eqn;
     font-style: normal; 
  }
</style>
</head>

<body>
<h2 class="title">MathML for mathematics research articles</h2>
<p class="author">
Arun Ram <br />
Department of Mathematics <br />
University of Wisconsin, Madison <br />
Madison, WI 53706 USA 
</p>

<p> Last updates: 3 June 2007</p>

<h2 class="section">Introduction</h2>

<p class="indent">
Given the ubiquity with which the internet has taken over our lives
and the extent to which society is using web pages written in HTML it 
is, perhaps, a bit surprising that research mathematicians still use TeX
to distribute their results.  Current web browsers and authoring tools
are much more friendly towards formatting, graphics, animation, colors 
and cross referencing. The possibilities are endless, and it is a pity
that we don't currently have them available in our standard mathematics
presentations.  For example,
<ul>
<li> color,</li>
<li> animated graphics,</li>
<li> proofs that appear only when you want (click on) them,</li>
<li> point and click jumping to references and previous equations,</li>
</ul>
are only a few of the possible tools that mathematicians might like.
Perhaps it is time that we, as a community, make the switch and stop using 
TeX in favor of web markup.  
</p>

<p class="indent">
In fact, some TeX addons 
(<a href="http://arxiv.org/hypertex/">HyperTeX</a>, 
<a href="http://en.wikipedia.org/wiki/Beamer_(LaTeX)">Beamer</a>), 
attempt to incorporate some weblike features.  
In 1998, MathML version 2 was released by the World Wide Web 
Consortium, the standards organisation for Web markup.
So what is holding up our conversion?
</p>

<p class="indent">
Because mathematicians have hardly noticed the existence of web
markup possibilities for mathematics,
software for MathML has developed extremely slowly.
Only recently have some available <a href="#browsers">browsers</a> 
really started to process MathML with good looking results. 
<ul>
<li> <strong>Mozilla Firefox</strong>
&nbsp; &nbsp; &nbsp; 
<a href="http://www.mozilla.org/products/">http://www.mozilla.org</a>
</li>
<!--
<li>  <strong>Camino</strong>, for Macintosh
&nbsp; &nbsp; &nbsp; 
<a href="http://www.caminobrowser.org/">http://www.caminobrowser.org</a>
</li>
-->
</ul>
What about <a href="#authoring">authoring tools</a>?
A few hours of playing with 
<a href="http://www.adobe.com/products/dreamweaver/">
Dreamweaver</a> shows how easy typing into web pages
can be.  Unfortunately, Dreamweaver doesn't handle MathML. 
But 
<ul>
<li>
<strong>Amaya</strong>
&nbsp; &nbsp; &nbsp; 
<a href="http://www.w3.org/Amaya/">http://www.w3.org/Amaya</a>
</li>
</ul>
does and it is because of Mozilla and Amaya that I think that use of MathML
is a realistic possiblity for research mathematicians.
Though Amaya crashes way too often to give it any more than beta-beta-beta 
status it is on the right track and a good programmer might take this template 
and make it into a wonderful MathML authoring tool in a month or two.  I 
think that the mathematical community will jump to web presentation as 
soon as the rendering and authoring tools become polished.
Greater usage of these tools by 
mathematicians would quickly push the currently available browsers to render 
mathematical markup even better.
</p>

<p class="indent">
This article has two goals:
<ul>
<li>To illustrate that MathML is capable of satisfying the research 
mathematician's typsetting and presentation needs, and</li>
<li>To provide a "getting started" guide for using MathML for writing
mathematics papers.</li>
</ul>
</p>

<p class="indent">
Production of this article was partially supported by
research and teaching intiatives supported by the National Science 
Foundation under Grant No. DMS-0353038.  I thank National Science 
Foundation for continuing support of my research and teaching. 
Any opinions, findings, and conclusions or recommendations expressed in 
this material are those of the author and do not necessarily reflect the 
views of the National Science Foundation.
I thank Rahbar Virk for his help while learning MathML and Amaya.
</p>

<a name="broswers" id="browsers"> </a>
<h2 class="section">Background information</h2>

<p class="indent">
The first and <strong>most important</strong> step is to get a browser that 
can display MathML. I recommend
<a href="http://www.mozilla.org/products/">Mozilla Firefox</a>, or 
<a href="http://www.caminobrowser.org/">Camino</a> if 
you use a Mac.  Download the necessary fonts from <a
href="http://web.mit.edu/is/products/mathml/">MathML at MIT</a> or the
appropriate font installer in the right hand column of the <a
href="http://www.mozilla.org/projects/mathml/fonts/">fonts for MathML enabled
Mozilla</a> (very soon this step will be replaced with the
<a href="http://www.stixfonts.org/">STIX fonts</a>). 
Test your browser with the 
<a href="http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml">MathML
torture test</a>.
Other browser options are:
<ul>
<li> <a href="http://www.w3.org/Amaya/">Amaya</a> </li>
<li> Internet Explorer with the 
<a href="http://www.dessci.com/en/products/mathplayer/">Design 
Science MathPlayer</a> plugin </li>
</ul>
<a href="http://www.opera.com/">Opera</a>  does not 
<a href="http://www.opera.com/docs/specs/">advertise</a> any support of MathML.
</p>

<p class="indent">
MathML is an add-on to HTML, the base language for 
writing webpages.  All the basic formatting is done with HTML 
(titles, paragraphs, links,... ) and so only  
the formatting of mathematical formulas needs to be 
done with MathML commands.  The result is that
MathML has fewer commands than TeX.  
It is not necessary to learn HTML and MathML separately.  
After reading this article, start by modifying the template for an article at
<a href="http://www.math.wisc.edu/~ram/MathGlossary/template.xml">
http://www.math.wisc.edu/~ram/MathGlossary/template.xml</a> 
(also see Appendix 2).  If there is something you want to typeset
which is not found in the template then look at the following useful pages, 
full of examples:
<ul>
<li> Notes by Arun Ram in MathML
&nbsp; &nbsp;
<a href="http://www.math.wisc.edu/~ram/MathGlossary">
http://www.math.wisc.edu/~ram/MathGlossary</a>
</li>
<li>
Mozilla MathML Demos page 
&nbsp; &nbsp;
<a href="http://www.mozilla.org/projects/mathml/demo/">
http://www.mozilla.org/projects/mathml/demo/</a>
</li>
<li>
The W3C MathML test suite 
&nbsp; &nbsp;
<a href="http://www.w3.org/Math/testsuite/">
http://www.w3.org/Math/testsuite/</a>,
</li>
</ul>
</p>

<p class="indent">
MathML comes in two flavours: <em>presentation markup</em>
and <em>content markup</em>.  At the moment, most browsers
do not render content markup 
(see <a href="http://www.mozilla.org/projects/mathml/authoring.html">
MathML for Mozilla</a> and <a href="http://www.w3.org/Amaya/Amaya.html"> Amaya
overview</a>).
It seems that presentation markup is sufficient for mathematical typesetting
needs and this article treats only presentation markup.
</p>

<p class="indent">
Style sheets for formatting are standard in TeX (e.g. amssym).  The
analogue for HTML is CSS (Cascading Style Sheets). There is no 
need to learn CSS separately, the necessary commands to get started
are in the header of the template for a MathML typeset research article at
<a href="http://www.math.wisc.edu/~ram/MathGlossary/template.xml">
http://www.math.wisc.edu/~ram/MathGlossary/template.xml</a>. 
Appendix 1 contains a list of the most useful HTML commands and (all) 
MathML commands.  The authoritative sources for commands and syntax
are the W3C (World Wide Web Consortium) recommendations:
<ul>
<li> HTML (Hypertext Markup Language)
<a href="http://www.w3.org/TR/html401/#minitoc">
http://www.w3.org/TR/html401/</a>
</li>
<li> CSS (Cascading Style Sheets) 
<a href="http://www.w3.org/TR/CSS21/cover.html#minitoc">
http://www.w3.org/TR/CSS21/</a>
</li>
<li> XHTML (Extensible hypertext markup language) 
<a href="http://www.w3.org/TR/xhtml1/">http://www.w3.org/TR/xhtml1/</a></li>
<li> XML (Extensible markup language) 
<a href="http://www.w3.org/TR/xml/">http://www.w3.org/TR/xml/</a>
</li>
<li> XSL (Extensible stylesheet language) 
<a href="http://www.w3.org/TR/xsl/">http://www.w3.org/TR/xsl/</a>
</li>
<li> MathML (Mathematics markup language) 
<a href="http://www.w3.org/TR/MathML2/chapter3.html">
http://www.w3.org/TR/MathML2/</a>
</li>
<li> SVG (Scalable vector graphics) 
<a href="http://www.w3.org/TR/SVG/index.html#minitoc">
http://www.w3.org/TR/SVG/</a>
</li>
</ul>
I have found the W3C specifications more useful than books from the library
or the bookstore.  If you do go read the MathML specification, read 
Chapter 3 first.
</p>


<h2 class="section"> Formatting an article with HTML and MathML </h2>

<p class="indent">
The following gives some basics for creating pages with HTML and MathML.
The code for most of the examples in this article is included in the
template article at
<a href="http://www.math.wisc.edu/~ram/MathGlossary/template.xml">
http://www.math.wisc.edu/~ram/MathGlossary/template.xml</a>.
If you are viewing this article on the web use 
<strong>View Source</strong> in the <strong>View</strong> menu 
of your browser to see the code or download this page 
and edit it in your favourite editor.</p>

<p class="indent">
Though MathML is simpler to learn than TeX, it has one great annoyance 
(which is, very likely, the reason it 
hasn't caught on more quickly): <em>nearly every </em> printing character 
is supposed to put inside <code>&lt;mi&gt;&nbsp;&lt;/mi&gt;</code>
or <code>&lt;mo&gt;&nbsp;&lt;/mo&gt;</code>
or <code>&lt;mn&gt;&nbsp;&lt;/mn&gt;</code> 
(for "math identifier", "math operator" and "math number").  
This means that the equation
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msup><mi>x</mi><mn>2</mn></msup>
<mo>+</mo>
<msup><mi>y</mi><mn>2</mn></msup>
<mo>=</mo><mn>1</mn>
</math> is typeset with the code 
<code><pre>&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;msup&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;
&lt;mo&gt;+&lt;/mo&gt;
&lt;msup&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;
&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;
&lt;/math&gt;
</pre></code>  The consequence is that it is tedious to type in 
MathML by hand and some software that helps is desirable.
I recommend use of Amaya but, as you use it, keep in mind that
it is still in beta-version (see the suggestions for using Amaya below).
Hopefully, Amaya will be improved quickly.
</p>

 
<h3 class="subsection"> Features from HTML and CSS </h3>


<ul>
<li>For <em>displayed equations</em> the simplest option is to use 
<code>&lt;blockquote&gt; put equation here 
&lt;/blockquote&gt;</code>. Alternatively, the header in 
the template article at 
<a href="http://www.math.wisc.edu/~ram/MathGlossary/template.xml">
http://www.math.wisc.edu/~ram/MathGlossary/template.xml</a>
(see also Appendix 2) includes the CSS lines 
<code><pre>table.dispeq{ width:100%; } 
td.eq{ text-align:center } 
td.eqno.after { content: "("counter(section)"."counter(eqn)")";
     counter-increment: eqn;
     font-style: normal; } </pre> </code>
With these header lines displayed equations are inserted with
<code><pre>&lt;table class="dispeq"&gt; &lt;a name="eqname"&gt;&lt;/a&gt; 
&lt;tr&gt;
&lt;td class="eq"&gt;  Insert equation here  &lt;/td&gt;
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</pre></code>
where the line <code>&lt;td class="eqno"&gt;&lt;/td&gt;</code> is 
needed only for a numbered equation and the
<code>&lt;a name="eqname"&gt;&lt;/a&gt;</code> 
is only needed to refer back to this equation later in the text.
</li>
<li> <p>The header material in the template article at 
<a href="http://www.math.wisc.edu/~ram/MathGlossary/template.xml">
http://www.math.wisc.edu/~ram/MathGlossary/template.xml</a>
(see also Appendix 2) includes CSS command
(inside the <code>&lt;style&gt; ... &lt;/style&gt;</code> tags) which provide
<em>formatting and automatic numbering for title, author, sections, subsections,
equation numbers, theorems, propositions and lemmas</em>.  With these lines in 
the header, the title and author are put in with 
<code><pre>&lt;h2 class="title"&gt;My title&lt;/h2&gt;

&lt;p class="author"&gt;
My Name &lt;br /&gt;
Department of My Stuff &lt;br /&gt;
University of My Place &lt;br /&gt;
City, ST 99999 SUE 
&lt;/p&gt;
</pre></code>
the section and subsection headers are put in with
<p>
<code>&lt;h2 class="section"&gt;A section&lt;/h2&gt;</code> and
<code>&lt;h3 class="subsection"&gt;A subsection&lt;/h3&gt;</code>
</p>
respectively, and a theorem with a link back to equation (2.1) is coded with
<code><pre>&lt;div class="theorem"&gt;
My theorem with a link back to equation (&lt;a href="#firsteqn"&gt;2.1&lt;/a&gt;).
&lt;/div&gt;
</pre></code> </p> 
</li>
<li> A standard <em>bibliographic entry</em> might look something like
<p>
[BG] A. Braverman and D. Gaitsgory, <em>Crystals via the affine 
Grassmanian</em>, Duke Math. J. <strong>107</strong> no. 3, (2001), 561-575.
</p>
Dressed up a bit, it has links to the authors' web pages, a link to 
the Math Review, a link to the journal, link to the arXiv version, and 
an anchor so that the reader can click on <a href="#[BG]">[BG]</a> 
wherever it happens to be in the text and immediately jump to this 
reference entry.
<p>
<a name="[BG]" id="[BG]">[BG]</a> 
<a href="http://www.math.brown.edu/faculty/braverman.html">
A. Braverman</a> and 
<a href="http://www.math.harvard.edu/~gaitsgde/">D. Gaitsgory</a>, 
<a href="http://projecteuclid.org/DPubS?service=Repository&amp;version=1.0&amp;verb=Disseminate&amp;handle=euclid.dmj/1091737024&amp;view=body&amp;content-type=pdf_1#" title="View PDF">
<em>Crystals via the affine 
Grassmanian</em></a>, 
<a href="http://www.dukeupress.edu/dmj/">Duke Math. J.</a> 
<a href="http://projecteuclid.org/DPubS?service=UI&amp;version=1.0&amp;verb=Display&amp;page=toc&amp;handle=euclid.dmj/1091737018"><strong>107</strong> no. 3,</a> (2001), 
561-575;  
<a href="http://arxiv.org/abs/math.AG/9909077v2?front">
arXiv:math/9909077v2</a>, 
<a href="http://www.ams.org/mathscinet-getitem?mr=1828302">MR1828302 (2002e:20083)</a>
</p>
</li>
<li><p>Because most web pages are continuous media, not paged media, 
the conventions for <em>footnotes</em> and <em>acknowledgments</em> 
may differ.  A reasonable convention would be to place 
acknowledgments at the end of the introduction.  Footnotes at the end 
of the document with anchors will have easy point and click link access.
For information on including specific formatting rules for the printed
version see 
<a href="http://www.w3.org/TR/CSS21/media.html">Section 7</a> of the 
CSS Specification.  Page breaks are discussed in 
<a href="http://www.w3.org/TR/CSS21/page.html"> Section 13</a>.
</p>
</li>
<li> A <em>link</em> to the 
<a href="http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml">
Mozilla MathML torture test</a> is coded with
<code>
<pre> &lt;a href="http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml"&gt;
Mozilla MathML torture test&lt;/a&gt;. 
</pre>
</code> 
</li>
<li> The <em>graphic</em> in the line
<table class="dispeq"> <a name="graphic" id="graphic"></a>
<tr> <td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>span</mi>
  <mo>{</mo>
  <msub>
    <mi>v</mi>
    <mn>1</mn>
  </msub>
  <mo>,</mo>
  <mi>&hellip;</mi>
  <mo>,</mo>
  <msub>
    <mi>v</mi>
    <mi>k</mi>
  </msub>
  <mo>}</mo>
  <mover>
    <mo>&map;</mo>
    <mi>&mu;</mi>
  </mover>
  <mi title="convex hull">Conv</mi>
  <mo>(</mo>
  <msup>
    <mi>&lambda;</mi>
    <mrow>
      <mo>(</mo>
      <mn>1</mn>
      <mo>)</mo>
    </mrow>
  </msup>
  <mo>,</mo>
  <mi>&hellip;</mi>
  <mo>,</mo>
  <msup>
    <mi>&lambda;</mi>
    <mrow>
      <mo>(</mo>
      <mi>k</mi>
      <mo>)</mo>
    </mrow>
  </msup>
  <mo>)</mo>
  <mo>=</mo>
  <mi>&emsp;</mi>
<img xmlns="http://www.w3.org/1999/xhtml" align="middle" alt="convex hull" src="convexhull.png" />
</math>
</td> 
<td class="eqno"></td>
</tr> </table>
is coded with
<code><pre>&lt;img xmlns="http://www.w3.org/1999/xhtml" 
align="middle" alt="convex hull" src="convexhull.png" /&gt;
</pre></code> 
<p>
Nearly any graphic you make with your favourite picture drawing program 
can be included in this fashion (in this example, the <code>.png</code> 
file containing the graphic was made with the picture drawing program 
<a href="http://www.adobe.com/products/creativesuite/">Fireworks</a>).  
</p>
</li>
<li>In the example in (3.1), the 'Conv' is coded with <code>
&lt;mi title="convex hull"&gt;Conv&lt;/mi&gt;</code> which has the effect
that a tootip containing the words "convex hull" appears on mouse over.
</li>
</ul>

<h3 class="subsection"> MathML Features</h3>

<p class="indent">
There are plenty of math symbols available in MathML.</p>
<p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mo>&mid;</mo>
<mo>&Vert;</mo>
<mo>&dagger;</mo>
<mo>&Dagger;</mo>
<mo>&plankv;</mo>
<mo>&mho;</mo>
<mo>&aleph;</mo>
<mo>&larr;</mo>
<mo>&uarr;</mo>
<mo>&darr;</mo>
<mo>&rarr;</mo>
<mo>&harr;</mo>
<mo>&varr;</mo>
<mo>&lArr;</mo>
<mo>&uArr;</mo>
<mo>&dArr;</mo>
<mo>&rArr;</mo>
<mo>&hArr;</mo>
<mo>&vArr;</mo>
<mo>&nwarr;</mo>
<mo>&nearr;</mo>
<mo>&swarr;</mo>
<mo>&searr;</mo>
<mo>&map;</mo>
<mo>&mapstoleft;</mo>
<mo>&mapstoup;</mo>
<mo>&mapstodown;</mo>
<mo>&larrhk;</mo>
<mo>&rarrhk;</mo>
<mo>&rlarr;</mo>
<mo>&lrarr;</mo>
<mo>&udarr;</mo>
<mo>&duarr;</mo>
<mo>&larrb;</mo>
<mo>&rarrb;</mo>
<mo>&forall;</mo>
<mo>&part;</mo>
<mo>&exist;</mo>
<mo>&nexist;</mo>
<mo>&isin;</mo>
<mo>&notin;</mo>
<mo>&ni;</mo>
<mo>&notni;</mo>
<mo>&prod;</mo>
<mo>&coprod;</mo>
<mo>&sum;</mo>
<mo>&pm;</mo>
<mo>&mp;</mo>
<mo>&prop;</mo>
<mo>&infin;</mo>
<mo>&wedge;</mo>
<mo>&vee;</mo>
<mo>&cup;</mo>
<mo>&cap;</mo>
<mo>&int;</mo>
<mo>&Int;</mo>
<mo>&oint;</mo>
<mo>&therefore;</mo>
<mo>&Tilde;</mo>
<mo>&wr;</mo>
<mo>&sime;</mo>
<mo>&nsime;</mo>
<mo>&cong;</mo>
<mo>&ncong;</mo>
<mo>&approx;</mo>
<mo>&napprox;</mo>
<mo>&asymp;</mo>
<mo>&napprox;</mo>
<mo>&ne;</mo>
<mo>&equiv;</mo>
<mo>&lt;</mo>
<mo>&gt;</mo>
<mo>&le;</mo>
<mo>&ge;</mo>
<mo>&Lt;</mo>
<mo>&Gt;</mo>
<mo>&nlt;</mo>
<mo>&ngt;</mo>
<mo>&nles;</mo>
<mo>&nges;</mo>
<mo>&pr;</mo>
<mo>&sc;</mo>
<mo>&prcue;</mo>
<mo>&sccue;</mo>
<mo>&sub;</mo>
<mo>&sup;</mo>
<mo>&nsub;</mo>
<mo>&nsup;</mo>
<mo>&sube;</mo>
<mo>&supe;</mo>
<mo>&nsube;</mo>
<mo>&nsupe;</mo>
<mo>&subne;</mo>
<mo>&supne;</mo>
<mo>&uplus;</mo>
<mo>&sqsub;</mo>
<mo>&sqsup;</mo>
<mo>&sqsube;</mo>
<mo>&sqsupe;</mo>
<mo>&sqcup;</mo>
<mo>&sqcap;</mo>
<mo>&oplus;</mo>
<mo>&ominus;</mo>
<mo>&times;</mo>
<mo>&otimes;</mo>
<mo>&vdash;</mo>
<mo>&dashv;</mo>
<mo>&top;</mo>
<mo>&perp;</mo>
<mo>&vDash;</mo>
<mo>&vltri;</mo>
<mo>&vrtri;</mo>
<mo>&ltrie;</mo>
<mo>&rtrie;</mo>
<mo>&diam;</mo>
<mo>&sdot;</mo>
<mo>&star;</mo>
<mo>&bowtie;</mo>
<mo>&ltimes;</mo>
<mo>&rtimes;</mo>
<mo>&hellip;</mo>
<mo>&vellip;</mo>
<mo>&ctdot;</mo>
<mo>&utdot;</mo>
<mo>&dtdot;</mo>
<mo>&lceil;</mo>
    <msup><mi>C</mi><mi>&prime;</mi></msup>
<mo>&rceil;</mo>
<mo>&sube;</mo>
<mo>&lfloor;</mo>
   <msup><mi>C</mi>
         <mrow><mi>&prime;</mi><mi>&prime;</mi></mrow>
   </msup>
<mo>&rfloor;</mo>
<mo>&lang;</mo>
<mo>&rang;</mo>
<mo>&flat;</mo>
<mo>&natural;</mo>
<mo>&sharp;</mo>
<mo>&spades;</mo>
<mo>&clubs;</mo>
</math>
</p>

<p>The Mozilla 
<a href="http://www.mozilla.org/projects/mathml/fonts/chars/table.html">
MathML character table</a> is extremely helpful, both for finding available
characters and for determining character names.  The following links will 
help for navigating these tables:
<blockquote>
<a href="http://www.mozilla.org/projects/mathml/fonts/chars/table00xx.html">
Logic</a> 
&nbsp; &nbsp;
<a href="http://www.mozilla.org/projects/mathml/fonts/chars/table21xx.html">
Arrows</a> 
&nbsp; &nbsp;
<a href="http://www.mozilla.org/projects/mathml/fonts/chars/table22xx.html">
Operators and Relations</a> 
</blockquote>
</p>

<ul>
<li> <em>Greek</em> letters are coded with <code>&amp;alpha; &nbsp;
&amp;beta; &nbsp; ... &nbsp; &amp;Phi; &nbsp; &amp;nabla;</code>,
<p><math xmlns="http://www.w3.org/1998/Math/MathML">  
   <mi>&Gamma;</mi> <mi>&Lambda;</mi> <mi>&Sigma;</mi> <mi>&Psi;</mi>
   <mi>&Delta;</mi> <mi>&Xi;</mi> <mi>&Upsi;</mi> <mi>&Omega;</mi>
   <mi>&Theta;</mi> <mi>&Pi;</mi> <mi>&Phi;</mi> <mi>&nabla;</mi>
<mi>&nbsp;</mi>
  <mi>&alpha;</mi> <mi>&beta;</mi> <mi>&gamma;</mi> <mi>&delta;</mi>
  <mi>&epsi;</mi> <mi>&epsiv;</mi> <mi>&isin;</mi> <mi>&zeta;</mi>
  <mi>&eta;</mi> <mi>&theta;</mi> <mi>&thetav;</mi> <mi>&iota;</mi>
  <mi>&kappa;</mi> <mi>&lambda;</mi> <mi>&mu;</mi> <mi>&nu;</mi>
  <mi>&xi;</mi> <mi>o</mi> <mi>&pi;</mi> <mi>&piv;</mi> <mi>&rho;</mi>
  <mi>&rhov;</mi> <mi>&sigma;</mi> <mi>&sigmav;</mi> <mi>&tau;</mi>
  <mi>&upsi;</mi> <mi>&phi;</mi> <mi>&phiv;</mi> <mi>&chi;</mi>
  <mi>&psi;</mi> <mi>&omega;</mi>
</math> 
</p>
</li>
<li> <em>blackboard bold</em> characters with 
<code>&amp;Aopf;&nbsp;
&amp;Bopf;&nbsp; ... &nbsp; &amp;yopf; &nbsp; &amp;zopf;</code>,
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>&Aopf;</mi> <mi>&Bopf;</mi> <mi>&Copf;</mi> <mi>&Dopf;</mi>
  <mi>&Eopf;</mi> <mi>&Fopf;</mi> <mi>&Gopf;</mi> <mi>&Hopf;</mi>
  <mi>&Iopf;</mi> <mi>&Jopf;</mi> <mi>&Kopf;</mi> <mi>&Lopf;</mi>
  <mi>&Mopf;</mi> <mi>&Nopf;</mi> <mi>&Oopf;</mi> <mi>&Popf;</mi>
  <mi>&Qopf;</mi> <mi>&Ropf;</mi> <mi>&Sopf;</mi> <mi>&Topf;</mi>
  <mi>&Uopf;</mi> <mi>&Vopf;</mi> <mi>&Wopf;</mi> <mi>&Xopf;</mi>
  <mi>&Yopf;</mi> <mi>&Zopf;</mi>
<mi>&nbsp;</mi>
  <mi>&aopf;</mi> <mi>&bopf;</mi> <mi>&copf;</mi> <mi>&dopf;</mi>
  <mi>&eopf;</mi> <mi>&fopf;</mi> <mi>&gopf;</mi> <mi>&hopf;</mi>
  <mi>&iopf;</mi> <mi>&jopf;</mi> <mi>&kopf;</mi> <mi>&lopf;</mi>
  <mi>&mopf;</mi> <mi>&nopf;</mi> <mi>&oopf;</mi> <mi>&popf;</mi>
  <mi>&qopf;</mi> <mi>&ropf;</mi> <mi>&sopf;</mi> <mi>&topf;</mi>
  <mi>&uopf;</mi> <mi>&vopf;</mi> <mi>&wopf;</mi> <mi>&xopf;</mi>
  <mi>&yopf;</mi> <mi>&zopf;</mi>
</math></p>
</li>
<li>
<em>calligraphic</em> characters with <code>&amp;Ascr;&nbsp;
&amp;Bscr;&nbsp; ... &nbsp; &amp;yscr; &nbsp; &amp;zscr;</code>,
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>&Ascr;</mi> <mi>&Bscr;</mi> <mi>&Cscr;</mi> <mi>&Dscr;</mi>
  <mi>&Escr;</mi> <mi>&Fscr;</mi> <mi>&Gscr;</mi> <mi>&Hscr;</mi>
  <mi>&Iscr;</mi> <mi>&Jscr;</mi> <mi>&Kscr;</mi> <mi>&Lscr;</mi>
  <mi>&Mscr;</mi> <mi>&Nscr;</mi> <mi>&Oscr;</mi> <mi>&Pscr;</mi>
  <mi>&Qscr;</mi> <mi>&Rscr;</mi> <mi>&Sscr;</mi> <mi>&Tscr;</mi>
  <mi>&Uscr;</mi> <mi>&Vscr;</mi> <mi>&Wscr;</mi> <mi>&Xscr;</mi>
  <mi>&Yscr;</mi> <mi>&Zscr;</mi>
</math><br />

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>&ascr;</mi> <mi>&bscr;</mi> <mi>&cscr;</mi> <mi>&dscr;</mi>
  <mi>&escr;</mi> <mi>&fscr;</mi> <mi>&gscr;</mi> <mi>&hscr;</mi> 
  <mi>&iscr;</mi> <mi>&jscr;</mi> <mi>&kscr;</mi> <mi>&lscr;</mi>
  <mi>&mscr;</mi> <mi>&nscr;</mi> <mi>&oscr;</mi> <mi>&pscr;</mi>
  <mi>&qscr;</mi> <mi>&rscr;</mi> <mi>&sscr;</mi> <mi>&tscr;</mi>
  <mi>&uscr;</mi> <mi>&vscr;</mi> <mi>&wscr;</mi> <mi>&xscr;</mi>
  <mi>&yscr;</mi> <mi>&zscr;</mi>
</math></p>
</li>
<li>
<em>fraktur</em> characters with <code>&amp;Afr;&nbsp;
&amp;Bfr;&nbsp; ... &nbsp; &amp;yfr; &nbsp; &amp;zfr;</code>, and
</li>
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>&Afr;</mi> <mi>&Bfr;</mi> <mi>&Cfr;</mi> <mi>&Dfr;</mi>
  <mi>&Efr;</mi> <mi>&Ffr;</mi> <mi>&Gfr;</mi> <mi>&Hfr;</mi>
  <mi>&Ifr;</mi> <mi>&Jfr;</mi> <mi>&Kfr;</mi> <mi>&Lfr;</mi>
  <mi>&Mfr;</mi> <mi>&Nfr;</mi> <mi>&Ofr;</mi> <mi>&Pfr;</mi>
  <mi>&Qfr;</mi> <mi>&Rfr;</mi> <mi>&Sfr;</mi> <mi>&Tfr;</mi>
  <mi>&Ufr;</mi> <mi>&Vfr;</mi> <mi>&Wfr;</mi> <mi>&Xfr;</mi>
  <mi>&Yfr;</mi> <mi>&Zfr;</mi>
<mi>&nbsp;</mi>
  <mi>&afr;</mi> <mi>&bfr;</mi> <mi>&cfr;</mi> <mi>&dfr;</mi>
  <mi>&efr;</mi> <mi>&ffr;</mi> <mi>&gfr;</mi> <mi>&hfr;</mi>
  <mi>&ifr;</mi> <mi>&jfr;</mi> <mi>&kfr;</mi> <mi>&lfr;</mi>
  <mi>&mfr;</mi> <mi>&nfr;</mi> <mi>&ofr;</mi> <mi>&pfr;</mi>
  <mi>&qfr;</mi> <mi>&rfr;</mi> <mi>&sfr;</mi> <mi>&tfr;</mi>
  <mi>&ufr;</mi> <mi>&vfr;</mi> <mi>&wfr;</mi> <mi>&xfr;</mi>
  <mi>&yfr;</mi> <mi>&zfr;</mi>
</math></p>
<li>
<em>cyrllic</em> characters with <code>&amp;Acy;&nbsp;
&amp;Bcy;&nbsp; ... &nbsp; &amp;ycy; &nbsp; &amp;dzcy;</code>.
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>&IOcy;</mi> <mi>&DJcy;</mi> <mi>&GJcy;</mi> <mi>&Jukcy;</mi>
  <mi>&DScy;</mi> <mi>&Iukcy;</mi> <mi>&YIcy;</mi> <mi>&Jsercy;</mi>
  <mi>&LJcy;</mi> <mi>&NJcy;</mi> <mi>&TSHcy;</mi> <mi>&KJcy;</mi>
  <mi>&Ubrcy;</mi> <mi>&DZcy;</mi> <mi>&Acy;</mi> <mi>&Bcy;</mi>
  <mi>&Vcy;</mi> <mi>&Gcy;</mi> <mi>&Dcy;</mi> <mi>&IEcy;</mi>
  <mi>&ZHcy;</mi> <mi>&Zcy;</mi> <mi>&Icy;</mi> <mi>&Jcy;</mi>
  <mi>&Kcy;</mi> <mi>&Lcy;</mi> <mi>&Mcy;</mi> <mi>&Ncy;</mi>
  <mi>&Ocy;</mi> <mi>&Pcy;</mi> <mi>&Rcy;</mi> <mi>&Scy;</mi>
  <mi>&Tcy;</mi> <mi>&Ucy;</mi> <mi>&Fcy;</mi> <mi>&KHcy;</mi>
  <mi>&TScy;</mi> <mi>&CHcy;</mi> <mi>&SHcy;</mi> <mi>&SHCHcy;</mi>
  <mi>&HARDcy;</mi> <mi>&Ycy;</mi> <mi>&SOFTcy;</mi> <mi>&Ecy;</mi>
  <mi>&YUcy;</mi> <mi>&YAcy;</mi> </math> <br />

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>&acy;</mi> <mi>&bcy;</mi> <mi>&vcy;</mi> <mi>&gcy;</mi>
  <mi>&dcy;</mi> <mi>&iecy;</mi> <mi>&zhcy;</mi> <mi>&zcy;</mi>
  <mi>&icy;</mi> <mi>&jcy;</mi> <mi>&kcy;</mi> <mi>&lcy;</mi>
  <mi>&mcy;</mi> <mi>&ncy;</mi> <mi>&ocy;</mi> <mi>&pcy;</mi>
  <mi>&rcy;</mi> <mi>&scy;</mi> <mi>&tcy;</mi> <mi>&ucy;</mi>
  <mi>&fcy;</mi> <mi>&khcy;</mi> <mi>&tscy;</mi> <mi>&chcy;</mi>
  <mi>&shcy;</mi> <mi>&shchcy;</mi> <mi>&hardcy;</mi> <mi>&ycy;</mi>
  <mi>&softcy;</mi> <mi>&ecy;</mi> <mi>&yucy;</mi> <mi>&yacy;</mi>
  <mi>&iocy;</mi> <mi>&djcy;</mi> <mi>&gjcy;</mi> <mi>&jukcy;</mi>
  <mi>&dscy;</mi> <mi>&iukcy;</mi> <mi>&yicy;</mi> <mi>&jsercy;</mi>
  <mi>&ljcy;</mi> <mi>&njcy;</mi> <mi>&tshcy;</mi> <mi>&gjcy;</mi>
  <mi>&kjcy;</mi> <mi>&ubrcy;</mi> <mi>&dzcy;</mi>
 </math></p>
</li>
</ul>

<p>Math formulas and notation are typeset inside <br /> 
<code> &lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;</code>
 math stuff here <code>&lt;/math&gt;</code>. <br />  
This is analogous to &dollar; in TeX.
</p>

<ul>
<li> For <em>superscripts</em> use <code>&lt;msup&gt;</code> 
and for <em>subscripts</em> use <code>&lt;msub&gt;</code>.
For <em>multisubscripts and superscripts and prescripts</em> use
<code>&lt;mmultiscripts&gt;</code>. 
<table class="dispeq">
<tr>
<td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
    <msub> <mi>b</mi><mi>n</mi></msub><mo>,</mo>
    <mspace width="2em"/>
    <msup> <mi>x</mi><mn>2</mn></msup><mo>,</mo>
    <mspace width="2em"/>
      <mmultiscripts> 
        <mi> R </mi> 
        <mi> i </mi> 
        <none/> 
        <none/> 
        <mi> j </mi> 
        <mi> k </mi> 
        <none/> 
        <mi> l </mi> 
        <none/> 
      </mmultiscripts><mi>&thinsp;</mi> <mo>,</mo>
<mspace width="2em"/>
<mtext>and</mtext>
<mspace width="2em"/>
      <mmultiscripts> 
        <mi> R </mi> 
        <mi> i </mi> 
        <none/> 
        <none/> 
        <mi> j </mi> 
        <mi> k </mi> 
        <none/> 
        <mi> l </mi> 
        <none/> 
  <mprescripts/>
        <mi> &ell; </mi> 
        <none/> 
        <none/> 
        <mi> m </mi> 
        <mi> n </mi> 
        <none/> 
        <mi> p </mi> 
        <none/> 
      </mmultiscripts> 
      <mo>.</mo>
</math>
</td>
<td class="eqno"></td>
</tr>
</table>
</li>
<li> 
<em>Sums (<code>&amp;sum;</code>), products (<code>&amp;prod;</code>), 
integrals (<code>&amp;int;</code>) and other similar "large" operators</em>
should resize appropriately if they are entered in the format 
<code>&lt;mo&gt;&amp;sum;&lt;/mo&gt;</code>.
Similarly, 
<em>parentheses, braces and brackets</em> should resize appropriately
if they are entered as 
<code>&lt;mo&gt;(&lt;/mo&gt; ... &lt;mo&gt;)&lt;/mo&gt;</code>. 
<table class="dispeq">
<a name="sumsprods" id="sumsprods"></a>
<tr>
<td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>G</mi>
  <mo>=</mo>
  <munder>
    <mstyle scriptlevel="-1"><mo>&sqcup;</mo></mstyle>
    <mrow>
      <mi>w</mi>
      <mo>&isin;</mo>
      <mover>
        <mi>W</mi>
        <mi>&Tilde;</mi>
      </mover>
    </mrow>
  </munder>
  <mi>I</mi>
  <mi>w</mi>
  <mi>I</mi>
  <mo>,</mo>
  <mspace width="2em"/>
<mstyle displaystyle="true" scriptlevel="-1">
<mo>(</mo>
  <munderover accent="false" accentunder="true">
     <mo>&sum;</mo>
     <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow>
     <mi>&infin;</mi>
 </munderover>
   <mo>&langle;</mo>
   <mfrac><mi>m</mi><mi>n</mi></mfrac>
   <mo>&rangle;</mo>
<mo>)</mo>
</mstyle>
<mspace width="2em"/>
<mstyle scriptlevel="-1">
<mo>&langle;</mo>
  <munderover accent="true" accentunder="false">
     <mo>&prod;</mo>
     <mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow>
     <mi>&infin;</mi>
 </munderover>
   <mo>{</mo>
   <mfrac><mi>m</mi><mi>n</mi></mfrac>
   <mo>}</mo>
<mo>&rangle;</mo>
</mstyle>
<mspace width="2em"/>
<mstyle displaystyle="true">
<mo>{</mo>
  <msubsup>
    <mo>&int;</mo>
    <mrow><mi>–</mi><mi>&infin;</mi></mrow>
    <mi>G</mi>
  </msubsup>
   <mo>(</mo>
   <mfrac><mi>m</mi><mi>n</mi></mfrac>
   <mo>)</mo>
<mo>}</mo>
</mstyle>
</math>
</td>
<td class="eqno"></td>
</tr> </table>
<p>
If parentheses don't automatically size correctly enclose
the content inside <code>&lt;mrow&gt; ... &lt;/mrow&gt;</code>. 
Parentheses are not required to be paired so a &quot;cases&quot;
is easily accomplished with no extra effort.
</p>
<table class="dispeq"> <a name="cases" id="cases"></a>
<tr>
<td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msub> <mi>T</mi><mi>w</mi></msub>
<msub> <mi>T</mi><mrow><msub><mi>s</mi><mi>i</mi></msub></mrow></msub>
<mo>=</mo>
<mrow> <mo>{</mo>
<mtable>
<mtr> <mtd> <msub> <mi>T</mi>
<mrow> 
  <mi>w</mi><msub><mi>s</mi><mi>i</mi></msub>
</mrow>
</msub>,
</mtd>
<mtd columnalign="left">
<mtext> if </mtext>
<mspace width="0.5em"/> 
<mi>w</mi> <msub><mi>s</mi><mi>i</mi></msub>
<mo>&gt;</mo><mi>w</mi>,
</mtd>
</mtr>
<mtr>
<mtd> <mn>0</mn>, </mtd>
<mtd columnalign="left"> <mtext>otherwise.</mtext> </mtd>
</mtr>
</mtable>
</mrow>
</math>
</td>
<td class="eqno"></td>
</tr> </table>
</li>
<li> <em>Overbars, wide tildes, wide hats, vector symbols, overbraces, 
and underbraces</em>
should be done with <code>&lt;mover&gt;</code> and <code>&lt;munder&gt;</code>.
<table class="dispeq"> <a name="accents" id="accents"></a>
<tr><td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
 <mover accent="true">
    <mrow>
      <mi> x </mi>
      <mo> + </mo>
      <mi> y </mi>
      <mo> + </mo>
      <mi> z </mi>
    </mrow>
    <mo> &OverBrace; </mo>
  </mover>
<mi>&thinsp;</mi>
<mo> &div; </mo> 
<mi>&thinsp;</mi>
    <mover> 
          <mi>x</mi> 
          <mo>&Tilde;</mo> 
    </mover> 
<mi>&thinsp;</mi>
<mo> &otimes; </mo> 
<mi>&thinsp;</mi>
   <mover> 
      <mi> x </mi> 
      <mo accent="true"> &Hat; </mo> 
   </mover> 
<mi>&ensp;</mi>
<mo> &ltimes; </mo> 
<mi>&thinsp;</mi>
     <mover> 
        <mi>x</mi> 
        <mo>&OverBar;</mo> 
     </mover> 
<mo> &pm; </mo> 
     <mover> 
        <mi>x</mi> 
        <mo>&dot;</mo> 
     </mover> 
<mi>&thinsp;</mi>
<mo> &compfn; </mo> 
<mi>&thinsp;</mi>
     <mover> 
        <mi>x</mi> 
        <mo>&die;</mo> 
     </mover> 
<mo>&lt;</mo>
     <mover> 
        <mi>x</mi> 
        <mo>&ring;</mo> 
     </mover> 
<mo>&isin;</mo>
      <mover> 
        <mi>x</mi> 
        <mo>&larr;</mo> 
      </mover> 
<mo>&ne;</mo>
      <mover> 
        <mi>x</mi> 
        <mo>&rarr;</mo> 
      </mover> 
<mstyle scriptlevel="+1">
<mo> &wedge; </mo> 
</mstyle>
      <mover> 
        <mi>x</mi> 
        <mo>&harr;</mo> 
      </mover> 
</math>
</td>
<td class="eqno"></td>
</tr></table>
<p> The arrows stretch well in Mozilla and the <code>&amp;Tilde;</code>, 
<code>&amp;OverBar;</code>, <code>&amp;Hat;</code> are also
supposed to stretch, but the only one that does is <code>&amp;Hat;</code>.</p>
<table class="dispeq"> <a name="accents" id="accents"></a>
<tr><td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
   <mover>
     <mi mathvariant="italic">xxx</mi>
     <mo stretchy="true">&Tilde;</mo>
   </mover>
<mi>&thinsp;</mi>
<mover>
<mo>&rarr;</mo>
<mtext>goes to</mtext>
</mover>
<mi>&thinsp;</mi>
<mover>
<mtext>vector</mtext>
<mo>&rarr;</mo>
</mover>
<mspace width="1em"/>
<mtext>and</mtext>
<mspace width="1em"/>
   <mover>
     <mi mathvariant="italic">xxx</mi>
     <mo stretchy="true">&OverBar;</mo>
   </mover>
<mi>&thinsp;</mi>
<mover>
<mo>&rarr;</mo>
<mrow>
   <mphantom><mtext>goes to</mtext></mphantom>
   <mo>&sim;</mo>
   <mphantom><mtext>goes to</mtext></mphantom>
</mrow>
</mover>
<mi>&thinsp;</mi>
   <mover>
     <mi mathvariant="italic">xxxx</mi>
     <mo>&Hat;</mo>
   </mover>
<mover>
<mo>&larr;</mo>
<mrow><mi>&emsp;</mi><mi>&phiv;</mi><mi>&emsp;</mi></mrow>
</mover>
<mrow>
  <mo stretchy='false'>{</mo>
  <munder>
    <mrow>
      <mover>
        <mrow>
          <mpadded width="0"><mphantom>(</mphantom></mpadded> <!-- \mathstrut -ugly hack a la TeX -->
          <mi>a</mi>
          <mo>,</mo>
          <mo>...</mo>
          <mo>,</mo>
          <mi>a</mi>
        </mrow>
        <mover>
          <mo>&OverBrace;</mo>
          <mrow>
            <mi>k</mi>
            <mtext>&nbsp;</mtext>
            <mi>a</mi>
            <mtext>&rsquo;s</mtext>
          </mrow>
        </mover>
      </mover>
      <mo>,</mo>
      <mover>
        <mrow>
          <mpadded width="0"><mphantom>(</mphantom></mpadded> <!-- \mathstrut -ugly hack a la TeX -->
          <mi>b</mi>
          <mo>,</mo>
          <mo>...</mo>
          <mo>,</mo>
          <mi>b</mi>
        </mrow>
        <mover>
          <mo>&OverBrace;</mo>
          <mrow>
            <mi>&ell;</mi>
            <mtext>&nbsp;</mtext>
            <mi>b</mi>
            <mtext>&rsquo;s</mtext>
          </mrow>
        </mover>
      </mover>
    </mrow>
    <munder>
      <mo>&UnderBrace;</mo>
      <mrow>
        <mi>k</mi>
        <mo>+</mo>
        <mi>&ell;</mi>
        <mtext>&nbsp;elements</mtext>
      </mrow>
    </munder>
  </munder>
  <mo stretchy='false'>}</mo>
</mrow>
</math>
</td>
<td class="eqno"></td>
</tr></table>
<p> where the last example is stolen from the 
<a href="http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml">
Mozilla MathML torture test</a>. 
</p>
</li>
<li> For <em>fractions</em> use
<p>
<code> &lt;mfrac linethickness="1"&gt; &lt;mrow&gt;</code> numerator <code>&lt;/mrow&gt;
&lt;mrow&gt;</code> denominator <code>&lt;/mrow&gt;&lt;/mfrac&gt;</code>,
</p>
where the <code>linethickness="1"</code> should be left out for ordinary
fractions and set to 0, instead of 1, for binomial coefficients.
<table class="dispeq"> <a name="fractions" id="fractions"></a>
<tr><td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstyle displaystyle="true">
<mrow>
  <munder>
    <mo>&sum;</mo>
    <mrow>
      <mfrac linethickness="0">
        <mrow>
          <mn>0</mn>
          <mo>&leq;</mo>
          <mi>i</mi>
          <mo>&leq;</mo>
          <mi>m</mi>
        </mrow>
        <mrow>
          <mn>0</mn>
          <mo>&lt;</mo>
          <mi>j</mi>
          <mo>&lt;</mo>
          <mi>n</mi>
        </mrow>
      </mfrac>
    </mrow>
  </munder>
</mrow>
<mrow>
  <mo>(</mo>
<mfrac linethickness="0">
    <mi>n</mi>
    <mrow>
      <mi>k</mi>
      <mo>/</mo>
      <mn>2</mn>
    </mrow>
</mfrac>
  <mo>)</mo>
</mrow>
<mspace width="2em"/>
  <mrow>
    <mo>(</mo>
    <mfrac>
      <msup>
        <mo>&part;</mo>
        <mn>2</mn>
      </msup>
      <mrow>
        <mo>&part;</mo>
        <msup>
          <mi>x</mi>
          <mn>2</mn>
        </msup>
      </mrow>
    </mfrac>
    <mo>+</mo>
    <mfrac>
      <msup>
        <mo>&part;</mo>
        <mn>2</mn>
      </msup>
      <mrow>
        <mo>&part;</mo>
        <msup>
          <mi>y</mi>
          <mn>2</mn>
        </msup>
      </mrow>
    </mfrac>
    <mo>)</mo>
  </mrow>
</mstyle>
<mspace width="2em"/>
<mrow>
  <mfrac>
    <mrow>
    <mstyle displaystyle="true" scriptlevel="-1">
      <mi>x</mi>
      <mo>+</mo>
      <mfrac>
        <mi>y</mi>
        <mn>2</mn>
      </mfrac>
    </mstyle>
    </mrow>
    <mrow>
      <mi>k</mi>
      <mo>+</mo>
      <mfrac>
         <mn>1</mn>
         <mi>x</mi>
      </mfrac>
    </mrow>
  </mfrac>
</mrow>
<mspace width="2em"/>
<mrow>
  <mfrac>
    <mrow>
      <mi>x</mi>
      <mo>+</mo>
      <mfrac>
        <mi>y</mi>
        <mn>2</mn>
      </mfrac>
    </mrow>
    <mrow>
    <mstyle displaystyle="true" scriptlevel="-1">
      <mi>k</mi>
      <mo>+</mo>
      <mfrac>
         <mn>1</mn>
         <mi>x</mi>
      </mfrac>
    </mstyle>
    </mrow>
  </mfrac>
</mrow>
</math>
</td>
<td class="eqno"></td>
</tr></table>
are examples stolen from the
<a href="http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml">
Mozilla MathML torture test</a>.
Resizing in fractions 
done with the <code>displaystyle</code> and <code>scriptlevel</code> 
attributes of the <code> &lt;mstyle&gt;</code> tag.
</li>
<li> <p> <em>Matrices, math tables and aligned equations</em>
are done with <code>&lt;mtable&gt;</code>.
The equation alignment in the second example below
is done with <code>&lt;mtable columnalign="right center left"&gt;</code>.
</p>
<table class="dispeq"> <a name="matrices" id="matrices"></a>
<tr><td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
  <mo>(</mo>
  <mtable>
    <mtr>
      <mtd columnalign="center">
        <mrow>
          <mo>(</mo>
          <mtable>
            <mtr>
              <mtd columnalign="center">
                <mo>&dtdot;</mo>
              </mtd>
              <mtd columnalign="center">
                <mi>b</mi>
              </mtd>
            </mtr>
            <mtr>
              <mtd columnalign="center">
                <mo>&utdot;</mo>
              </mtd>
              <mtd columnalign="center">
                <mi>d</mi>
              </mtd>
            </mtr>
          </mtable>
          <mo>)</mo>
        </mrow>
      </mtd>
      <mtd columnalign="center">
        <mrow>
          <mo>(</mo>
          <mtable>
            <mtr>
              <mtd columnalign="center">
                <mo>&ctdot;</mo>
              </mtd>
              <mtd columnalign="center">
                <mo>&vellip;</mo>
              </mtd>
            </mtr>
            <mtr>
              <mtd columnalign="center">
                <mi>g</mi>
              </mtd>
              <mtd columnalign="center">
                <mi>h</mi>
              </mtd>
            </mtr>
          </mtable>
          <mo>)</mo>
        </mrow>
      </mtd>
    </mtr>
    <mtr>
      <mtd columnalign="center">
        <mn>0</mn>
      </mtd>
      <mtd columnalign="center">
        <mrow>
          <mo>(</mo>
          <mtable>
            <mtr>
              <mtd columnalign="center">
                <mi>i</mi>
              </mtd>
              <mtd columnalign="center">
                <mi>j</mi>
              </mtd>
            </mtr>
            <mtr>
              <mtd columnalign="center">
                <mi>k</mi>
              </mtd>
              <mtd columnalign="center">
                <mi>l</mi>
              </mtd>
            </mtr>
          </mtable>
          <mo>)</mo>
        </mrow>
      </mtd>
    </mtr>
  </mtable>
  <mo>)</mo>
</mrow>
<mspace width="2em"/>
<!-- <mtext>and</mtext>
<mspace width="2em"/>
-->
<mtable columnalign="right center left">
    <mtr>
      <mtd>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&lambda;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <mi>f</mi>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&mu;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <mi>g</mi>
        <mo>)</mo>
      </mtd>
      <mtd><mo>=</mo></mtd>
      <mtd>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&mu;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <msup>
          <mi>f</mi>
          <mrow>
            <mo>–</mo>
            <mn>1</mn>
          </mrow>
        </msup>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <mrow>
            <msup>
              <mi>&lambda;</mi>
              <mo>&vee;</mo>
            </msup>
            <mo>+</mo>
            <msup>
              <mi>&mu;</mi>
              <mo>&vee;</mo>
            </msup>
          </mrow>
        </msub>
        <mo>(</mo>
        <mi>f</mi>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <mrow>
            <msup>
              <mi>&lambda;</mi>
              <mo>&vee;</mo>
            </msup>
            <mo>+</mo>
            <msup>
              <mi>&mu;</mi>
              <mo>&vee;</mo>
            </msup>
          </mrow>
        </msub>
        <mo>(</mo>
        <mi>g</mi>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&lambda;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <msup>
          <mi>g</mi>
          <mrow>
            <mo>–</mo>
            <mn>1</mn>
          </mrow>
        </msup>
        <mo>)</mo>
      </mtd>
    </mtr>
    <mtr>
      <mtd></mtd>
      <mtd> <mo>=</mo> </mtd>
      <mtd>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&mu;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <msup>
          <mi>f</mi>
          <mrow>
            <mo>–</mo>
            <mn>1</mn>
          </mrow>
        </msup>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <mrow>
            <msup>
              <mi>&lambda;</mi>
              <mo>&vee;</mo>
            </msup>
            <mo>+</mo>
            <msup>
              <mi>&mu;</mi>
              <mo>&vee;</mo>
            </msup>
          </mrow>
        </msub>
        <mo>(</mo>
        <mi>f</mi><mi>g</mi>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&lambda;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <msup>
          <mi>g</mi>
          <mrow>
            <mo>–</mo>
            <mn>1</mn>
          </mrow>
        </msup>
        <mo>)</mo>
      </mtd>
    </mtr>
    <mtr>
      <mtd></mtd>
      <mtd><mo>=</mo></mtd>
      <mtd>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&mu;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <msup>
          <mi>f</mi>
          <mrow>
            <mo>–</mo>
            <mn>1</mn>
          </mrow>
        </msup>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&mu;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <mi>f</mi><mi>g</mi>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&lambda;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <mi>f</mi><mi>g</mi>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&lambda;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <msup>
          <mi>g</mi>
          <mrow>
            <mo>–</mo>
            <mn>1</mn>
          </mrow>
        </msup>
        <mo>)</mo>
      </mtd>
    </mtr>
    <mtr>
      <mtd></mtd>
      <mtd>  <mo>=</mo></mtd>
      <mtd>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&mu;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <mi>g</mi>
        <mo>)</mo>
        <msub>
          <mi>h</mi>
          <msup>
            <mi>&lambda;</mi>
            <mo>&vee;</mo>
          </msup>
        </msub>
        <mo>(</mo>
        <mi>f</mi>
        <mo>)</mo>
        <mo>.</mo>
      </mtd>
    </mtr>
  </mtable>
</math>
</td>
<td class="eqno"></td>
</tr></table>
The <code>malignmark</code>, <code>maligngroup</code> and 
<code>groupalign</code> are not yet implemented in Mozilla.
Check the page
<a href="http://www.mozilla.org/projects/mathml/update.html">
status report of MathML tags in Mozilla</a> for the latest updates.
</li>
<li> <p>
<em>Resizing</em> is best done by enclosing the content in an
<code>&lt;mstyle scriptlevel="-1"&gt; ... &lt;/mstyle&gt;</code>
where the -1 is changed to -2 or +1 or +2, as appropriate.
</p></li>
<li> <p><em>Positioning</em> (up/down/left/right) of an object
is controlled with <code>&lt;mpadded&gt;</code>.  This doesn't render
exactly right in Mozilla as 
<table>
<tr>
<td> 
<pre>&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mpadded width="+1em"&gt;&lt;mi&gt;&amp;alpha;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;mpadded height="-2em"&gt;&lt;mi&gt;&amp;beta;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;mpadded depth="+4em"&gt;&lt;mi&gt;&amp;gamma;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;mpadded lspace="+1em"&gt;&lt;mi&gt;&amp;delta;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;/math&gt;
</pre>
</td>
<td> &nbsp;&nbsp;renders as&nbsp;&nbsp; </td>
<td>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mpadded width="+1em"><mi>&alpha;</mi></mpadded>
<mpadded height="-2em"><mi>&beta;</mi></mpadded>
<mpadded depth="+4em"><mi>&gamma;</mi></mpadded>
<mpadded lspace="+1em"><mi>&delta;</mi></mpadded>
</math> 
</td>
</tr>
</table>
and the example, from 
<a href="http://www.w3.org/TR/MathML2/chapter3.html#id.3.3.6.5">3.3.6.5</a> 
of the MathML specification,
<!-- <code><pre>&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mrow&gt;
  &lt;mi&gt; C &lt;/mi&gt;
  &lt;mpadded width="0em"&gt;
    &lt;mspace width="-0.3em"/&gt;
    &lt;mtext&gt; | &lt;/mtext&gt;
  &lt;/mpadded&gt;
&lt;/mrow&gt;
&lt;/math&gt;
</pre></code>
-->
of a (strongly discouraged) overstruck C
to try to make a sign for the complex numbers renders as
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
  <mi> C </mi>
  <mpadded width="0em">
    <mspace width="-0.3em"/>
    <mtext> | </mtext>
  </mpadded>
</mrow>
</math>.</p>
</li>
<li> <p>For <em>text inside math</em> use 
<code> &lt;mtext&gt; &amp;nbsp;</code> text here 
<code>&amp;nbsp; &lt;/mtext&gt;</code>.
The <code>&amp;nbsp;</code> puts a space.
</p>
</li>
<li> <p>For inserting <em>space inside math mode</em> use
<code> &lt;mspace width="2em"/&gt;</code>, where the 2 can be adjusted
as desired.
Other options are the space characters<br />
<code>&amp;nbsp;</code>,
<code>&amp;ensp;</code>,
<code>&amp;emsp;</code>,
<code>&amp;emsp13;</code>,
<code>&amp;emsp14;</code>,
<code>&amp;numsp;</code>,
<code>&amp;puncsp;</code>,
<code>&amp;thinsp;</code>,
<code>&amp;hairsp;</code>,
<br />
illustrated by <br />
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>nbsp</mi>
<mi>&nbsp;</mi>
<mi>ensp</mi>
<mi>&ensp;</mi>
<mi>emsp</mi>
<mi>&emsp;</mi>
<mi>emsp13</mi>
<mi>&emsp13;</mi>
<mi>emsp14</mi>
<mi>&emsp14;</mi>
<mi>numsp</mi>
<mi>&numsp;</mi>
<mi>puncsp</mi>
<mi>&puncsp;</mi>
<mi>thinsp</mi>
<mi>&thinsp;</mi>
<mi>hairsp</mi>
<mi>&hairsp;</mi>
</math>,
respectively.
</p>
</li>
<li>
<p> <em> Phantom content</em> is inserted with
<code>&lt;mphantom&gt; ... &lt;/mphantom&gt;</code> 
(analogous to the command \phantom in TeX). 
</p>
</li>
<li> <p><em>Comments</em> are inserted as in HTML, 
with <code>&lt;!--</code> comment here <code>--&gt;</code>.
</p>
</li>
<li> <p><em>Boxes</em> can be placed around content using 
<code>&lt;mtable frame="solid"&gt;</code>,
<em>color</em> with
<code>&lt;mstyle color="your color"&gt; 
your colored content &lt;/mstyle&gt;</code>,
and a <em>colored background</em> is accomplished with 
<code>&lt;mstyle background="yellow"> stuff &lt;/mstyle&gt;</code>.
</p>
<table class="dispeq"> <a name="8oxes" id="boxes"></a>
<tr><td class="eq">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mtable frame="solid">
<mtr>
 <mtd> 
<msup><mi>x</mi><mn>2</mn></msup>
<mo>+</mo>
<msup><mi>y</mi><mn>2</mn></msup>
<mo>=</mo><mn>1</mn>
 </mtd>
</mtr>
</mtable>
<mspace width="2em"/>
<mstyle background="yellow">
<msup><mi>x</mi><mn>3</mn></msup>
<mo>+</mo>
<msup><mi>y</mi><mn>3</mn></msup>
<mo>=</mo><mn>2</mn>
</mstyle>
<mspace width="2em"/>
      <mi mathcolor="blue">x</mi> 
      <mo>+</mo> 
      <mn mathcolor="#00ff33" color="purple">7
      </mn> 
      <mo>+</mo> 
      <mn color="yellow">3</mn> 
      <mo>+</mo> 
      <mstyle color="red"> 
        <mi>z</mi> 
        <mo>+</mo> 
        <mi mathcolor="blue">q</mi> 
        <mo>+</mo> 
        <mi>q</mi> 
      </mstyle>
</math>
</td>
<td class="eqno"></td>
</tr></table>
<p>
where the last example is Example 
<a href="http://www.w3.org/Math/testsuite/testsuite/Presentation/TokenElements/mi/miScolorname15.xml">miScolorname15</a> 
from the MathML testsuite. 
The MathML tag <code>&lt;menclose&gt;</code> is not yet
implemented in Mozilla.  Check the page
<a href="http://www.mozilla.org/projects/mathml/update.html">
status report of MathML tags in Mozilla</a> for the latest updates.
</p>
</li>
<li> <p>The <code>&lt;maction&gt;</code> tag provides a nice option 
of "toggling" content, by clicking on it
<math xmlns="http://www.w3.org/1998/Math/MathML">
      <maction actiontype="toggle"> 
        <mrow> 
          <mn>3</mn> 
          <mo>+</mo> 
          <mn>2</mn> 
          <mo>=</mo>
          <mn>32</mn>
        </mrow> 
        <mrow> 
          <mtext> fooled you &nbsp;</mtext> 
        </mrow> 
        <mrow> 
          <mtext>fooled you</mtext> 
            <mo>+</mo> 
            <mn>1</mn> 
        </mrow>
      </maction>
    </math> (try it, click on it).  
</p>
</li>
</ul>

<h2 class="section"><a name="authoring" id="authoring"> </a>
Using Amaya for MathML authoring</h2>

<p class="indent"> 
Amaya is very useful for putting in all those <code>&lt;mi&gt;</code>,
<code>&lt;mo&gt;</code>, setting up subscripts, superscripts,
matrices and fractions.  Amaya, at the moment, is painful for entering
math symbols and it has the annoying problem that, even if you get it
entered right, when you save your document,
Amaya will automatically change character entities that have been 
entered manually.  For example
<code>&amp;langle;</code> will change into some Chinese character.
</p>

<p class="indent">
Amaya crashes often.
Until Amaya gets more robust the best option is to use Amaya in tandem 
with your favourite editor. Do the layout of the text and the equations 
with Amaya.  Type a few paragraphs into Amaya then copy the code into your 
favourite editor and fix up the character names. Use a slightly different 
name for Amaya file and your document file.
</p>

<ul>
<li>Always start a new document by opening an existing 
<a href="http://www.math.wisc.edu/~ram/MathGlossary/template.xml">
template</a>.</li>
<li> Double click the lower edge of the display window (on mouse over it 
turns pink) to display in split mode and
see the code that Amaya produces.
</li>
<li>Type into the display window to create text. I have found Amaya most useful when I <em>don't</em> use the math tool palette.</li>
<li>Use the keyboard shortcuts to start math tags and use the arrow
keys to navigate the boxes Amaya produces for matrices, superscripts and 
subscripts.
</li>
<li>Use the right arrow key to move the cursor out of math mode.
</li>
<li>Save often.</li>
<li>Select <strong>Display all shortcuts</strong> in the 
<strong>Preferences &gt; General</strong> dialog and restart Amaya.
</li>
<li>If you really want to start a blank document with Amaya do
<strong>New XHTMLdocument</strong> from the <strong>File Menu</strong>,
make sure that the <strong>Documentprofile</strong> is
<strong>XHTML1.1</strong> and that the filename ends in
<code>.xml</code> and type math into it. Amaya will
automatically put in the correct DTD (Document Type Definition).</li>
</ul>

<h3 class="subsection"> Amaya MathML keyboard shortcuts for Mac OS X</h3>

<table>
  <tbody>
    <tr>
      <th align="left">Command</th>
      <th align="left">Tag</th>
      <th align="left">Shortcut</th>
    </tr>
    <tr>
      <td>New Formula</td>
      <td>&lt;math&gt;</td>
      <td>Ctrl-m Ctrl-m</td>
    </tr>
    <tr>
      <td>Subscript</td>
      <td>&lt;msub&gt;</td>
      <td>Ctrl-m Ctrl-v</td>
    </tr>
    <tr>
      <td>Superscript</td>
      <td>&lt;msup&gt;</td>
      <td>Ctrl-m Ctrl-6</td>
    </tr>
    <tr>
      <td>Subscript and Superscript</td>
      <td>&lt;msubsup&gt;</td>
      <td>Ctrl-m Ctrl-b</td>
    </tr>
    <tr>
      <td>Multiscripts</td>
      <td>&lt;mmultiscripts&gt;</td>
      <td>Ctrl-m Ctrl-s</td>
    </tr>
    <tr>
      <td>Under</td>
      <td>&lt;munder&gt;</td>
      <td>Ctrl-m Ctrl-u</td>
    </tr>
    <tr>
      <td>Over</td>
      <td>&lt;mover&gt;</td>
      <td>Ctrl-m Ctrl-o</td>
    </tr>
    <tr>
      <td>Under and over</td>
      <td>&lt;munderover&gt;</td>
      <td>Ctrl-m Ctrl-k</td>
    </tr>
    <tr>
      <td>Fraction</td>
      <td>&lt;mfrac&gt;</td>
      <td>Ctrl-m Ctrl-f</td>
    </tr>
    <tr>
      <td>New Matrix</td>
      <td>&lt;mtable&gt;</td>
      <td>Ctrl-m Ctrl-h</td>
    </tr>
<!--    <tr>
      <td>Plain text</td>
      <td>&lt;mtext&gt;</td>
      <td>Ctrl-m Ctrl-x</td>
    </tr>
    <tr>
      <td>Identifier</td>
      <td>&lt;mi&gt;</td>
      <td>Ctrl-m Ctrl-d</td>
    </tr>
    <tr>
      <td>Number</td>
      <td>&lt;mn&gt;</td>
      <td>Ctrl-m Ctrl-n</td>
    </tr>
    <tr>
      <td>Operator</td>
      <td>&lt;mo&gt;</td>
      <td>Ctrl-m Ctrl-g</td>
    </tr>
    <tr>
      <td>Space</td>
      <td>&lt;mspace&gt;</td>
      <td>Ctrl-m Ctrl-Space</td>
    </tr>
    <tr>
      <td>Character</td>
      <td>&amp;xxx;</td>
      <td>Ctrl-m Ctrl-e</td>
    </tr>
-->
    <tr>
      <td>Root</td>
      <td>&lt;mroot&gt;</td>
      <td>Ctrl-m Ctrl-r</td>
    </tr>
    <tr>
      <td>Square root</td>
      <td>&lt;msqrt&gt;</td>
      <td>Ctrl-m Ctrl-q</td>
    </tr>
<!--    <tr>
      <td>Enclose</td>
      <td>&lt;menclose&gt;</td>
      <td>Ctrl-m Ctrl-c</td>
    </tr>
-->
<!--    <tr>
      <td>Parentheses</td>
      <td>()</td>
      <td>Ctrl-m Ctrl-p</td>
    </tr>
-->
  </tbody>
</table>

<h3 class="subsection"> Problems with Amaya</h3>

<ul>
<li> The most annoying problem is that Amaya automatically changes
character entities that have been entered manually.  For example
<code>&amp;langle;</code> will change into some Chinese
character.</li>
<li> Amaya needs an efficient way to enter characters.</li>
<li> Amaya tends to crash when it gets confused. </li>
<li>The rows and columns are reversed in the matrix dialog box.</li>
<li>Looking at example pages shows that
Mozilla is superior for MathML rendering.</li>
</ul>

<h2 class="section"> Tips</h2>



<ul>
<li> <p>The following useful information and example pages are provided by
Mozilla and W3C:
</p>
<ul>
<li>
<a href="http://www.w3.org/Math/testsuite/">W3C MathML test suite 2.0</a>,
</li>
<li>
<a href="http://www.mozilla.org/projects/mathml/">
Main Mozilla MathML page</a>,
</li>
<li>
<a href="http://www.mozilla.org/projects/mathml/demo/">
Mozilla MathML Demos page</a>
</li>
<li>
<a href="http://www.mozilla.org/projects/mathml/fonts/chars/table.html">
Mozilla MathML Character tables</a>,
</li>
<li>
<a href="http://www.mozilla.org/projects/mathml/fonts/">
Mozilla MathML Fonts page</a>,
</li>
<li>
<a href="http://www.mozilla.org/projects/mathml/fonts/encoding/">
Mozilla MathML Font encodings</a>,
</li>
<li>
<a href="http://www.mozilla.org/projects/mathml/fonts/encoding/symbol.html">
Mozilla Symbol Font encoding</a>,
</li>
</ul>
</li>
<li><p> If the usual minus sign doesn't
show up properly hold down the Option key and type 
the usual minus sign to get a minus sign that displays properly
(this may be Mac specific).
</p></li>
<li>A math character will slant less if put in an 
<code>&lt;mo&gt;</code> instead of an <code>&lt;mi&gt;</code>.
</li>
<li>
<p>
Since HTML prefers that the user control spacing from style files
the best hack for putting spaces in seems
to be to go into math mode and put in mathspaces.
Using spacing to tweak the look of the output is strongly discouraged 
as the results are usually renderer dependent.
The ultimate tweaking is shown at the 
<a href="http://www.w3.org/Math/testsuite/testsuite/TortureTests/Complexity/complex3.xml">
MathML test suite torture test complex 3 </a>.
</p>
</li>
<li><p>CSS rules in a document are included inside
<code>&lt;style type="text/css"&gt; ...  &lt;/style&gt;</code>
inside the <code>&lt;head&gt; ... &lt;/head&gt;</code>. 
Alternatively, they can all be put into a style sheet, and then loaded with 
<code>@import "mathsty.css";</code>
</p>
</li>
<li><p>Inserting media specific (for example, for printers) CSS formatting 
rules is explained in 
<a href="http://www.w3.org/TR/CSS21/media.html">Section 7</a> of the 
CSS Specification.  Page breaks are discussed in 
<a href="http://www.w3.org/TR/CSS21/page.html"> Section 13</a>
of the CSS specification.
</p></li>
<li><p>When printing from Mozilla be sure that "Shrink to fit page width" is 
<em>not</em> selected.  Sometimes the shrunk MathML does not print correctly.
</p></li>
<li><p>The details for automatic numbering are explained in 
<a href="http://www.w3.org/TR/CSS21/generate.html">
Section 12.4 and 12.2</a>
of the CSS specification.
Alternatively, automatic numbering and referencing ought to be doable
with fairly simple javascript. 
</p></li>
<li>  
<p>
The use of 
<a href="http://developer.mozilla.org/en/docs/SVG:Namespaces_Crash_Course">
namespaces</a> makes it possible to put XHTML commands (for example,
links and graphics) inside MathML.
</p> </li>
<li><p>Using UTF-8 character encoding is always the best. For ordinary html
pages use the XHTML Transitional DTD.</p>
</li>
<li><p>The page 
<a href="http://www.mozilla.org/projects/mathml/authoring.html">
Authoring MathML for Mozilla</a> suggests replacing the usual DTD
with <code>
<pre>
&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
               "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
  &lt;!ENTITY mathml "http://www.w3.org/1998/Math/MathML"&gt; 
]&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
</pre>
</code>
This has the effect that the usual entrance into math mode</p>
<p>
<code>&lt;math xlmns="http://www.w3.org/1998/Math/MathML"&gt;</code>
</p>
only needs to be coded with
<code>&lt;math xlmns="&amp;mathml;"&gt;</code>
</li>
<!--  <li><p>A live LaTeX to MathML converter is at <a
    href="http://pear.math.pitt.edu/mathzilla/itex2mmlFrag.html">
    http://pear.math.pitt.edu/mathzilla/itex2mmlFrag.html</a>.
    It is not very robust for converting anything more than a line
    of TeX code but it is very useful for quickly figuring out what
    the MathML analogue for a TeX encoded character/symbol is.</p>
  </li>
-->
  <li><p> <code>&lt;mi&gt;ij&lt;/mi&gt;</code> renders as
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>ij</mi> </math>, 
<code>&lt;mi&gt;i&lt;/mi&gt;&lt;mi&gt;j&lt;/mi&gt;</code> renders as
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>i</mi><mi>j</mi> </math>, and
<code>&lt;mi&gt;
&lt;mi&gt;i&lt;/mi&gt;&lt;mi&gt;j&lt;/mi&gt;
&lt;/mi&gt;</code> 
renders as
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi><mi>i</mi><mi>j</mi> </mi> </math>. </p>
</li>
<li>
<p> Doing graphics with SVG (Scalable vector graphics)
should obviate the need for external graphics files
and all browsers that handle MathML also render SVG. 
<a href="http://www.inkscape.org/index.php?lang=en">Inkscape</a> 
is a drawing program that will output graphics in SVG 
(Scalable Vector Graphics).  It should be possible to include formulas 
in MathML inside an SVG picture with the use of the 
<a href="http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement">
foreignObject element</a> of SVG.  There is also a combined
<a href="http://www.w3.org/TR/XHTMLplusMathMLplusSVG/">
XHTML1.1+MathML2.0+SVG1.1</a> document type definition.  However,
I have been unable to determine whether the foreignObject tag is
implemented in Inkscape, and I have not yet succeeded in getting
<a href="http://www.w3.org/TR/XHTMLplusMathMLplusSVG/sample.xhtml">
mixed markup</a> to render properly in Mozilla (it renders fine
in Amaya).
</p>
</li>
<li><p> Other media types, such as animations, video and sound, can 
be included.  For these, it is most efficient to produce the appropriate 
code using an application like Dreamweaver (or copy it from some other
web page) and then copy it into your MathML document.
</p>
</li>
<li> <p>Parentheses are supposed to resize appropriately if they are put in an
<code>&lt;mo&gt;</code> tag.  See 
<a href="http://www.w3.org/TR/MathML2/chapter3.html#id.3.2.5.8">3.2.5.8</a> 
of the MathML specification.
</p>
</li>
</ul>

<h3 class="subsection"> Problems with MathML</h3>

<ul>
<li><p>There seems to be no character for an upwards pointing
<code>&amp;sube;</code></p> </li>
<li>
<p> <code>&lt;mfenced&gt;</code>
is redundant since it is <em>equivalent</em> to putting the parentheses 
inside <code>&lt;mo&gt;</code> tags.  Perhaps
<code>&lt;mfenced&gt;</code> should be deprecated.  </p>
</li>
<li> 
<p> What is the future of the relationship between MathML, CSS, and SVG?
Will MathML 3.0 have good options for putting 
XHTML commands (for example, for links and graphics)
inside MathML math mode? See the discussion at
<a href="http://www.w3.org/TR/MathML2/chapter7.html#interf.link">
7.1.4</a> of the MathML specification.  </p>
</li>
</ul>

<h3 class="subsection"> Problems with Mozilla</h3>


<p class="indent">
The tags <code>&lt;mglyph&gt;, &lt;menclose&gt;, &lt;mlabeledtr&gt;,
&lt;malignmark&gt;, and &lt;maligngroup&gt;,
</code> are not yet implemented.  Check the page
<a href="http://www.mozilla.org/projects/mathml/update.html">
status report of MathML tags in Mozilla</a> for the latest updates.
</p>

<ul>
<li>
<p>Unfortunately, the placement of the limits on large sums and products
is controlled only by setting <code>displaystyle=&quot;true&quot;</code> and
getting <code>scriptlevel=&quot;-1&quot;</code>.
Setting <code>accent=&quot;true&quot;</code> and/or 
<code>accentunder=&quot;false&quot;</code> only seems to affect the size 
of the limit, not its placement.
</p>
</li>
<li><p>The <code>malignmark</code>, <code>maligngroup</code> and 
<code>groupalign</code> are not yet implemented in Mozilla.
They can be tested with the
<a href="http://www.w3.org/Math/testsuite/testsuite/Presentation/TablesAndMatrices/mtable/maligngroup1.xml"> 
maligngroup1 example of the MathML test suite</a> and the example given in 
<a href="http://www.w3.org/TR/MathML2/chapter3.html#id.3.5.5.8"> 
3.5.5.8</a> of the MathML specification.
</p>
</li>
<li> <p>Except for the "toggle" the attributes of 
<code>&lt;maction&gt;</code> do not render in Mozilla (see examples
<a href="http://www.w3.org/Math/testsuite/testsuite/Presentation/DynamicExpressions/maction/mactionBstatus1.xml">mactionBstatus1</a>,
<a href="http://www.w3.org/Math/testsuite/testsuite/Presentation/DynamicExpressions/maction/mactionBhigh1.xml">mactionBhigh1</a>,
and <a href="http://www.w3.org/Math/testsuite/testsuite/Presentation/DynamicExpressions/maction/mactionBtooltip1.xml">mactionBtooltip1</a>,
of the MathML test suite).  The tooltip in the Mozilla demo is
done with the <code>title</code> attribute from HTML.
</p>
</li>
<li><p>This may be Mac specific: The usual minus sign from the 
keyboard doesn't render at all; hold down the Option key and type 
the usual minus sign to get a minus sign that renders properly.  </p></li>
<li> <p>The arrows stretch well in Mozilla and the <code>&amp;Tilde;</code>, 
<code>&amp;OverBar;</code>, <code>&amp;Hat;</code> are also
supposed to stretch, but the only one that does is <code>&amp;Hat;</code>.
</p>
<p> <math xmlns="http://www.w3.org/1998/Math/MathML">
   <mover>
     <mi mathvariant="italic">xxx</mi>
     <mo stretchy="true">&Tilde;</mo>
   </mover>
<mover>
<mo>&rarr;</mo>
<mtext>goes to</mtext>
</mover>
   <mover>
     <mi mathvariant="italic">xxx</mi>
     <mo stretchy="true">&OverBar;</mo>
   </mover>
<mover>
<mtext>vector</mtext>
<mo>&rarr;</mo>
</mover>
   <mover>
     <mi mathvariant="italic">xxx</mi>
     <mo stretchy="true">&UnderBar;</mo>
   </mover>
<mover>
<mo>&rarr;</mo>
<mphantom><mtext>goes to</mtext></mphantom>
</mover>
   <mover>
     <mi mathvariant="italic">xxx</mi>
     <mo>&Hat;</mo>
   </mover>
<mover>
<mo>&larr;</mo>
<mtext>goes to</mtext>
</mover>
   <mover>
     <mi mathvariant="italic">xxx</mi>
     <mo stretchy="false">&Hat;</mo>
   </mover>
</math></p>
</li>

<li><p>The <code>height</code> and <code>depth</code> attributes of <code>
&lt;mpadded&gt;</code> do not render properly.  Also, negative 
<code>width</code> values in <code>&lt;mspace&gt;</code> do not render 
properly.
<code>
<pre>&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mpadded width="+1em"&gt;&lt;mi&gt;&amp;alpha;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;mpadded height="-2em"&gt;&lt;mi&gt;&amp;beta;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;mpadded depth="+4em"&gt;&lt;mi&gt;&amp;gamma;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;mpadded lspace="+1em"&gt;&lt;mi&gt;&amp;delta;&lt;/mi&gt;&lt;/mpadded&gt;
&lt;/math&gt;</pre></code> 
renders as 
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mpadded width="+1em"><mi>&alpha;</mi></mpadded>
<mpadded height="-2em"><mi>&beta;</mi></mpadded>
<mpadded depth="+4em"><mi>&gamma;</mi></mpadded>
<mpadded lspace="+1em"><mi>&delta;</mi></mpadded>
</math> and the example, from 3.3.6.5 of the MathML specification,
<code><pre>&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mrow&gt;
  &lt;mi&gt; C &lt;/mi&gt;
  &lt;mpadded width="0em"&gt;
    &lt;mspace width="-0.3em"/&gt;
    &lt;mtext&gt; | &lt;/mtext&gt;
  &lt;/mpadded&gt;
&lt;/mrow&gt;
&lt;/math&gt;
</pre></code>
of a (strongly discouraged) overstruck C to try to make a sign for 
the complex numbers renders as
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
  <mi> C </mi>
  <mpadded width="0em">
    <mspace width="-0.3em"/>
    <mtext> | </mtext>
  </mpadded>
</mrow>
</math>.</p>
</li>
<li>  <p>
The Greek letters shouldn't be slanted.  Currently, in order to make them
not slanted they need to be put inside an &lt;mo&gt; tag, 
which is undesirable since they function as characters not as operators. 
</p></li>
<li> <code>&amp;sqcup;</code> and other similar operators don't look right 
when they resize.  The naive coding produces
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>G</mi>
  <mo>=</mo>
  <munder>
    <mo>&sqcup;</mo>
    <mrow>
      <mi>w</mi>
      <mo>&isin;</mo>
      <mover>
        <mi>W</mi>
        <mi>&Tilde;</mi>
      </mover>
    </mrow>
  </munder>
  <mi>I</mi>
  <mi>w</mi>
  <mi>I</mi>
  <mspace width="2em"/>
  <mtext>but the tweaked version</mtext>
  <mspace width="2em"/>
  <mi>G</mi>
  <mo>=</mo>
  <munder>
    <mstyle scriptlevel="-1"><mo>&sqcup;</mo></mstyle>
    <mrow>
      <mi>w</mi>
      <mo>&isin;</mo>
      <mover>
        <mi>W</mi>
        <mi>&Tilde;</mi>
      </mover>
    </mrow>
  </munder>
  <mi>I</mi>
  <mi>w</mi>
  <mi>I</mi>
  <mspace width="2em"/>
</math>
looks much better.</p>
</li>
<li>The renderer ought to handle spacing for text inside math better
so that 
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
  <msub> 
    <mi>S</mi>
    <mi>p</mi>
  </msub>
  <mo>=</mo>
  <mo>{</mo>
  <mtext> paths &nbsp;</mtext>
  <mn>1</mn>
  <mover>
    <mo>&rarr;</mo>
    <msub>
      <mi>c</mi>
      <mn>1</mn>
    </msub>
  </mover>
  <mi>&ctdot;</mi>
  <mover>
    <mo>&rarr;</mo>
    <msub>
      <mi>c</mi>
      <mi>&ell;</mi>
    </msub>
  </mover>
  <mi>w</mi>
  <mtext>&nbsp; whose folding ends in &nbsp;</mtext>
  <mi>p</mi>
  <mo>}</mo>
  <mo>.</mo>
</math></p>
<p>
doesn't need the tweak in it to have the space correct around the text.
</p>
</li>
<li> <p>The <code>&amp;compfn;</code> renders properly on the Powerbook,
but not on the MacBook Pro: 
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>f</mi><mo>&compfn;</mo><mi>g</mi>
</math>
.
</p>
</li>
<li> Some other characters with problems: 
The printed
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mo>&le;</mo></math> is ugly and doesn't match 
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mo>&lt;</mo></math>,
&amp;varr; inside an <code>&lt;mo&gt;</code> 
renders as
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mo>&varr;</mo>
</math>,
&amp;vee; won't resize to a smaller size to put in a subscript
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msub><mi>h</mi><mrow>
<msup><mi>&mu;</mi><mo>&vee;</mo></msup>
</mrow></msub>
</math>
, ...
</li>
</ul>



<h2 class="appendix"> HTML and MathML commands</h2>

<h3 class="subappendix"> Basic HTML </h3>

<ul>
<li> <code>&lt;em&gt;</code> <em>italics</em> <code>&lt;em&gt;</code>,
<code>&lt;strong&gt;</code> <strong>bold</strong> <code>&lt;/strong&gt;</code>,
<code>&lt;dfn&gt;</code> <dfn>term</dfn> being defined <code>&lt;/dfn&gt;</code>
</li>
<li><code>&lt;h2&gt;</code> heading size 2 <code>&lt;/h2&gt;</code>,
<code>&lt;h3&gt;</code> heading size 3 <code>&lt;/h3&gt;</code>, etc.
</li>
<li> <code>&lt;p&gt;</code> paragraph here <code>&lt;/p&gt;</code>, 
<code>&lt;br /&gt;</code> for a line break, <code>&amp;nbsp;</code> for 
a space, <code>&lt;pre&gt;</code> <pre>preformatted
  text</pre><code>&lt;/pre&gt;</code>, and <code> &lt;hr /&gt;</code> for an hrule
<hr />
</li>
<li> Make a bulleted list (unordered list) with
<table>
<tr>
<td> <pre>
&lt;ul&gt;
  &lt;li&gt; list item &lt;/li&gt;
  &lt;li&gt; list item &lt;/li&gt;
&lt;/ul&gt;
</pre>
</td>
<col width="100">
<td> &nbsp; </td>
</col>
<td>
<ul>
  <li> list item </li>
  <li> list item </li>
</ul>
</td>
</tr>
</table>
</li>
<li> Make a numbered list (ordered list) with
<table>
<tr>
<td> <pre>
&lt;ol&gt;
  &lt;li&gt; list item one &lt;/li&gt;
  &lt;li&gt; list item two &lt;/li&gt;
&lt;/ol&gt;
</pre>
</td>
<col width="100">
<td> &nbsp; </td>
</col>
<td>
<ol>
  <li> list item </li>
  <li> list item </li>
</ol>
</td>
</tr>
</table>
</li>
<li> Make a definition list with
<table>
<tr>
<td> <pre>
&lt;dl&gt;
 &lt;dt&gt; definition term one&lt;/dt&gt;
  &lt;dd&gt; definition description of term one&lt;/dd&gt;
 &lt;dt&gt; definition term two &lt;/dt&gt;
  &lt;dd&gt; definition description of term two&lt;/dd&gt;
&lt;/dl&gt;
</pre>
</td>
<col width="70">
<td> &nbsp; </td>
</col>
<td>
<dl>
 <dt> definition term one</dt>
  <dd> definition description of term one</dd>
 <dt> definition term two </dt>
  <dd> definition description of term two</dd>
</dl>
</td>
</tr>
</table>
</li>
<li> Make a table with:
<table>
<tr>
<td> <pre>
&lt;table&gt;
&lt;thead&gt; 
     &lt;tr&gt; header &lt;/tr&gt;
&lt;/thead&gt;
&lt;tfoot&gt;
     &lt;tr&gt; footer &lt;/tr&gt;
&lt;/tfoot&gt;
&lt;tbody&gt;
     &lt;tr&gt; 
         &lt;td&gt;first&lt;/td&gt;
         &lt;td&gt;second&lt;/td&gt;
         &lt;td&gt;third&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt; 
         &lt;td&gt;fourth&lt;/td&gt;
         &lt;td&gt;fifth&lt;/td&gt;
         &lt;td&gt;sixth&lt;/td&gt;
     &lt;/tr&gt;
&lt;/tbody&gt;
&lt;tbody&gt;
     &lt;tr&gt; 
         &lt;td&gt;First&lt;/td&gt;
         &lt;td&gt;Second&lt;/td&gt;
         &lt;td&gt;Third&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt; 
         &lt;td&gt;Fourth&lt;/td&gt;
         &lt;td&gt;Fifth&lt;/td&gt;
         &lt;td&gt;Sixth&lt;/td&gt;
     &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</pre>
</td>
<col width="150">
<td> 
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
</td>
</col>
<td>
<table>
<thead> 
     <tr> header </tr>
</thead>
<tfoot>
     <tr> footer </tr>
</tfoot>
<tbody>
     <tr> 
         <td>first</td>
         <td>second</td>
         <td>third</td>
     </tr>
     <tr> 
         <td>fourth</td>
         <td>fifth</td>
         <td>sixth</td>
     </tr>
</tbody>
<tbody>
     <tr> 
         <td>First</td>
         <td>Second</td>
         <td>Third</td>
     </tr>
     <tr> 
         <td>Fourth</td>
         <td>Fifth</td>
         <td>Sixth</td>
     </tr>
</tbody>
</table>
</td>
</tr>
</table>
</li>
<li> <code>&lt;div class="mytype" name="myname"&gt; ... &lt;/div&gt;</code>
is a way to group a set of lines and attach names, classes, special
formats and other attributes to this collection of lines.
</li>
</ul>


<h3 class="subappendix"> MathML Presentation Markup tags</h3>

<ul>
  <li>element 
    <ol>
      <li>attribute = "value"</li>
    </ol>
  </li>
  <li>the nine common attributes are 
    <ol>
      <li><code>mathbackground="</code><em>#rgb</em> | <em>#rrggbb</em> |
        <em>html-color name</em><code>"</code></li>
      <li><code>mathcolor="</code><em>#rgb</em> | <em>#rrggbb</em> |
        <em>html-color name</em><code>"</code></li>
      <li><code>mathsize="</code><code>small</code> | <code>normal</code> |
        <code>big</code> | <em>number</em> |
      <em>v-unit</em><code>"</code></li>
      <li><code>mathvariant="</code><code>number</code> | <code>bold</code> |
        <code>italic</code> | <code>script</code> | <code>bold-fraktur</code>
        | <code>double-struck</code> | <code>bold-script</code> |
        <code>fraktur</code> | <code>sans-serif</code> |
        <code>bold-sans-serif</code> | <code>sans-serif-italic</code> |
        <code>sans-serif-bold-italic</code> |
        <code>monospace</code><code>"</code></li>
      <li><code>fontsize="</code><em>number</em>
        <code>v-unit</code><code>"</code></li>
      <li><code>fontweight="</code> <code>normal</code> |
        <code>bold</code><code>"</code></li>
      <li><code>fontstyle="</code><code>normal</code> |
        <code>italic</code><code>"</code></li>
      <li><code>fontfamily="</code><em>string</em> |
        <em>css-fontfamily</em><code>"</code></li>
      <li><code>color="</code><em>#rgb</em> | <em>#rrggbb</em> |
        <em>html-color name</em><code>"</code></li>
    </ol>
  </li>
  <li>all MathML presentation elements accept the following attributes 
    <ol>
      <li><code>class</code></li>
      <li><code>style</code></li>
      <li><code>id</code></li>
      <li><code>xlink:href:</code></li>
      <li><code>other:</code></li>
    </ol>
  </li>
  <li><code>&lt;mn&gt;</code> number 
    <ol>
      <li>the nine common attributes</li>
    </ol>
  </li>
  <li><code>&lt;mo&gt;</code> operator 
    <ol>
      <li>the nine common attributes</li>
      <li><code>form="prefix</code> | <code>infix</code> |
        <code>postfix"</code></li>
      <li><code>lspace="</code><em>number h-unit</em> |
      <em>namedspace</em>"</li>
      <li><code>rspace</code>="<em>number h-unit</em> |
      <em>namedspace</em>"</li>
      <li><code>stretchy="true</code> | <code>false"</code></li>
      <li><code>symmetric="true</code> | <code>false"</code></li>
      <li><code>maxsize="</code><em>number</em>[<em>v-unit</em> |
        <em>h-unit</em>] | <em>namedspace</em><code>"</code></li>
      <li><code>minsize="</code><em>number</em> |
        <em>namedspace</em><code>"</code></li>
      <li><code>largeop="true</code> | <code>false"</code></li>
      <li><code>movablelimits="true</code> | <code>false"</code></li>
      <li><code>fence="true</code> | <code>false"</code></li>
      <li><code>separator="true</code> | <code>false"</code></li>
      <li><code>accent="true</code> | <code>false"</code></li>
    </ol>
  </li>
  <li><code>&lt;mi&gt;</code> identifier 
    <ol>
      <li>the nine common attributes</li>
    </ol>
  </li>
  <li><code>&lt;mtext&gt;</code> text 
    <ol>
      <li>the nine common attributes</li>
    </ol>
  </li>
  <li><code>&lt;mspace&gt;</code> blank space 
    <ol>
      <li>the nine common attributes and</li>
      <li><code>width="</code><em>number h-unit</em> |
        <em>namedspace</em><code>"</code></li>
      <li><code>height="</code><em>number v-unit</em><code>"</code></li>
      <li><code>depth="</code><em>number v-unit</em><code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;ms&gt;</code> string 
    <ol>
      <li>the nine common attributes</li>
      <li><code>lquote="</code><em>character</em><code>"</code> default is
        <code>&amp;quot</code></li>
      <li><code>rquote="</code><em>character</em><code>"</code> default is
        <code>&amp;quot</code></li>
    </ol>
  </li>
  <li><code>&lt;mglyph&gt;</code> character glyph 
    <ol>
      <li>the nine common attributes and</li>
      <li><code>fontfamily="</code><code></code><em>string</em> |
        <em>css-fontfamily <code>"</code></em></li>
      <li><code>index="</code> <em>integer</em> <code>"</code></li>
      <li><code>alt="</code><em>string</em><code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;mrow&gt;</code> horizontal row</li>
  <li><code>&lt;mfrac&gt;</code> fraction 
    <ol>
      <li><code>linethickness="</code><em>number</em> [<em>v-unit</em>] |
        <code>thin</code> | <code>medium</code> | <code>thick"</code></li>
      <li><code>numalign=" left</code> | <code>center</code> |
        <code>right"</code></li>
      <li><code>denomalign="(left</code> | <code>center</code> |
        <code>right</code>)+"</li>
      <li><code>bevelled="true</code> | <code>false"</code></li>
    </ol>
  </li>
  <li><code>&lt;msqrt&gt;</code> square root</li>
  <li><code>&lt;mroot&gt;</code> root</li>
  <li><code>&lt;mstyle&gt;</code> apply style 
    <ol>
      <li>all attributes of all presentation elements except for those that
        have a required value</li>
      <li><code>scriptlevel="</code>[+|-] <em>unsigned
        integer</em><code>"</code></li>
      <li><code>displaystyle="true</code> | <code>false"</code></li>
      <li><code>scriptsizemultiplier="</code><em>number</em><code>"</code>
        default is 0.71</li>
      <li><code>scriptminsize="</code><em>number v-unit</em><code>"</code>
        default is 8pt</li>
      <li><code>color="</code><em>#rgb</em> | <em>#rrggbb</em> |
        <code>transparent</code> | <em>html-color-name</em><code>"</code></li>
      <li><code>background="</code><em>#rgb</em> | <em>#rrggbb</em> |
        <code>transparent</code> | <em>html-color-name</em><code>"</code>
        default is <code>transparent</code></li>
      <li><code>veryverythinmathspace="</code><em>number
        h-unit</em><code>"</code> default is 1/18 em</li>
      <li><code>verythinmathspace="</code><em>number
        h-unit</em><code>"</code>default is 1/9 em</li>
      <li><code>thinmathspace="</code><em>number
        h-unit</em><code>"</code>default is 1/6 em</li>
      <li><code>mediummathspace="</code><em>number h-unit</em><code>"</code>
        default is 2/9 em</li>
      <li><code>thickmathspace="</code><em>number
        h-unit</em><code>"</code>default is 5/18 em</li>
      <li><code>verythickmathspace="</code><em>number
        h-unit</em><code>"</code> default is 1/3 em</li>
      <li><code>veryverythickmathspace="</code><em>number
        h-unit</em><code>"</code> default is 7/18 em</li>
    </ol>
  </li>
  <li><code>&lt;mspace&gt;</code> blank space 
    <ol>
      <li>the nine common attributes</li>
      <li><code>width="</code><em>number h-unit</em> |
        <em>namedspace</em><code>"</code></li>
      <li><code>height="</code><em>number v-unit</em><code>"</code></li>
      <li><code>depth="</code><em>number v-unit</em><code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;mphantom&gt;</code> make content invisible</li>
  <li><code>&lt;mfenced&gt;</code> add fences around content 
    <ol>
      <li><code>open="</code><em>string</em><code>"</code> default is (</li>
      <li><code>close="</code><em>string</em>" default is )</li>
      <li><code>separators="</code><em>character*</em><code>"</code> default
        is ,</li>
    </ol>
  </li>
  <li><code>&lt;menclose&gt;</code> enclose content in a stretchy symbol 
    <ol>
      <li><code>notation="longdiv</code> | <code>actuarial</code> |
        <code>radical"</code> default is <code>radical</code></li>
    </ol>
  </li>
  <li><code>&lt;merror&gt;</code> error messages</li>
  <li><code>&lt;msub&gt;</code> subscript 
    <ol>
      <li><code>subscriptshift="</code><em>number
      v-unit</em><code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;msup&gt;</code> superscript 
    <ol>
      <li><code>superscriptshift="</code><em>number
      v-unit</em><code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;msubsup&gt;</code> subscript and superscript 
    <ol>
      <li><code>subscriptshift="</code><em>number
      v-unit</em><code>"</code></li>
      <li><code>superscriptshift="</code><em>number
      v-unit</em><code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;munder&gt;</code> underbrace 
    <ol>
      <li><code>accentunder="true</code> | <code>false"</code></li>
    </ol>
  </li>
  <li><code>&lt;mover&gt;</code> overbrace 
    <ol>
      <li><code>accent="true</code> | <code>false"</code></li>
    </ol>
  </li>
  <li><code>&lt;munderover&gt;</code> under and overbrace 
    <ol>
      <li><code>accentunder="true</code> | <code>false"</code></li>
      <li><code>accent="true</code> | <code>false"</code></li>
    </ol>
  </li>
  <li><code>&lt;mmultiscripts&gt;</code> 
    <ol>
      <li><code>subscriptshift="</code><em>number
      v-unit</em><code>"</code></li>
      <li><code>superscriptshift="</code><em>number
        v-unit</em><em></em><code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;none/&gt;</code> is used only as a child element of the
    <code>mmultiscripts</code> element</li>
  <li><code>&lt;mtable&gt;</code> table or matrix 
    <ol>
      <li><code>align="</code>(<code>top</code> | <code>bottom</code> |
        <code>center</code> | <code>baseline</code> |
        <code>axis</code>)<code>"</code> default is <code>axis</code></li>
      <li><code>rowalign="</code>(<code>top</code> | <code>bottom</code> |
        <code>center</code> | <code>baseline</code> |
        <code>axis</code>)<code>+"</code> default is
      <code>baseline</code></li>
      <li><code>columnalign="</code>(<code>left</code> | <code>center</code>
        | <code>right</code>)<code>+"</code> default is
      <code>center</code></li>
      <li><code>columnwidth="</code>(<code>auto</code> | <em>number
        h-unit</em> | <em>namedspace</em> | <code>fit</code>)<code>"</code>
        default is <code>auto</code></li>
      <li><code>width="auto</code> | <em>number h-unit</em><code>"</code>
        default is <code>auto</code></li>
      <li><code>rowspacing="</code>(<em>number v-unit</em>)<code>+"</code>
        default is <code>1.0 ex</code></li>
      <li><code>columnspacing="</code>(<em>number h-unit</em> |
        <em>namedspace</em>)+<code>"</code> default is 0.8em</li>
      <li><code>rowlines="(none</code> | <code>solid</code> |
        <code>dashed</code>)+<code>"</code> default is <code>none</code></li>
      <li><code>columnlines="</code>(<code>none</code> | <code>solid</code> |
        <code>dashed</code>)<code>+"</code> default is <code>none</code></li>
      <li><code>equalrows="true</code> | <code>false"</code> default is
        <code>false</code></li>
      <li><code>equalcolumns="true</code> | <code>false"</code> default is
        <code>false</code></li>
      <li><code>frame="</code>(<code>none</code> | <code>solid</code> |
        <code>dashed</code>)+<code>"</code> default is <code>none</code></li>
      <li><code>framespacing="</code>(<em>number h-unit</em> |
        <em>namedspace</em>) (<em>number v-unit</em> | <em>namedspace</em>)"
        default is <code>0.4 em 0.5 ex</code></li>
      <li><code>displaystyle="true</code> | <code>false"</code> default is
        <code>false</code></li>
      <li><code>side="left</code> | <code>right</code> |
        <code>leftoverlap</code> | <code>rightoverlap</code>" default is
        <code>overlap</code></li>
      <li><code>minlabelspacing="</code><em>number
      h-unit</em><code>"</code></li>
      <li><code>groupalign="</code><em>groupalignment-list-list</em><code>"</code><code></code></li>
      <li><code>alignmentscop="true</code> | <code>false"</code></li>
    </ol>
  </li>
  <li><code>&lt;mtr&gt;</code> row of a table 
    <ol>
      <li><code>rowalign="(top</code> | <code>bottom</code> |
        <code>center</code> | <code>baseline</code> | <code>axis)+"</code>
        default is <code>baseline</code></li>
      <li><code>columnalign="(left</code> | <code>center</code> |
        <code>right)+"</code> default is <code>center</code></li>
      <li><code>groupalign="</code><em>groupalignment-list-list</em><code>"</code>default
        is <code>{left}</code></li>
    </ol>
  </li>
  <li><code>&lt;mlabeledtr&gt;</code> labeled row of a table 
    <ol>
      <li>rowalign="(top | <code>bottom</code> | <code>center</code> |
        <code>baseline</code> | <code>axis)+"</code> default is
        <code>baseline</code></li>
      <li><code>columnalign="(left</code> | <code>center</code> |
        <code>right)+"</code> default is <code>center</code></li>
      <li><code>groupalign="</code><em>groupalignment-list-list</em><code>"</code>default
        is <code>{left}</code></li>
    </ol>
  </li>
  <li><code>&lt;mtd&gt;</code> cell in a table 
    <ol>
      <li>rowalign="(top | <code>bottom</code> | <code>center</code> |
        <code>baseline</code> | <code>axis)+"</code> default is
        <code>baseline</code></li>
      <li><code>columnalign="(left</code> | <code>center</code> |
        <code>right)+"</code> default is <code>center</code></li>
      <li><code>groupalign="</code><em>groupalignment-list-list</em><code>"</code>default
        is <code>{left}</code></li>
      <li><code>rowspan="</code><em>number</em><code>"</code> default is
      1</li>
      <li><code>columnspan="</code><em>number</em><code>"</code> default is
      1</li>
    </ol>
  </li>
  <li><code>&lt;maligngroup&gt;</code> alignment group</li>
  <li><code>&lt;malignmark&gt;</code> alignment marker 
    <ol>
      <li><code>edge="left</code> | <code>right"</code> default is
        <code>{left}</code></li>
    </ol>
  </li>
  <li><code>&lt;maction&gt;</code> interactive actions 
    <ol>
      <li><code>selection="</code><em>number</em><code>"</code> default is
      1</li>
      <li><code>actiontype="</code>depends on application<code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;mpadded&gt;</code> precise positioning 
    <ol>
      <li><code>width="</code>[+ | -] <em>number</em> |
        (%[<em>pseudo-unit</em>] | <em>pseudounit</em> | <em>h-unit</em> |
        <em>namedspace</em>)<code>"</code></li>
      <li><code>lspace=</code>"[+ | -] <em>number</em> |
        (%[<em>pseudo-unit</em>] | <em>pseudounit</em> |
        <em>h-unit</em>)<code>"</code></li>
      <li><code>height="</code>[+ | -] <em>number</em> |
        (%[<em>pseudo-unit</em>] | <em>pseudounit</em> |
        <em>h-unit</em>)<code>"</code></li>
      <li><code>depth="</code>[+ | -] <em>number</em> |
        (%[<em>pseudo-unit</em>] | <em>pseudounit</em> |
        <em>h-unit</em>)<code>"</code></li>
    </ol>
  </li>
  <li><code>&lt;mprescripts&gt;</code> used in <code>mmultiscripts</code> to
    indicate folowing elements in prescript position</li>
</ul>



<h2 class="appendix">Template for an article</h2>


<ul>
<li> <p>
The first part of the header is the Document Type Definition (DTD) for web 
pages that use large amounts of MathML. 
</p>
</li>
<li><p> The part of the header inside the 
<code>&lt;style&gt; ... &lt;/style&gt;</code> tag is a set of CSS
(Cascading Style Sheet) rules for automatic numbering of sections,
formats for theorems, propositions and lemmas, and for displayed equations,
with and without equation numbers.
</p>
</li>
</ul>

<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
   "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt; 
&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Your favourite title&lt;/title&gt;
&lt;style type="text/css"&gt;
body {
    counter-reset: section 0;  
    text-align: justify
}

h2.title {
    text-align:center
}
p.author {
    text-align:center
}
li {
    text-indent: 0em;
}
p.indent {
    text-indent: 2em; 
}

h2.section {
    counter-reset: eqn 0 result 0 subsection 0;  
}
h2.section:before {
    content: counter(section) ". ";
    counter-increment: section 1;  /* Add 1 to section */
}
h3.subsection:before {
    content: counter(section) "." counter(subsection);
    counter-increment: subsection;  /* Add 1 to subsection */
}

div.theorem:before { 
    content: "Theorem " counter(section) "." counter(result) " "; 
    counter-increment: result 1;
    font-style: normal; 
    font-weight: bold; 
}
div.theorem{ font-style:italic }
div.proposition:before { 
    content: "Proposition " counter(section) "." counter(result) " "; 
	counter-increment: result 1;
    font-style: normal; 
    font-weight: bold; 
}
div.proposition{ font-style:italic }
div.lemma:before { 
    content: "Lemma " counter(section) "." counter(result) " "; 
    counter-increment: result;
    font-style: normal; 
    font-weight: bold; 
}
div.lemma{ font-style:italic }

table.dispeq {
   width:100%;
   }
td.eq {
   text-align:center;
     }
td.eqno {
    width: 10px;
    text-align:right;
    }
td.eqno:after { 
     content: "("counter(section)"."counter(eqn)")";
     counter-increment: eqn;
     font-style: normal; 
  }
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;h2 class="title"&gt; Template for article &lt;/h2&gt;

&lt;p class="author"&gt;
Arun Ram &lt;br /&gt;
Department of Mathematics &lt;br /&gt;
University of Wisconsin, Madison &lt;br /&gt;
Madison, WI 53706 USA 
&lt;/p&gt;

&lt;p&gt; Last updates: 31 February 1935 &lt;/p&gt;


&lt;h2 class="section"&gt; Section title &lt;/h2&gt;

&lt;p class="indent"&gt; 
A little introductory text.
&lt;/p&gt;
&lt;table class="dispeq"&gt;  
&lt;a name="firsteqn" id="firsteqn"&gt;&lt;/a&gt;
&lt;tr&gt;
&lt;td class="eq"&gt; 
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
  &lt;mi&gt;G&lt;/mi&gt;
  &lt;mo&gt;=&lt;/mo&gt;
  &lt;munder&gt;
    &lt;mstyle scriptlevel="-1"&gt;
         &lt;mo&gt;&amp;sqcup;&lt;/mo&gt;
    &lt;/mstyle&gt;
    &lt;mrow&gt;
      &lt;mi&gt;w&lt;/mi&gt;
      &lt;mo&gt;&amp;isin;&lt;/mo&gt;
      &lt;mover&gt;
        &lt;mi&gt;W&lt;/mi&gt;
        &lt;mi&gt;&amp;Tilde;&lt;/mi&gt;
      &lt;/mover&gt;
    &lt;/mrow&gt;
  &lt;/munder&gt;
  &lt;mi&gt;I&lt;/mi&gt;
  &lt;mi&gt;w&lt;/mi&gt;
  &lt;mi&gt;I&lt;/mi&gt;
  &lt;mspace width="2em"/&gt;
&lt;/math&gt;
&lt;/td&gt; 
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;

&lt;div class="theorem"&gt;
&lt;a href="#[BG]"&gt;[BG]&lt;/a&gt;
A theorem about subscripts and superscripts.
&lt;table class="dispeq"&gt;
&lt;a name="fractions" id="fractions"&gt;&lt;/a&gt;
&lt;tr&gt;&lt;td class="eq"&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
    &lt;msub&gt; &lt;mi&gt;b&lt;/mi&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;,&lt;/mo&gt;
    &lt;mspace width="2em"/&gt;
    &lt;msup&gt; &lt;mi&gt;x&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo&gt;,&lt;/mo&gt;
    &lt;mspace width="2em"/&gt;
      &lt;mmultiscripts&gt; 
        &lt;mi&gt; R &lt;/mi&gt; 
        &lt;mi&gt; i &lt;/mi&gt; 
        &lt;none/&gt; 
        &lt;none/&gt; 
        &lt;mi&gt; j &lt;/mi&gt; 
        &lt;mi&gt; k &lt;/mi&gt; 
        &lt;none/&gt; 
        &lt;mi&gt; l &lt;/mi&gt; 
        &lt;none/&gt; 
      &lt;/mmultiscripts&gt; &lt;mo&gt;,&lt;/mo&gt;
&lt;mspace width="2em"/&gt;
&lt;mtext&gt;and&lt;/mtext&gt;
&lt;mspace width="2em"/&gt;
      &lt;mmultiscripts&gt; 
        &lt;mi&gt; R &lt;/mi&gt; 
        &lt;mi&gt; i &lt;/mi&gt; 
        &lt;none/&gt; 
        &lt;none/&gt; 
        &lt;mi&gt; j &lt;/mi&gt; 
        &lt;mi&gt; k &lt;/mi&gt; 
        &lt;none/&gt; 
        &lt;mi&gt; l &lt;/mi&gt; 
        &lt;none/&gt; 
  &lt;mprescripts/&gt;
        &lt;mi&gt; &ell; &lt;/mi&gt; 
        &lt;none/&gt; 
        &lt;none/&gt; 
        &lt;mi&gt; m &lt;/mi&gt; 
        &lt;mi&gt; n &lt;/mi&gt; 
        &lt;none/&gt; 
        &lt;mi&gt; p &lt;/mi&gt; 
        &lt;none/&gt; 
      &lt;/mmultiscripts&gt; 
      &lt;mo&gt;.&lt;/mo&gt;
&lt;/math&gt;
&lt;/td&gt;
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;

&lt;p class="indent"&gt;A bit of text about hats, tildes, arrows, underbraces
and overbraces.  &lt;/p&gt;
&lt;table class="dispeq"&gt;
&lt;a name="accents" id="accents"&gt;&lt;/a&gt;
&lt;tr&gt;&lt;td class="eq"&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
   &lt;mover&gt;
     &lt;mi mathvariant="italic"&gt;xxx&lt;/mi&gt;
     &lt;mo stretchy="true"&gt;&amp;Tilde;&lt;/mo&gt;
   &lt;/mover&gt;
&lt;mi&gt;&amp;thinsp;&lt;/mi&gt;
&lt;mover&gt;
&lt;mo&gt;&amp;rarr;&lt;/mo&gt;
&lt;mtext&gt;goes to&lt;/mtext&gt;
&lt;/mover&gt;
&lt;mi&gt;&amp;thinsp;&lt;/mi&gt;
&lt;mover&gt;
&lt;mtext&gt;vector&lt;/mtext&gt;
&lt;mo&gt;&amp;rarr;&lt;/mo&gt;
&lt;/mover&gt;
&lt;mspace width="1em"/&gt;
&lt;mtext&gt;and&lt;/mtext&gt;
&lt;mspace width="1em"/&gt;
   &lt;mover&gt;
     &lt;mi mathvariant="italic"&gt;xxx&lt;/mi&gt;
     &lt;mo stretchy="true"&gt;&amp;OverBar;&lt;/mo&gt;
   &lt;/mover&gt;
&lt;mi&gt;&amp;thinsp;&lt;/mi&gt;
&lt;mover&gt;
&lt;mo&gt;&amp;rarr;&lt;/mo&gt;
&lt;mrow&gt;
   &lt;mphantom&gt;&lt;mtext&gt;goes to&lt;/mtext&gt;&lt;/mphantom&gt;
   &lt;mo&gt;&amp;sim;&lt;/mo&gt;
   &lt;mphantom&gt;&lt;mtext&gt;goes to&lt;/mtext&gt;&lt;/mphantom&gt;
&lt;/mrow&gt;
&lt;/mover&gt;
&lt;mi&gt;&amp;thinsp;&lt;/mi&gt;
   &lt;mover&gt;
     &lt;mi mathvariant="italic"&gt;xxxx&lt;/mi&gt;
     &lt;mo&gt;&amp;Hat;&lt;/mo&gt;
   &lt;/mover&gt;
&lt;mover&gt;
&lt;mo&gt;&amp;larr;&lt;/mo&gt;
&lt;mrow&gt;&lt;mi&gt;&amp;emsp;&lt;/mi&gt;&lt;mi&gt;&amp;phiv;&lt;/mi&gt;&lt;mi&gt;&amp;emsp;&lt;/mi&gt;&lt;/mrow&gt;
&lt;/mover&gt;
&lt;mrow&gt;
  &lt;mo stretchy='false'&gt;{&lt;/mo&gt;
  &lt;munder&gt;
    &lt;mrow&gt;
      &lt;mover&gt;
        &lt;mrow&gt;
          &lt;mpadded width="0"&gt;&lt;mphantom&gt;(&lt;/mphantom&gt;&lt;/mpadded&gt; &lt;!-- \mathstrut -ugly hack a la TeX --&gt;
          &lt;mi&gt;a&lt;/mi&gt;
          &lt;mo&gt;,&lt;/mo&gt;
          &lt;mo&gt;...&lt;/mo&gt;
          &lt;mo&gt;,&lt;/mo&gt;
          &lt;mi&gt;a&lt;/mi&gt;
        &lt;/mrow&gt;
        &lt;mover&gt;
          &lt;mo&gt;&amp;OverBrace;&lt;/mo&gt;
          &lt;mrow&gt;
            &lt;mi&gt;k&lt;/mi&gt;
            &lt;mtext&gt;&amp;nbsp;&lt;/mtext&gt;
            &lt;mi&gt;a&lt;/mi&gt;
            &lt;mtext&gt;&amp;rsquo;s&lt;/mtext&gt;
          &lt;/mrow&gt;
        &lt;/mover&gt;
      &lt;/mover&gt;
      &lt;mo&gt;,&lt;/mo&gt;
      &lt;mover&gt;
        &lt;mrow&gt;
          &lt;mpadded width="0"&gt;&lt;mphantom&gt;(&lt;/mphantom&gt;&lt;/mpadded&gt; &lt;!-- \mathstrut -ugly hack a la TeX --&gt;
          &lt;mi&gt;b&lt;/mi&gt;
          &lt;mo&gt;,&lt;/mo&gt;
          &lt;mo&gt;...&lt;/mo&gt;
          &lt;mo&gt;,&lt;/mo&gt;
          &lt;mi&gt;b&lt;/mi&gt;
        &lt;/mrow&gt;
        &lt;mover&gt;
          &lt;mo&gt;&amp;OverBrace;&lt;/mo&gt;
          &lt;mrow&gt;
            &lt;mi&gt;&amp;ell;&lt;/mi&gt;
            &lt;mtext&gt;&amp;nbsp;&lt;/mtext&gt;
            &lt;mi&gt;b&lt;/mi&gt;
            &lt;mtext&gt;&amp;rsquo;s&lt;/mtext&gt;
          &lt;/mrow&gt;
        &lt;/mover&gt;
      &lt;/mover&gt;
    &lt;/mrow&gt;
    &lt;munder&gt;
      &lt;mo&gt;&amp;UnderBrace;&lt;/mo&gt;
      &lt;mrow&gt;
        &lt;mi&gt;k&lt;/mi&gt;
        &lt;mo&gt;+&lt;/mo&gt;
        &lt;mi&gt;&amp;ell;&lt;/mi&gt;
        &lt;mtext&gt;&amp;nbsp;elements&lt;/mtext&gt;
      &lt;/mrow&gt;
    &lt;/munder&gt;
  &lt;/munder&gt;
  &lt;mo stretchy='false'&gt;}&lt;/mo&gt;
&lt;/mrow&gt;
&lt;/math&gt;
&lt;/td&gt;
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;


&lt;div class="proposition"&gt;
A proposition about fractions.
&lt;table class="dispeq"&gt;
&lt;a name="fractions" id="fractions"&gt;&lt;/a&gt;
&lt;tr&gt;&lt;td class="eq"&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mstyle displaystyle="true"&gt;
&lt;mrow&gt;
  &lt;munder&gt;
    &lt;mo&gt;&amp;sum;&lt;/mo&gt;
    &lt;mrow&gt;
      &lt;mfrac linethickness="0"&gt;
        &lt;mrow&gt;
          &lt;mn&gt;0&lt;/mn&gt;
          &lt;mo&gt;&amp;leq;&lt;/mo&gt;
          &lt;mi&gt;i&lt;/mi&gt;
          &lt;mo&gt;&amp;leq;&lt;/mo&gt;
          &lt;mi&gt;m&lt;/mi&gt;
        &lt;/mrow&gt;
        &lt;mrow&gt;
          &lt;mn&gt;0&lt;/mn&gt;
          &lt;mo&gt;&amp;lt;&lt;/mo&gt;
          &lt;mi&gt;j&lt;/mi&gt;
          &lt;mo&gt;&amp;lt;&lt;/mo&gt;
          &lt;mi&gt;n&lt;/mi&gt;
        &lt;/mrow&gt;
      &lt;/mfrac&gt;
    &lt;/mrow&gt;
  &lt;/munder&gt;
&lt;/mrow&gt;
&lt;mrow&gt;
  &lt;mo&gt;&amp;langle;&lt;/mo&gt;
&lt;mfrac linethickness="0"&gt;
    &lt;mi&gt;n&lt;/mi&gt;
    &lt;mrow&gt;
      &lt;mi&gt;k&lt;/mi&gt;
      &lt;mo&gt;/&lt;/mo&gt;
      &lt;mn&gt;2&lt;/mn&gt;
    &lt;/mrow&gt;
&lt;/mfrac&gt;
  &lt;mo&gt;)&lt;/mo&gt;
&lt;/mrow&gt;
&lt;mo&gt;=&lt;/mo&gt;
  &lt;mrow&gt;
    &lt;mo&gt;[&lt;/mo&gt;
    &lt;mfrac&gt;
      &lt;msup&gt;
        &lt;mo&gt;&amp;part;&lt;/mo&gt;
        &lt;mn&gt;2&lt;/mn&gt;
      &lt;/msup&gt;
      &lt;mrow&gt;
        &lt;mo&gt;&amp;part;&lt;/mo&gt;
        &lt;msup&gt;
          &lt;mi&gt;x&lt;/mi&gt;
          &lt;mn&gt;2&lt;/mn&gt;
        &lt;/msup&gt;
      &lt;/mrow&gt;
    &lt;/mfrac&gt;
    &lt;mo&gt;+&lt;/mo&gt;
    &lt;mfrac&gt;
      &lt;msup&gt;
        &lt;mo&gt;&amp;part;&lt;/mo&gt;
        &lt;mn&gt;2&lt;/mn&gt;
      &lt;/msup&gt;
      &lt;mrow&gt;
        &lt;mo&gt;&amp;part;&lt;/mo&gt;
        &lt;msup&gt;
          &lt;mi&gt;y&lt;/mi&gt;
          &lt;mn&gt;2&lt;/mn&gt;
        &lt;/msup&gt;
      &lt;/mrow&gt;
    &lt;/mfrac&gt;
    &lt;mo&gt;&amp;rangle;&lt;/mo&gt;
  &lt;/mrow&gt;
&lt;/mstyle&gt;
&lt;mo&gt;=&lt;/mo&gt;
&lt;mrow&gt;
  &lt;mfrac&gt;
    &lt;mrow&gt;
    &lt;mstyle displaystyle="true" scriptlevel="-1"&gt;
      &lt;mi&gt;x&lt;/mi&gt;
      &lt;mo&gt;+&lt;/mo&gt;
      &lt;mfrac&gt;
        &lt;mi&gt;y&lt;/mi&gt;
        &lt;mn&gt;2&lt;/mn&gt;
      &lt;/mfrac&gt;
    &lt;/mstyle&gt;
    &lt;/mrow&gt;
    &lt;mrow&gt;
      &lt;mi&gt;k&lt;/mi&gt;
      &lt;mo&gt;+&lt;/mo&gt;
      &lt;mfrac&gt;
         &lt;mn&gt;1&lt;/mn&gt;
         &lt;mi&gt;x&lt;/mi&gt;
      &lt;/mfrac&gt;
    &lt;/mrow&gt;
  &lt;/mfrac&gt;
&lt;/mrow&gt;
&lt;/math&gt;
&lt;/td&gt;
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;

&lt;h3 class="subsection"&gt; Development &lt;/h3&gt;

&lt;p class="indent"&gt;The following lemma might be useful.&lt;/p&gt;

&lt;div class="lemma"&gt;
&lt;a name="matrices" id="matrices"&gt;&lt;/a&gt;
A lemma about matrices and aligned equations
&lt;table class="dispeq"&gt;
&lt;tr&gt;&lt;td class="eq"&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mrow&gt;
  &lt;mo&gt;(&lt;/mo&gt;
  &lt;mtable&gt;
    &lt;mtr&gt;
      &lt;mtd columnalign="center"&gt;
        &lt;mrow&gt;
          &lt;mo&gt;(&lt;/mo&gt;
          &lt;mtable&gt;
            &lt;mtr&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mo&gt;&amp;dtdot;&lt;/mo&gt;
              &lt;/mtd&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;b&lt;/mi&gt;
              &lt;/mtd&gt;
            &lt;/mtr&gt;
            &lt;mtr&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mo&gt;&amp;utdot;&lt;/mo&gt;
              &lt;/mtd&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;d&lt;/mi&gt;
              &lt;/mtd&gt;
            &lt;/mtr&gt;
          &lt;/mtable&gt;
          &lt;mo&gt;)&lt;/mo&gt;
        &lt;/mrow&gt;
      &lt;/mtd&gt;
      &lt;mtd columnalign="center"&gt;
        &lt;mrow&gt;
          &lt;mo&gt;(&lt;/mo&gt;
          &lt;mtable&gt;
            &lt;mtr&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mo&gt;&amp;ctdot;&lt;/mo&gt;
              &lt;/mtd&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mo&gt;&amp;vellip;&lt;/mo&gt;
              &lt;/mtd&gt;
            &lt;/mtr&gt;
            &lt;mtr&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;g&lt;/mi&gt;
              &lt;/mtd&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;h&lt;/mi&gt;
              &lt;/mtd&gt;
            &lt;/mtr&gt;
          &lt;/mtable&gt;
          &lt;mo&gt;)&lt;/mo&gt;
        &lt;/mrow&gt;
      &lt;/mtd&gt;
    &lt;/mtr&gt;
    &lt;mtr&gt;
      &lt;mtd columnalign="center"&gt;
        &lt;mn&gt;0&lt;/mn&gt;
      &lt;/mtd&gt;
      &lt;mtd columnalign="center"&gt;
        &lt;mrow&gt;
          &lt;mo&gt;(&lt;/mo&gt;
          &lt;mtable&gt;
            &lt;mtr&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;i&lt;/mi&gt;
              &lt;/mtd&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;j&lt;/mi&gt;
              &lt;/mtd&gt;
            &lt;/mtr&gt;
            &lt;mtr&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;k&lt;/mi&gt;
              &lt;/mtd&gt;
              &lt;mtd columnalign="center"&gt;
                &lt;mi&gt;l&lt;/mi&gt;
              &lt;/mtd&gt;
            &lt;/mtr&gt;
          &lt;/mtable&gt;
          &lt;mo&gt;)&lt;/mo&gt;
        &lt;/mrow&gt;
      &lt;/mtd&gt;
    &lt;/mtr&gt;
  &lt;/mtable&gt;
  &lt;mo&gt;)&lt;/mo&gt;
&lt;/mrow&gt;
&lt;mspace width="2em"/&gt;
&lt;mtext&gt;and&lt;/mtext&gt;
&lt;mspace width="2em"/&gt;
&lt;mtable columnalign="right center left"&gt;
    &lt;mtr&gt;
      &lt;mtd&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;mi&gt;f&lt;/mi&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;mu;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;mi&gt;g&lt;/mi&gt;
        &lt;mo&gt;)&lt;/mo&gt;
      &lt;/mtd&gt;
      &lt;mtd&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;/mtd&gt;
      &lt;mtd&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;mu;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;msup&gt;
          &lt;mi&gt;f&lt;/mi&gt;
          &lt;mrow&gt;
            &lt;mo&gt;–&lt;/mo&gt;
            &lt;mn&gt;1&lt;/mn&gt;
          &lt;/mrow&gt;
        &lt;/msup&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mrow&gt;
            &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
            &lt;mo&gt;+&lt;/mo&gt;
            &lt;mi&gt;&amp;mu;&lt;/mi&gt;
          &lt;/mrow&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;mi&gt;f&lt;/mi&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mrow&gt;
            &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
            &lt;mo&gt;+&lt;/mo&gt;
            &lt;mi&gt;&amp;mu;&lt;/mi&gt;
          &lt;/mrow&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;mi&gt;g&lt;/mi&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;msup&gt;
          &lt;mi&gt;g&lt;/mi&gt;
          &lt;mrow&gt;
            &lt;mo&gt;–&lt;/mo&gt;
            &lt;mn&gt;1&lt;/mn&gt;
          &lt;/mrow&gt;
        &lt;/msup&gt;
        &lt;mo&gt;)&lt;/mo&gt;
      &lt;/mtd&gt;
    &lt;/mtr&gt;
    &lt;mtr&gt;
      &lt;mtd&gt;&lt;/mtd&gt;
      &lt;mtd&gt; &lt;mo&gt;=&lt;/mo&gt; &lt;/mtd&gt;
      &lt;mtd&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;mu;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;msup&gt;
          &lt;mi&gt;f&lt;/mi&gt;
          &lt;mrow&gt;
            &lt;mo&gt;–&lt;/mo&gt;
            &lt;mn&gt;1&lt;/mn&gt;
          &lt;/mrow&gt;
        &lt;/msup&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mrow&gt;
            &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
            &lt;mo&gt;+&lt;/mo&gt;
            &lt;mi&gt;&amp;mu;&lt;/mi&gt;
          &lt;/mrow&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;g&lt;/mi&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;msup&gt;
          &lt;mi&gt;g&lt;/mi&gt;
          &lt;mrow&gt;
            &lt;mo&gt;–&lt;/mo&gt;
            &lt;mn&gt;1&lt;/mn&gt;
          &lt;/mrow&gt;
        &lt;/msup&gt;
        &lt;mo&gt;)&lt;/mo&gt;
      &lt;/mtd&gt;
    &lt;/mtr&gt;
    &lt;mtr&gt;
      &lt;mtd&gt;&lt;/mtd&gt;
      &lt;mtd&gt;  &lt;mo&gt;=&lt;/mo&gt;&lt;/mtd&gt;
      &lt;mtd&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;mu;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;mi&gt;g&lt;/mi&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;msub&gt;
          &lt;mi&gt;h&lt;/mi&gt;
          &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
        &lt;/msub&gt;
        &lt;mo&gt;(&lt;/mo&gt;
        &lt;mi&gt;f&lt;/mi&gt;
        &lt;mo&gt;)&lt;/mo&gt;
        &lt;mo&gt;.&lt;/mo&gt;
      &lt;/mtd&gt;
    &lt;/mtr&gt;
  &lt;/mtable&gt;
&lt;/math&gt;
&lt;/td&gt;
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
with a link back to equation 
(&lt;a href="#firsteqn"&gt;1.1&lt;/a&gt;).
&lt;/div&gt;

&lt;p&gt;And finally,&lt;/p&gt;

&lt;div class="proposition"&gt; &lt;a name="boxes" id="boxes"&gt;&lt;/a&gt;
A proposition about boxes, backgrounds and colors.
&lt;table class="dispeq"&gt;
&lt;tr&gt;&lt;td class="eq"&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;mtable frame="solid"&gt;
&lt;mtr&gt;
 &lt;mtd&gt; 
&lt;msup&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;
&lt;mo&gt;+&lt;/mo&gt;
&lt;msup&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;
&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;
 &lt;/mtd&gt;
&lt;/mtr&gt;
&lt;/mtable&gt;
&lt;mspace width="2em"/&gt;
&lt;mtext&gt;and&lt;/mtext&gt;
&lt;mspace width="2em"/&gt;
&lt;mstyle background="yellow"&gt;
&lt;msup&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;/msup&gt;
&lt;mo&gt;+&lt;/mo&gt;
&lt;msup&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;/msup&gt;
&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;
&lt;/mstyle&gt;
&lt;mspace width="2em"/&gt;
&lt;mtext&gt; and &lt;/mtext&gt;
&lt;mspace width="2em"/&gt;
      &lt;mi mathcolor="blue"&gt;x&lt;/mi&gt; 
      &lt;mo&gt;+&lt;/mo&gt; 
      &lt;mn mathcolor="#00ff33" color="purple"&gt;7&lt;/mn&gt; 
      &lt;mo&gt;+&lt;/mo&gt; 
      &lt;mn color="yellow"&gt;3&lt;/mn&gt; 
      &lt;mo&gt;+&lt;/mo&gt; 
      &lt;mstyle color="red"&gt; 
        &lt;mi&gt;z&lt;/mi&gt; 
        &lt;mo&gt;+&lt;/mo&gt; 
        &lt;mi mathcolor="blue"&gt;q&lt;/mi&gt; 
        &lt;mo&gt;+&lt;/mo&gt; 
        &lt;mi&gt;q&lt;/mi&gt; 
      &lt;/mstyle&gt;
&lt;/math&gt;
&lt;/td&gt;
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;
&lt;table class="dispeq"&gt;
&lt;a name="graphic" id="graphic"&gt;&lt;/a&gt;
&lt;tr&gt;&lt;td class="eq"&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
  &lt;mi&gt;span&lt;/mi&gt;
  &lt;mo&gt;{&lt;/mo&gt;
  &lt;msub&gt;
    &lt;mi&gt;v&lt;/mi&gt;
    &lt;mn&gt;1&lt;/mn&gt;
  &lt;/msub&gt;
  &lt;mo&gt;,&lt;/mo&gt;
  &lt;mi&gt;&amp;hellip;&lt;/mi&gt;
  &lt;mo&gt;,&lt;/mo&gt;
  &lt;msub&gt;
    &lt;mi&gt;v&lt;/mi&gt;
    &lt;mi&gt;k&lt;/mi&gt;
  &lt;/msub&gt;
  &lt;mo&gt;}&lt;/mo&gt;
  &lt;mover&gt;
    &lt;mo&gt;&amp;map;&lt;/mo&gt;
    &lt;mi&gt;&amp;mu;&lt;/mi&gt;
  &lt;/mover&gt;
  &lt;mi title="convex hull"&gt;Conv&lt;/mi&gt;
  &lt;mo&gt;(&lt;/mo&gt;
  &lt;msup&gt;
    &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
    &lt;mrow&gt;
      &lt;mo&gt;(&lt;/mo&gt;
      &lt;mn&gt;1&lt;/mn&gt;
      &lt;mo&gt;)&lt;/mo&gt;
    &lt;/mrow&gt;
  &lt;/msup&gt;
  &lt;mo&gt;,&lt;/mo&gt;
  &lt;mi&gt;&amp;hellip;&lt;/mi&gt;
  &lt;mo&gt;,&lt;/mo&gt;
  &lt;msup&gt;
    &lt;mi&gt;&amp;lambda;&lt;/mi&gt;
    &lt;mrow&gt;
      &lt;mo&gt;(&lt;/mo&gt;
      &lt;mi&gt;k&lt;/mi&gt;
      &lt;mo&gt;)&lt;/mo&gt;
    &lt;/mrow&gt;
  &lt;/msup&gt;
  &lt;mo&gt;)&lt;/mo&gt;
  &lt;mo&gt;=&lt;/mo&gt;
  &lt;mi&gt;&amp;emsp;&lt;/mi&gt;
&lt;img xmlns="http://www.w3.org/1999/xhtml" align="middle" alt="convex hull" src="convexhull.png" /&gt;
&lt;/math&gt;
&lt;/td&gt; 
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
is an illustration of the proposition with a mouseover tooltip on the Conv.
&lt;/p&gt;

&lt;h2 class="section"&gt; The main theorem &lt;/h2&gt;

&lt;div class="theorem"&gt;
&lt;a name="cases" id="cases"&gt;&lt;/a&gt;
A theorem about cases and toggling content.
&lt;table class="dispeq"&gt;
&lt;tr&gt;&lt;td class="eq"&gt;
&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;
&lt;msub&gt; &lt;mi&gt;T&lt;/mi&gt;&lt;mi&gt;w&lt;/mi&gt;&lt;/msub&gt;
&lt;msub&gt; &lt;mi&gt;T&lt;/mi&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mi&gt;i&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;/msub&gt;
&lt;mo&gt;=&lt;/mo&gt;
&lt;mrow&gt; &lt;mo&gt;{&lt;/mo&gt;
&lt;mtable&gt;
&lt;mtr&gt; &lt;mtd&gt; &lt;msub&gt; &lt;mi&gt;T&lt;/mi&gt;
&lt;mrow&gt; 
  &lt;mi&gt;w&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mi&gt;i&lt;/mi&gt;&lt;/msub&gt;
&lt;/mrow&gt;
&lt;/msub&gt;
&lt;/mtd&gt;
&lt;mtd columnalign="left"&gt;
&lt;mtext&gt; if &lt;/mtext&gt;
&lt;mspace width="0.5em"/&gt; 
&lt;mi&gt;w&lt;/mi&gt; &lt;msub&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mi&gt;i&lt;/mi&gt;&lt;/msub&gt;
&lt;mo&gt;&gt;&lt;/mo&gt;&lt;mi&gt;w&lt;/mi&gt;
&lt;/mtd&gt;
&lt;/mtr&gt;
&lt;mtr&gt;
&lt;mtd&gt; &lt;mn&gt;0&lt;/mn&gt; &lt;/mtd&gt;
&lt;mtd columnalign="left"&gt; &lt;mtext&gt;otherwise.&lt;/mtext&gt; &lt;/mtd&gt;
&lt;/mtr&gt;
&lt;/mtable&gt;
&lt;/mrow&gt;
&lt;mspace width="4em"/&gt;
      &lt;maction actiontype="toggle"&gt; 
        &lt;mrow&gt; 
  &lt;mstyle background="pink"&gt;
          &lt;mn&gt;3&lt;/mn&gt; 
          &lt;mo&gt;+&lt;/mo&gt; 
          &lt;mn&gt;2&lt;/mn&gt; 
          &lt;mo&gt;=&lt;/mo&gt;
          &lt;mn&gt;32&lt;/mn&gt;
  &lt;/mstyle&gt;
        &lt;/mrow&gt; 
        &lt;mrow&gt; 
          &lt;mtext&gt; fooled you &nbsp;&lt;/mtext&gt; 
        &lt;/mrow&gt; 
        &lt;mrow&gt; 
          &lt;mtext&gt;fooled you&lt;/mtext&gt; 
            &lt;mo&gt;+&lt;/mo&gt; 
            &lt;mn&gt;1&lt;/mn&gt; 
        &lt;/mrow&gt;
      &lt;/maction&gt;
&lt;mspace width="1em"/&gt;
    &lt;mtext&gt;(try it, click on it).&lt;/mtext&gt;  
&lt;/math&gt;
&lt;/td&gt;
&lt;td class="eqno"&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;h2 class="section"&gt; References &lt;/h2&gt;

&lt;p&gt;
&lt;a name="[BG]" id="[BG]"&gt; [BG] &lt;/a&gt; 
&lt;a href="http://www.math.brown.edu/faculty/braverman.html"&gt;
A. Braverman&lt;/a&gt; and 
&lt;a href="http://www.math.harvard.edu/~gaitsgde/"&gt; 
D. Gaitsgory &lt;/a&gt;, 
&lt;a href="http://projecteuclid.org/DPubS?service=Repository&amp;amp;version=1.0&amp;amp;verb=Disseminate&amp;amp;handle=euclid.dmj/1091737024&amp;amp;view=body&amp;amp;content-type=pdf_1#" title="View PDF"&gt;
&lt;em&gt; Crystals via the affine Grassmanian&lt;/em&gt;&lt;/a&gt;, 
&lt;a href="http://www.dukeupress.edu/dmj/"&gt;Duke Math. J.&lt;/a&gt; 
&lt;a href="http://projecteuclid.org/DPubS?service=UI&amp;amp;version=1.0&amp;amp;verb=Display&amp;amp;page=toc&amp;amp;handle=euclid.dmj/1091737018"&gt;
&lt;strong&gt;107&lt;/strong&gt; no. 3,&lt;/a&gt; (2001), 561-575;  
&lt;a href="http://arxiv.org/abs/math.AG/9909077v2?front"&gt;
arXiv:math/9909077v2&lt;/a&gt;, 
&lt;a href="http://www.ams.org/mathscinet-getitem?mr=1828302"&gt;
MR1828302 (2002e:20083)&lt;/a&gt;
&lt;/p&gt;


&lt;/body&gt;
&lt;/html&gt;

</pre>


</body>
</html>
