diff --git a/Text/TeXMath/Parser.hs b/Text/TeXMath/Parser.hs
--- a/Text/TeXMath/Parser.hs
+++ b/Text/TeXMath/Parser.hs
@@ -481,42 +481,42 @@
            , ("/", ESymbol Bin "/")
            , ("\\setminus",	ESymbol Bin "\\")
            , ("\\times", ESymbol Bin "\x00D7")
-           , ("\\alpha", ESymbol Ord "\x03B1")
-           , ("\\beta", ESymbol Ord "\x03B2")
-           , ("\\chi", ESymbol Ord "\x03C7")
-           , ("\\delta", ESymbol Ord "\x03B4")
+           , ("\\alpha", EIdentifier "\x03B1")
+           , ("\\beta", EIdentifier "\x03B2")
+           , ("\\chi", EIdentifier "\x03C7")
+           , ("\\delta", EIdentifier "\x03B4")
            , ("\\Delta", ESymbol Op "\x0394")
-           , ("\\epsilon", ESymbol Ord "\x03B5")
-           , ("\\varepsilon", ESymbol Ord "\x025B")
-           , ("\\eta", ESymbol Ord "\x03B7")
-           , ("\\gamma", ESymbol Ord "\x03B3")
+           , ("\\epsilon", EIdentifier "\x03B5")
+           , ("\\varepsilon", EIdentifier "\x025B")
+           , ("\\eta", EIdentifier "\x03B7")
+           , ("\\gamma", EIdentifier "\x03B3")
            , ("\\Gamma", ESymbol Op "\x0393") 
-           , ("\\iota", ESymbol Ord "\x03B9")
-           , ("\\kappa", ESymbol Ord "\x03BA")
-           , ("\\lambda", ESymbol Ord "\x03BB")
+           , ("\\iota", EIdentifier "\x03B9")
+           , ("\\kappa", EIdentifier "\x03BA")
+           , ("\\lambda", EIdentifier "\x03BB")
            , ("\\Lambda", ESymbol Op "\x039B") 
-           , ("\\mu", ESymbol Ord "\x03BC")
-           , ("\\nu", ESymbol Ord "\x03BD")
-           , ("\\omega", ESymbol Ord "\x03C9")
+           , ("\\mu", EIdentifier "\x03BC")
+           , ("\\nu", EIdentifier "\x03BD")
+           , ("\\omega", EIdentifier "\x03C9")
            , ("\\Omega", ESymbol Op "\x03A9")
-           , ("\\phi", ESymbol Ord "\x03C6")
-           , ("\\varphi", ESymbol Ord "\x03D5")
+           , ("\\phi", EIdentifier "\x03C6")
+           , ("\\varphi", EIdentifier "\x03D5")
            , ("\\Phi", ESymbol Op "\x03A6") 
-           , ("\\pi", ESymbol Ord "\x03C0")
+           , ("\\pi", EIdentifier "\x03C0")
            , ("\\Pi", ESymbol Op "\x03A0") 
-           , ("\\psi", ESymbol Ord "\x03C8")
+           , ("\\psi", EIdentifier "\x03C8")
            , ("\\Psi", ESymbol Ord "\x03A8")
-           , ("\\rho", ESymbol Ord "\x03C1")
-           , ("\\sigma", ESymbol Ord "\x03C3")
+           , ("\\rho", EIdentifier "\x03C1")
+           , ("\\sigma", EIdentifier "\x03C3")
            , ("\\Sigma", ESymbol Op "\x03A3") 
-           , ("\\tau", ESymbol Ord "\x03C4")
-           , ("\\theta", ESymbol Ord "\x03B8")
-           , ("\\vartheta", ESymbol Ord "\x03D1")
+           , ("\\tau", EIdentifier "\x03C4")
+           , ("\\theta", EIdentifier "\x03B8")
+           , ("\\vartheta", EIdentifier "\x03D1")
            , ("\\Theta", ESymbol Op "\x0398") 
-           , ("\\upsilon", ESymbol Ord "\x03C5")
-           , ("\\xi", ESymbol Ord "\x03BE")
+           , ("\\upsilon", EIdentifier "\x03C5")
+           , ("\\xi", EIdentifier "\x03BE")
            , ("\\Xi", ESymbol Op "\x039E") 
