From: Vladimír Vondruš Date: Mon, 18 Jun 2018 13:20:25 +0000 (+0200) Subject: m.math: test also math following surrounding text size. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=48bd8cc6df6906635a9386673b557a1eaf2c47bd;p=blog.git m.math: test also math following surrounding text size. --- diff --git a/pelican-plugins/m/test/math/page-code-fallback.html b/pelican-plugins/m/test/math/page-code-fallback.html index 9c1869d1..683e28dc 100644 --- a/pelican-plugins/m/test/math/page-code-fallback.html +++ b/pelican-plugins/m/test/math/page-code-fallback.html @@ -37,6 +37,8 @@ the lines W = \sum_{i=0}^{n} \frac{w_i}{h_i} because
\begin{array}{rcl}
     x & = & 1
 \end{array}
+

Formulas a^2 in big text are big.

+

Formulas a^2 in small text are small.

diff --git a/pelican-plugins/m/test/math/page.html b/pelican-plugins/m/test/math/page.html index 8a2a3c81..cc983702 100644 --- a/pelican-plugins/m/test/math/page.html +++ b/pelican-plugins/m/test/math/page.html @@ -263,6 +263,32 @@ W = \sum_{i=0}^{n} \cfrac{w_i}{h_i} +

Formulas + +a^2 + + + + + + + + + + in big text are big.

+

Formulas + +a^2 + + + + + + + + + + in small text are small.

diff --git a/pelican-plugins/m/test/math/page.rst b/pelican-plugins/m/test/math/page.rst index 7356b017..3f58c9a7 100644 --- a/pelican-plugins/m/test/math/page.rst +++ b/pelican-plugins/m/test/math/page.rst @@ -34,3 +34,11 @@ Properly escape the formula source: \begin{array}{rcl} x & = & 1 \end{array} + +.. class:: m-text m-big + +Formulas :math:`a^2` in big text are big. + +.. class:: m-text m-small + +Formulas :math:`a^2` in small text are small.