diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-10-29 22:18:44 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2010-10-29 22:18:44 +0000 |
| commit | 0b99c776ef69cacc51424b71e3f8a4b183ab8907 (patch) | |
| tree | fa8e87131ac724b97af063970fc2250c5b0241de /docutils/test/functional/input/data/math.txt | |
| parent | d402706920752e0a9b55a0d322374a823d3f2d14 (diff) | |
| download | docutils-0b99c776ef69cacc51424b71e3f8a4b183ab8907.tar.gz | |
Rename the ``.. math-block::`` directive to ``.. math::``.
Simplify the rst-syntax using just one name for math directive and
role. This is also how it is done by Sphinx.
The doctree node is still called math-block (analogous to
literal-block, line-block, ...).
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6460 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/input/data/math.txt')
| -rw-r--r-- | docutils/test/functional/input/data/math.txt | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/docutils/test/functional/input/data/math.txt b/docutils/test/functional/input/data/math.txt index 6c1193046..6b68e3476 100644 --- a/docutils/test/functional/input/data/math.txt +++ b/docutils/test/functional/input/data/math.txt @@ -4,27 +4,36 @@ Testing Math Docutils supports inline math with the prefix or postfix ``:math:`` role specificator, :math:`n! + \sin(x_n^2)` and `A_\text{c} = \frac{\pi}{4} d^2`:math:, as well as displayed math via the -``math-block`` directive: +``math`` directive: -.. math-block:: +.. math:: f(\epsilon) = \frac{1}{1 + \exp\left(\frac{\varepsilon}{k_\text{B}T}\right)} -.. math-block:: +.. In Sphinx, blank lines inside a math directive start a new math + display. + + Should we handle this: + + * in the parser (adding one node per line), + * in the writers, or + * not at all? + +.. math:: N = \frac{\text{number of apples}}{7} -.. math-block:: +.. math:: \mathbf{M} = \left(\begin{matrix}a&b\\c&d\end{matrix}\right) We have :math:`|\mathbf{M}| = ad - bc`. -.. math-block:: +.. math:: \int_0^1 x^n dx = \frac{1}{n + 1} -.. math-block:: +.. math:: \sum_{n=1}^m n = \frac{m(m+1)}{2} @@ -34,20 +43,20 @@ We have :math:`|\mathbf{M}| = ad - bc`. Quantum mechanics: -.. math-block:: +.. math:: -\frac{1}{2}\nabla^2 \psi + v \psi = \varepsilon \psi Math split over two lines: -.. math-block:: +.. math:: g(\alpha) = & (1 + \alpha + \alpha^2 + \alpha^3 + \alpha^4\\ & + \alpha^5) Cases (realized with a matrix environment): -.. math-block:: +.. math:: f(x) = \left\{ \begin{matrix} |