-           , ("\\zeta", ESymbol Ord "\x03B6")
+           , ("\\zeta", EIdentifier "\x03B6")
            , ("\\frac12", ESymbol Ord "\x00BD")
            , ("\\frac14", ESymbol Ord "\x00BC")
            , ("\\frac34", ESymbol Ord "\x00BE")
diff --git a/tests/10.xhtml b/tests/10.xhtml
--- a/tests/10.xhtml
+++ b/tests/10.xhtml
@@ -7,11 +7,11 @@
     <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
       <mrow>
         <msub>
-          <mo>&#966;</mo>
+          <mi>&#966;</mi>
           <mi>n</mi>
         </msub>
         <mo stretchy="false">(</mo>
-        <mo>&#954;</mo>
+        <mi>&#954;</mi>
         <mo stretchy="false">)</mo>
         <mo>=</mo>
         <mfrac>
@@ -19,11 +19,11 @@
           <mrow>
             <mn>4</mn>
             <msup>
-              <mo>&#960;</mo>
+              <mi>&#960;</mi>
               <mn>2</mn>
             </msup>
             <msup>
-              <mo>&#954;</mo>
+              <mi>&#954;</mi>
               <mn>2</mn>
             </msup>
           </mrow>
@@ -37,12 +37,12 @@
           <mrow>
             <mi>sin</mi>
             <mo stretchy="false">(</mo>
-            <mo>&#954;</mo>
+            <mi>&#954;</mi>
             <mi>R</mi>
             <mo stretchy="false">)</mo>
           </mrow>
           <mrow>
-            <mo>&#954;</mo>
+            <mi>&#954;</mi>
             <mi>R</mi>
           </mrow>
         </mfrac>
diff --git a/tests/11.xhtml b/tests/11.xhtml
--- a/tests/11.xhtml
+++ b/tests/11.xhtml
@@ -7,11 +7,11 @@
     <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
       <mrow>
         <msub>
-          <mo>&#966;</mo>
+          <mi>&#966;</mi>
           <mi>n</mi>
         </msub>
         <mo stretchy="false">(</mo>
-        <mo>&#954;</mo>
+        <mi>&#954;</mi>
         <mo stretchy="false">)</mo>
         <mo>=</mo>
         <mn>0</mn>
@@ -23,7 +23,7 @@
           <mn>2</mn>
         </msubsup>
         <msup>
-          <mo>&#954;</mo>
+          <mi>&#954;</mi>
           <mrow>
             <mo>&#8722;</mo>
             <mn>11</mn>
@@ -41,7 +41,7 @@
           </msub>
         </mfrac>
         <mo>&#8810;</mo>
-        <mo>&#954;</mo>
+        <mi>&#954;</mi>
         <mo>&#8810;</mo>
         <mfrac>
           <mn>1</mn>
diff --git a/tests/differentiable_manifold.xhtml b/tests/differentiable_manifold.xhtml
--- a/tests/differentiable_manifold.xhtml
+++ b/tests/differentiable_manifold.xhtml
@@ -7,12 +7,12 @@
     <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
       <mrow>
         <msub>
-          <mo>&#947;</mo>
+          <mi>&#947;</mi>
           <mn>1</mn>
         </msub>
         <mo>&#8801;</mo>
         <msub>
-          <mo>&#947;</mo>
+          <mi>&#947;</mi>
           <mn>2</mn>
         </msub>
         <mo>&#8660;</mo>
@@ -21,7 +21,7 @@
           <mtr>
             <mtd columnalign="left">
               <msub>
-                <mo>&#947;</mo>
+                <mi>&#947;</mi>
                 <mn>1</mn>
               </msub>
               <mo stretchy="false">(</mo>
@@ -29,7 +29,7 @@
               <mo stretchy="false">)</mo>
               <mo>=</mo>
               <msub>
