summaryrefslogtreecommitdiff
path: root/docutils/test/functional/expected
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-05-20 12:19:23 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-05-20 12:19:23 +0000
commitd3305e07e86df9a1557da9a61a358290bb910728 (patch)
treedbf3fe6b6d6e3623778d949def833038de16ccbf /docutils/test/functional/expected
parent69605b78ed45169b3d04af6f5c8fbb2f2bea9b05 (diff)
downloaddocutils-d3305e07e86df9a1557da9a61a358290bb910728.tar.gz
MathML: Use large operators and fix alignment in "math" blocks.
Set displaystyle="true" and class="align" for the outer ``<mtable>``¹ in math blocks. ¹ The "mtable"-wrapper is used to support multi-line formulas similar to the "align" environment in the "amsmath" LaTeX package. Add CSS to left-align the table cells in "align"-emulating mtables. Fixes part of bug #407. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8738 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/expected')
-rw-r--r--docutils/test/functional/expected/math_output_mathml.html50
1 files changed, 25 insertions, 25 deletions
diff --git a/docutils/test/functional/expected/math_output_mathml.html b/docutils/test/functional/expected/math_output_mathml.html
index 3f8b91bfa..80432ee48 100644
--- a/docutils/test/functional/expected/math_output_mathml.html
+++ b/docutils/test/functional/expected/math_output_mathml.html
@@ -13,15 +13,15 @@
<h1 class="title">Mathematics</h1>
<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" displaystyle="false">
-<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" displaystyle="false">
+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
<cite>math</cite> directive:</p>
<div>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
-<mtable>
+<mtable class="align" displaystyle="true">
<mtr>
<mtd><mi>f</mi><mo>(</mo><mi>ϵ</mi><mo>)</mo><mo>=</mo><mfrac>
<mrow><mn>1</mn></mrow>
@@ -33,7 +33,7 @@ role specificator, <math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle
<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>
+<mtable class="align" displaystyle="true">
<mtr>
<mtd><mi>N</mi><mo>=</mo><mfrac>
<mrow><mtext>number of apples</mtext></mrow>
@@ -44,7 +44,7 @@ See <a class="reference internal" href="#eq-m">eq:M</a> and <a class="reference
<p>The determinant of the matrix</p>
<div id="eq-m">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
-<mtable>
+<mtable class="align" displaystyle="true">
<mtr>
<mtd><mstyle mathvariant="bold">
<mrow><mi>M</mi></mrow></mstyle><mo>=</mo>
@@ -57,14 +57,14 @@ See <a class="reference internal" href="#eq-m">eq:M</a> and <a class="reference
<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" displaystyle="false">
+<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>
<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>
+<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>
@@ -72,7 +72,7 @@ For example, the following sum and integral with limits:</p>
</div>
<div>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
-<mtable>
+<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>
@@ -84,14 +84,14 @@ directives:</p>
<p>The Schrödinger equation</p>
<div id="eq-schrodinger">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
-<mtable>
+<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" displaystyle="false">
+<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
physical system changes in time.</p>
<dl>
@@ -103,43 +103,43 @@ physical system changes in time.</p>
<col style="width: 33%" />
</colgroup>
<tbody>
-<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
</tr>
-<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
</tr>
-<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
</tr>
-<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
-<td><p><math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="false">
+<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>
</tr>
@@ -152,7 +152,7 @@ physical system changes in time.</p>
<p>Modulation Transfer Function:</p>
<div>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
-<mtable>
+<mtable class="align" displaystyle="true">
<mtr>
<mtd><mtext>MTF</mtext><mo>=</mo>
<mrow><mo>|</mo><mfrac>
@@ -177,7 +177,7 @@ physical system changes in time.</p>
<span class="docutils literal">align</span> environment:</p>
<div>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
-<mtable>
+<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>
@@ -191,7 +191,7 @@ physical system changes in time.</p>
<p>Cases (&quot;manually&quot;, with <span class="docutils literal">matrix</span> environment):</p>
<div>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
-<mtable>
+<mtable class="align" displaystyle="true">
<mtr>
<mtd><mtext>sgn</mtext><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo>
<mrow><mo>{</mo>