chiark / gitweb /
m.math: test also math following surrounding text size.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 18 Jun 2018 13:20:25 +0000 (15:20 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 18 Jun 2018 13:23:43 +0000 (15:23 +0200)
pelican-plugins/m/test/math/page-code-fallback.html
pelican-plugins/m/test/math/page.html
pelican-plugins/m/test/math/page.rst

index 9c1869d123fee30392ec1aa99113e7805f97a32f..683e28dc4bbfbdf5f0e4f0b8111967c4b750fbc1 100644 (file)
@@ -37,6 +37,8 @@ the lines <code>W = \sum_{i=0}^{n} \frac{w_i}{h_i}</code> because
 <pre>\begin{array}{rcl}
     x &amp; = &amp; 1
 \end{array}</pre>
+<p class="m-text m-big">Formulas <code>a^2</code> in big text are big.</p>
+<p class="m-text m-small">Formulas <code>a^2</code> in small text are small.</p>
 <!-- /content -->
       </div>
     </div>
index 8a2a3c81822685d30371871a13830954a44c44ee..cc9837025949d9d6f0ad179cf5b3a29611b2f04b 100644 (file)
@@ -263,6 +263,32 @@ W = \sum_{i=0}^{n} \cfrac{w_i}{h_i}
 <use x='209.186' xlink:href='#eq10-g1-49' y='-4.33378'/>
 </g>
 </svg></div>
+<p class="m-text m-big">Formulas <svg class="m-math" style="width: 1.081em; height: 0.987em; vertical-align: -0.000em;" viewBox="0 -9.47474 10.3791 9.47474">
+<title>
+a^2
+</title>
+<defs>
+<path d='M3.59851 -1.42267C3.53873 -1.21943 3.53873 -1.19552 3.37136 -0.968369C3.10834 -0.633624 2.58232 -0.119552 2.02042 -0.119552C1.53026 -0.119552 1.25529 -0.561893 1.25529 -1.26725C1.25529 -1.92478 1.6259 -3.26376 1.85305 -3.76588C2.25953 -4.60274 2.82142 -5.03313 3.28767 -5.03313C4.07671 -5.03313 4.23213 -4.0528 4.23213 -3.95716C4.23213 -3.94521 4.19626 -3.78979 4.18431 -3.76588L3.59851 -1.42267ZM4.36364 -4.48319C4.23213 -4.79402 3.90934 -5.27223 3.28767 -5.27223C1.93674 -5.27223 0.478207 -3.52677 0.478207 -1.75741C0.478207 -0.573848 1.17161 0.119552 1.98456 0.119552C2.64209 0.119552 3.20399 -0.394521 3.53873 -0.789041C3.65828 -0.0836862 4.22017 0.119552 4.57883 0.119552S5.22441 -0.0956413 5.4396 -0.526027C5.63088 -0.932503 5.79826 -1.66177 5.79826 -1.70959C5.79826 -1.76936 5.75044 -1.81719 5.6787 -1.81719C5.57111 -1.81719 5.55915 -1.75741 5.51133 -1.57808C5.332 -0.872727 5.10486 -0.119552 4.61469 -0.119552C4.268 -0.119552 4.24408 -0.430386 4.24408 -0.669489C4.24408 -0.944458 4.27995 -1.07597 4.38755 -1.54222C4.47123 -1.8411 4.53101 -2.10411 4.62665 -2.45081C5.06899 -4.24408 5.17659 -4.67447 5.17659 -4.7462C5.17659 -4.91357 5.04508 -5.04508 4.86575 -5.04508C4.48319 -5.04508 4.38755 -4.62665 4.36364 -4.48319Z' id='eq11-g0-97'/>
+<path d='M2.24757 -1.6259C2.37509 -1.74545 2.70984 -2.00847 2.83736 -2.12005C3.33151 -2.57435 3.80174 -3.0127 3.80174 -3.73798C3.80174 -4.68643 3.00473 -5.30012 2.00847 -5.30012C1.05205 -5.30012 0.422416 -4.57484 0.422416 -3.8655C0.422416 -3.47497 0.73325 -3.41918 0.844832 -3.41918C1.0122 -3.41918 1.25928 -3.53873 1.25928 -3.84159C1.25928 -4.25604 0.860772 -4.25604 0.765131 -4.25604C0.996264 -4.83786 1.53026 -5.03711 1.9208 -5.03711C2.66202 -5.03711 3.04458 -4.40747 3.04458 -3.73798C3.04458 -2.90909 2.46276 -2.30336 1.52229 -1.33898L0.518057 -0.302864C0.422416 -0.215193 0.422416 -0.199253 0.422416 0H3.57061L3.80174 -1.42665H3.55467C3.53076 -1.26725 3.467 -0.868742 3.37136 -0.71731C3.32354 -0.653549 2.71781 -0.653549 2.59029 -0.653549H1.17161L2.24757 -1.6259Z' id='eq11-g1-50'/>
+</defs>
+<g id='eq11-page1'>
+<use x='0' xlink:href='#eq11-g0-97' y='0'/>
+<use x='6.14494' xlink:href='#eq11-g1-50' y='-4.33844'/>
+</g>
+</svg> in big text are big.</p>
+<p class="m-text m-small">Formulas <svg class="m-math" style="width: 1.081em; height: 0.987em; vertical-align: -0.000em;" viewBox="0 -9.47474 10.3791 9.47474">
+<title>
+a^2
+</title>
+<defs>
+<path d='M3.59851 -1.42267C3.53873 -1.21943 3.53873 -1.19552 3.37136 -0.968369C3.10834 -0.633624 2.58232 -0.119552 2.02042 -0.119552C1.53026 -0.119552 1.25529 -0.561893 1.25529 -1.26725C1.25529 -1.92478 1.6259 -3.26376 1.85305 -3.76588C2.25953 -4.60274 2.82142 -5.03313 3.28767 -5.03313C4.07671 -5.03313 4.23213 -4.0528 4.23213 -3.95716C4.23213 -3.94521 4.19626 -3.78979 4.18431 -3.76588L3.59851 -1.42267ZM4.36364 -4.48319C4.23213 -4.79402 3.90934 -5.27223 3.28767 -5.27223C1.93674 -5.27223 0.478207 -3.52677 0.478207 -1.75741C0.478207 -0.573848 1.17161 0.119552 1.98456 0.119552C2.64209 0.119552 3.20399 -0.394521 3.53873 -0.789041C3.65828 -0.0836862 4.22017 0.119552 4.57883 0.119552S5.22441 -0.0956413 5.4396 -0.526027C5.63088 -0.932503 5.79826 -1.66177 5.79826 -1.70959C5.79826 -1.76936 5.75044 -1.81719 5.6787 -1.81719C5.57111 -1.81719 5.55915 -1.75741 5.51133 -1.57808C5.332 -0.872727 5.10486 -0.119552 4.61469 -0.119552C4.268 -0.119552 4.24408 -0.430386 4.24408 -0.669489C4.24408 -0.944458 4.27995 -1.07597 4.38755 -1.54222C4.47123 -1.8411 4.53101 -2.10411 4.62665 -2.45081C5.06899 -4.24408 5.17659 -4.67447 5.17659 -4.7462C5.17659 -4.91357 5.04508 -5.04508 4.86575 -5.04508C4.48319 -5.04508 4.38755 -4.62665 4.36364 -4.48319Z' id='eq12-g0-97'/>
+<path d='M2.24757 -1.6259C2.37509 -1.74545 2.70984 -2.00847 2.83736 -2.12005C3.33151 -2.57435 3.80174 -3.0127 3.80174 -3.73798C3.80174 -4.68643 3.00473 -5.30012 2.00847 -5.30012C1.05205 -5.30012 0.422416 -4.57484 0.422416 -3.8655C0.422416 -3.47497 0.73325 -3.41918 0.844832 -3.41918C1.0122 -3.41918 1.25928 -3.53873 1.25928 -3.84159C1.25928 -4.25604 0.860772 -4.25604 0.765131 -4.25604C0.996264 -4.83786 1.53026 -5.03711 1.9208 -5.03711C2.66202 -5.03711 3.04458 -4.40747 3.04458 -3.73798C3.04458 -2.90909 2.46276 -2.30336 1.52229 -1.33898L0.518057 -0.302864C0.422416 -0.215193 0.422416 -0.199253 0.422416 0H3.57061L3.80174 -1.42665H3.55467C3.53076 -1.26725 3.467 -0.868742 3.37136 -0.71731C3.32354 -0.653549 2.71781 -0.653549 2.59029 -0.653549H1.17161L2.24757 -1.6259Z' id='eq12-g1-50'/>
+</defs>
+<g id='eq12-page1'>
+<use x='0' xlink:href='#eq12-g0-97' y='0'/>
+<use x='6.14494' xlink:href='#eq12-g1-50' y='-4.33844'/>
+</g>
+</svg> in small text are small.</p>
 <!-- /content -->
       </div>
     </div>
index 7356b017a5a66d508e1d3d7ece3a7d87ce34aed9..3f58c9a7cfad128ff1ab5ba8cdd0d6fa97852365 100644 (file)
@@ -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.