texmath 0.5.0.2 → 0.5.0.3
raw patch · 10 files changed
+101/−94 lines, 10 files
Files
- Text/TeXMath/Parser.hs +26/−26
- tests/10.xhtml +6/−6
- tests/11.xhtml +4/−4
- tests/differentiable_manifold.xhtml +8/−8
- tests/ensuremath.xhtml +1/−1
- tests/moore_determinant.xhtml +9/−9
- tests/runtests.sh +4/−1
- tests/schwinger_dyson.xhtml +13/−13
- tests/sphere_volume.xhtml +24/−24
- texmath.cabal +6/−2
Text/TeXMath/Parser.hs view
@@ -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")
tests/10.xhtml view
@@ -7,11 +7,11 @@ <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <msub>- <mo>φ</mo>+ <mi>φ</mi> <mi>n</mi> </msub> <mo stretchy="false">(</mo>- <mo>κ</mo>+ <mi>κ</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mfrac>@@ -19,11 +19,11 @@ <mrow> <mn>4</mn> <msup>- <mo>π</mo>+ <mi>π</mi> <mn>2</mn> </msup> <msup>- <mo>κ</mo>+ <mi>κ</mi> <mn>2</mn> </msup> </mrow>@@ -37,12 +37,12 @@ <mrow> <mi>sin</mi> <mo stretchy="false">(</mo>- <mo>κ</mo>+ <mi>κ</mi> <mi>R</mi> <mo stretchy="false">)</mo> </mrow> <mrow>- <mo>κ</mo>+ <mi>κ</mi> <mi>R</mi> </mrow> </mfrac>
tests/11.xhtml view
@@ -7,11 +7,11 @@ <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <msub>- <mo>φ</mo>+ <mi>φ</mi> <mi>n</mi> </msub> <mo stretchy="false">(</mo>- <mo>κ</mo>+ <mi>κ</mi> <mo stretchy="false">)</mo> <mo>=</mo> <mn>0</mn>@@ -23,7 +23,7 @@ <mn>2</mn> </msubsup> <msup>- <mo>κ</mo>+ <mi>κ</mi> <mrow> <mo>−</mo> <mn>11</mn>@@ -41,7 +41,7 @@ </msub> </mfrac> <mo>≪</mo>- <mo>κ</mo>+ <mi>κ</mi> <mo>≪</mo> <mfrac> <mn>1</mn>
tests/differentiable_manifold.xhtml view
@@ -7,12 +7,12 @@ <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <msub>- <mo>γ</mo>+ <mi>γ</mi> <mn>1</mn> </msub> <mo>≡</mo> <msub>- <mo>γ</mo>+ <mi>γ</mi> <mn>2</mn> </msub> <mo>⇔</mo>@@ -21,7 +21,7 @@ <mtr> <mtd columnalign="left"> <msub>- <mo>γ</mo>+ <mi>γ</mi> <mn>1</mn> </msub> <mo stretchy="false">(</mo>@@ -29,7 +29,7 @@ <mo stretchy="false">)</mo> <mo>=</mo> <msub>- <mo>γ</mo>+ <mi>γ</mi> <mn>2</mn> </msub> <mo stretchy="false">(</mo>@@ -56,10 +56,10 @@ <mi>t</mi> </mrow> </mfrac>- <mo>φ</mo>+ <mi>φ</mi> <mo>∘</mo> <msub>- <mo>γ</mo>+ <mi>γ</mi> <mn>1</mn> </msub> <mo stretchy="false">(</mo>@@ -84,10 +84,10 @@ <mi>t</mi> </mrow> </mfrac>- <mo>φ</mo>+ <mi>φ</mi> <mo>∘</mo> <msub>- <mo>γ</mo>+ <mi>γ</mi> <mn>2</mn> </msub> <mo stretchy="false">(</mo>
tests/ensuremath.xhtml view
@@ -7,7 +7,7 @@ <math display="block" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <msup>- <mo>π</mo>+ <mi>π</mi> <mn>2</mn> </msup> </mrow>
tests/moore_determinant.xhtml view
@@ -14,13 +14,13 @@ <mtr> <mtd> <msub>- <mo>α</mo>+ <mi>α</mi> <mn>1</mn> </msub> </mtd> <mtd> <msubsup>- <mo>α</mo>+ <mi>α</mi> <mn>1</mn> <mi>q</mi> </msubsup>@@ -30,7 +30,7 @@ </mtd> <mtd> <msubsup>- <mo>α</mo>+ <mi>α</mi> <mn>1</mn> <msup> <mi>q</mi>@@ -46,13 +46,13 @@ <mtr> <mtd> <msub>- <mo>α</mo>+ <mi>α</mi> <mn>2</mn> </msub> </mtd> <mtd> <msubsup>- <mo>α</mo>+ <mi>α</mi> <mn>2</mn> <mi>q</mi> </msubsup>@@ -62,7 +62,7 @@ </mtd> <mtd> <msubsup>- <mo>α</mo>+ <mi>α</mi> <mn>2</mn> <msup> <mi>q</mi>@@ -92,13 +92,13 @@ <mtr> <mtd> <msub>- <mo>α</mo>+ <mi>α</mi> <mi>m</mi> </msub> </mtd> <mtd> <msubsup>- <mo>α</mo>+ <mi>α</mi> <mi>m</mi> <mi>q</mi> </msubsup>@@ -108,7 +108,7 @@ </mtd> <mtd> <msubsup>- <mo>α</mo>+ <mi>α</mi> <mi>m</mi> <msup> <mi>q</mi>
tests/runtests.sh view
@@ -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
tests/schwinger_dyson.xhtml view
@@ -8,28 +8,28 @@ <mrow> <mrow> <mo stretchy="true">⟨</mo>- <mo>ψ</mo>+ <mi>ψ</mi> <mrow> <mo stretchy="true">∣</mo> <mo>𝒯</mo> <mrow> <mo stretchy="true">{</mo> <mfrac>- <mo>δ</mo>+ <mi>δ</mi> <mrow>- <mo>δ</mo>- <mo>φ</mo>+ <mi>δ</mi>+ <mi>φ</mi> </mrow> </mfrac> <mi>F</mi> <mo stretchy="false">[</mo>- <mo>φ</mo>+ <mi>φ</mi> <mo stretchy="false">]</mo> <mo stretchy="true">}</mo> </mrow> <mo stretchy="true">∣</mo> </mrow>- <mo>ψ</mo>+ <mi>ψ</mi> <mo stretchy="true">⟩</mo> </mrow> <mo>=</mo>@@ -37,7 +37,7 @@ <mtext mathvariant="normal">i</mtext> <mrow> <mo stretchy="true">⟨</mo>- <mo>ψ</mo>+ <mi>ψ</mi> <mrow> <mo stretchy="true">∣</mo> <mo>𝒯</mo>@@ -45,24 +45,24 @@ <mo stretchy="true">{</mo> <mi>F</mi> <mo stretchy="false">[</mo>- <mo>φ</mo>+ <mi>φ</mi> <mo stretchy="false">]</mo> <mfrac>- <mo>δ</mo>+ <mi>δ</mi> <mrow>- <mo>δ</mo>- <mo>φ</mo>+ <mi>δ</mi>+ <mi>φ</mi> </mrow> </mfrac> <mi>S</mi> <mo stretchy="false">[</mo>- <mo>φ</mo>+ <mi>φ</mi> <mo stretchy="false">]</mo> <mo stretchy="true">}</mo> </mrow> <mo stretchy="true">∣</mo> </mrow>- <mo>ψ</mo>+ <mi>ψ</mi> <mo stretchy="true">⟩</mo> </mrow> </mrow>
tests/sphere_volume.xhtml view
@@ -11,22 +11,22 @@ <mo stretchy="false">{</mo> <mn>0</mn> <mo>≤</mo>- <mo>φ</mo>+ <mi>φ</mi> <mo>≤</mo> <mn>2</mn>- <mo>π</mo>+ <mi>π</mi> <mo>,</mo> <mo> </mo> <mn>0</mn> <mo>≤</mo>- <mo>θ</mo>+ <mi>θ</mi> <mo>≤</mo>- <mo>π</mo>+ <mi>π</mi> <mo>,</mo> <mo> </mo> <mn>0</mn> <mo>≤</mo>- <mo>ρ</mo>+ <mi>ρ</mi> <mo>≤</mo> <mi>R</mi> <mo stretchy="false">}</mo>@@ -43,20 +43,20 @@ </munder> <mspace width="-0.167em" /> <msup>- <mo>ρ</mo>+ <mi>ρ</mi> <mn>2</mn> </msup> <mi>sin</mi>- <mo>θ</mo>+ <mi>θ</mi> <mspace width="0.167em" /> <mtext mathvariant="normal">d</mtext>- <mo>ρ</mo>+ <mi>ρ</mi> <mspace width="0.167em" /> <mtext mathvariant="normal">d</mtext>- <mo>θ</mo>+ <mi>θ</mi> <mspace width="0.167em" /> <mtext mathvariant="normal">d</mtext>- <mo>φ</mo>+ <mi>φ</mi> </mtd> </mtr> <mtr>@@ -68,24 +68,24 @@ <mn>0</mn> <mrow> <mn>2</mn>- <mo>π</mo>+ <mi>π</mi> </mrow> </msubsup> <mspace width="-0.167em" /> <mtext mathvariant="normal">d</mtext>- <mo>φ</mo>+ <mi>φ</mi> <mspace width="0.167em" /> <msubsup> <mo>∫</mo> <mn>0</mn>- <mo>π</mo>+ <mi>π</mi> </msubsup> <mspace width="-0.167em" /> <mi>sin</mi>- <mo>θ</mo>+ <mi>θ</mi> <mspace width="0.167em" /> <mtext mathvariant="normal">d</mtext>- <mo>θ</mo>+ <mi>θ</mi> <mspace width="0.167em" /> <msubsup> <mo>∫</mo>@@ -94,36 +94,36 @@ </msubsup> <mspace width="-0.167em" /> <msup>- <mo>ρ</mo>+ <mi>ρ</mi> <mn>2</mn> </msup> <mtext mathvariant="normal">d</mtext>- <mo>ρ</mo>+ <mi>ρ</mi> </mtd> </mtr> <mtr> <mtd columnalign="right" /> <mtd columnalign="left"> <mo>=</mo>- <mo>φ</mo>+ <mi>φ</mi> <msubsup> <mo minsize="1.6" maxsize="1.6" stretchy="true">∣</mo> <mn>0</mn> <mrow> <mn>2</mn>- <mo>π</mo>+ <mi>π</mi> </mrow> </msubsup> <mo> </mo> <mo stretchy="false">(</mo> <mo>−</mo> <mi>cos</mi>- <mo>θ</mo>+ <mi>θ</mi> <mo stretchy="false">)</mo> <msubsup> <mo minsize="1.6" maxsize="1.6" stretchy="true">∣</mo> <mn>0</mn>- <mo>π</mo>+ <mi>π</mi> </msubsup> <mo> </mo> <mstyle displaystyle="false">@@ -133,7 +133,7 @@ </mfrac> </mstyle> <msup>- <mo>ρ</mo>+ <mi>ρ</mi> <mn>3</mn> </msup> <msubsup>@@ -148,7 +148,7 @@ <mtd columnalign="left"> <mo>=</mo> <mn>2</mn>- <mo>π</mo>+ <mi>π</mi> <mo>×</mo> <mn>2</mn> <mo>×</mo>@@ -174,7 +174,7 @@ <mn>3</mn> </mfrac> </mstyle>- <mo>π</mo>+ <mi>π</mi> <msup> <mi>R</mi> <mn>3</mn>
texmath.cabal view
@@ -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.