-                <mo>&#947;</mo>
+                <mi>&#947;</mi>
                 <mn>2</mn>
               </msub>
               <mo stretchy="false">(</mo>
@@ -56,10 +56,10 @@
                       <mi>t</mi>
                     </mrow>
                   </mfrac>
-                  <mo>&#966;</mo>
+                  <mi>&#966;</mi>
                   <mo>&#8728;</mo>
                   <msub>
-                    <mo>&#947;</mo>
+                    <mi>&#947;</mi>
                     <mn>1</mn>
                   </msub>
                   <mo stretchy="false">(</mo>
@@ -84,10 +84,10 @@
                       <mi>t</mi>
                     </mrow>
                   </mfrac>
-                  <mo>&#966;</mo>
+                  <mi>&#966;</mi>
                   <mo>&#8728;</mo>
                   <msub>
-                    <mo>&#947;</mo>
+                    <mi>&#947;</mi>
                     <mn>2</mn>
                   </msub>
                   <mo stretchy="false">(</mo>
diff --git a/tests/ensuremath.xhtml b/tests/ensuremath.xhtml
--- a/tests/ensuremath.xhtml
+++ b/tests/ensuremath.xhtml
@@ -7,7 +7,7 @@
     <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
       <mrow>
         <msup>
-          <mo>&#960;</mo>
+          <mi>&#960;</mi>
           <mn>2</mn>
         </msup>
       </mrow>
diff --git a/tests/moore_determinant.xhtml b/tests/moore_determinant.xhtml
--- a/tests/moore_determinant.xhtml
+++ b/tests/moore_determinant.xhtml
@@ -14,13 +14,13 @@
             <mtr>
               <mtd>
                 <msub>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mn>1</mn>
                 </msub>
               </mtd>
               <mtd>
                 <msubsup>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mn>1</mn>
                   <mi>q</mi>
                 </msubsup>
@@ -30,7 +30,7 @@
               </mtd>
               <mtd>
                 <msubsup>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mn>1</mn>
                   <msup>
                     <mi>q</mi>
@@ -46,13 +46,13 @@
             <mtr>
               <mtd>
                 <msub>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mn>2</mn>
                 </msub>
               </mtd>
               <mtd>
                 <msubsup>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mn>2</mn>
                   <mi>q</mi>
                 </msubsup>
@@ -62,7 +62,7 @@
               </mtd>
               <mtd>
                 <msubsup>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mn>2</mn>
                   <msup>
                     <mi>q</mi>
@@ -92,13 +92,13 @@
             <mtr>
               <mtd>
                 <msub>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mi>m</mi>
                 </msub>
               </mtd>
               <mtd>
                 <msubsup>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mi>m</mi>
                   <mi>q</mi>
                 </msubsup>
@@ -108,7 +108,7 @@
               </mtd>
               <mtd>
                 <msubsup>
-                  <mo>&#945;</mo>
+                  <mi>&#945;</mi>
                   <mi>m</mi>
                   <msup>
                     <mi>q</mi>
diff --git a/tests/runtests.sh b/tests/runtests.sh
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -6,6 +6,7 @@
 # Exit status is number of failed tests.
 TESTPROG=../dist/build/texmath/texmath
 failures=0
+passes=0
 if [ -f $TESTPROG ]; then
     for t in *.tex; do
         $TESTPROG <$t >tmp
@@ -13,12 +14,14 @@
         if [ "$?" -ne "0" ]; then
             echo "Test ${t%.tex} FAILED (< expected, > actual):"
             cat tmpdiff
-            let "failures=$failures+1"
+            failures=`expr $failures + 1`
         else
             echo "Test ${t%.tex} PASSED"
+            passes=`expr $passes + 1`
         fi
     done
 else
     echo "Test executable not built. NOT running tests."
 fi
+echo "$passes tests passed, $failures tests failed."
 exit $failures
diff --git a/tests/schwinger_dyson.xhtml b/tests/schwinger_dyson.xhtml
--- a/tests/schwinger_dyson.xhtml
+++ b/tests/schwinger_dyson.xhtml
@@ -8,28 +8,28 @@
       <mrow>
         <mrow>
           <mo stretchy="true">&#10216;</mo>
-          <mo>&#968;</mo>
+          <mi>&#968;</mi>
           <mrow>
             <mo stretchy="true">&#8739;</mo>
             <mo>&#119983;</mo>
             <mrow>
               <mo stretchy="true">{</mo>
               <mfrac>
-                <mo>&#948;</mo>
+                <mi>&#948;</mi>
                 <mrow>
-                  <mo>&#948;</mo>
-                  <mo>&#966;</mo>
+                  <mi>&#948;</mi>
+                  <mi>&#966;</mi>
                 </mrow>
               </mfrac>
               <mi>F</mi>
               <mo stretchy="false">[</mo>
-              <mo>&#966;</mo>
+              <mi>&#966;</mi>
               <mo stretchy="false">]</mo>
               <mo stretchy="true">}</mo>
             </mrow>
             <mo stretchy="true">&#8739;</mo>
           </mrow>
-          <mo>&#968;</mo>
+          <mi>&#968;</mi>
           <mo stretchy="true">&#10217;</mo>
         </mrow>
         <mo>=</mo>
@@ -37,7 +37,7 @@
         <mtext mathvariant="normal">i</mtext>
         <mrow>
           <mo stretchy="true">&#10216;</mo>
-          <mo>&#968;</mo>
+          <mi>&#968;</mi>
           <mrow>
             <mo stretchy="true">&#8739;</mo>
             <mo>&#119983;</mo>
@@ -45,24 +45,24 @@
               <mo stretchy="true">{</mo>
               <mi>F</mi>
               <mo stretchy="false">[</mo>
-              <mo>&#966;</mo>
+              <mi>&#966;</mi>
               <mo stretchy="false">]</mo>
               <mfrac>
-                <mo>&#948;</mo>
+                <mi>&#948;</mi>
                 <mrow>
-                  <mo>&#948;</mo>
-                  <mo>&#966;</mo>
+                  <mi>&#948;</mi>
+                  <mi>&#966;</mi>
                 </mrow>
               </mfrac>
               <mi>S</mi>
               <mo stretchy="false">[</mo>
-              <mo>&#966;</mo>
+              <mi>&#966;</mi>
               <mo stretchy="false">]</mo>
               <mo stretchy="true">}</mo>
             </mrow>
             <mo stretchy="true">&#8739;</mo>
           </mrow>
-          <mo>&#968;</mo>
+          <mi>&#968;</mi>
           <mo stretchy="true">&#10217;</mo>
         </mrow>
       </mrow>
diff --git a/tests/sphere_volume.xhtml b/tests/sphere_volume.xhtml
--- a/tests/sphere_volume.xhtml
+++ b/tests/sphere_volume.xhtml
@@ -11,22 +11,22 @@
         <mo stretchy="false">{</mo>
         <mn>0</mn>
         <mo>&#8804;</mo>
-        <mo>&#966;</mo>
+        <mi>&#966;</mi>
         <mo>&#8804;</mo>
         <mn>2</mn>
-        <mo>&#960;</mo>
+        <mi>&#960;</mi>
         <mo>,</mo>
         <mo> </mo>
         <mn>0</mn>
         <mo>&#8804;</mo>
-        <mo>&#952;</mo>
+        <mi>&#952;</mi>
         <mo>&#8804;</mo>
-        <mo>&#960;</mo>
+        <mi>&#960;</mi>
         <mo>,</mo>
         <mo> </mo>
         <mn>0</mn>
         <mo>&#8804;</mo>
-        <mo>&#961;</mo>
+        <mi>&#961;</mi>
         <mo>&#8804;</mo>
         <mi>R</mi>
         <mo stretchy="false">}</mo>
@@ -43,20 +43,20 @@
               </munder>
               <mspace width="-0.167em" />
               <msup>
-                <mo>&#961;</mo>
+                <mi>&#961;</mi>
                 <mn>2</mn>
               </msup>
               <mi>sin</mi>
-              <mo>&#952;</mo>
+              <mi>&#952;</mi>
               <mspace width="0.167em" />
               <mtext mathvariant="normal">d</mtext>
-              <mo>&#961;</mo>
+              <mi>&#961;</mi>
               <mspace width="0.167em" />
               <mtext mathvariant="normal">d</mtext>
-              <mo>&#952;</mo>
+              <mi>&#952;</mi>
               <mspace width="0.167em" />
               <mtext mathvariant="normal">d</mtext>
-              <mo>&#966;</mo>
+              <mi>&#966;</mi>
             </mtd>
           </mtr>
           <mtr>
@@ -68,24 +68,24 @@
                 <mn>0</mn>
                 <mrow>
                   <mn>2</mn>
-                  <mo>&#960;</mo>
+                  <mi>&#960;</mi>
                 </mrow>
               </msubsup>
               <mspace width="-0.167em" />
               <mtext mathvariant="normal">d</mtext>
-              <mo>&#966;</mo>
+              <mi>&#966;</mi>
               <mspace width="0.167em" />
               <msubsup>
                 <mo>&#8747;</mo>
                 <mn>0</mn>
-                <mo>&#960;</mo>
+                <mi>&#960;</mi>
               </msubsup>
               <mspace width="-0.167em" />
               <mi>sin</mi>
-              <mo>&#952;</mo>
+              <mi>&#952;</mi>
               <mspace width="0.167em" />
               <mtext mathvariant="normal">d</mtext>
-              <mo>&#952;</mo>
+              <mi>&#952;</mi>
               <mspace width="0.167em" />
               <msubsup>
                 <mo>&#8747;</mo>
@@ -94,36 +94,36 @@
               </msubsup>
               <mspace width="-0.167em" />
               <msup>
-                <mo>&#961;</mo>
+                <mi>&#961;</mi>
                 <mn>2</mn>
               </msup>
               <mtext mathvariant="normal">d</mtext>
-              <mo>&#961;</mo>
+              <mi>&#961;</mi>
             </mtd>
           </mtr>
           <mtr>
             <mtd columnalign="right" />
             <mtd columnalign="left">
               <mo>=</mo>
-              <mo>&#966;</mo>
+              <mi>&#966;</mi>
               <msubsup>
                 <mo minsize="1.6" maxsize="1.6" stretchy="true">&#8739;</mo>
                 <mn>0</mn>
                 <mrow>
                   <mn>2</mn>
-                  <mo>&#960;</mo>
+                  <mi>&#960;</mi>
                 </mrow>
               </msubsup>
               <mo> </mo>
               <mo stretchy="false">(</mo>
               <mo>&#8722;</mo>
               <mi>cos</mi>
-              <mo>&#952;</mo>
+              <mi>&#952;</mi>
               <mo stretchy="false">)</mo>
               <msubsup>
                 <mo minsize="1.6" maxsize="1.6" stretchy="true">&#8739;</mo>
                 <mn>0</mn>
-                <mo>&#960;</mo>
+                <mi>&#960;</mi>
               </msubsup>
               <mo> </mo>
               <mstyle displaystyle="false">
@@ -133,7 +133,7 @@
                 </mfrac>
               </mstyle>
               <msup>
-                <mo>&#961;</mo>
+                <mi>&#961;</mi>
                 <mn>3</mn>
               </msup>
               <msubsup>
@@ -148,7 +148,7 @@
             <mtd columnalign="left">
               <mo>=</mo>
               <mn>2</mn>
-              <mo>&#960;</mo>
+              <mi>&#960;</mi>
               <mo>&#215;</mo>
               <mn>2</mn>
               <mo>&#215;</mo>
@@ -174,7 +174,7 @@
                   <mn>3</mn>
                 </mfrac>
               </mstyle>
-              <mo>&#960;</mo>
+              <mi>&#960;</mi>
               <msup>
                 <mi>R</mi>
                 <mn>3</mn>
diff --git a/texmath.cabal b/texmath.cabal
--- a/texmath.cabal
+++ b/texmath.cabal
@@ -1,6 +1,6 @@
 Name:                texmath
-Version:             0.5.0.2
-Cabal-version:       >= 1.2
+Version:             0.5.0.3
+Cabal-Version:       >= 1.6
 Build-type:          Custom
 Synopsis:            Conversion of LaTeX math formulas to MathML.
 Description:         The texmathml library provides functions to convert LaTeX
@@ -57,6 +57,10 @@
                      tests/unicode.tex, tests/unicode.xhtml
                      tests/ensuremath.tex, tests/ensuremath.xhtml
                      tests/macros.tex, tests/macros.xhtml
+
+Source-repository head
+  type:              git
+  location:          git://github.com/jgm/texmath.git
 
 Flag cgi
   description:       Compile cgi executable.
