+
1
|
list
|
skin
|
login
|
editor
α-wwwiki
::
mathML2
user:none
(5049 bytes)
_h1 mathML2 and [[mathML]] _p To be compared with pure λ-talk used in page [[shell]]. _p MathML works fine in Firefox/MacOSX and in Safari/Phonei ; it works poorly in Safari/MacOSX and Safari/iPad and not at all in Chrome/MacOS. I don't know about other browsers on other platforms ? And there is a printing issue in Firefox on Mac that prevents any printed output and PDF creation. Until now, integrating the MathJax library doesn't work in conjunction with the wiki code : some work to do ... _p So, until now, the output is strongly limited to Firefox. In this case, with nothing but a little dozen of JS lines added to the wiki parser's code, it has been possible to wrap the standard but quite verbose MathML code in a more compact form. In order to appreciate the gain, you may have a look on the MathML code of the examples in the page [[torture|http://www.mozilla.org/projects/mathml/demo/texvsmml.html]] ! _p {u And nothing more to learn but MathML syntax : a lot to share with good people ...} _h6 examples to be seen in Firefox {table {tr {td {@ style="font-size:0.9em;"}{pre °° {math {@ display="block;text-align:center;"} {mrow {mi x}{mo =} {mfrac {mrow {mrow {mo -}{mi b}}{mo ±} {msqrt {mrow {msup {mi b}{mn 2}}{mo -}{mrow {mn 4}{mi a}{mi c}}}}} {mrow {mn 2}{mi a}}} } } °°}} {td {math {@ style="display:block;text-align:center;"} {mrow {mi x}{mo =} {mfrac {mrow {mrow {mo -}{mi b}}{mo ±} {msqrt {mrow {msup {mi b}{mn 2}}{mo -}{mrow {mn 4}{mi a}{mi c}}}}} {mrow {mn 2}{mi a}}}}} }} {tr {td {@ style="font-size:0.9em;"}{pre °° {math {@ style="display:block;text-align:center;"}{mrow {munderover {mo ∑}{mrow {mi i}{mo =}{mn 1}}{mi p}} {munderover {mo ∑}{mrow {mi j}{mo =}{mn 1}}{mi q}} {munderover {mo ∑}{mrow {mi k}{mo =}{mn 1}}{mi r}} {msub {mi a}{mrow {mi i}{mi j}}} {msub {mi b}{mrow {mi j}{mi k}}} {msub {mi c}{mrow {mi k}{mi i}}}} } °°}} {td {math {@ style="display:block;text-align:center;"}{mrow {munderover {mo ∑}{mrow {mi i}{mo =}{mn 1}}{mi p}} {munderover {mo ∑}{mrow {mi j}{mo =}{mn 1}}{mi q}} {munderover {mo ∑}{mrow {mi k}{mo =}{mn 1}}{mi r}} {msub {mi a}{mrow {mi i}{mi j}}} {msub {mi b}{mrow {mi j}{mi k}}} {msub {mi c}{mrow {mi k}{mi i}}}} } }} {tr {td {@ style="font-size:0.9em;"}{pre °° {math {@ style="display:block;text-align:center;"} {msubsup {mo ∫}{mn 1}{mi x}}{mfrac {mrow {mo d}{mi t}}{mi t}} {mo =}{mi log}{mo (}{mi x}{mo )} } °°}} {td {math {@ style="display:block;text-align:center;"} {msubsup {mo ∫}{mn 1}{mi x}} {mfrac {mrow {mo d}{mi t}}{mi t}} {mo =}{mi log}{mo (}{mi x}{mo )} } }} {tr {td {@ style="font-size:0.9em;"}{pre °° {math {@ style="display:block;text-align:center;"} {mrow {mrow {mo (} {mfrac {msup {mo ∂}{mn 2}}{mrow {mo ∂}{msup {mi x}{mn 2}}}} {mo +} {mfrac {msup {mo ∂}{mn 2}}{mrow {mo ∂}{msup {mi y}{mn 2}}}} {mo )} } {msup {mrow {mo {@ minsize:1.5;}|}{mi φ} {mo {@ stretchy:false;}(} {mi x}{mo +}{mi {@ mathvariant:normal;}i}{mi y} {mo {@ stretchy:false;})} {mo {@ minsize:1.5;}|} } {mn 2} } {mo =}{mn 0}} } °°}} {td {math {@ style="display:block;text-align:center;"} {mrow {mrow {mo (} {mfrac {msup {mo ∂}{mn 2}}{mrow {mo ∂}{msup {mi x}{mn 2}}}} {mo +} {mfrac {msup {mo ∂}{mn 2}}{mrow {mo ∂}{msup {mi y}{mn 2}}}} {mo )} } {msup {mrow {mo {@ minsize:1.5;}|}{mi φ} {mo {@ stretchy:false;}(} {mi x}{mo +}{mi {@ mathvariant:normal;}i}{mi y} {mo {@ stretchy:false;})} {mo {@ minsize:1.5;}|} } {mn 2} } {mo =}{mn 0}}} }} {tr {td {@ style="font-size:0.9em;"}{pre °° {math {@ style="display:block;text-align:center;"}{mrow {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {mi x}}}}}}}}} } °°}} {td {math {@ style="display:block;text-align:center;"}{mrow {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {msqrt {mn 1}{mo +} {mi x}}}}}}}}} } }} {tr {td {@ style="font-size:0.9em;"}{pre °° {math {@ style="display:block;text-align:center;"} {msup {mo R}{mi αβ}} {mo -}{mfrac {mn 1}{mn 2}}{msup {mo g}{mi αβ}}{mo R} {mo =}{mfrac {mrow {mi 8πG}}{msup {mo c}{mn 4}}}{msup {mo T}{mi αβ}} } °°}} {td {math {@ style="display:block;text-align:center;"} {msup {mo R}{mi αβ}} {mo -} {mfrac {mn 1}{mn 2}} {msup {mo g}{mi αβ}}{mo R}{mo =} {mfrac {mrow {mi 8πG}}{msup {mo c}{mn 4}}}{msup {mo T}{mi αβ}}} }} } _p More to see here : [[mathjax samples|http://www.mathjax.org/demos/tex-samples/]].