From 48bd8cc6df6906635a9386673b557a1eaf2c47bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 18 Jun 2018 15:20:25 +0200 Subject: [PATCH] m.math: test also math following surrounding text size. --- .../m/test/math/page-code-fallback.html | 2 ++ pelican-plugins/m/test/math/page.html | 26 +++++++++++++++++++ pelican-plugins/m/test/math/page.rst | 8 ++++++ 3 files changed, 36 insertions(+) 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. -- 2.30.2