diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-08-10 14:13:35 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-08-10 14:13:35 +0000 |
| commit | 61b367c60a7c4c79c5d15a3d7b2efa4091096b16 (patch) | |
| tree | c3457b95a801bc4461c2b9f254d7aa4ef0713d73 /test/functional/expected | |
| parent | 4f1959d141f3005c60c41d7e9c62659ab6109104 (diff) | |
| download | docutils-61b367c60a7c4c79c5d15a3d7b2efa4091096b16.tar.gz | |
MathML: fixes and additions.
Math accent commands more similar to their LaTeX behaviour.
Additions for HTML export.
Use boolean values for boolean node arguments.
Downcase node arguments before storing.
Use class argument "boldsymbol" for \boldsymbol content.
Alignment of multi line equations similar to AMS-LaTeX "align" environment.
Add space after bracket in "cases" environment, left-align columns.
Fix spacing before "unary" minus.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8805 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/functional/expected')
| -rw-r--r-- | test/functional/expected/latex_memoir.tex | 4 | ||||
| -rw-r--r-- | test/functional/expected/math_output_html.html | 2 | ||||
| -rw-r--r-- | test/functional/expected/math_output_latex.html | 4 | ||||
| -rw-r--r-- | test/functional/expected/math_output_mathjax.html | 4 | ||||
| -rw-r--r-- | test/functional/expected/math_output_mathml.html | 61 | ||||
| -rw-r--r-- | test/functional/expected/standalone_rst_latex.tex | 4 | ||||
| -rw-r--r-- | test/functional/expected/standalone_rst_xetex.tex | 4 |
7 files changed, 43 insertions, 40 deletions
diff --git a/test/functional/expected/latex_memoir.tex b/test/functional/expected/latex_memoir.tex index 57e8f1001..20fe8375f 100644 --- a/test/functional/expected/latex_memoir.tex +++ b/test/functional/expected/latex_memoir.tex @@ -1904,8 +1904,8 @@ Cases with the \href{ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf}{AMS % \begin{equation*} \mathrm{sgn}(x) = \begin{cases} - -1 & x<0\\ - 1 & x>0 + -1 & x<0\\ + \phantom{-} 1 & x>0 \end{cases} \end{equation*} diff --git a/test/functional/expected/math_output_html.html b/test/functional/expected/math_output_html.html index b8306a201..252db232d 100644 --- a/test/functional/expected/math_output_html.html +++ b/test/functional/expected/math_output_html.html @@ -163,7 +163,7 @@ physical system changes in time.</p> </span> <span class="arrayrow"> <span class="case align-l"> -1 +<span class="phantom"> − </span>1 </span> <span class="case align-l"> <i>x</i> > 0 diff --git a/test/functional/expected/math_output_latex.html b/test/functional/expected/math_output_latex.html index 10b830de2..140f5609f 100644 --- a/test/functional/expected/math_output_latex.html +++ b/test/functional/expected/math_output_latex.html @@ -95,8 +95,8 @@ s_{\mathrm{out}}(x) & = s_{\mathrm{in}}(x') * s_\delta (x-x') \\ <p>Cases with the <a class="reference external" href="ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf">AMSmath</a> <tt class="docutils literal">cases</tt> environment:</p> <pre class="math"> \mathrm{sgn}(x) = \begin{cases} - -1 & x<0\\ - 1 & x>0 + -1 & x<0\\ + \phantom{-} 1 & x>0 \end{cases} </pre> </div> diff --git a/test/functional/expected/math_output_mathjax.html b/test/functional/expected/math_output_mathjax.html index 4b2a37df6..e995968f1 100644 --- a/test/functional/expected/math_output_mathjax.html +++ b/test/functional/expected/math_output_mathjax.html @@ -113,8 +113,8 @@ s_{\mathrm{out}}(x) & = s_{\mathrm{in}}(x') * s_\delta (x-x') \\ <div class="math"> \begin{equation*} \mathrm{sgn}(x) = \begin{cases} - -1 & x<0\\ - 1 & x>0 + -1 & x<0\\ + \phantom{-} 1 & x>0 \end{cases} \end{equation*} </div> diff --git a/test/functional/expected/math_output_mathml.html b/test/functional/expected/math_output_mathml.html index 37191201f..f5f357de7 100644 --- a/test/functional/expected/math_output_mathml.html +++ b/test/functional/expected/math_output_mathml.html @@ -195,9 +195,9 @@ directives:</p> </mfrac> <mi class="capital-greek">Ψ</mi> <mo>=</mo> - <mover accent="true"> + <mover> <mi>H</mi> - <mo>ˆ</mo> + <mo stretchy="false">ˆ</mo> </mover> <mi class="capital-greek">Ψ</mi> <mo>,</mo> @@ -217,78 +217,78 @@ physical system changes in time.</p> </colgroup> <tbody> <tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="true"> + <mover> <mi>a</mi> - <mo>´</mo> + <mo stretchy="false">´</mo> </mover> </math> <span class="docutils literal">\acute{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="true"> + <mover> <mi>t</mi> - <mo>˙</mo> + <mo stretchy="false">˙</mo> </mover> </math> <span class="docutils literal">\dot{t}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="true"> + <mover> <mi>γ</mi> - <mo>ˆ</mo> + <mo stretchy="false">ˆ</mo> </mover> </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"> - <mover accent="true"> + <mover> <mi>a</mi> - <mo>`</mo> + <mo stretchy="false">`</mo> </mover> </math> <span class="docutils literal">\grave{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="true"> + <mover> <mi>t</mi> - <mo>¨</mo> + <mo stretchy="false">¨</mo> </mover> </math> <span class="docutils literal">\ddot{t}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="true"> + <mover> <mi>α</mi> - <mo>˜</mo> + <mo stretchy="false">˜</mo> </mover> </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"> - <mover accent="true"> + <mover> <mi>x</mi> - <mo>˘</mo> + <mo stretchy="false">˘</mo> </mover> </math> <span class="docutils literal">\breve{x}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="true"> + <mover> <mi>t</mi> - <mo>⃛</mo> + <mo stretchy="false">⋯</mo> </mover> </math> <span class="docutils literal">\dddot{t}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="false"> + <mover> <mi>ı</mi> - <mo>→</mo> + <mo stretchy="false" accent="false">→</mo> </mover> </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"> - <mover accent="true"> + <mover> <mi>a</mi> - <mo>ˇ</mo> + <mo stretchy="false">ˇ</mo> </mover> </math> <span class="docutils literal">\check{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="true"> + <mover> <mi>a</mi> - <mo>ˉ</mo> + <mo stretchy="false">ˉ</mo> </mover> </math> <span class="docutils literal">\bar{a}</span></p></td> <td><p><math xmlns="http://www.w3.org/1998/Math/MathML"> - <mover accent="false"> + <mover> <mi>R</mi> - <mo>→</mo> + <mo stretchy="false" accent="false">→</mo> </mover> </math> <span class="docutils literal">\vec{R}</span></p></td> </tr> @@ -397,7 +397,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 class="alignat" columnalign="right left" columnspacing="0" displaystyle="true"> + <mtable class="align" columnalign="right left" columnspacing="0" displaystyle="true"> <mtr> <mtd> <msub> @@ -472,8 +472,8 @@ physical system changes in time.</p> <mo stretchy="false">)</mo> <mo>=</mo> <mrow> - <mo>{</mo> - <mtable> + <mo rspace="0.17em">{</mo> + <mtable columnalign="left"> <mtr> <mtd> <mo>−</mo> @@ -487,6 +487,9 @@ physical system changes in time.</p> </mtr> <mtr> <mtd> + <mphantom> + <mo>−</mo> + </mphantom> <mn>1</mn> </mtd> <mtd> diff --git a/test/functional/expected/standalone_rst_latex.tex b/test/functional/expected/standalone_rst_latex.tex index 60c20d63c..455845273 100644 --- a/test/functional/expected/standalone_rst_latex.tex +++ b/test/functional/expected/standalone_rst_latex.tex @@ -1926,8 +1926,8 @@ Cases with the \href{ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf}{AMS % \begin{equation*} \mathrm{sgn}(x) = \begin{cases} - -1 & x<0\\ - 1 & x>0 + -1 & x<0\\ + \phantom{-} 1 & x>0 \end{cases} \end{equation*} diff --git a/test/functional/expected/standalone_rst_xetex.tex b/test/functional/expected/standalone_rst_xetex.tex index cc91acd4a..cbd6fb7dc 100644 --- a/test/functional/expected/standalone_rst_xetex.tex +++ b/test/functional/expected/standalone_rst_xetex.tex @@ -1798,8 +1798,8 @@ Cases with the \href{ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf}{AMS % \begin{equation*} \mathrm{sgn}(x) = \begin{cases} - -1 & x<0\\ - 1 & x>0 + -1 & x<0\\ + \phantom{-} 1 & x>0 \end{cases} \end{equation*} |
