SF.net SVN: docutils:[9532 ] trunk/docutils/test
milde--- via Docutils-checkins <[email protected]>
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 9532
http://sourceforge.net/p/docutils/code/9532
Author: milde
Date: 2024-02-01 13:03:27 +0000 (Thu, 01 Feb 2024)
Log Message:
-----------
Fix tests for LaTeX to MathML converters.
Strip trailing underscore from generated output file names.
Move test setup out of the "with self.subTest(...) block.
Modified Paths:
--------------
trunk/docutils/test/test_utils/test_math/test_tex2mathml_extern.py
Added Paths:
-----------
trunk/docutils/test/functional/expected/math_experiments_mathml.html
trunk/docutils/test/functional/expected/mathematics_mathml.html
Removed Paths:
-------------
trunk/docutils/test/functional/expected/math_experiments_mathml_.html
trunk/docutils/test/functional/expected/mathematics_mathml_.html
Copied: trunk/docutils/test/functional/expected/math_experiments_mathml.html (from rev 9531, trunk/docutils/test/functional/expected/math_experiments_mathml_.html)
===================================================================
--- trunk/docutils/test/functional/expected/math_experiments_mathml.html (rev 0)
+++ trunk/docutils/test/functional/expected/math_experiments_mathml.html 2024-02-01 13:03:27 UTC (rev 9532)
@@ -0,0 +1,1795 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta charset="utf-8" />
+<meta name="generator" content="Docutils 0.21b.dev: https://docutils.sourceforge.io/" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<title>Math Conversion Tests</title>
+<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/minimal.css" type="text/css" />
+<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/plain.css" type="text/css" />
+</head>
+<body>
+<main id="math-conversion-tests">
+<h1 class="title">Math Conversion Tests</h1>
+
+<section id="font-changes">
+<h2>Font changes</h2>
+<p><em>Math alphabet</em> macros change the default alphabet, leaving some symbols
+unchanged. In MathML core, the corresponding <em>Mathematical Alphanumeric
+Symbols</em> are used.</p>
+<dl class="field-list simple">
+<dt>default<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <msub>
+ <mi>V</mi>
+ <mi>R</mi>
+ </msub>
+ <mi>x</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek">Γ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>x</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+</math></p>
+</dd>
+<dt>mathbb<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝕍</mi>
+ <mi>ℝ</mi>
+ </msub>
+ <mi>𝕩</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>𝟛</mn>
+ <mi class="capital-greek">ℾ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝕩</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathbf<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝐕</mi>
+ <mi>𝐑</mi>
+ </msub>
+ <mi>𝐱</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>𝛂</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>𝟑</mn>
+ <mi class="capital-greek">𝚪</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝐱</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathbfit<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝑽</mi>
+ <mi>𝑹</mi>
+ </msub>
+ <mi>𝒙</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>𝜶</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek">𝜞</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝒙</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathcal<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝒱</mi>
+ <mi>ℛ</mi>
+ </msub>
+ <mi>𝓍</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek">Γ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝓍</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathit<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝑉</mi>
+ <mi>𝑅</mi>
+ </msub>
+ <mi>𝑥</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>𝛼</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek">𝛤</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝑥</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathrm<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi mathvariant="normal">V</mi>
+ <mi mathvariant="normal">R</mi>
+ </msub>
+ <mi mathvariant="normal">x</mi>
+ <mo>±</mo>
+ <mi mathvariant="normal">cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi mathvariant="normal">α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek" mathvariant="normal">Γ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi mathvariant="normal">x</mi>
+ <mo>∈</mo>
+ <mi mathvariant="normal">ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathscr<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow class="mathscr">
+ <msub>
+ <mi>𝒱</mi>
+ <mi>ℛ</mi>
+ </msub>
+ <mi>𝓍</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek">Γ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝓍</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathsf<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝖵</mi>
+ <mi>𝖱</mi>
+ </msub>
+ <mi>𝗑</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>𝟥</mn>
+ <mi class="capital-greek">Γ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝗑</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathsfbfit<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝙑</mi>
+ <mi>𝙍</mi>
+ </msub>
+ <mi>𝙭</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>𝞪</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek">𝞒</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝙭</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathsfit<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝘝</mi>
+ <mi>𝘙</mi>
+ </msub>
+ <mi>𝘹</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>3</mn>
+ <mi class="capital-greek">Γ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝘹</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+<dt>mathtt<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <msub>
+ <mi>𝚅</mi>
+ <mi>𝚁</mi>
+ </msub>
+ <mi>𝚡</mi>
+ <mo>±</mo>
+ <mi>cos</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>α</mi>
+ <mo stretchy="false">)</mo>
+ <mo>≈</mo>
+ <mn>𝟹</mn>
+ <mi class="capital-greek">Γ</mi>
+ <mspace width="1em"></mspace>
+ <mi>∀</mi>
+ <mi>𝚡</mi>
+ <mo>∈</mo>
+ <mi>ℝ</mi>
+ </mrow>
+</math></p>
+</dd>
+</dl>
+<p>LaTeX accepts complex functions inside the math alphabet functions:</p>
+<dl class="field-list simple">
+<dt>mathrm<span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mfrac>
+ <mi mathvariant="normal">x</mi>
+ <mi mathvariant="normal">y</mi>
+ </mfrac>
+</math></p>
+</dd>
+</dl>
+<p>Without additional packages, LaTeX supports "blackboard-bold" only for
+capital Latin letters.
+Unicode supports also small Latin letters, some Greek letters, and digits:
+<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <mi>𝔸</mi>
+ <mi>…</mi>
+ <mi>ℤ</mi>
+ <mi>𝕒</mi>
+ <mi>…</mi>
+ <mi>𝕫</mi>
+ </mrow>
+ <mi class="capital-greek">ℾ</mi>
+ <mi class="capital-greek">ℿ</mi>
+ <mi class="capital-greek">⅀</mi>
+ <mi>ℽ</mi>
+ <mi>ℼ</mi>
+ <mrow>
+ <mn>𝟘</mn>
+ <mi>…</mi>
+ <mn>𝟡</mn>
+ </mrow>
+</math> but no italic digits.</p>
+</section>
+<section id="inferred-mrow-s-in-mathml">
+<h2>Inferred <mrow>s in MathML</h2>
+<p>The elements <msqrt>, <mstyle>, <merror>, <mpadded>, <mphantom>, <menclose>,
+<mtd>, <mscarry>, and <math> treat their contents as a single inferred mrow
+formed from all their children.</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mi>a</mi>
+ <mo>=</mo>
+ <msqrt>
+ <mn>2</mn>
+ </msqrt>
+ <mo>+</mo>
+ <mi>x</mi>
+ <mo>,</mo>
+ <mspace width="1em"></mspace>
+ <mi>b</mi>
+ <mo>=</mo>
+ <msqrt>
+ <mn>1</mn>
+ <mo>+</mo>
+ <msup>
+ <mi>x</mi>
+ <mn>2</mn>
+ </msup>
+ </msqrt>
+ <mo>,</mo>
+ <mspace width="1em"></mspace>
+ <mi>c</mi>
+ <mo>=</mo>
+ <msqrt>
+ <mfrac>
+ <mrow>
+ <mi>sin</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>x</mi>
+ <mo stretchy="false">)</mo>
+ </mrow>
+ <mn>23</mn>
+ </mfrac>
+ </msqrt>
+ <mo>,</mo>
+</math>
+</div>
+<p>inline: <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mi>a</mi>
+ <mo>=</mo>
+ <msqrt>
+ <mn>2</mn>
+ </msqrt>
+ <mo>+</mo>
+ <mi>x</mi>
+ <mo>,</mo>
+ <mi>b</mi>
+ <mo>=</mo>
+ <msqrt>
+ <mn>1</mn>
+ <mo>+</mo>
+ <msup>
+ <mi>x</mi>
+ <mn>2</mn>
+ </msup>
+ </msqrt>
+ <mo>,</mo>
+ <mi>c</mi>
+ <mo>=</mo>
+ <msqrt>
+ <mfrac>
+ <mrow>
+ <mi>sin</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mi>x</mi>
+ <mo stretchy="false">)</mo>
+ </mrow>
+ <mn>23</mn>
+ </mfrac>
+ </msqrt>
+</math>.</p>
+</section>
+<section id="scripts-and-limits">
+<h2>Scripts and Limits</h2>
+<p>Accents should be nearer to the base:
+<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>a</mi>
+ <mo stretchy="false">ˉ</mo>
+ </mover>
+ <mover accent="false">
+ <mi>a</mi>
+ <mo accent="true">_</mo>
+ </mover>
+ <mo>,</mo>
+ <mover accent="true">
+ <mi>l</mi>
+ <mo stretchy="false">ˉ</mo>
+ </mover>
+ <mover accent="false">
+ <mi>l</mi>
+ <mo accent="true">_</mo>
+ </mover>
+ <mo>,</mo>
+ <mover accent="true">
+ <mi>i</mi>
+ <mo stretchy="false">ˉ</mo>
+ </mover>
+ <mover accent="false">
+ <mi>i</mi>
+ <mo accent="true">_</mo>
+ </mover>
+</math>,
+<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>r</mi>
+ <mo stretchy="false" scriptlevel="+1">→</mo>
+ </mover>
+</math> <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="false">
+ <mi>r</mi>
+ <mo accent="true">→</mo>
+ </mover>
+</math>.</p>
+<p>Sub- and superscript may be given in any order:
+<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <msubsup>
+ <mi>x</mi>
+ <mi>i</mi>
+ <mi>j</mi>
+ </msubsup>
+ <mo>=</mo>
+ <msubsup>
+ <mi>x</mi>
+ <mi>i</mi>
+ <mi>j</mi>
+ </msubsup>
+</math> and <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <msubsup>
+ <mo>∫</mo>
+ <mn>0</mn>
+ <mn>1</mn>
+ </msubsup>
+ <mo>=</mo>
+ <msubsup>
+ <mo>∫</mo>
+ <mn>0</mn>
+ <mn>1</mn>
+ </msubsup>
+</math>.</p>
+<p>Double exponent: <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <msup>
+ <mi>x</mi>
+ <msup>
+ <mn>10</mn>
+ <mn>4</mn>
+ </msup>
+ </msup>
+</math>, <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <msub>
+ <mi>r</mi>
+ <msub>
+ <mi>T</mi>
+ <mi>in</mi>
+ </msub>
+ </msub>
+</math> and <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <msubsup>
+ <mi>x</mi>
+ <mi>i</mi>
+ <msup>
+ <mi>n</mi>
+ <mn>2</mn>
+ </msup>
+ </msubsup>
+</math>.</p>
+</section>
+<section id="nested-groups">
+<h2>Nested groups</h2>
+<p>tex-token returns "{" for nested groups:</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mtext>das ist ein {toller} text (unescaped \{ and \} is
+ignored by LaTeX)</mtext>
+</math>
+</div>
+</section>
+<section id="big-delimiters-and-symbols">
+<h2>Big delimiters and symbols</h2>
+<p>Compare automatic sizing with fixed sizes:</p>
+<!-- math: \left( \frac{\frac1x}{\frac{1}{n}}\right) &= \Biggl(\text{Bigg}\Biggr)\\ -->
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mtable class="ams-align" displaystyle="true">
+ <mtr>
+ <mtd>
+ <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>
+ <mover accent="true">
+ <mi>x</mi>
+ <mo stretchy="false">ˉ</mo>
+ </mover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mover accent="false">
+ <mi>x</mi>
+ <mo accent="true">_</mo>
+ </mover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msub>
+ <mi>n</mi>
+ <mi>i</mi>
+ </msub>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mo stretchy="false">(</mo>
+ <mo stretchy="false">)</mo>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mrow>
+ <mo>(</mo>
+ <munder>
+ <mi>x</mi>
+ <mo>_</mo>
+ </munder>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">(</mo>
+ <mtext>big</mtext>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">)</mo>
+ </mrow>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mrow>
+ <mo>(</mo>
+ <msup>
+ <mn>3</mn>
+ <mn>2</mn>
+ </msup>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msqrt>
+ <mn>3</mn>
+ </msqrt>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msqrt>
+ <msup>
+ <mn>3</mn>
+ <mn>2</mn>
+ </msup>
+ </msqrt>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mo>∑</mo>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mo>⨂</mo>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mo>∏</mo>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mrow>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">(</mo>
+ <mtext>Big</mtext>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">)</mo>
+ </mrow>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <mn>3</mn>
+ <mn>2</mn>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <msup>
+ <mn>3</mn>
+ <mn>2</mn>
+ </msup>
+ <msup>
+ <mn>2</mn>
+ <mn>4</mn>
+ </msup>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow class="binom">
+ <mo>(</mo>
+ <mfrac linethickness="0">
+ <mn>3</mn>
+ <mn>2</mn>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <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>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <mn>1</mn>
+ <msqrt>
+ <mn>2</mn>
+ </msqrt>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mo>∫</mo>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msub>
+ <mo>∫</mo>
+ <mn>0</mn>
+ </msub>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msup>
+ <mo>∫</mo>
+ <mn>1</mn>
+ </msup>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msubsup>
+ <mo>∫</mo>
+ <mn>0</mn>
+ <mn>1</mn>
+ </msubsup>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">(</mo>
+ <mtext>bigg</mtext>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">)</mo>
+ </mrow>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <msqrt>
+ <mn>2</mn>
+ </msqrt>
+ <mn>2</mn>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <munder>
+ <mo movablelimits="true">∑</mo>
+ <mn>0</mn>
+ </munder>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mover>
+ <mo movablelimits="true">∑</mo>
+ <mn>1</mn>
+ </mover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <munderover>
+ <mo movablelimits="true">∑</mo>
+ <mn>0</mn>
+ <mn>1</mn>
+ </munderover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <mfrac>
+ <mn>1</mn>
+ <mi>x</mi>
+ </mfrac>
+ <mfrac>
+ <mn>1</mn>
+ <mi>n</mi>
+ </mfrac>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mrow>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">(</mo>
+ <mtext>Bigg</mtext>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">)</mo>
+ </mrow>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mrow>
+ <mo>(</mo>
+ <munder>
+ <mo movablelimits="true">∫</mo>
+ <mn>0</mn>
+ </munder>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mover>
+ <mo movablelimits="true">∫</mo>
+ <mn>1</mn>
+ </mover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <munderover>
+ <mo movablelimits="true">∫</mo>
+ <mn>0</mn>
+ <mn>1</mn>
+ </munderover>
+ <mo>)</mo>
+ </mrow>
+ </mtd>
+ </mtr>
+ </mtable>
+</math>
+</div>
+<p>And in text:</p>
+<dl class="field-list simple">
+<dt><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mo stretchy="false">(</mo>
+ <mo stretchy="false">)</mo>
+</math><span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <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>
+ <mover accent="true">
+ <mi>x</mi>
+ <mo stretchy="false">ˉ</mo>
+ </mover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mover accent="false">
+ <mi>x</mi>
+ <mo accent="true">_</mo>
+ </mover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msub>
+ <mi>n</mi>
+ <mi>i</mi>
+ </msub>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mo>∑</mo>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <munder>
+ <mo movablelimits="true">∑</mo>
+ <mn>0</mn>
+ </munder>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mo>∏</mo>
+ <mo>)</mo>
+ </mrow>
+</math></p>
+</dd>
+<dt><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">(</mo>
+ <mtext>big</mtext>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">)</mo>
+ </mrow>
+</math><span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <mo>(</mo>
+ <munder>
+ <mi>x</mi>
+ <mo>_</mo>
+ </munder>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msup>
+ <mn>3</mn>
+ <mn>2</mn>
+ </msup>
+ <mo>)</mo>
+ </mrow>
+ <mrow class="binom">
+ <mo>(</mo>
+ <mfrac linethickness="0">
+ <mn>3</mn>
+ <mn>2</mn>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mstyle scriptlevel="1">
+ <mtable rowspacing="0.02em" columnspacing="0.333em">
+ <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>
+ </mstyle>
+ <mrow>
+ <mo>(</mo>
+ <mo>⨂</mo>
+ <mo>)</mo>
+ </mrow>
+ </mrow>
+</math></p>
+</dd>
+<dt><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">(</mo>
+ <mtext>Big</mtext>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">)</mo>
+ </mrow>
+</math><span class="colon">:</span></dt>
+<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mrow>
+ <mo>(</mo>
+ <msqrt>
+ <mn>3</mn>
+ </msqrt>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msqrt>
+ <msup>
+ <mn>3</mn>
+ <mn>2</mn>
+ </msup>
+ </msqrt>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <mn>3</mn>
+ <mn>2</mn>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <msup>
+ <mn>3</mn>
+ <mn>2</mn>
+ </msup>
+ <msup>
+ <mn>2</mn>
+ <mn>4</mn>
+ </msup>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <msqrt>
+ <mn>2</mn>
+ </msqrt>
+ <mn>2</mn>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mo>∫</mo>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msub>
+ <mo>∫</mo>
+ <mn>0</mn>
+ </msub>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msup>
+ <mo>∫</mo>
+ <mn>1</mn>
+ </msup>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <msubsup>
+ <mo>∫</mo>
+ <mn>0</mn>
+ <mn>1</mn>
+ </msubsup>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mover>
+ <mo movablelimits="true">∑</mo>
+ <mn>1</mn>
+ </mover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <munderover>
+ <mo movablelimits="true">∑</mo>
+ <mn>0</mn>
+ <mn>1</mn>
+ </munderover>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>(</mo>
+ <mfrac>
+ <mfrac>
+ <mn>1</mn>
+ <mi>x</mi>
+ </mfrac>
+ <mfrac>
+ <mn>1</mn>
+ <mi>n</mi>
+ </mfrac>
+ </mfrac>
+ <mo>)</mo>
+ </mrow>
+</math></p>
+</dd>
+</dl>
+<p>Test <span class="docutils literal">\left</span>, <span class="docutils literal">\right</span>, and the bigl/bigr, … size commands
+with all extensible delimiters.</p>
+<p>pairing:</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mo stretchy="false">(</mo>
+ <mi>b</mi>
+ <mo>)</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">(</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">)</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">(</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">)</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo stretchy="false">[</mo>
+ <mi>b</mi>
+ <mo>]</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">[</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">]</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">[</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">]</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo>{</mo>
+ <mi>b</mi>
+ <mo>}</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">{</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">}</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">{</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">}</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo>⟨</mo>
+ <mi>b</mi>
+ <mo>⟩</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⟨</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⟩</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⟨</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⟩</mo>
+ </mrow>
+</math>
+</div>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mo>⌈</mo>
+ <mi>b</mi>
+ <mo>⌉</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⌈</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⌉</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⌈</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⌉</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo>⌊</mo>
+ <mi>b</mi>
+ <mo>⌋</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⌊</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⌋</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⌊</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⌋</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo class="mathopen">|</mo>
+ <mi>b</mi>
+ <mo>|</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">|</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">|</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">|</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">|</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo class="mathopen">‖</mo>
+ <mi>b</mi>
+ <mo>‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
+ </mrow>
+</math>
+</div>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mo>⟮</mo>
+ <mi>b</mi>
+ <mo>⟯</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⟮</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⟯</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⟮</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⟯</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mi>⎰</mi>
+ <mi>b</mi>
+ <mo>⎱</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⎰</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⎱</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⎰</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⎱</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo stretchy="false">/</mo>
+ <mi>b</mi>
+ <mo>\</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">/</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">\</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">/</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">\</mo>
+ </mrow>
+</math>
+</div>
+<p>non-pairing:</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mo stretchy="false">|</mo>
+ <mi>b</mi>
+ <mo>|</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">|</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">|</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">|</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">|</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo>|</mo>
+ <mi>b</mi>
+ <mo>|</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">|</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">|</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">|</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">|</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo>‖</mo>
+ <mi>b</mi>
+ <mo>‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo>‖</mo>
+ <mi>b</mi>
+ <mo>‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
+ </mrow>
+</math>
+</div>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mi>⏐</mi>
+ <mi>b</mi>
+ <mo>⏐</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⏐</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⏐</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⏐</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⏐</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mo>‖</mo>
+ <mi>b</mi>
+ <mo>‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
+ </mrow>
+ <mspace width="1em"></mspace>
+ <mrow>
+ <mi>⎪</mi>
+ <mi>b</mi>
+ <mo>⎪</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⎪</mo>
+ <mi>b</mi>
+ <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⎪</mo>
+ </mrow>
+ <mspace width="0.25em"></mspace>
+ <mrow>
+ <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⎪</mo>
+ <mi>b</mi>
+ <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⎪</mo>
+ </mrow>
+</math>
+</div>
+<p>Variable-sized operators:</p>
+<p>Inline: <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mo>∫</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∬</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∭</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨌</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∫</mo>
+ <mo>⋯</mo>
+ <mo>∫</mo>
+ <mo>∮</mo>
+ <mspace width="0.25em"></mspace>
+ <mo mathsize="75%">∫</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∑</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∏</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∐</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋀</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋁</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋂</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋃</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨄</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨆</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨀</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨁</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨂</mo>
+</math> and Display:</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mo>∫</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∬</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∭</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨌</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∫</mo>
+ <mo>⋯</mo>
+ <mo>∫</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∮</mo>
+ <mspace width="0.25em"></mspace>
+ <mo mathsize="75%">∫</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∑</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∏</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>∐</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋀</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋁</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋂</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⋃</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨄</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨆</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨀</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨁</mo>
+ <mspace width="0.25em"></mspace>
+ <mo>⨂</mo>
+</math>
+</div>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <msub>
+ <mo>∫</mo>
+ <mn>1</mn>
+ </msub>
+ <mi>f</mi>
+ <mspace width="0.25em"></mspace>
+ <munder>
+ <mo movablelimits="true">∫</mo>
+ <mn>1</mn>
+ </munder>
+ <mi>f</mi>
+ <mspace width="0.25em"></mspace>
+ <msub>
+ <mo>∬</mo>
+ <mn>1</mn>
+ </msub>
+ <mi>f</mi>
+ <mspace width="0.25em"></mspace>
+ <msub>
+ <mo mathsize="75%">∫</mo>
+ <mn>1</mn>
+ </msub>
+ <mi>f</mi>
+ <mspace width="0.25em"></mspace>
+ <munder>
+ <mo movablelimits="true">∑</mo>
+ <mn>1</mn>
+ </munder>
+ <mspace width="0.25em"></mspace>
+ <munder>
+ <mo movablelimits="true">∏</mo>
+ <mn>1</mn>
+ </munder>
+ <mspace width="0.25em"></mspace>
+ <munder>
+ <mo movablelimits="true">⋀</mo>
+ <mn>1</mn>
+ </munder>
+ <mspace width="0.25em"></mspace>
+ <munder>
+ <mo movablelimits="true">⋂</mo>
+ <mn>1</mn>
+ </munder>
+ <mspace width="0.25em"></mspace>
+ <munder>
+ <mo movablelimits="true">⨄</mo>
+ <mn>1</mn>
+ </munder>
+ <mspace width="0.25em"></mspace>
+ <munder>
+ <mo movablelimits="true">⨀</mo>
+ <mn>1</mn>
+ </munder>
+ <mspace width="0.25em"></mspace>
+ <msup>
+ <mo>∫</mo>
+ <mi>N</mi>
+ </msup>
+ <mspace width="0.25em"></mspace>
+ <mover>
+ <mo movablelimits="true">∫</mo>
+ <mi>N</mi>
+ </mover>
+ <mspace width="0.25em"></mspace>
+ <msup>
+ <mo>⨌</mo>
+ <mi>N</mi>
+ </msup>
+ <mspace width="0.25em"></mspace>
+ <msup>
+ <mo>∮</mo>
+ <mi>N</mi>
+ </msup>
+ <mspace width="0.25em"></mspace>
+ <msup>
+ <mo mathsize="75%">∫</mo>
+ <mi>N</mi>
+ </msup>
+ <mspace width="0.25em"></mspace>
+ <mover>
+ <mo movablelimits="true">∑</mo>
+ <mi>N</mi>
+ </mover>
+ <mspace width="0.25em"></mspace>
+ <mover>
+ <mo movablelimits="true">∐</mo>
+ <mi>N</mi>
+ </mover>
+ <mspace width="0.25em"></mspace>
+ <mover>
+ <mo movablelimits="true">⋁</mo>
+ <mi>N</mi>
+ </mover>
+ <mspace width="0.25em"></mspace>
+ <mover>
+ <mo movablelimits="true">⋃</mo>
+ <mi>N</mi>
+ </mover>
+ <mspace width="0.25em"></mspace>
+ <mover>
+ <mo movablelimits="true">⨆</mo>
+ <mi>N</mi>
+ </mover>
+ <mspace width="0.25em"></mspace>
+ <mover>
+ <mo movablelimits="true">⨂</mo>
+ <mi>N</mi>
+ </mover>
+</math>
+</div>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <msubsup>
+ <mo>∫</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </msubsup>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">∫</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <msubsup>
+ <mo>∬</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </msubsup>
+ <mspace width="0.25em"></mspace>
+ <msubsup>
+ <mo>∭</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </msubsup>
+ <mspace width="0.25em"></mspace>
+ <msubsup>
+ <mo>⨌</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </msubsup>
+ <mspace width="0.25em"></mspace>
+ <mo>∫</mo>
+ <mo>⋯</mo>
+ <msubsup>
+ <mo>∫</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </msubsup>
+ <mspace width="0.25em"></mspace>
+ <msubsup>
+ <mo>∮</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </msubsup>
+ <mspace width="0.25em"></mspace>
+ <msubsup>
+ <mo mathsize="75%">∫</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </msubsup>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">∑</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">∏</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">∐</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⋀</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⋁</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⋂</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⋃</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⨄</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⨆</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⨀</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⨁</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+ <mspace width="0.25em"></mspace>
+ <munderover>
+ <mo movablelimits="true">⨂</mo>
+ <mn>1</mn>
+ <mi>N</mi>
+ </munderover>
+</math>
+</div>
+</section>
+<section id="text">
+<h2>Text</h2>
+<p>The text may contain non-ASCII characters: <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <msub>
+ <mi>n</mi>
+ <mtext>Stoß</mtext>
+ </msub>
+</math>.</p>
+<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> "html".
+In other output formats, use literal Unicode: <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mtext>ç é è ë ê ñ ů ž ©</mtext>
+</math>
+to get the result of the accent macros
+<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mtext>\c{c} \'e \`e \"e \^e \~n \r{u} \v{z} \textcircled{c}</mtext>
+</math>.</p>
+</section>
+</main>
+</body>
+</html>
Deleted: trunk/docutils/test/functional/expected/math_experiments_mathml_.html
===================================================================
--- trunk/docutils/test/functional/expected/math_experiments_mathml_.html 2024-02-01 13:03:12 UTC (rev 9531)
+++ trunk/docutils/test/functional/expected/math_experiments_mathml_.html 2024-02-01 13:03:27 UTC (rev 9532)
@@ -1,1795 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta charset="utf-8" />
-<meta name="generator" content="Docutils 0.21b.dev: https://docutils.sourceforge.io/" />
-<meta name="viewport" content="width=device-width, initial-scale=1" />
-<title>Math Conversion Tests</title>
-<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/minimal.css" type="text/css" />
-<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/plain.css" type="text/css" />
-</head>
-<body>
-<main id="math-conversion-tests">
-<h1 class="title">Math Conversion Tests</h1>
-
-<section id="font-changes">
-<h2>Font changes</h2>
-<p><em>Math alphabet</em> macros change the default alphabet, leaving some symbols
-unchanged. In MathML core, the corresponding <em>Mathematical Alphanumeric
-Symbols</em> are used.</p>
-<dl class="field-list simple">
-<dt>default<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <msub>
- <mi>V</mi>
- <mi>R</mi>
- </msub>
- <mi>x</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek">Γ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>x</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
-</math></p>
-</dd>
-<dt>mathbb<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝕍</mi>
- <mi>ℝ</mi>
- </msub>
- <mi>𝕩</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>𝟛</mn>
- <mi class="capital-greek">ℾ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝕩</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathbf<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝐕</mi>
- <mi>𝐑</mi>
- </msub>
- <mi>𝐱</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>𝛂</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>𝟑</mn>
- <mi class="capital-greek">𝚪</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝐱</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathbfit<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝑽</mi>
- <mi>𝑹</mi>
- </msub>
- <mi>𝒙</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>𝜶</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek">𝜞</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝒙</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathcal<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝒱</mi>
- <mi>ℛ</mi>
- </msub>
- <mi>𝓍</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek">Γ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝓍</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathit<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝑉</mi>
- <mi>𝑅</mi>
- </msub>
- <mi>𝑥</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>𝛼</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek">𝛤</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝑥</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathrm<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi mathvariant="normal">V</mi>
- <mi mathvariant="normal">R</mi>
- </msub>
- <mi mathvariant="normal">x</mi>
- <mo>±</mo>
- <mi mathvariant="normal">cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi mathvariant="normal">α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek" mathvariant="normal">Γ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi mathvariant="normal">x</mi>
- <mo>∈</mo>
- <mi mathvariant="normal">ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathscr<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow class="mathscr">
- <msub>
- <mi>𝒱</mi>
- <mi>ℛ</mi>
- </msub>
- <mi>𝓍</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek">Γ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝓍</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathsf<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝖵</mi>
- <mi>𝖱</mi>
- </msub>
- <mi>𝗑</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>𝟥</mn>
- <mi class="capital-greek">Γ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝗑</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathsfbfit<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝙑</mi>
- <mi>𝙍</mi>
- </msub>
- <mi>𝙭</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>𝞪</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek">𝞒</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝙭</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathsfit<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝘝</mi>
- <mi>𝘙</mi>
- </msub>
- <mi>𝘹</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>3</mn>
- <mi class="capital-greek">Γ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝘹</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-<dt>mathtt<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>𝚅</mi>
- <mi>𝚁</mi>
- </msub>
- <mi>𝚡</mi>
- <mo>±</mo>
- <mi>cos</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>α</mi>
- <mo stretchy="false">)</mo>
- <mo>≈</mo>
- <mn>𝟹</mn>
- <mi class="capital-greek">Γ</mi>
- <mspace width="1em"></mspace>
- <mi>∀</mi>
- <mi>𝚡</mi>
- <mo>∈</mo>
- <mi>ℝ</mi>
- </mrow>
-</math></p>
-</dd>
-</dl>
-<p>LaTeX accepts complex functions inside the math alphabet functions:</p>
-<dl class="field-list simple">
-<dt>mathrm<span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mfrac>
- <mi mathvariant="normal">x</mi>
- <mi mathvariant="normal">y</mi>
- </mfrac>
-</math></p>
-</dd>
-</dl>
-<p>Without additional packages, LaTeX supports "blackboard-bold" only for
-capital Latin letters.
-Unicode supports also small Latin letters, some Greek letters, and digits:
-<math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mi>𝔸</mi>
- <mi>…</mi>
- <mi>ℤ</mi>
- <mi>𝕒</mi>
- <mi>…</mi>
- <mi>𝕫</mi>
- </mrow>
- <mi class="capital-greek">ℾ</mi>
- <mi class="capital-greek">ℿ</mi>
- <mi class="capital-greek">⅀</mi>
- <mi>ℽ</mi>
- <mi>ℼ</mi>
- <mrow>
- <mn>𝟘</mn>
- <mi>…</mi>
- <mn>𝟡</mn>
- </mrow>
-</math> but no italic digits.</p>
-</section>
-<section id="inferred-mrow-s-in-mathml">
-<h2>Inferred <mrow>s in MathML</h2>
-<p>The elements <msqrt>, <mstyle>, <merror>, <mpadded>, <mphantom>, <menclose>,
-<mtd>, <mscarry>, and <math> treat their contents as a single inferred mrow
-formed from all their children.</p>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mi>a</mi>
- <mo>=</mo>
- <msqrt>
- <mn>2</mn>
- </msqrt>
- <mo>+</mo>
- <mi>x</mi>
- <mo>,</mo>
- <mspace width="1em"></mspace>
- <mi>b</mi>
- <mo>=</mo>
- <msqrt>
- <mn>1</mn>
- <mo>+</mo>
- <msup>
- <mi>x</mi>
- <mn>2</mn>
- </msup>
- </msqrt>
- <mo>,</mo>
- <mspace width="1em"></mspace>
- <mi>c</mi>
- <mo>=</mo>
- <msqrt>
- <mfrac>
- <mrow>
- <mi>sin</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>x</mi>
- <mo stretchy="false">)</mo>
- </mrow>
- <mn>23</mn>
- </mfrac>
- </msqrt>
- <mo>,</mo>
-</math>
-</div>
-<p>inline: <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mi>a</mi>
- <mo>=</mo>
- <msqrt>
- <mn>2</mn>
- </msqrt>
- <mo>+</mo>
- <mi>x</mi>
- <mo>,</mo>
- <mi>b</mi>
- <mo>=</mo>
- <msqrt>
- <mn>1</mn>
- <mo>+</mo>
- <msup>
- <mi>x</mi>
- <mn>2</mn>
- </msup>
- </msqrt>
- <mo>,</mo>
- <mi>c</mi>
- <mo>=</mo>
- <msqrt>
- <mfrac>
- <mrow>
- <mi>sin</mi>
- <mo>⁡</mo>
- <mo stretchy="false">(</mo>
- <mi>x</mi>
- <mo stretchy="false">)</mo>
- </mrow>
- <mn>23</mn>
- </mfrac>
- </msqrt>
-</math>.</p>
-</section>
-<section id="scripts-and-limits">
-<h2>Scripts and Limits</h2>
-<p>Accents should be nearer to the base:
-<math xmlns="http://www.w3.org/1998/Math/MathML">
- <mover accent="true">
- <mi>a</mi>
- <mo stretchy="false">ˉ</mo>
- </mover>
- <mover accent="false">
- <mi>a</mi>
- <mo accent="true">_</mo>
- </mover>
- <mo>,</mo>
- <mover accent="true">
- <mi>l</mi>
- <mo stretchy="false">ˉ</mo>
- </mover>
- <mover accent="false">
- <mi>l</mi>
- <mo accent="true">_</mo>
- </mover>
- <mo>,</mo>
- <mover accent="true">
- <mi>i</mi>
- <mo stretchy="false">ˉ</mo>
- </mover>
- <mover accent="false">
- <mi>i</mi>
- <mo accent="true">_</mo>
- </mover>
-</math>,
-<math xmlns="http://www.w3.org/1998/Math/MathML">
- <mover accent="true">
- <mi>r</mi>
- <mo stretchy="false" scriptlevel="+1">→</mo>
- </mover>
-</math> <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mover accent="false">
- <mi>r</mi>
- <mo accent="true">→</mo>
- </mover>
-</math>.</p>
-<p>Sub- and superscript may be given in any order:
-<math xmlns="http://www.w3.org/1998/Math/MathML">
- <msubsup>
- <mi>x</mi>
- <mi>i</mi>
- <mi>j</mi>
- </msubsup>
- <mo>=</mo>
- <msubsup>
- <mi>x</mi>
- <mi>i</mi>
- <mi>j</mi>
- </msubsup>
-</math> and <math xmlns="http://www.w3.org/1998/Math/MathML">
- <msubsup>
- <mo>∫</mo>
- <mn>0</mn>
- <mn>1</mn>
- </msubsup>
- <mo>=</mo>
- <msubsup>
- <mo>∫</mo>
- <mn>0</mn>
- <mn>1</mn>
- </msubsup>
-</math>.</p>
-<p>Double exponent: <math xmlns="http://www.w3.org/1998/Math/MathML">
- <msup>
- <mi>x</mi>
- <msup>
- <mn>10</mn>
- <mn>4</mn>
- </msup>
- </msup>
-</math>, <math xmlns="http://www.w3.org/1998/Math/MathML">
- <msub>
- <mi>r</mi>
- <msub>
- <mi>T</mi>
- <mi>in</mi>
- </msub>
- </msub>
-</math> and <math xmlns="http://www.w3.org/1998/Math/MathML">
- <msubsup>
- <mi>x</mi>
- <mi>i</mi>
- <msup>
- <mi>n</mi>
- <mn>2</mn>
- </msup>
- </msubsup>
-</math>.</p>
-</section>
-<section id="nested-groups">
-<h2>Nested groups</h2>
-<p>tex-token returns "{" for nested groups:</p>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mtext>das ist ein {toller} text (unescaped \{ and \} is
-ignored by LaTeX)</mtext>
-</math>
-</div>
-</section>
-<section id="big-delimiters-and-symbols">
-<h2>Big delimiters and symbols</h2>
-<p>Compare automatic sizing with fixed sizes:</p>
-<!-- math: \left( \frac{\frac1x}{\frac{1}{n}}\right) &= \Biggl(\text{Bigg}\Biggr)\\ -->
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mtable class="ams-align" displaystyle="true">
- <mtr>
- <mtd>
- <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>
- <mover accent="true">
- <mi>x</mi>
- <mo stretchy="false">ˉ</mo>
- </mover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mover accent="false">
- <mi>x</mi>
- <mo accent="true">_</mo>
- </mover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msub>
- <mi>n</mi>
- <mi>i</mi>
- </msub>
- <mo>)</mo>
- </mrow>
- </mtd>
- <mtd>
- <mo>=</mo>
- <mo stretchy="false">(</mo>
- <mo stretchy="false">)</mo>
- </mtd>
- </mtr>
- <mtr>
- <mtd>
- <mrow>
- <mo>(</mo>
- <munder>
- <mi>x</mi>
- <mo>_</mo>
- </munder>
- <mo>)</mo>
- </mrow>
- </mtd>
- <mtd>
- <mo>=</mo>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">(</mo>
- <mtext>big</mtext>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">)</mo>
- </mrow>
- </mtd>
- </mtr>
- <mtr>
- <mtd>
- <mrow>
- <mo>(</mo>
- <msup>
- <mn>3</mn>
- <mn>2</mn>
- </msup>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msqrt>
- <mn>3</mn>
- </msqrt>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msqrt>
- <msup>
- <mn>3</mn>
- <mn>2</mn>
- </msup>
- </msqrt>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mo>∑</mo>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mo>⨂</mo>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mo>∏</mo>
- <mo>)</mo>
- </mrow>
- </mtd>
- <mtd>
- <mo>=</mo>
- <mrow>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">(</mo>
- <mtext>Big</mtext>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">)</mo>
- </mrow>
- </mtd>
- </mtr>
- <mtr>
- <mtd>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <mn>3</mn>
- <mn>2</mn>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <msup>
- <mn>3</mn>
- <mn>2</mn>
- </msup>
- <msup>
- <mn>2</mn>
- <mn>4</mn>
- </msup>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow class="binom">
- <mo>(</mo>
- <mfrac linethickness="0">
- <mn>3</mn>
- <mn>2</mn>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <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>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <mn>1</mn>
- <msqrt>
- <mn>2</mn>
- </msqrt>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mo>∫</mo>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msub>
- <mo>∫</mo>
- <mn>0</mn>
- </msub>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msup>
- <mo>∫</mo>
- <mn>1</mn>
- </msup>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msubsup>
- <mo>∫</mo>
- <mn>0</mn>
- <mn>1</mn>
- </msubsup>
- <mo>)</mo>
- </mrow>
- </mtd>
- <mtd>
- <mo>=</mo>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">(</mo>
- <mtext>bigg</mtext>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">)</mo>
- </mrow>
- </mtd>
- </mtr>
- <mtr>
- <mtd>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <msqrt>
- <mn>2</mn>
- </msqrt>
- <mn>2</mn>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <munder>
- <mo movablelimits="true">∑</mo>
- <mn>0</mn>
- </munder>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mover>
- <mo movablelimits="true">∑</mo>
- <mn>1</mn>
- </mover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <munderover>
- <mo movablelimits="true">∑</mo>
- <mn>0</mn>
- <mn>1</mn>
- </munderover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <mfrac>
- <mn>1</mn>
- <mi>x</mi>
- </mfrac>
- <mfrac>
- <mn>1</mn>
- <mi>n</mi>
- </mfrac>
- </mfrac>
- <mo>)</mo>
- </mrow>
- </mtd>
- <mtd>
- <mo>=</mo>
- <mrow>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">(</mo>
- <mtext>Bigg</mtext>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">)</mo>
- </mrow>
- </mtd>
- </mtr>
- <mtr>
- <mtd>
- <mrow>
- <mo>(</mo>
- <munder>
- <mo movablelimits="true">∫</mo>
- <mn>0</mn>
- </munder>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mover>
- <mo movablelimits="true">∫</mo>
- <mn>1</mn>
- </mover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <munderover>
- <mo movablelimits="true">∫</mo>
- <mn>0</mn>
- <mn>1</mn>
- </munderover>
- <mo>)</mo>
- </mrow>
- </mtd>
- </mtr>
- </mtable>
-</math>
-</div>
-<p>And in text:</p>
-<dl class="field-list simple">
-<dt><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mo stretchy="false">(</mo>
- <mo stretchy="false">)</mo>
-</math><span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <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>
- <mover accent="true">
- <mi>x</mi>
- <mo stretchy="false">ˉ</mo>
- </mover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mover accent="false">
- <mi>x</mi>
- <mo accent="true">_</mo>
- </mover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msub>
- <mi>n</mi>
- <mi>i</mi>
- </msub>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mo>∑</mo>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <munder>
- <mo movablelimits="true">∑</mo>
- <mn>0</mn>
- </munder>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mo>∏</mo>
- <mo>)</mo>
- </mrow>
-</math></p>
-</dd>
-<dt><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">(</mo>
- <mtext>big</mtext>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">)</mo>
- </mrow>
-</math><span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mo>(</mo>
- <munder>
- <mi>x</mi>
- <mo>_</mo>
- </munder>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msup>
- <mn>3</mn>
- <mn>2</mn>
- </msup>
- <mo>)</mo>
- </mrow>
- <mrow class="binom">
- <mo>(</mo>
- <mfrac linethickness="0">
- <mn>3</mn>
- <mn>2</mn>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mstyle scriptlevel="1">
- <mtable rowspacing="0.02em" columnspacing="0.333em">
- <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>
- </mstyle>
- <mrow>
- <mo>(</mo>
- <mo>⨂</mo>
- <mo>)</mo>
- </mrow>
- </mrow>
-</math></p>
-</dd>
-<dt><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">(</mo>
- <mtext>Big</mtext>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">)</mo>
- </mrow>
-</math><span class="colon">:</span></dt>
-<dd><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mo>(</mo>
- <msqrt>
- <mn>3</mn>
- </msqrt>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msqrt>
- <msup>
- <mn>3</mn>
- <mn>2</mn>
- </msup>
- </msqrt>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <mn>3</mn>
- <mn>2</mn>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <msup>
- <mn>3</mn>
- <mn>2</mn>
- </msup>
- <msup>
- <mn>2</mn>
- <mn>4</mn>
- </msup>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <msqrt>
- <mn>2</mn>
- </msqrt>
- <mn>2</mn>
- </mfrac>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mo>∫</mo>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msub>
- <mo>∫</mo>
- <mn>0</mn>
- </msub>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msup>
- <mo>∫</mo>
- <mn>1</mn>
- </msup>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <msubsup>
- <mo>∫</mo>
- <mn>0</mn>
- <mn>1</mn>
- </msubsup>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mover>
- <mo movablelimits="true">∑</mo>
- <mn>1</mn>
- </mover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <munderover>
- <mo movablelimits="true">∑</mo>
- <mn>0</mn>
- <mn>1</mn>
- </munderover>
- <mo>)</mo>
- </mrow>
- <mrow>
- <mo>(</mo>
- <mfrac>
- <mfrac>
- <mn>1</mn>
- <mi>x</mi>
- </mfrac>
- <mfrac>
- <mn>1</mn>
- <mi>n</mi>
- </mfrac>
- </mfrac>
- <mo>)</mo>
- </mrow>
-</math></p>
-</dd>
-</dl>
-<p>Test <span class="docutils literal">\left</span>, <span class="docutils literal">\right</span>, and the bigl/bigr, … size commands
-with all extensible delimiters.</p>
-<p>pairing:</p>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mrow>
- <mo stretchy="false">(</mo>
- <mi>b</mi>
- <mo>)</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">(</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">)</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">(</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">)</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo stretchy="false">[</mo>
- <mi>b</mi>
- <mo>]</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">[</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">]</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">[</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">]</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo>{</mo>
- <mi>b</mi>
- <mo>}</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">{</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">}</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">{</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">}</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo>⟨</mo>
- <mi>b</mi>
- <mo>⟩</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⟨</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⟩</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⟨</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⟩</mo>
- </mrow>
-</math>
-</div>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mrow>
- <mo>⌈</mo>
- <mi>b</mi>
- <mo>⌉</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⌈</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⌉</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⌈</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⌉</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo>⌊</mo>
- <mi>b</mi>
- <mo>⌋</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⌊</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⌋</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⌊</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⌋</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo class="mathopen">|</mo>
- <mi>b</mi>
- <mo>|</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">|</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">|</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">|</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">|</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo class="mathopen">‖</mo>
- <mi>b</mi>
- <mo>‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
- </mrow>
-</math>
-</div>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mrow>
- <mo>⟮</mo>
- <mi>b</mi>
- <mo>⟯</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⟮</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⟯</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⟮</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⟯</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mi>⎰</mi>
- <mi>b</mi>
- <mo>⎱</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⎰</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⎱</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⎰</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⎱</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo stretchy="false">/</mo>
- <mi>b</mi>
- <mo>\</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">/</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">\</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">/</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">\</mo>
- </mrow>
-</math>
-</div>
-<p>non-pairing:</p>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mrow>
- <mo stretchy="false">|</mo>
- <mi>b</mi>
- <mo>|</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">|</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">|</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">|</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">|</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo>|</mo>
- <mi>b</mi>
- <mo>|</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">|</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">|</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">|</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">|</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo>‖</mo>
- <mi>b</mi>
- <mo>‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo>‖</mo>
- <mi>b</mi>
- <mo>‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
- </mrow>
-</math>
-</div>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mrow>
- <mi>⏐</mi>
- <mi>b</mi>
- <mo>⏐</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⏐</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⏐</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⏐</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⏐</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mo>‖</mo>
- <mi>b</mi>
- <mo>‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">‖</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">‖</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">‖</mo>
- </mrow>
- <mspace width="1em"></mspace>
- <mrow>
- <mi>⎪</mi>
- <mi>b</mi>
- <mo>⎪</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="1.2em" minsize="1.2em" symmetric="true">⎪</mo>
- <mi>b</mi>
- <mo maxsize="1.623em" minsize="1.623em" symmetric="true">⎪</mo>
- </mrow>
- <mspace width="0.25em"></mspace>
- <mrow>
- <mo maxsize="2.047em" minsize="2.047em" symmetric="true">⎪</mo>
- <mi>b</mi>
- <mo maxsize="2.470em" minsize="2.470em" symmetric="true">⎪</mo>
- </mrow>
-</math>
-</div>
-<p>Variable-sized operators:</p>
-<p>Inline: <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mo>∫</mo>
- <mspace width="0.25em"></mspace>
- <mo>∬</mo>
- <mspace width="0.25em"></mspace>
- <mo>∭</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨌</mo>
- <mspace width="0.25em"></mspace>
- <mo>∫</mo>
- <mo>⋯</mo>
- <mo>∫</mo>
- <mo>∮</mo>
- <mspace width="0.25em"></mspace>
- <mo mathsize="75%">∫</mo>
- <mspace width="0.25em"></mspace>
- <mo>∑</mo>
- <mspace width="0.25em"></mspace>
- <mo>∏</mo>
- <mspace width="0.25em"></mspace>
- <mo>∐</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋀</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋁</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋂</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋃</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨄</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨆</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨀</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨁</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨂</mo>
-</math> and Display:</p>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <mo>∫</mo>
- <mspace width="0.25em"></mspace>
- <mo>∬</mo>
- <mspace width="0.25em"></mspace>
- <mo>∭</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨌</mo>
- <mspace width="0.25em"></mspace>
- <mo>∫</mo>
- <mo>⋯</mo>
- <mo>∫</mo>
- <mspace width="0.25em"></mspace>
- <mo>∮</mo>
- <mspace width="0.25em"></mspace>
- <mo mathsize="75%">∫</mo>
- <mspace width="0.25em"></mspace>
- <mo>∑</mo>
- <mspace width="0.25em"></mspace>
- <mo>∏</mo>
- <mspace width="0.25em"></mspace>
- <mo>∐</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋀</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋁</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋂</mo>
- <mspace width="0.25em"></mspace>
- <mo>⋃</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨄</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨆</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨀</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨁</mo>
- <mspace width="0.25em"></mspace>
- <mo>⨂</mo>
-</math>
-</div>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <msub>
- <mo>∫</mo>
- <mn>1</mn>
- </msub>
- <mi>f</mi>
- <mspace width="0.25em"></mspace>
- <munder>
- <mo movablelimits="true">∫</mo>
- <mn>1</mn>
- </munder>
- <mi>f</mi>
- <mspace width="0.25em"></mspace>
- <msub>
- <mo>∬</mo>
- <mn>1</mn>
- </msub>
- <mi>f</mi>
- <mspace width="0.25em"></mspace>
- <msub>
- <mo mathsize="75%">∫</mo>
- <mn>1</mn>
- </msub>
- <mi>f</mi>
- <mspace width="0.25em"></mspace>
- <munder>
- <mo movablelimits="true">∑</mo>
- <mn>1</mn>
- </munder>
- <mspace width="0.25em"></mspace>
- <munder>
- <mo movablelimits="true">∏</mo>
- <mn>1</mn>
- </munder>
- <mspace width="0.25em"></mspace>
- <munder>
- <mo movablelimits="true">⋀</mo>
- <mn>1</mn>
- </munder>
- <mspace width="0.25em"></mspace>
- <munder>
- <mo movablelimits="true">⋂</mo>
- <mn>1</mn>
- </munder>
- <mspace width="0.25em"></mspace>
- <munder>
- <mo movablelimits="true">⨄</mo>
- <mn>1</mn>
- </munder>
- <mspace width="0.25em"></mspace>
- <munder>
- <mo movablelimits="true">⨀</mo>
- <mn>1</mn>
- </munder>
- <mspace width="0.25em"></mspace>
- <msup>
- <mo>∫</mo>
- <mi>N</mi>
- </msup>
- <mspace width="0.25em"></mspace>
- <mover>
- <mo movablelimits="true">∫</mo>
- <mi>N</mi>
- </mover>
- <mspace width="0.25em"></mspace>
- <msup>
- <mo>⨌</mo>
- <mi>N</mi>
- </msup>
- <mspace width="0.25em"></mspace>
- <msup>
- <mo>∮</mo>
- <mi>N</mi>
- </msup>
- <mspace width="0.25em"></mspace>
- <msup>
- <mo mathsize="75%">∫</mo>
- <mi>N</mi>
- </msup>
- <mspace width="0.25em"></mspace>
- <mover>
- <mo movablelimits="true">∑</mo>
- <mi>N</mi>
- </mover>
- <mspace width="0.25em"></mspace>
- <mover>
- <mo movablelimits="true">∐</mo>
- <mi>N</mi>
- </mover>
- <mspace width="0.25em"></mspace>
- <mover>
- <mo movablelimits="true">⋁</mo>
- <mi>N</mi>
- </mover>
- <mspace width="0.25em"></mspace>
- <mover>
- <mo movablelimits="true">⋃</mo>
- <mi>N</mi>
- </mover>
- <mspace width="0.25em"></mspace>
- <mover>
- <mo movablelimits="true">⨆</mo>
- <mi>N</mi>
- </mover>
- <mspace width="0.25em"></mspace>
- <mover>
- <mo movablelimits="true">⨂</mo>
- <mi>N</mi>
- </mover>
-</math>
-</div>
-<div>
-<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
- <msubsup>
- <mo>∫</mo>
- <mn>1</mn>
- <mi>N</mi>
- </msubsup>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">∫</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <msubsup>
- <mo>∬</mo>
- <mn>1</mn>
- <mi>N</mi>
- </msubsup>
- <mspace width="0.25em"></mspace>
- <msubsup>
- <mo>∭</mo>
- <mn>1</mn>
- <mi>N</mi>
- </msubsup>
- <mspace width="0.25em"></mspace>
- <msubsup>
- <mo>⨌</mo>
- <mn>1</mn>
- <mi>N</mi>
- </msubsup>
- <mspace width="0.25em"></mspace>
- <mo>∫</mo>
- <mo>⋯</mo>
- <msubsup>
- <mo>∫</mo>
- <mn>1</mn>
- <mi>N</mi>
- </msubsup>
- <mspace width="0.25em"></mspace>
- <msubsup>
- <mo>∮</mo>
- <mn>1</mn>
- <mi>N</mi>
- </msubsup>
- <mspace width="0.25em"></mspace>
- <msubsup>
- <mo mathsize="75%">∫</mo>
- <mn>1</mn>
- <mi>N</mi>
- </msubsup>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">∑</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">∏</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">∐</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⋀</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⋁</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⋂</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⋃</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⨄</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⨆</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⨀</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⨁</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
- <mspace width="0.25em"></mspace>
- <munderover>
- <mo movablelimits="true">⨂</mo>
- <mn>1</mn>
- <mi>N</mi>
- </munderover>
-</math>
-</div>
-</section>
-<section id="text">
-<h2>Text</h2>
-<p>The text may contain non-ASCII characters: <math xmlns="http://www.w3.org/1998/Math/MathML">
- <msub>
- <mi>n</mi>
- <mtext>Stoß</mtext>
- </msub>
-</math>.</p>
-<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> "html".
-In other output formats, use literal Unicode: <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mtext>ç é è ë ê ñ ů ž ©</mtext>
-</math>
-to get the result of the accent macros
-<math xmlns="http://www.w3.org/1998/Math/MathML">
- <mtext>\c{c} \'e \`e \"e \^e \~n \r{u} \v{z} \textcircled{c}</mtext>
-</math>.</p>
-</section>
-</main>
-</body>
-</html>
Copied: trunk/docutils/test/functional/expected/mathematics_mathml.html (from rev 9531, trunk/docutils/test/functional/expected/mathematics_mathml_.html)
===================================================================
--- trunk/docutils/test/functional/expected/mathematics_mathml.html (rev 0)
+++ trunk/docutils/test/functional/expected/mathematics_mathml.html 2024-02-01 13:03:27 UTC (rev 9532)
@@ -0,0 +1,4962 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta charset="utf-8" />
+<meta name="generator" content="Docutils 0.21b.dev: https://docutils.sourceforge.io/" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<title>LaTeX syntax for mathematics</title>
+<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/minimal.css" type="text/css" />
+<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/responsive.css" type="text/css" />
+</head>
+<body class="with-toc">
+<header>
+<p><a class="reference external" href="https://docutils.sourceforge.io">Docutils</a> | <a class="reference external" href="../../index.html">Overview</a> | <a class="reference external" href="../../index.html#project-fundamentals">About</a> | <a class="reference external" href="../../index.html#user">Users</a> | <a class="reference external" href="../../index.html#ref">Reference</a> | <a class="reference external" href="../../index.html#howto">Developers</a></p>
+</header>
+<main id="latex-syntax-for-mathematics">
+<h1 class="title">LaTeX syntax for mathematics</h1>
+
+<div class="topic abstract" role="doc-abstract">
+<p class="topic-title">Abstract</p>
+<p>Docutils supports mathematical content with a <a class="reference external" href="https://docutils.sourceforge.io/docs/ref/rst/directives.html#math">"math"
+directive</a> and <a class="reference external" href="https://docutils.sourceforge.io/docs/ref/rst/roles.html#math">role</a>. The input format is <em>LaTeX math
+syntax</em><a class="brackets" href="#math-syntax" id="footnote-reference-1" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a> with support for literal Unicode symbols.</p>
+</div>
+<!-- Minimal menu bar for inclusion in documentation sources
+in ``docutils/docs/*/`` sub-sub-diretories.
+
+Attention: this is not a standalone document. -->
+<nav class="contents" id="contents" role="doc-toc">
+<p class="topic-title">Contents</p>
+<ul class="auto-toc simple">
+<li><p><a class="reference internal" href="#inline-formulas-and-displayed-equations" id="toc-entry-1"><span class="sectnum">1 </span>Inline formulas and displayed equations</a></p></li>
+<li><p><a class="reference internal" href="#mathematical-symbols" id="toc-entry-2"><span class="sectnum">2 </span>Mathematical symbols</a></p>
+<ul class="auto-toc">
+<li><p><a class="reference internal" href="#accents-and-embellishments" id="toc-entry-3"><span class="sectnum">2.1 </span>Accents and embellishments</a></p></li>
+<li><p><a class="reference internal" href="#binary-operators" id="toc-entry-4"><span class="sectnum">2.2 </span>Binary operators</a></p></li>
+<li><p><a class="reference internal" href="#extensible-delimiters" id="toc-entry-5"><span class="sectnum">2.3 </span>Extensible delimiters</a></p>
+<ul class="auto-toc">
+<li><p><a class="reference internal" href="#pairing-delimiters" id="toc-entry-6"><span class="sectnum">2.3.1 </span>Pairing delimiters</a></p></li>
+<li><p><a class="reference internal" href="#nonpairing-delimiters" id="toc-entry-7"><span class="sectnum">2.3.2 </span>Nonpairing delimiters</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#extensible-vertical-arrows" id="toc-entry-8"><span class="sectnum">2.4 </span>Extensible vertical arrows</a></p></li>
+<li><p><a class="reference internal" href="#functions-named-operators" id="toc-entry-9"><span class="sectnum">2.5 </span>Functions (named operators)</a></p></li>
+<li><p><a class="reference internal" href="#greek-letters" id="toc-entry-10"><span class="sectnum">2.6 </span>Greek letters</a></p></li>
+<li><p><a class="reference internal" href="#letterlike-symbols" id="toc-entry-11"><span class="sectnum">2.7 </span>Letterlike symbols</a></p></li>
+<li><p><a class="reference internal" href="#mathematical-alphabets" id="toc-entry-12"><span class="sectnum">2.8 </span>Mathematical Alphabets</a></p></li>
+<li><p><a class="reference internal" href="#miscellaneous-symbols" id="toc-entry-13"><span class="sectnum">2.9 </span>Miscellaneous symbols</a></p></li>
+<li><p><a class="reference internal" href="#punctuation" id="toc-entry-14"><span class="sectnum">2.10 </span>Punctuation</a></p></li>
+<li><p><a class="reference internal" href="#relation-symbols" id="toc-entry-15"><span class="sectnum">2.11 </span>Relation symbols</a></p>
+<ul class="auto-toc">
+<li><p><a class="reference internal" href="#arrows" id="toc-entry-16"><span class="sectnum">2.11.1 </span>Arrows</a></p></li>
+<li><p><a class="reference internal" href="#comparison" id="toc-entry-17"><span class="sectnum">2.11.2 </span>Comparison</a></p></li>
+<li><p><a class="reference internal" href="#miscellaneous-relations" id="toc-entry-18"><span class="sectnum">2.11.3 </span>Miscellaneous relations</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#variable-sized-operators" id="toc-entry-19"><span class="sectnum">2.12 </span>Variable-sized operators</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#notations" id="toc-entry-20"><span class="sectnum">3 </span>Notations</a></p>
+<ul class="auto-toc">
+<li><p><a class="reference internal" href="#top-and-bottom-embellishments" id="toc-entry-21"><span class="sectnum">3.1 </span>Top and bottom embellishments</a></p></li>
+<li><p><a class="reference internal" href="#extensible-arrows" id="toc-entry-22"><span class="sectnum">3.2 </span>Extensible arrows</a></p></li>
+<li><p><a class="reference internal" href="#affixing-symbols-to-other-symbols" id="toc-entry-23"><span class="sectnum">3.3 </span>Affixing symbols to other symbols</a></p></li>
+<li><p><a class="reference internal" href="#matrices" id="toc-entry-24"><span class="sectnum">3.4 </span>Matrices</a></p></li>
+<li><p><a class="reference internal" href="#spacing-commands" id="toc-entry-25"><span class="sectnum">3.5 </span>Spacing commands</a></p></li>
+<li><p><a class="reference internal" href="#modular-arithmetic-and-modulo-operation" id="toc-entry-26"><span class="sectnum">3.6 </span>Modular arithmetic and modulo operation</a></p></li>
+<li><p><a class="reference internal" href="#roots" id="toc-entry-27"><span class="sectnum">3.7 </span>Roots</a></p></li>
+<li><p><a class="reference internal" href="#boxed-formulas" id="toc-entry-28"><span class="sectnum">3.8 </span>Boxed formulas</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#fractions-and-related-constructions" id="toc-entry-29"><span class="sectnum">4 </span>Fractions and related constructions</a></p></li>
+<li><p><a class="reference internal" href="#delimiter-sizes" id="toc-entry-30"><span class="sectnum">5 </span>Delimiter sizes</a></p></li>
+<li><p><a class="reference internal" href="#text" id="toc-entry-31"><span class="sectnum">6 </span>Text</a></p></li>
+<li><p><a class="reference internal" href="#integrals-and-sums" id="toc-entry-32"><span class="sectnum">7 </span>Integrals and sums</a></p>
+<ul class="auto-toc">
+<li><p><a class="reference internal" href="#altering-the-placement-of-limits" id="toc-entry-33"><span class="sectnum">7.1 </span>Altering the placement of limits</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#changing-the-size-of-elements-in-a-formula" id="toc-entry-34"><span class="sectnum">8 </span>Changing the size of elements in a formula</a></p></li>
+</ul>
+</nav>
+<section id="inline-formulas-and-displayed-equations">
+<h2><a class="toc-backref" href="#toc-entry-1" role="doc-backlink"><span class="sectnum">1 </span>Inline formulas and displayed equations</a></h2>
+<p>The <strong>math role</strong> can be used for inline mathematical expressions:
+<span class="docutils literal"><span class="pre">:math:`\psi(r)</span> = <span class="pre">\exp(-2r)`</span></span> will produce <math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mi>ψ</mi>
+ <mo stretchy="false">(</mo>
+ <mi>r</mi>
+ <mo stretchy="false">)</mo>
+ <mo>=</mo>
+ <mi>exp</mi>
+ <mo>⁡</mo>
+ <mo stretchy="false">(</mo>
+ <mo form="prefix">−</mo>
+ <mn>2</mn>
+ <mi>r</mi>
+ <mo stretchy="false">)</mo>
+</math>.
+Inside the backtics you can write anything you would write between dollar
+signs in a LaTeX document. <a class="brackets" href="#math-syntax" id="footnote-reference-2" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a></p>
+<aside class="admonition tip">
+<p class="admonition-title">Tip</p>
+<p>If you put <span class="docutils literal">.. <span class="pre">default-role::</span> math</span> at the top of your
+document, you can write <span class="docutils literal">`x^2`</span> instead of the longer
+version: <span class="docutils literal"><span class="pre">:math:`x^2`</span></span>. You can also introduce an
+abbreviation like this <span class="docutils literal">.. role:: m(math)</span>. That will allow
+you to write <span class="docutils literal"><span class="pre">:m:`x^2`</span></span> or <span class="docutils literal"><span class="pre">`x^2`:m:</span></span>.</p>
+</aside>
+<p>The <strong>math directive</strong> is used for displayed equations. It corresponds to
+an <span class="docutils literal">equation*</span> or <span class="docutils literal">align*</span> environment in a LaTeX document. If you
+write:</p>
+<pre class="literal-block">.. math:: \psi(r) = e^{-2r}</pre>
+<p>you will get:</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mi>ψ</mi>
+ <mo stretchy="false">(</mo>
+ <mi>r</mi>
+ <mo stretchy="false">)</mo>
+ <mo>=</mo>
+ <msup>
+ <mi>e</mi>
+ <mrow>
+ <mo>−</mo>
+ <mn>2</mn>
+ <mi>r</mi>
+ </mrow>
+ </msup>
+</math>
+</div>
+<p>A more complex example is the definition of the <a class="reference internal" href="#fourier-transform">Fourier transform</a>:</p>
+<pre class="literal-block">.. math::
+ :name: Fourier transform
+
+ (\mathcal{F}f)(y)
+ = \frac{1}{\sqrt{2\pi}^{\ n}}
+ \int_{\mathbb{R}^n} f(x)\,
+ e^{-\mathrm{i} y \cdot x} \,\mathrm{d} x.</pre>
+<p>which is rendered as:</p>
+<div id="fourier-transform">
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mo stretchy="false">(</mo>
+ <mi>ℱ</mi>
+ <mi>f</mi>
+ <mo stretchy="false">)</mo>
+ <mo stretchy="false">(</mo>
+ <mi>y</mi>
+ <mo stretchy="false">)</mo>
+ <mo>=</mo>
+ <mfrac>
+ <mn>1</mn>
+ <msup>
+ <msqrt>
+ <mn>2</mn>
+ <mi>π</mi>
+ </msqrt>
+ <mrow>
+ <mspace width="0.25em"></mspace>
+ <mi>n</mi>
+ </mrow>
+ </msup>
+ </mfrac>
+ <msub>
+ <mo>∫</mo>
+ <msup>
+ <mi>ℝ</mi>
+ <mi>n</mi>
+ </msup>
+ </msub>
+ <mi>f</mi>
+ <mo stretchy="false">(</mo>
+ <mi>x</mi>
+ <mo stretchy="false">)</mo>
+ <mspace width="0.1667em"></mspace>
+ <msup>
+ <mi>e</mi>
+ <mrow>
+ <mo>−</mo>
+ <mi mathvariant="normal">i</mi>
+ <mi>y</mi>
+ <mo>⋅</mo>
+ <mi>x</mi>
+ </mrow>
+ </msup>
+ <mspace width="0.1667em"></mspace>
+ <mi mathvariant="normal">d</mi>
+ <mi>x</mi>
+ <mo>.</mo>
+</math>
+</div>
+<p>The <span class="docutils literal">:name:</span> option puts a label on the equation that can be
+linked to by <a class="reference external" href="../ref/rst/restructuredtext.html#hyperlink-references">hyperlink references</a>.</p>
+<p>Displayed equations can use <span class="docutils literal">\\</span> and <span class="docutils literal">&</span> for line shifts and alignments:</p>
+<pre class="literal-block">.. math::
+
+ a &= (x + y)^2 & b &= (x - y)^2 \\
+ &= x^2 + 2xy + y^2 & &= x^2 - 2xy + y^2</pre>
+<p>LaTeX output will wrap it in an <span class="docutils literal">align*</span> environment.
+The result is:</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mtable class="ams-align" displaystyle="true">
+ <mtr>
+ <mtd>
+ <mi>a</mi>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mo stretchy="false">(</mo>
+ <mi>x</mi>
+ <mo>+</mo>
+ <mi>y</mi>
+ <msup>
+ <mo stretchy="false">)</mo>
+ <mn>2</mn>
+ </msup>
+ </mtd>
+ <mtd>
+ <mi>b</mi>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mo stretchy="false">(</mo>
+ <mi>x</mi>
+ <mo>−</mo>
+ <mi>y</mi>
+ <msup>
+ <mo stretchy="false">)</mo>
+ <mn>2</mn>
+ </msup>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd></mtd>
+ <mtd>
+ <mo>=</mo>
+ <msup>
+ <mi>x</mi>
+ <mn>2</mn>
+ </msup>
+ <mo>+</mo>
+ <mn>2</mn>
+ <mi>x</mi>
+ <mi>y</mi>
+ <mo>+</mo>
+ <msup>
+ <mi>y</mi>
+ <mn>2</mn>
+ </msup>
+ </mtd>
+ <mtd></mtd>
+ <mtd>
+ <mo>=</mo>
+ <msup>
+ <mi>x</mi>
+ <mn>2</mn>
+ </msup>
+ <mo>−</mo>
+ <mn>2</mn>
+ <mi>x</mi>
+ <mi>y</mi>
+ <mo>+</mo>
+ <msup>
+ <mi>y</mi>
+ <mn>2</mn>
+ </msup>
+ </mtd>
+ </mtr>
+ </mtable>
+</math>
+</div>
+<p>The <span class="docutils literal">aligned</span> environment can be used as a component in a containing
+expression. E.g.,</p>
+<pre class="literal-block">.. math::
+ \left.
+ \begin{aligned}
+ B' & = -\partial\times E, \\
+ E' & = \partial\times B - 4\pi j,
+ \end{aligned}
+ \right\}
+ \qquad \text{Maxwell’s equations}</pre>
+<p>results in</p>
+<div>
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mtable class="ams-align">
+ <mtr>
+ <mtd>
+ <mi>B</mi>
+ <mo>'</mo>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mo form="prefix">−</mo>
+ <mi>∂</mi>
+ <mo>×</mo>
+ <mi>E</mi>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mi>E</mi>
+ <mo>'</mo>
+ </mtd>
+ <mtd>
+ <mo>=</mo>
+ <mi>∂</mi>
+ <mo>×</mo>
+ <mi>B</mi>
+ <mo>−</mo>
+ <mn>4</mn>
+ <mi>π</mi>
+ <mi>j</mi>
+ </mtd>
+ </mtr>
+ </mtable>
+ <mspace width="0.2778em"></mspace>
+ <mo>}</mo>
+ </mrow>
+ <mspace width="2em"></mspace>
+ <mtext>Maxwell’s equations.</mtext>
+</math>
+</div>
+<aside class="footnote-list brackets">
+<aside class="footnote brackets" id="math-syntax" role="doc-footnote">
+<span class="label"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></span>
+<span class="backrefs">(<a role="doc-backlink" href="#footnote-reference-1">1</a>,<a role="doc-backlink" href="#footnote-reference-2">2</a>)</span>
+<p>The supported LaTeX commands include AMS extensions
+(see, e.g., the <a class="reference external" href="https://mirrors.ctan.org/info/short-math-guide/short-math-guide.pdf">Short Math Guide</a>). Some of the shown symbols
+require the "amssymb" <a class="reference external" href="../../user/latex.html#latex-document-classes-and-packages">LaTeX package</a> (or another package providing
+the AMS symbol macros) when exported with the "latex" writer.</p>
+<p>The support is limited to a subset of <em>LaTeX math</em> by the conversion
+required for many output formats. For HTML, the <a class="reference external" href="https://docutils.sourceforge.io/docs/user/config.html#math-output">math_output</a>
+configuration setting (or the corresponding <span class="docutils literal"><span class="pre">--math-output</span></span> command
+line option) selects between alternative output formats with different
+subsets of supported elements. If a writer does not support math
+typesetting, the content is inserted verbatim.</p>
+</aside>
+</aside>
+</section>
+<section id="mathematical-symbols">
+<h2><a class="toc-backref" href="#toc-entry-2" role="doc-backlink"><span class="sectnum">2 </span>Mathematical symbols</a></h2>
+<p>The following tables are adapted from the first edition of
+"The LaTeX Companion" (Goossens, Mittelbach, Samarin) and the
+AMS <a class="reference external" href="https://mirrors.ctan.org/info/short-math-guide/short-math-guide.pdf">Short Math Guide</a>.</p>
+<section id="accents-and-embellishments">
+<h3><a class="toc-backref" href="#toc-entry-3" role="doc-backlink"><span class="sectnum">2.1 </span>Accents and embellishments</a></h3>
+<p>The "narrow" accents are intended for a single-letter base.</p>
+<table>
+<tbody>
+<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>x</mi>
+ <mo stretchy="false">´</mo>
+ </mover>
+</math></p></td>
+<td><p><span class="docutils literal">\acute{x}</span></p></td>
+<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>t</mi>
+ <mo stretchy="false">˙</mo>
+ </mover>
+</math></p></td>
+<td><p><span class="docutils literal">\dot{t}</span></p></td>
+<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>x</mi>
+ <mo stretchy="false">`</mo>
+ </mover>
+</math></p></td>
+<td><p><span class="docutils literal">\grave{x}</span></p></td>
+<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>x</mi>
+ <mo stretchy="false" scriptlevel="+1">→</mo>
+ </mover>
+</math></p></td>
+<td><p><span class="docutils literal">\vec{x}</span></p></td>
+</tr>
+<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>v</mi>
+ <mo stretchy="false">ˉ</mo>
+ </mover>
+</math></p></td>
+<td><p><span class="docutils literal">\bar{v}</span></p></td>
+<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>t</mi>
+ <mo stretchy="false">¨</mo>
+ </mover>
+</math></p></td>
+<td><p><span class="docutils literal">\ddot{t}</span></p></td>
+<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>x</mi>
+ <mo stretchy="false">ˆ</mo>
+ </mover>
+</math></p></td>
+<td><p><span class="docutils literal">\hat{x}</span></p></td>
+<td></td>
+<td></td>
+</tr>
+<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover accent="true">
+ <mi>x</mi>
+ <mo stretchy="false">˘</mo>
+ </mover>
+</math></p></td>
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
Docutils-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-checkins