set version 0.22b.dev
[docutils.git] / docutils / test / functional / expected / math_experiments_mathml_ttm.html
blob125ae16cc300c9fda60d514c0c39754ff0ada849
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <meta name="generator" content="Docutils 0.22b.dev: https://docutils.sourceforge.io/" />
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 <title>Math Conversion Tests</title>
8 <link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/minimal.css" type="text/css" />
9 <link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/plain.css" type="text/css" />
10 </head>
11 <body>
12 <main id="math-conversion-tests">
13 <h1 class="title">Math Conversion Tests</h1>
15 <section id="math-alphabet-mathvariant">
16 <h2>Math alphabet / Mathvariant</h2>
17 <p>TeX's <em>math alphabet</em> macros change font features of (some) letters and
18 digits. Non-alphanumerical symbols, function names, and mathematical text
19 are left unchanged.</p>
20 <dl class="field-list simple">
21 <dt>default<span class="colon">:</span></dt>
22 <dd><p><span class="math problematic">V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
23 \quad \forall x \in \mathbb{R}</span></p>
24 <aside class="system-message">
25 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 13)</p>
26 <p>TeX to MathML converter `ttm` failed:</p>
27 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
28 </aside>
29 </dd>
30 <dt>mathrm<span class="colon">:</span></dt>
31 <dd><p><span class="math problematic">\mathrm{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
32 \quad \forall x \in \mathbb{R}}</span></p>
33 <aside class="system-message">
34 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 15)</p>
35 <p>TeX to MathML converter `ttm` failed:</p>
36 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
37 </aside>
38 </dd>
39 <dt>mathbf<span class="colon">:</span></dt>
40 <dd><p><span class="math problematic">\mathbf{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
41 \quad \forall x \in \mathbb{R}}</span></p>
42 <aside class="system-message">
43 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 17)</p>
44 <p>TeX to MathML converter `ttm` failed:</p>
45 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
46 </aside>
47 </dd>
48 <dt>mathit<span class="colon">:</span></dt>
49 <dd><p><span class="math problematic">\mathit{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
50 \quad \forall x \in \mathbb{R}}</span></p>
51 <aside class="system-message">
52 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 19)</p>
53 <p>TeX to MathML converter `ttm` failed:</p>
54 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
55 </aside>
56 </dd>
57 <dt>mathbfit<span class="colon">:</span></dt>
58 <dd><p><span class="math problematic">\mathbfit{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
59 \quad \forall x \in \mathbb{R}}</span></p>
60 <aside class="system-message">
61 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 21)</p>
62 <p>TeX to MathML converter `ttm` failed:</p>
63 <p class="pre-wrap">Unknown command \mathbfit in equation, Line 1.
64 Unknown command \mathbb in equation, Line 1.</p>
65 </aside>
66 </dd>
67 <dt>mathbb<span class="colon">:</span></dt>
68 <dd><p><span class="math problematic">\mathbb{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
69 \quad \forall x \in \mathbb{R}}</span></p>
70 <aside class="system-message">
71 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 23)</p>
72 <p>TeX to MathML converter `ttm` failed:</p>
73 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.
74 Unknown command \mathbb in equation, Line 1.</p>
75 </aside>
76 </dd>
77 <dt>mathcal<span class="colon">:</span></dt>
78 <dd><p><span class="math problematic">\mathcal{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
79 \quad \forall x \in \mathbb{R}}</span></p>
80 <aside class="system-message">
81 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 25)</p>
82 <p>TeX to MathML converter `ttm` failed:</p>
83 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
84 </aside>
85 </dd>
86 <dt>mathscr<span class="colon">:</span></dt>
87 <dd><p><span class="math problematic">\mathscr{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
88 \quad \forall x \in \mathbb{R}}</span></p>
89 <aside class="system-message">
90 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 27)</p>
91 <p>TeX to MathML converter `ttm` failed:</p>
92 <p class="pre-wrap">Unknown command \mathscr in equation, Line 1.
93 Unknown command \mathbb in equation, Line 1.</p>
94 </aside>
95 </dd>
96 <dt>mathfrak<span class="colon">:</span></dt>
97 <dd><p><span class="math problematic">\mathfrak{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
98 \quad \forall x \in \mathbb{R}}</span></p>
99 <aside class="system-message">
100 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 29)</p>
101 <p>TeX to MathML converter `ttm` failed:</p>
102 <p class="pre-wrap">Unknown command \mathfrak in equation, Line 1.
103 Unknown command \mathbb in equation, Line 1.</p>
104 </aside>
105 </dd>
106 <dt>mathsf<span class="colon">:</span></dt>
107 <dd><p><span class="math problematic">\mathsf{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
108 \quad \forall x \in \mathbb{R}}</span></p>
109 <aside class="system-message">
110 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 31)</p>
111 <p>TeX to MathML converter `ttm` failed:</p>
112 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
113 </aside>
114 </dd>
115 <dt>mathsfit<span class="colon">:</span></dt>
116 <dd><p><span class="math problematic">\mathsfit{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
117 \quad \forall x \in \mathbb{R}}</span></p>
118 <aside class="system-message">
119 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 33)</p>
120 <p>TeX to MathML converter `ttm` failed:</p>
121 <p class="pre-wrap">Unknown command \mathsfit in equation, Line 1.
122 Unknown command \mathbb in equation, Line 1.</p>
123 </aside>
124 </dd>
125 <dt>mathsfbfit<span class="colon">:</span></dt>
126 <dd><p><span class="math problematic">\mathsfbfit{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
127 \quad \forall x \in \mathbb{R}}</span></p>
128 <aside class="system-message">
129 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 35)</p>
130 <p>TeX to MathML converter `ttm` failed:</p>
131 <p class="pre-wrap">Unknown command \mathsfbfit in equation, Line 1.
132 Unknown command \mathbb in equation, Line 1.</p>
133 </aside>
134 </dd>
135 <dt>mathbfsfit<span class="colon">:</span></dt>
136 <dd><p><span class="math problematic">\mathbfsfit{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
137 \quad \forall x \in \mathbb{R}}</span></p>
138 <aside class="system-message">
139 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 37)</p>
140 <p>TeX to MathML converter `ttm` failed:</p>
141 <p class="pre-wrap">Unknown command \mathbfsfit in equation, Line 1.
142 Unknown command \mathbb in equation, Line 1.</p>
143 </aside>
144 </dd>
145 <dt>mathtt<span class="colon">:</span></dt>
146 <dd><p><span class="math problematic">\mathtt{V_R x \pm \cos(\alpha_\text{out}) \approx 3 \Gamma
147 \quad \forall x \in \mathbb{R}}</span></p>
148 <aside class="system-message">
149 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 39)</p>
150 <p>TeX to MathML converter `ttm` failed:</p>
151 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
152 </aside>
153 </dd>
154 </dl>
155 <p>MathML 4 defines the <em>mathvariant</em> <a class="reference external" href="https://www.w3.org/TR/mathml4/#presm_commatt">style attribute</a>, in MathML core,
156 characters from the <a class="reference external" href="http://www.unicode.org/charts/PDF/U1EE00.pdf">Mathematical Alphanumeric Symbols</a> Unicode block
157 are used.</p>
158 <p>The mathvariants <em>bold-script</em>, <em>bold-fraktur</em>, and <em>sans-bold</em> are
159 rarely used. They are currently not supported by Docutils's native MathML
160 output. In LaTeX, <span class="docutils literal">\mathbfscr</span> and <span class="docutils literal">\mathbffrac</span> is supported by the
161 <a class="reference external" href="https://www.ctan.org/pkg/mathalpha">mathalpha</a> package.</p>
162 <p>Bold variants of any symbol can be achieved in combination with the
163 <span class="docutils literal">\boldsymbol</span> command, e.g.</p>
164 <dl class="field-list simple">
165 <dt>bold-fraktur<span class="colon">:</span></dt>
166 <dd><p><span class="math problematic">\boldsymbol{\mathfrak{V_R x}}</span></p>
167 <aside class="system-message">
168 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 54)</p>
169 <p>TeX to MathML converter `ttm` failed:</p>
170 <p class="pre-wrap">Unknown command \mathfrak in equation, Line 1.</p>
171 </aside>
172 </dd>
173 </dl>
174 <p>Note, that <span class="docutils literal">\boldsymbol</span> emboldens also non-alphanumerical symbols.</p>
175 <section id="complex-example">
176 <h3>Complex Example</h3>
177 <p>From the <a class="reference external" href="https://www.ctan.org/pkg/baskervaldx">baskervaldx</a> package documentation:</p>
178 <dl>
179 <dt>Simplest form of the <em>Central Limit Theorem</em>:</dt>
180 <dd><p>Let <math xmlns="http://www.w3.org/1998/Math/MathML">
181 <mrow>
182 <msub><mrow><mi>X</mi></mrow><mrow><mn>1</mn></mrow>
183 </msub>
184 <mo>,</mo>
185 <msub><mrow><mi>X</mi></mrow><mrow><mn>2</mn></mrow>
186 </msub>
187 <mo>,</mo><mo>&#x2026;</mo></mrow></math> be a sequence of iid random variables with mean <math xmlns="http://www.w3.org/1998/Math/MathML">
188 <mrow><mn>0</mn></mrow></math>
189 and variance <math xmlns="http://www.w3.org/1998/Math/MathML">
190 <mrow><mn>1</mn></mrow></math> on a probability space <span class="math problematic">(\Omega,\mathcal{F},\mathbb{P})</span>.
191 Then</p>
192 <aside class="system-message">
193 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 65)</p>
194 <p>TeX to MathML converter `ttm` failed:</p>
195 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.</p>
196 </aside>
197 <pre class="math problematic">
198 \mathbb{P}\left(\frac{X_1+\cdots+X_n}{\sqrt{n}} \le y\right)
199 \to\mathfrak{N}(y)
200 \coloneq \int_{-\infty}^y
201 \frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\mathrm{\pi}}}\, \mathrm{d}t
202 \quad\mbox{as $n\to\infty$,}
203 </pre>
204 <aside class="system-message">
205 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 69)</p>
206 <p>TeX to MathML converter `ttm` failed:</p>
207 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.
208 Unknown command \mathfrak in equation, Line 1.
209 Unknown command \coloneq in equation, Line 2.</p>
210 </aside>
211 <p>or, equivalently, letting <span class="math problematic">S_n\coloneq\sum_1^n X_k</span>,</p>
212 <aside class="system-message">
213 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 75)</p>
214 <p>TeX to MathML converter `ttm` failed:</p>
215 <p class="pre-wrap">Unknown command \coloneq in equation, Line 1.</p>
216 </aside>
217 <pre class="math problematic">
218 \mathbb{E} f\left(S_n/\sqrt{n}\right)
219 \to \int_{-\infty}^\infty f(t)
220 \frac{\mathrm{e}^{-t^2/2}}{\sqrt{2\mathrm{\pi}}}\, \mathrm{d}t
221 \quad\mbox{as $n\to\infty$,
222 for every $f\in\mathrm{b} \mathcal{C}(\mathbb{R})$.}
223 </pre>
224 <aside class="system-message">
225 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 77)</p>
226 <p>TeX to MathML converter `ttm` failed:</p>
227 <p class="pre-wrap">Unknown command \mathbb in equation, Line 1.
228 Unknown command \mathbb in equation, Line 4.</p>
229 </aside>
230 </dd>
231 </dl>
232 </section>
233 </section>
234 <section id="inferred-mrow-s-in-mathml">
235 <h2>Inferred &lt;mrow&gt;s in MathML</h2>
236 <p>The elements &lt;msqrt&gt;, &lt;mstyle&gt;, &lt;merror&gt;, &lt;mpadded&gt;, &lt;mphantom&gt;, &lt;menclose&gt;,
237 &lt;mtd&gt;, &lt;mscarry&gt;, and &lt;math&gt; treat their contents as a single inferred mrow
238 formed from all their children.</p>
239 <div>
240 <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
241 <mstyle displaystyle="true"><mrow><mi>a</mi><mo>=</mo><msqrt><mrow><mn>2</mn></mrow></msqrt><mo>+</mo><mi>x</mi><mo>,</mo><mi>&emsp;&emsp;&emsp;</mi><mi>b</mi><mo>=</mo><msqrt><mrow><mn>1</mn><mo>+</mo>
242 <msup><mrow><mi>x</mi></mrow><mrow><mn>2</mn></mrow>
243 </msup>
244 </mrow></msqrt><mo>,</mo><mi>&emsp;&emsp;&emsp;</mi><mi>c</mi><mo>=</mo><msqrt><mrow>
245 <mfrac><mrow><mi>sin</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
246 <mrow><mn>23</mn></mrow>
247 </mfrac>
248 </mrow></msqrt><mo>,</mo></mrow>
249 </mstyle></math>
250 </div>
251 <p>inline: <math xmlns="http://www.w3.org/1998/Math/MathML">
252 <mrow><mi>a</mi><mo>=</mo><msqrt><mrow><mn>2</mn></mrow></msqrt><mo>+</mo><mi>x</mi><mo>,</mo><mi>b</mi><mo>=</mo><msqrt><mrow><mn>1</mn><mo>+</mo>
253 <msup><mrow><mi>x</mi></mrow><mrow><mn>2</mn></mrow>
254 </msup>
255 </mrow></msqrt><mo>,</mo><mi>c</mi><mo>=</mo><msqrt><mrow>
256 <mfrac><mrow><mi>sin</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow>
257 <mrow><mn>23</mn></mrow>
258 </mfrac>
259 </mrow></msqrt></mrow></math>.</p>
260 </section>
261 <section id="scripts-and-limits">
262 <h2>Scripts and Limits</h2>
263 <p>Accents should be nearer to the base:
264 <math xmlns="http://www.w3.org/1998/Math/MathML">
265 <mrow>
266 <mover><mrow><mi>a</mi></mrow>
267 <mo>&OverBar;</mo></mover>
269 <mover><mrow><mi>a</mi></mrow>
270 <mo stretchy="true">&OverBar;</mo></mover>
271 <mo>,</mo>
272 <mover><mrow><mi>l</mi></mrow>
273 <mo>&OverBar;</mo></mover>
275 <mover><mrow><mi>l</mi></mrow>
276 <mo stretchy="true">&OverBar;</mo></mover>
277 <mo>,</mo>
278 <mover><mrow><mi>i</mi></mrow>
279 <mo>&OverBar;</mo></mover>
281 <mover><mrow><mi>i</mi></mrow>
282 <mo stretchy="true">&OverBar;</mo></mover>
283 </mrow></math>,
284 <math xmlns="http://www.w3.org/1998/Math/MathML">
285 <mrow>
286 <mover><mrow><mi>r</mi></mrow>
287 <mo>&rarr;</mo></mover>
288 </mrow></math> <math xmlns="http://www.w3.org/1998/Math/MathML">
289 <mrow>
290 <mover><mrow><mi>r</mi></mrow>
291 <mo stretchy="true">&rightarrow;</mo></mover>
292 </mrow></math>.</p>
293 <p>Sub- and superscript may be given in any order:
294 <math xmlns="http://www.w3.org/1998/Math/MathML">
295 <mrow>
296 <msubsup><mrow><mi>x</mi></mrow><mrow><mi>i</mi> </mrow>
297 <mrow><mi>j</mi></mrow></msubsup>
298 <mo>=</mo>
299 <msubsup><mrow><mi>x</mi></mrow><mrow><mi>i</mi> </mrow>
300 <mrow><mi>j</mi></mrow></msubsup>
301 </mrow></math> and <math xmlns="http://www.w3.org/1998/Math/MathML">
302 <mrow>
303 <msubsup><mrow><mo>&int;</mo></mrow><mrow><mn>0</mn> </mrow>
304 <mrow><mn>1</mn></mrow></msubsup>
305 <mo>=</mo>
306 <msubsup><mrow><mo>&int;</mo></mrow><mrow><mn>0</mn> </mrow>
307 <mrow><mn>1</mn></mrow></msubsup>
308 </mrow></math>.</p>
309 <p>Double exponent: <math xmlns="http://www.w3.org/1998/Math/MathML">
310 <mrow>
311 <msup><mrow><mi>x</mi></mrow><mrow>
312 <msup><mrow><mn>10</mn></mrow><mrow><mn>4</mn></mrow>
313 </msup>
314 </mrow>
315 </msup>
316 </mrow></math>, <math xmlns="http://www.w3.org/1998/Math/MathML">
317 <mrow>
318 <msub><mrow><mi>r</mi></mrow><mrow>
319 <msub><mrow><mi>T</mi></mrow><mrow><mi fontstyle="normal">in</mi></mrow>
320 </msub>
321 </mrow>
322 </msub>
323 </mrow></math> and <math xmlns="http://www.w3.org/1998/Math/MathML">
324 <mrow>
325 <msubsup><mrow><mi>x</mi></mrow><mrow><mi>i</mi> </mrow>
326 <mrow>
327 <msup><mrow><mi>n</mi></mrow><mrow><mn>2</mn></mrow>
328 </msup>
329 </mrow></msubsup>
330 </mrow></math>.</p>
331 </section>
332 <section id="nested-groups">
333 <h2>Nested groups</h2>
334 <p>tex-token returns &quot;{&quot; for nested groups:</p>
335 <div>
336 <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
337 <mstyle displaystyle="true"><mrow>
338 <mtext>das ist ein tollertext (unescaped { and } is
339 ignored by LaTeX)</mtext>
340 </mrow>
341 </mstyle></math>
342 </div>
343 </section>
344 <section id="big-delimiters-and-symbols">
345 <h2>Big delimiters and symbols</h2>
346 <p>Compare automatic sizing with fixed sizes:</p>
347 <!-- math: \left( \frac{\frac1x}{\frac{1}{n}}\right) &= \Biggl(\text{Bigg}\Biggr)\\ -->
348 <pre class="math problematic">
349 \left( 3 \right)
350 \left( f(x) \right)
351 \left( \bar x \right)
352 \left( \overline x \right)
353 \left( n_i \right) &amp;= () \\
354 \left( \underline x \right) &amp;= \bigl(\text{big}\bigr)\\
355 \left( 3^2 \right)
356 \left( \sqrt{3} \right)
357 \left( \sqrt{3^2} \right)
358 \left( \sum \right)
359 \left( \bigotimes \right)
360 \left( \prod \right) &amp;= \Bigl(\text{Big}\Bigr)\\
361 \left( \frac{3 }{2} \right)
362 \left( \frac{3^2}{2^4} \right)
363 \binom{3 }{2}
364 \begin{pmatrix} a &amp; b \\ c &amp; d \end{pmatrix}
365 \left( \frac{1}{\sqrt 2} \right)
366 \left( \int \right)
367 \left( \int_0 \right)
368 \left( \int^1 \right)
369 \left( \int_0^1 \right) &amp;= \biggl(\text{bigg}\biggr)\\
370 \left( \frac{\sqrt 2}{2} \right)
371 \left( \sum_0 \right)
372 \left( \sum^1 \right)
373 \left( \sum_0^1 \right)
374 \left( \frac{\frac1x}{\frac{1}{n}}\right) &amp;= \Biggl(\text{Bigg}\Biggr)\\
375 \left( \intop_0 \right)
376 \left( \intop^1 \right)
377 \left( \intop_0^1 \right)
378 </pre>
379 <aside class="system-message">
380 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 127)</p>
381 <p>TeX to MathML converter `ttm` failed:</p>
382 <p class="pre-wrap">Unknown or ignored environment: \begin{align*} Line 1.
383 Unknown command \left, (0 user-defined) Line 2.
384 Unknown command \right, (0 user-defined) Line 2.
385 Unknown command \bar, (0 user-defined) Line 4.
386 Unknown command \overline, (0 user-defined) Line 5.
387 Unknown command \bigl, (0 user-defined) Line 7.
388 Unknown command \bigr, (0 user-defined) Line 7.
389 Unknown command \sqrt, (0 user-defined) Line 9.
390 Unknown command \sum, (0 user-defined) Line 11.
391 Unknown command \bigotimes, (0 user-defined) Line 12.
392 Unknown command \prod, (0 user-defined) Line 13.
393 Unknown command \Bigl, (0 user-defined) Line 13.
394 Unknown command \Bigr, (0 user-defined) Line 13.
395 Unknown command \binom, (0 user-defined) Line 16.
396 Unknown or ignored environment: \begin{pmatrix} Line 17.
397 Unknown command \int, (0 user-defined) Line 19.
398 Unknown command \biggl, (0 user-defined) Line 22.
399 Unknown command \biggr, (0 user-defined) Line 22.
400 Unknown command \Biggl, (0 user-defined) Line 27.
401 Unknown command \Biggr, (0 user-defined) Line 27.
402 Unknown command \intop, (0 user-defined) Line 28.</p>
403 </aside>
404 <p>And in text:</p>
405 <dl class="field-list simple">
406 <dt><math xmlns="http://www.w3.org/1998/Math/MathML">
407 <mrow><mo stretchy="false">(</mo><mo stretchy="false">)</mo></mrow></math><span class="colon">:</span></dt>
408 <dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
409 <mrow><mrow><mo>(</mo><mn>3</mn><mo>)</mo></mrow><mrow><mo>(</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>)</mo></mrow><mrow><mo>(</mo>
410 <mover><mrow><mi>x</mi></mrow>
411 <mo>&OverBar;</mo></mover>
412 <mo>)</mo></mrow><mrow><mo>(</mo>
413 <mover><mrow><mi>x</mi></mrow>
414 <mo stretchy="true">&OverBar;</mo></mover>
415 <mo>)</mo></mrow><mrow><mo>(</mo>
416 <msub><mrow><mi>n</mi></mrow><mrow><mi>i</mi></mrow>
417 </msub>
418 <mo>)</mo></mrow><mrow><mo>(</mo><mo>&sum;</mo><mo>)</mo></mrow><mrow><mo>(</mo>
419 <munder><mo>&sum;</mo><mrow><mn>0</mn></mrow>
420 </munder>
421 <mo>)</mo></mrow><mrow><mo>(</mo><mo>&Pi;</mo><mo>)</mo></mrow></mrow></math></p>
422 </dd>
423 <dt><math xmlns="http://www.w3.org/1998/Math/MathML">
424 <mrow><mrow><mo> </mo><mo>(</mo></mrow>
425 <mtext>big</mtext>
426 <mrow><mo> </mo><mo>)</mo></mrow></mrow></math><span class="colon">:</span></dt>
427 <dd><p><span class="math problematic">\left(\underline x \right)
428 \left( 3^2 \right)
429 \binom{3}{2}
430 \left(\begin{smallmatrix} a &amp; b \\
431 c &amp; d \end{smallmatrix} \right)
432 \left( \bigotimes \right)</span></p>
433 <aside class="system-message">
434 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 170)</p>
435 <p>TeX to MathML converter `ttm` failed:</p>
436 <p class="pre-wrap">Unknown command \binom in equation, Line 1.
437 Unknown or ignored environment: \begin{smallmatrix} Line 1.
438 Improper \\ or \cr outside array environment ignored, Line ~1..</p>
439 </aside>
440 </dd>
441 <dt><math xmlns="http://www.w3.org/1998/Math/MathML">
442 <mrow><mrow><mo> </mo><mo>(</mo></mrow>
443 <mtext>Big</mtext>
444 <mrow><mo> </mo><mo>)</mo></mrow></mrow></math><span class="colon">:</span></dt>
445 <dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
446 <mrow><mrow><mo>(</mo><msqrt><mrow><mn>3</mn></mrow></msqrt><mo>)</mo></mrow><mrow><mo>(</mo><msqrt><mrow>
447 <msup><mrow><mn>3</mn></mrow><mrow><mn>2</mn></mrow>
448 </msup>
449 </mrow></msqrt><mo>)</mo></mrow><mrow><mo>(</mo>
450 <mfrac><mrow><mn>3</mn></mrow>
451 <mrow><mn>2</mn></mrow>
452 </mfrac>
453 <mo>)</mo></mrow><mrow><mo>(</mo>
454 <mfrac><mrow>
455 <msup><mrow><mn>3</mn></mrow><mrow><mn>2</mn></mrow>
456 </msup>
457 </mrow>
458 <mrow>
459 <msup><mrow><mn>2</mn></mrow><mrow><mn>4</mn></mrow>
460 </msup>
461 </mrow>
462 </mfrac>
463 <mo>)</mo></mrow><mrow><mo>(</mo>
464 <mfrac><mrow><msqrt><mrow><mn>2</mn></mrow></msqrt></mrow>
465 <mrow><mn>2</mn></mrow>
466 </mfrac>
467 <mo>)</mo></mrow><mrow><mo>(</mo><mo>&int;</mo><mo>)</mo></mrow><mrow><mo>(</mo>
468 <msub><mrow><mo>&int;</mo></mrow><mrow><mn>0</mn></mrow>
469 </msub>
470 <mo>)</mo></mrow><mrow><mo>(</mo>
471 <msup><mrow><mo>&int;</mo></mrow><mrow><mn>1</mn></mrow>
472 </msup>
473 <mo>)</mo></mrow><mrow><mo>(</mo>
474 <msubsup><mrow><mo>&int;</mo></mrow><mrow><mn>0</mn> </mrow>
475 <mrow><mn>1</mn></mrow></msubsup>
476 <mo>)</mo></mrow><mrow><mo>(</mo>
477 <mover><mo>&sum;</mo><mrow><mn>1</mn></mrow>
478 </mover>
479 <mo>)</mo></mrow><mrow><mo>(</mo>
480 <munderover><mo>&sum;</mo><mrow><mn>0</mn> </mrow>
481 <mrow><mn>1</mn></mrow></munderover><mo>)</mo></mrow><mrow><mo>(</mo>
482 <mfrac><mrow>
483 <mfrac><mrow><mn>1</mn></mrow>
484 <mrow><mi>x</mi></mrow>
485 </mfrac>
486 </mrow>
487 <mrow>
488 <mfrac><mrow><mn>1</mn></mrow>
489 <mrow><mi>n</mi></mrow>
490 </mfrac>
491 </mrow>
492 </mfrac>
493 <mo>)</mo></mrow></mrow></math></p>
494 </dd>
495 </dl>
496 <p>Test <span class="docutils literal">\left</span>, <span class="docutils literal">\right</span>, and the bigl/bigr, … size commands
497 with all extensible delimiters.</p>
498 <p>pairing:</p>
499 <div>
500 <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
501 <mstyle displaystyle="true"><mrow><mrow><mo> </mo><mo stretchy="false">(</mo><mi>b</mi><mo>)</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>(</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>)</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>(</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>)</mo></mrow><mi>&emsp;&emsp;&emsp;</mi><mrow><mo> </mo><mo stretchy="false">[</mo><mi>b</mi><mo>]</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>[</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>]</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>[</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>]</mo></mrow><mi>&emsp;&emsp;&emsp;</mi><mrow><mo> </mo><mo stretchy="false">{</mo><mi>b</mi><mo>}</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>{</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>}</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>{</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>}</mo></mrow><mi>&emsp;&emsp;&emsp;</mi><mrow><mo> </mo><mo stretchy="false">&lang;</mo><mi>b</mi><mo>&rangle;</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>&langle;</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>&rangle;</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>&langle;</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>&rangle;</mo></mrow></mrow>
502 </mstyle></math>
503 </div>
504 <pre class="math problematic">
505 \left.\lceil b \right\rceil \ \bigl\lceil b \Bigr\rceil \ \biggl\lceil b \Biggr\rceil
506 \quad
507 \left.\lfloor b \right\rfloor \ \bigl\lfloor b \Bigr\rfloor \ \biggl\lfloor b \Biggr\rfloor
508 \quad
509 \left.\lvert b \right\rvert \ \bigl\lvert b \Bigr\rvert \ \biggl\lvert b \Biggr\rvert
510 \quad
511 \left.\lVert b \right\rVert \ \bigl\lVert b \Bigr\rVert \ \biggl\lVert b \Biggr\rVert
512 </pre>
513 <aside class="system-message">
514 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 199)</p>
515 <p>TeX to MathML converter `ttm` failed:</p>
516 <p class="pre-wrap">Unknown command \lvert in equation, Line 1.
517 Unknown command \rvert in equation, Line 1.
518 Unknown command \lvert in equation, Line 1.
519 Unknown command \rvert in equation, Line 1.
520 Unknown command \lvert in equation, Line 1.
521 Unknown command \rvert in equation, Line 1.
522 Unknown command \lVert in equation, Line 2.
523 Unknown command \rVert in equation, Line 2.
524 Unknown command \lVert in equation, Line 2.
525 Unknown command \rVert in equation, Line 2.
526 Unknown command \lVert in equation, Line 2.
527 Unknown command \rVert in equation, Line 2.</p>
528 </aside>
529 <pre class="math problematic">
530 \left.\lgroup b \right\rgroup \ \bigl\lgroup b \Bigr\rgroup \ \biggl\lgroup b \Biggr\rgroup
531 \quad
532 \left.\lmoustache b \right\rmoustache \ \bigl\lmoustache b \Bigr\rmoustache \ \biggl\lmoustache b \Biggr\rmoustache
533 \quad
534 \left./ b \right\backslash \ \bigl/ b \Bigr\backslash \ \biggl/ b \Biggr\backslash
535 </pre>
536 <aside class="system-message">
537 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 199)</p>
538 <p>TeX to MathML converter `ttm` failed:</p>
539 <p class="pre-wrap">Unknown command \lgroup in equation, Line 1.
540 Unknown command \rgroup in equation, Line 1.
541 Unknown command \lgroup in equation, Line 1.
542 Unknown command \rgroup in equation, Line 1.
543 Unknown command \lgroup in equation, Line 1.
544 Unknown command \rgroup in equation, Line 1.
545 Unknown command \lmoustache in equation, Line 2.
546 Unknown command \rmoustache in equation, Line 2.
547 Unknown command \lmoustache in equation, Line 2.
548 Unknown command \rmoustache in equation, Line 2.
549 Unknown command \lmoustache in equation, Line 2.
550 Unknown command \rmoustache in equation, Line 2.</p>
551 </aside>
552 <p>non-pairing:</p>
553 <div>
554 <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
555 <mstyle displaystyle="true"><mrow><mrow><mo> </mo><mo stretchy="false">&verbar;</mo><mi>b</mi><mo>|</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>&emsp;&emsp;&emsp;</mi><mrow><mo> </mo><mo stretchy="false">&verbar;</mo><mi>b</mi><mo>|</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>&ensp;</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>b</mi><mrow><mo> </mo><mo>|</mo></mrow><mi>&emsp;&emsp;&emsp;</mi><mrow><mo> </mo><mo stretchy="false">&Verbar;</mo><mi>b</mi></mrow><mo stretchy="false">&Verbar;</mo><mi>&ensp;</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo><mi>b</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo><mi>&ensp;</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo><mi>b</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo><mi>&emsp;&emsp;&emsp;</mi><mrow><mo> </mo><mo stretchy="false">&Verbar;</mo><mi>b</mi></mrow><mo stretchy="false">&Verbar;</mo><mi>&ensp;</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo><mi>b</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo><mi>&ensp;</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo><mi>b</mi><mrow><mo> </mo></mrow><mo stretchy="false">&Verbar;</mo></mrow>
556 </mstyle></math>
557 </div>
558 <pre class="math problematic">
559 \left.\arrowvert b \right\arrowvert \ \bigl\arrowvert b \Bigr\arrowvert \ \biggl\arrowvert b \Biggr\arrowvert
560 \quad
561 \left.\Arrowvert b \right\Arrowvert \ \bigl\Arrowvert b \Bigr\Arrowvert \ \biggl\Arrowvert b \Biggr\Arrowvert
562 \quad
563 \left.\bracevert b \right\bracevert \ \bigl\bracevert b \Bigr\bracevert \ \biggl\bracevert b \Biggr\bracevert
564 </pre>
565 <aside class="system-message">
566 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 224)</p>
567 <p>TeX to MathML converter `ttm` failed:</p>
568 <p class="pre-wrap">Unknown command \arrowvert in equation, Line 1.
569 Unknown command \arrowvert in equation, Line 1.
570 Unknown command \arrowvert in equation, Line 1.
571 Unknown command \arrowvert in equation, Line 1.
572 Unknown command \arrowvert in equation, Line 1.
573 Unknown command \arrowvert in equation, Line 1.
574 Unknown command \Arrowvert in equation, Line 2.
575 Unknown command \Arrowvert in equation, Line 2.
576 Unknown command \Arrowvert in equation, Line 2.
577 Unknown command \Arrowvert in equation, Line 2.
578 Unknown command \Arrowvert in equation, Line 2.
579 Unknown command \Arrowvert in equation, Line 2.
580 Unknown command \bracevert in equation, Line 3.
581 Unknown command \bracevert in equation, Line 3.
582 Unknown command \bracevert in equation, Line 3.
583 Unknown command \bracevert in equation, Line 3.
584 Unknown command \bracevert in equation, Line 3.
585 Unknown command \bracevert in equation, Line 3.</p>
586 </aside>
587 <p>Variable-sized operators:</p>
588 <p>Inline: <span class="math problematic">\int\ \iint\ \iiint\ \iiiint\ \idotsint \oint\ \smallint\
589 \sum\ \prod\ \coprod\ \bigwedge\ \bigvee\ \bigcap\ \bigcup\ \biguplus\
590 \bigsqcup\ \bigodot\ \bigoplus\ \bigotimes</span> and Display:</p>
591 <aside class="system-message">
592 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 241)</p>
593 <p>TeX to MathML converter `ttm` failed:</p>
594 <p class="pre-wrap">Unknown command \iiiint in equation, Line 1.
595 Unknown command \idotsint in equation, Line 1.
596 Unknown command \smallint in equation, Line 1.</p>
597 </aside>
598 <pre class="math problematic">
599 \int\ \iint\ \iiint\ \iiiint\ \idotsint\ \oint\ \smallint\
600 \sum\ \prod\ \coprod\ \bigwedge\ \bigvee\ \bigcap\ \bigcup\
601 \biguplus\ \bigsqcup\ \bigodot\ \bigoplus\ \bigotimes
602 </pre>
603 <aside class="system-message">
604 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 245)</p>
605 <p>TeX to MathML converter `ttm` failed:</p>
606 <p class="pre-wrap">Unknown command \iiiint in equation, Line 1.
607 Unknown command \idotsint in equation, Line 1.
608 Unknown command \smallint in equation, Line 1.</p>
609 </aside>
610 <pre class="math problematic">
611 \int_1 f\ \intop_1 f\ \iint_1 f\ \smallint_1 f\ \sum_1\
612 \prod_1\ \bigwedge_1\ \bigcap_1\ \biguplus_1\ \bigodot_1\ \int^N\
613 \intop^N\ \iiiint^N\ \oint^N\ \smallint^N\ \sum^N\ \coprod^N\
614 \bigvee^N\ \bigcup^N\ \bigsqcup^N\ \bigotimes^N
615 </pre>
616 <aside class="system-message">
617 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 249)</p>
618 <p>TeX to MathML converter `ttm` failed:</p>
619 <p class="pre-wrap">Unknown command \intop in equation, Line 1.
620 Unknown command \smallint in equation, Line 1.
621 Unknown command \intop in equation, Line 3.
622 Unknown command \iiiint in equation, Line 3.
623 Unknown command \smallint in equation, Line 3.</p>
624 </aside>
625 <pre class="math problematic">
626 \int_1^N\ \intop_1^N\ \iint_1^N\ \iiint_1^N\ \iiiint_1^N\
627 \idotsint_1^N\ \oint_1^N\ \smallint_1^N\ \sum_1^N\ \prod_1^N\
628 \coprod_1^N\ \bigwedge_1^N\ \bigvee_1^N\ \bigcap_1^N\ \bigcup_1^N
629 \ \biguplus_1^N\ \bigsqcup_1^N\ \bigodot_1^N\ \bigoplus_1^N\
630 \bigotimes_1^N
631 </pre>
632 <aside class="system-message">
633 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 254)</p>
634 <p>TeX to MathML converter `ttm` failed:</p>
635 <p class="pre-wrap">Unknown command \intop in equation, Line 1.
636 Unknown command \iiiint in equation, Line 1.
637 Unknown command \idotsint in equation, Line 2.
638 Unknown command \smallint in equation, Line 2.</p>
639 </aside>
640 </section>
641 <section id="text">
642 <h2>Text</h2>
643 <p>The text may contain non-ASCII characters: <math xmlns="http://www.w3.org/1998/Math/MathML">
644 <mrow><mi>n</mi>_
645 <mtext>Stoß</mtext>
646 </mrow></math>.</p>
647 <p>Some text-mode LaTeX commands are supported with <a class="reference external" href="https://docutils.sourceforge.io/docs/user/config.html#math-output">math_output</a> &quot;html&quot;.
648 In other output formats, use literal Unicode: <span class="math problematic">\text{ç é è ë ê ñ ů ž ©}</span>
649 to get the result of the accent macros
650 <span class="math problematic">\text{\c{c} \'e \`e \&quot;e \^e \~n \r{u} \v{z} \textcircled{c}}</span>.</p>
651 <aside class="system-message">
652 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 266)</p>
653 <p>'latin-1' codec can't encode character '\u016f' in position 19: ordinal not in range(256)</p>
654 </aside>
655 <aside class="system-message">
656 <p class="system-message-title">System Message: WARNING/2 (<span class="docutils literal">/usr/local/src/docutils-git-svn/docutils/test/functional/input/data/math_experiments.txt</span>, line 266)</p>
657 <p>TeX to MathML converter `ttm` failed:</p>
658 <p class="pre-wrap">Unknown command \r, (0 user-defined) Line 1.
659 Unknown command \textcircled, (0 user-defined) Line 1.</p>
660 </aside>
661 </section>
662 </main>
663 </body>
664 </html>