.. _testexamples: MathML Torture Test =================== .. jupyter-execute:: :hide-code: import ziamath as zm def loadmath(fname): with open(fname, 'r') as f: xml = f.read() return zm.Math(xml) Mozilla has a `torture test `_ for MathML. This page shows Ziamath's results with these examples. ------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex1.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex1.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex2.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex2.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex3.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex3.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex4.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex4.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex5.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex5.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex6.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex6.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex7.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex7.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex8.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex8.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex9.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex9.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex10.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex10.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex11.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex11.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex12.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex12.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex13.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex13.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex14.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex14.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex15.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex15.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex16.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex16.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex17.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex17.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex18.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex18.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex19.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex19.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex20.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex20.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex21.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex21.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex22.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex22.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex23.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex23.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex24.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex24.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex25.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex25.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex26.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex26.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex27.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex27.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex28.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex28.xml :language: XML .. raw:: html
------------ | .. jupyter-execute:: :hide-code: loadmath('mml/ex29.xml') | .. raw:: html
MathML .. literalinclude:: mml/ex29.xml :language: XML .. raw:: html