diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-05-20 12:19:35 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-05-20 12:19:35 +0000 |
| commit | b64d16949a20ad45b1742e74d3385d3da1ea026a (patch) | |
| tree | c10e4bd4bb9d74dcb60dc0d89a9ffbb863c8020a /docutils/test/functional/expected/math_output_mathml.html | |
| parent | d3305e07e86df9a1557da9a61a358290bb910728 (diff) | |
| download | docutils-b64d16949a20ad45b1742e74d3385d3da1ea026a.tar.gz | |
MathML: pretty print XML.
Add newlines and indentation around non-token MathML tags.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8739 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/expected/math_output_mathml.html')
| -rw-r--r-- | docutils/test/functional/expected/math_output_mathml.html | 572 |
1 files changed, 459 insertions, 113 deletions
diff --git a/docutils/test/functional/expected/math_output_mathml.html b/docutils/test/functional/expected/math_output_mathml.html index 80432ee48..c5aa489ce 100644 --- a/docutils/test/functional/expected/math_output_mathml.html +++ b/docutils/test/functional/expected/math_output_mathml.html @@ -14,85 +14,227 @@ <p>Docutils supports inline math with the prefix or postfix <span class="docutils literal">:math:</span> role specificator, <math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mi>n</mi><mo>!</mo><mo>+</mo><mo>sin</mo><mo>(</mo><msubsup><mi>x</mi><mi>n</mi><mn>2</mn></msubsup><mo>)</mo></mrow></math> and <math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><msub><mi>A</mi><mtext>c</mtext></msub><mo>=</mo><mfrac> -<mrow><mi>π</mi></mrow> -<mrow><mn>4</mn></mrow></mfrac><msup><mi>d</mi><mn>2</mn></msup></mrow></math>, as well as displayed math via the + <mrow> + <mi>n</mi><mo>!</mo><mo>+</mo><mo>sin</mo><mo>(</mo> + <msubsup> + <mi>x</mi><mi>n</mi><mn>2</mn> + </msubsup> + <mo>)</mo> + </mrow> +</math> and <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <msub> + <mi>A</mi><mtext>c</mtext> + </msub> + <mo>=</mo> + <mfrac> + <mrow> + <mi>π</mi> + </mrow> + <mrow> + <mn>4</mn> + </mrow> + </mfrac> + <msup> + <mi>d</mi><mn>2</mn> + </msup> + </mrow> +</math>, as well as displayed math via the <cite>math</cite> directive:</p> <div> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><mi>f</mi><mo>(</mo><mi>ϵ</mi><mo>)</mo><mo>=</mo><mfrac> -<mrow><mn>1</mn></mrow> -<mrow><mn>1</mn><mo>+</mo><mo>exp</mo> -<mrow><mo>(</mo><mfrac> -<mrow><mi>ε</mi></mrow> -<mrow><msub><mi>k</mi><mtext>B</mtext></msub><mi>T</mi></mrow></mfrac><mo>)</mo></mrow></mrow></mfrac></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <mi>f</mi><mo>(</mo><mi>ϵ</mi><mo>)</mo><mo>=</mo> + <mfrac> + <mrow> + <mn>1</mn> + </mrow> + <mrow> + <mn>1</mn><mo>+</mo><mo>exp</mo> + <mrow> + <mo>(</mo> + <mfrac> + <mrow> + <mi>ε</mi> + </mrow> + <mrow> + <msub> + <mi>k</mi><mtext>B</mtext> + </msub> + <mi>T</mi> + </mrow> + </mfrac> + <mo>)</mo> + </mrow> + </mrow> + </mfrac> + </mtd> + </mtr> + </mtable> +</math> </div> <p>Content may start on the first line of the directive, e.g.</p> <div> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><mi>N</mi><mo>=</mo><mfrac> -<mrow><mtext>number of apples</mtext></mrow> -<mrow><mn>7</mn></mrow></mfrac></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <mi>N</mi><mo>=</mo> + <mfrac> + <mrow> + <mtext>number of apples</mtext> + </mrow> + <mrow> + <mn>7</mn> + </mrow> + </mfrac> + </mtd> + </mtr> + </mtable> +</math> </div> <p>Equations can be labeled with a reference name using the <span class="docutils literal">:name:</span> option. See <a class="reference internal" href="#eq-m">eq:M</a> and <a class="reference internal" href="#eq-schrodinger">eq:schrödinger</a> below.</p> <p>The determinant of the matrix</p> <div id="eq-m"> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><mstyle mathvariant="bold"> -<mrow><mi>M</mi></mrow></mstyle><mo>=</mo> -<mrow><mo>(</mo> -<mtable> -<mtr> -<mtd><mi>a</mi></mtd> -<mtd><mi>b</mi></mtd></mtr> -<mtr> -<mtd><mi>c</mi></mtd> -<mtd><mi>d</mi></mtd></mtr></mtable><mo>)</mo></mrow></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <mstyle mathvariant="bold"> + <mrow> + <mi>M</mi> + </mrow> + </mstyle> + <mo>=</mo> + <mrow> + <mo>(</mo> + <mtable> + <mtr> + <mtd> + <mi>a</mi> + </mtd> + <mtd> + <mi>b</mi> + </mtd> + </mtr> + <mtr> + <mtd> + <mi>c</mi> + </mtd> + <mtd> + <mi>d</mi> + </mtd> + </mtr> + </mtable> + <mo>)</mo> + </mrow> + </mtd> + </mtr> + </mtable> +</math> </div> <p>is <math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mo>|</mo><mstyle mathvariant="bold"> -<mrow><mi>M</mi></mrow></mstyle><mo>|</mo><mo>=</mo><mi>a</mi><mi>d</mi><mo>-</mo><mi>b</mi><mi>c</mi></mrow></math>.</p> + <mrow> + <mo>|</mo> + <mstyle mathvariant="bold"> + <mrow> + <mi>M</mi> + </mrow> + </mstyle> + <mo>|</mo><mo>=</mo><mi>a</mi><mi>d</mi><mo>-</mo><mi>b</mi><mi>c</mi> + </mrow> +</math>.</p> <p>More than one display math block can be put in one math directive. For example, the following sum and integral with limits:</p> <div> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><munderover><mo>∫</mo><mn>0</mn><mn>1</mn></munderover><msup><mi>x</mi><mi>n</mi></msup><mi>d</mi><mi>x</mi><mo>=</mo><mfrac> -<mrow><mn>1</mn></mrow> -<mrow><mi>n</mi><mo>+</mo><mn>1</mn></mrow></mfrac></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <munderover> + <mo>∫</mo><mn>0</mn><mn>1</mn> + </munderover> + <msup> + <mi>x</mi><mi>n</mi> + </msup> + <mi>d</mi><mi>x</mi><mo>=</mo> + <mfrac> + <mrow> + <mn>1</mn> + </mrow> + <mrow> + <mi>n</mi><mo>+</mo><mn>1</mn> + </mrow> + </mfrac> + </mtd> + </mtr> + </mtable> +</math> </div> <div> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><munderover><mo>∑</mo> -<mrow><mi>n</mi><mo>=</mo><mn>1</mn></mrow><mi>m</mi></munderover><mi>n</mi><mo>=</mo><mfrac> -<mrow><mi>m</mi><mo>(</mo><mi>m</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow> -<mrow><mn>2</mn></mrow></mfrac></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <munderover> + <mo>∑</mo> + <mrow> + <mi>n</mi><mo>=</mo><mn>1</mn> + </mrow> + <mi>m</mi> + </munderover> + <mi>n</mi><mo>=</mo> + <mfrac> + <mrow> + <mi>m</mi><mo>(</mo><mi>m</mi><mo>+</mo><mn>1</mn><mo>)</mo> + </mrow> + <mrow> + <mn>2</mn> + </mrow> + </mfrac> + </mtd> + </mtr> + </mtable> +</math> </div> <p>LaTeX-supported Unicode math symbols can be used in math roles and directives:</p> <p>The Schrödinger equation</p> <div id="eq-schrodinger"> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><mi>i</mi><mi>ℏ</mi><mfrac> -<mrow><mo>∂</mo></mrow> -<mrow><mo>∂</mo><mi>t</mi></mrow></mfrac><mo>Ψ</mo><mo>=</mo><mover> -<mrow><mi>H</mi></mrow><mo>^</mo></mover><mo>Ψ</mo><mo>,</mo></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <mi>i</mi><mi>ℏ</mi> + <mfrac> + <mrow> + <mo>∂</mo> + </mrow> + <mrow> + <mo>∂</mo><mi>t</mi> + </mrow> + </mfrac> + <mo>Ψ</mo><mo>=</mo> + <mover> + <mrow> + <mi>H</mi> + </mrow> + <mo>^</mo> + </mover> + <mo>Ψ</mo><mo>,</mo> + </mtd> + </mtr> + </mtable> +</math> </div> <p>with the <em>wave function</em> <math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mo>Ψ</mo></mrow></math>, describes how the quantum state of a + <mrow> + <mo>Ψ</mo> + </mrow> +</math>, describes how the quantum state of a physical system changes in time.</p> <dl> <dt>Math-Accents:</dt> @@ -104,44 +246,128 @@ physical system changes in time.</p> </colgroup> <tbody> <tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>a</mi></mrow><mo>´</mo></mover></mrow></math> <span class="docutils literal">\acute{a}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>a</mi> + </mrow> + <mo>´</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\acute{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>t</mi></mrow><mo>˙</mo></mover></mrow></math> <span class="docutils literal">\dot{t}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>t</mi> + </mrow> + <mo>˙</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\dot{t}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>γ</mi></mrow><mo>^</mo></mover></mrow></math> <span class="docutils literal"><span class="pre">\hat{\gamma}</span></span></p></td> + <mrow> + <mover> + <mrow> + <mi>γ</mi> + </mrow> + <mo>^</mo> + </mover> + </mrow> +</math> <span class="docutils literal"><span class="pre">\hat{\gamma}</span></span></p></td> </tr> <tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>a</mi></mrow><mo>`</mo></mover></mrow></math> <span class="docutils literal">\grave{a}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>a</mi> + </mrow> + <mo>`</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\grave{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>t</mi></mrow><mo>¨</mo></mover></mrow></math> <span class="docutils literal">\ddot{t}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>t</mi> + </mrow> + <mo>¨</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\ddot{t}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>α</mi></mrow><mo>˜</mo></mover></mrow></math> <span class="docutils literal"><span class="pre">\tilde{\alpha}</span></span></p></td> + <mrow> + <mover> + <mrow> + <mi>α</mi> + </mrow> + <mo>˜</mo> + </mover> + </mrow> +</math> <span class="docutils literal"><span class="pre">\tilde{\alpha}</span></span></p></td> </tr> <tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>x</mi></mrow><mo>˘</mo></mover></mrow></math> <span class="docutils literal">\breve{x}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>x</mi> + </mrow> + <mo>˘</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\breve{x}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>t</mi></mrow><mo>⃛</mo></mover></mrow></math> <span class="docutils literal">\dddot{t}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>t</mi> + </mrow> + <mo>⃛</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\dddot{t}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>ı</mi></mrow><mo>⃗</mo></mover></mrow></math> <span class="docutils literal"><span class="pre">\vec{\imath}</span></span></p></td> + <mrow> + <mover> + <mrow> + <mi>ı</mi> + </mrow> + <mo>⃗</mo> + </mover> + </mrow> +</math> <span class="docutils literal"><span class="pre">\vec{\imath}</span></span></p></td> </tr> <tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>a</mi></mrow><mo>ˇ</mo></mover></mrow></math> <span class="docutils literal">\check{a}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>a</mi> + </mrow> + <mo>ˇ</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\check{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>a</mi></mrow><mo>¯</mo></mover></mrow></math> <span class="docutils literal">\bar{a}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>a</mi> + </mrow> + <mo>¯</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\bar{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> -<mrow><mover> -<mrow><mi>R</mi></mrow><mo>⃗</mo></mover></mrow></math> <span class="docutils literal">\vec{R}</span></p></td> + <mrow> + <mover> + <mrow> + <mi>R</mi> + </mrow> + <mo>⃗</mo> + </mover> + </mrow> +</math> <span class="docutils literal">\vec{R}</span></p></td> </tr> </tbody> </table> @@ -152,56 +378,176 @@ physical system changes in time.</p> <p>Modulation Transfer Function:</p> <div> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><mtext>MTF</mtext><mo>=</mo> -<mrow><mo>|</mo><mfrac> -<mrow><mi>ℱ</mi><mo>{</mo><mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>}</mo></mrow> -<mrow><mi>ℱ</mi><mo>{</mo><mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>}</mo><msub><mo>|</mo> -<mrow><msub><mi>ω</mi> -<mrow><mi>x</mi></mrow></msub><mo>=</mo><mn>0</mn></mrow></msub></mrow></mfrac><mo>|</mo></mrow><mo>=</mo><mtext>abs</mtext> -<mrow><mo>(</mo><mfrac> -<mrow><munderover><mo>∫</mo> -<mrow><mo>-</mo><mo>∞</mo></mrow> -<mrow><mo>∞</mo></mrow></munderover><mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo><msup><mtext>e</mtext> -<mrow><mtext>i</mtext><msub><mi>ω</mi> -<mrow><mi>x</mi></mrow></msub><mi>x</mi></mrow></msup><mtext>d</mtext> -<mrow><mi>x</mi></mrow></mrow> -<mrow><munderover><mo>∫</mo> -<mrow><mo>-</mo><mo>∞</mo></mrow> -<mrow><mo>∞</mo></mrow></munderover><mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo><mtext>d</mtext> -<mrow><mi>x</mi></mrow></mrow></mfrac><mo>)</mo></mrow><mo>.</mo></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <mtext>MTF</mtext><mo>=</mo> + <mrow> + <mo>|</mo> + <mfrac> + <mrow> + <mi>ℱ</mi><mo>{</mo><mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>}</mo> + </mrow> + <mrow> + <mi>ℱ</mi><mo>{</mo><mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>}</mo> + <msub> + <mo>|</mo> + <mrow> + <msub> + <mi>ω</mi> + <mrow> + <mi>x</mi> + </mrow> + </msub> + <mo>=</mo><mn>0</mn> + </mrow> + </msub> + </mrow> + </mfrac> + <mo>|</mo> + </mrow> + <mo>=</mo><mtext>abs</mtext> + <mrow> + <mo>(</mo> + <mfrac> + <mrow> + <munderover> + <mo>∫</mo> + <mrow> + <mo>-</mo><mo>∞</mo> + </mrow> + <mrow> + <mo>∞</mo> + </mrow> + </munderover> + <mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo> + <msup> + <mtext>e</mtext> + <mrow> + <mtext>i</mtext> + <msub> + <mi>ω</mi> + <mrow> + <mi>x</mi> + </mrow> + </msub> + <mi>x</mi> + </mrow> + </msup> + <mtext>d</mtext> + <mrow> + <mi>x</mi> + </mrow> + </mrow> + <mrow> + <munderover> + <mo>∫</mo> + <mrow> + <mo>-</mo><mo>∞</mo> + </mrow> + <mrow> + <mo>∞</mo> + </mrow> + </munderover> + <mi>s</mi><mo>(</mo><mi>x</mi><mo>)</mo><mtext>d</mtext> + <mrow> + <mi>x</mi> + </mrow> + </mrow> + </mfrac> + <mo>)</mo> + </mrow> + <mo>.</mo> + </mtd> + </mtr> + </mtable> +</math> </div> <p>Math split over two lines: If a double backslash is detected outside a <span class="docutils literal"><span class="pre">\begin{...}</span> <span class="pre">\end{...}</span></span> pair, the math code is wrapped in an <a class="reference external" href="ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf">AMSmath</a> <span class="docutils literal">align</span> environment:</p> <div> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><msub><mi>s</mi> -<mrow><mtext>out</mtext></mrow></msub><mo>(</mo><mi>x</mi><mo>)</mo></mtd> -<mtd><mo>=</mo><msub><mi>s</mi> -<mrow><mtext>in</mtext></mrow></msub><mo>(</mo><mi>x</mi><mo>'</mo><mo>)</mo><mo>*</mo><msub><mi>s</mi><mi>δ</mi></msub><mo>(</mo><mi>x</mi><mo>-</mo><mi>x</mi><mo>'</mo><mo>)</mo></mtd></mtr> -<mtr> -<mtd></mtd> -<mtd><mo>=</mo><mo>∫</mo><msub><mi>s</mi> -<mrow><mtext>in</mtext></mrow></msub><mo>(</mo><mi>x</mi><mo>'</mo><mo>)</mo><msub><mi>s</mi><mi>δ</mi></msub><mo>(</mo><mi>x</mi><mo>-</mo><mi>x</mi><mo>'</mo><mo>)</mo><mtext>d</mtext><mi>x</mi><mo>'</mo></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <msub> + <mi>s</mi> + <mrow> + <mtext>out</mtext> + </mrow> + </msub> + <mo>(</mo><mi>x</mi><mo>)</mo> + </mtd> + <mtd> + <mo>=</mo> + <msub> + <mi>s</mi> + <mrow> + <mtext>in</mtext> + </mrow> + </msub> + <mo>(</mo><mi>x</mi><mo>'</mo><mo>)</mo><mo>*</mo> + <msub> + <mi>s</mi><mi>δ</mi> + </msub> + <mo>(</mo><mi>x</mi><mo>-</mo><mi>x</mi><mo>'</mo><mo>)</mo> + </mtd> + </mtr> + <mtr> + <mtd> + </mtd> + <mtd> + <mo>=</mo><mo>∫</mo> + <msub> + <mi>s</mi> + <mrow> + <mtext>in</mtext> + </mrow> + </msub> + <mo>(</mo><mi>x</mi><mo>'</mo><mo>)</mo> + <msub> + <mi>s</mi><mi>δ</mi> + </msub> + <mo>(</mo><mi>x</mi><mo>-</mo><mi>x</mi><mo>'</mo><mo>)</mo><mtext>d</mtext><mi>x</mi><mo>'</mo> + </mtd> + </mtr> + </mtable> +</math> </div> <p>Cases ("manually", with <span class="docutils literal">matrix</span> environment):</p> <div> <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> -<mtable class="align" displaystyle="true"> -<mtr> -<mtd><mtext>sgn</mtext><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo> -<mrow><mo>{</mo> -<mtable> -<mtr> -<mtd><mo>-</mo><mn>1</mn></mtd> -<mtd><mi>x</mi><mo><</mo><mn>0</mn></mtd></mtr> -<mtr> -<mtd><mn>1</mn></mtd> -<mtd><mi>x</mi><mo>></mo><mn>0</mn></mtd></mtr></mtable><mo></mo></mrow></mtd></mtr></mtable></math> + <mtable class="align" displaystyle="true"> + <mtr> + <mtd> + <mtext>sgn</mtext><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo> + <mrow> + <mo>{</mo> + <mtable> + <mtr> + <mtd> + <mo>-</mo><mn>1</mn> + </mtd> + <mtd> + <mi>x</mi><mo><</mo><mn>0</mn> + </mtd> + </mtr> + <mtr> + <mtd> + <mn>1</mn> + </mtd> + <mtd> + <mi>x</mi><mo>></mo><mn>0</mn> + </mtd> + </mtr> + </mtable> + <mo></mo> + </mrow> + </mtd> + </mtr> + </mtable> +</math> </div> <p>Cases with the <a class="reference external" href="ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf">AMSmath</a> <span class="docutils literal">cases</span> environment (not (yet) supported by HTML writers with <span class="docutils literal"><span class="pre">--math-output=MathML</span></span>):</p> |
