From 32cc07175d730dc900175ffaccdcfbeef8d6f89e Mon Sep 17 00:00:00 2001 From: milde Date: Wed, 6 Jul 2011 15:52:30 +0000 Subject: Common directive options: Add "name" and "class" options to admonition directives. Directive content may start on the first line also when the directive type accepts options. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7072 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/test/functional/input/data/math.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'docutils/test/functional/input') diff --git a/docutils/test/functional/input/data/math.txt b/docutils/test/functional/input/data/math.txt index bd2190aad..15acdcdd0 100644 --- a/docutils/test/functional/input/data/math.txt +++ b/docutils/test/functional/input/data/math.txt @@ -10,13 +10,16 @@ role specificator, :math:`n! + \sin(x_n^2)` and `A_\text{c} = f(\epsilon) = \frac{1}{1 + \exp\left(\frac{\varepsilon}{k_\text{B}T}\right)} -A display formula can also be given as directive argument, e.g. +Content may start on the first line of the directive, e.g. .. math:: N = \frac{\text{number of apples}}{7} +Equations can be labeled with a reference name using the ``:name:`` option. +See `eq:M`_ and `eq:schrödinger`_ below. + The determinant of the matrix -.. math:: +.. math:: :name: eq:M \mathbf{M} = \left(\begin{matrix}a&b\\c&d\end{matrix}\right) @@ -36,7 +39,10 @@ directives: The Schrödinger equation -.. math:: i\hbar \frac{∂}{∂t}Ψ = \hat{H}Ψ, +.. math:: :name: eq:schrödinger + + i\hbar \frac{∂}{∂t}Ψ = \hat{H}Ψ, + with the *wave function* :math:`Ψ`, describes how the quantum state of a physical system changes in time. -- cgit v1.2.1