chiark / gitweb /
m.math: initial test.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 02:23:59 +0000 (03:23 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 02:24:55 +0000 (03:24 +0100)
doc/plugins/math-and-code-test.rst [deleted file]
pelican-plugins/m/test/math/page.html [new file with mode: 0644]
pelican-plugins/m/test/math/page.rst [new file with mode: 0644]
pelican-plugins/m/test/test_math.py [new file with mode: 0644]

diff --git a/doc/plugins/math-and-code-test.rst b/doc/plugins/math-and-code-test.rst
deleted file mode 100644 (file)
index 06f22ae..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-..
-    This file is part of m.css.
-
-    Copyright © 2017 Vladimír Vondruš <mosra@centrum.cz>
-
-    Permission is hereby granted, free of charge, to any person obtaining a
-    copy of this software and associated documentation files (the "Software"),
-    to deal in the Software without restriction, including without limitation
-    the rights to use, copy, modify, merge, publish, distribute, sublicense,
-    and/or sell copies of the Software, and to permit persons to whom the
-    Software is furnished to do so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included
-    in all copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-    DEALINGS IN THE SOFTWARE.
-..
-
-Test
-####
-
-:save_as: plugins/math-and-code/test/index.html
-:breadcrumb: {filename}/plugins.rst Pelican plugins
-             {filename}/plugins/math-and-code.rst Math and code
-
-.. role:: tex(code)
-    :language: latex
-
-Properly align *huge* formulas vertically on a line: :math:`\hat q^{-1} = \frac{\hat q^*}{|\hat q|^2}`
-and make sure there's enough space for all the complex :math:`W` things between
-the lines :math:`W = \sum_{i=0}^{n} \frac{w_i}{h_i}` because  :math:`Y = \sum_{i=0}^{n} B`
-
-The :tex:`\\cfrac` thing doesn't align well: :math:`W = \sum_{i=0}^{n} \cfrac{w_i}{h_i}`
-
-Huh, apparently backslashes have to be escaped in things like this:
-:tex:`\frac`
diff --git a/pelican-plugins/m/test/math/page.html b/pelican-plugins/m/test/math/page.html
new file mode 100644 (file)
index 0000000..57f0a55
--- /dev/null
@@ -0,0 +1,217 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8" />
+  <title>m.math | A Pelican Blog</title>
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="static/m-dark.css" />
+  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta property="og:title" content="m.math" />
+  <meta name="twitter:title" content="m.math" />
+  <meta property="og:url" content="page.html" />
+  <meta name="twitter:url" content="page.html" />
+  <meta property="og:description" content="no." />
+  <meta name="twitter:description" content="no." />
+  <meta name="twitter:card" content="summary" />
+  <meta property="og:type" content="website" />
+</head>
+<body>
+<header><nav id="navigation">
+  <div class="m-container">
+    <div class="m-row">
+      <a href="./" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m">A Pelican Blog</a>
+    </div>
+  </div>
+</nav></header>
+<main>
+<article>
+  <div class="m-container m-container-inflatable">
+    <div class="m-row">
+      <div class="m-col-l-10 m-push-l-1">
+        <h1>m.math</h1>
+<!-- content -->
+<p>Inline colored math <svg class="m-math m-primary" style="vertical-align: -0.0pt;" height='11.8434pt' version='1.1' viewBox='0 -9.47474 10.3791 9.47474' width='12.9739pt'>
+<title>LaTeX Math</title>
+<desc>
+a^2
+</desc>
+<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='eq1-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='eq1-g1-50'/>
+</defs>
+<g id='eq1-page1'>
+<use x='0' xlink:href='#eq1-g0-97' y='0'/>
+<use x='6.14494' xlink:href='#eq1-g1-50' y='-4.33844'/>
+</g>
+</svg> and colored math block:</p>
+<div class="m-success m-math">
+<svg height='13.7321pt' version='1.1' viewBox='164.011 -10.9857 60.0231 10.9857' width='75.0289pt'>
+<title>LaTeX Math</title>
+<desc>
+a^2 + b^2 = c^2
+</desc>
+<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='eq2-g0-97'/>
+<path d='M2.76164 -7.99801C2.7736 -8.04583 2.79751 -8.11756 2.79751 -8.17733C2.79751 -8.29689 2.67796 -8.29689 2.65405 -8.29689C2.64209 -8.29689 2.21171 -8.26102 1.99651 -8.23711C1.79328 -8.22516 1.61395 -8.20125 1.39875 -8.18929C1.11183 -8.16538 1.02814 -8.15342 1.02814 -7.93823C1.02814 -7.81868 1.1477 -7.81868 1.26725 -7.81868C1.87696 -7.81868 1.87696 -7.71108 1.87696 -7.59153C1.87696 -7.50785 1.78132 -7.16115 1.7335 -6.94595L1.44658 -5.79826C1.32702 -5.32005 0.645579 -2.60623 0.597758 -2.39103C0.537983 -2.09215 0.537983 -1.88892 0.537983 -1.7335C0.537983 -0.514072 1.21943 0.119552 1.99651 0.119552C3.38331 0.119552 4.81793 -1.66177 4.81793 -3.39527C4.81793 -4.49514 4.19626 -5.27223 3.29963 -5.27223C2.67796 -5.27223 2.11606 -4.75816 1.88892 -4.51905L2.76164 -7.99801ZM2.00847 -0.119552C1.6259 -0.119552 1.20747 -0.406476 1.20747 -1.33898C1.20747 -1.7335 1.24334 -1.96065 1.45853 -2.79751C1.4944 -2.95293 1.68568 -3.71806 1.7335 -3.87347C1.75741 -3.96912 2.46276 -5.03313 3.27572 -5.03313C3.80174 -5.03313 4.04085 -4.5071 4.04085 -3.88543C4.04085 -3.31158 3.7061 -1.96065 3.40722 -1.33898C3.10834 -0.6934 2.55841 -0.119552 2.00847 -0.119552Z' id='eq2-g0-98'/>
+<path d='M4.67447 -4.49514C4.44732 -4.49514 4.33973 -4.49514 4.17235 -4.35168C4.10062 -4.29191 3.96912 -4.11258 3.96912 -3.9213C3.96912 -3.68219 4.14844 -3.53873 4.37559 -3.53873C4.66252 -3.53873 4.98531 -3.77783 4.98531 -4.25604C4.98531 -4.82989 4.43537 -5.27223 3.61046 -5.27223C2.04433 -5.27223 0.478207 -3.56264 0.478207 -1.86501C0.478207 -0.824907 1.12379 0.119552 2.34321 0.119552C3.96912 0.119552 4.99726 -1.1477 4.99726 -1.30311C4.99726 -1.37484 4.92553 -1.43462 4.87771 -1.43462C4.84184 -1.43462 4.82989 -1.42267 4.72229 -1.31507C3.95716 -0.298879 2.82142 -0.119552 2.36712 -0.119552C1.54222 -0.119552 1.2792 -0.836862 1.2792 -1.43462C1.2792 -1.85305 1.48244 -3.0127 1.91283 -3.82565C2.22366 -4.38755 2.86924 -5.03313 3.62242 -5.03313C3.77783 -5.03313 4.43537 -5.00922 4.67447 -4.49514Z' id='eq2-g0-99'/>
+<path d='M4.77011 -2.76164H8.06974C8.23711 -2.76164 8.4523 -2.76164 8.4523 -2.97684C8.4523 -3.20399 8.24907 -3.20399 8.06974 -3.20399H4.77011V-6.50361C4.77011 -6.67098 4.77011 -6.88618 4.55492 -6.88618C4.32777 -6.88618 4.32777 -6.68294 4.32777 -6.50361V-3.20399H1.02814C0.860772 -3.20399 0.645579 -3.20399 0.645579 -2.98879C0.645579 -2.76164 0.848817 -2.76164 1.02814 -2.76164H4.32777V0.537983C4.32777 0.705355 4.32777 0.920548 4.54296 0.920548C4.77011 0.920548 4.77011 0.71731 4.77011 0.537983V-2.76164Z' id='eq2-g2-43'/>
+<path d='M8.06974 -3.87347C8.23711 -3.87347 8.4523 -3.87347 8.4523 -4.08867C8.4523 -4.31582 8.24907 -4.31582 8.06974 -4.31582H1.02814C0.860772 -4.31582 0.645579 -4.31582 0.645579 -4.10062C0.645579 -3.87347 0.848817 -3.87347 1.02814 -3.87347H8.06974ZM8.06974 -1.64981C8.23711 -1.64981 8.4523 -1.64981 8.4523 -1.86501C8.4523 -2.09215 8.24907 -2.09215 8.06974 -2.09215H1.02814C0.860772 -2.09215 0.645579 -2.09215 0.645579 -1.87696C0.645579 -1.64981 0.848817 -1.64981 1.02814 -1.64981H8.06974Z' id='eq2-g2-61'/>
+<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='eq2-g1-50'/>
+</defs>
+<g id='eq2-page1'>
+<use x='164.011' xlink:href='#eq2-g0-97' y='-0.913201'/>
+<use x='170.156' xlink:href='#eq2-g1-50' y='-5.84939'/>
+<use x='177.545' xlink:href='#eq2-g2-43' y='-0.913201'/>
+<use x='189.306' xlink:href='#eq2-g0-98' y='-0.913201'/>
+<use x='194.283' xlink:href='#eq2-g1-50' y='-5.84939'/>
+<use x='202.336' xlink:href='#eq2-g2-61' y='-0.913201'/>
+<use x='214.762' xlink:href='#eq2-g0-99' y='-0.913201'/>
+<use x='219.8' xlink:href='#eq2-g1-50' y='-5.84939'/>
+</g>
+</svg></div>
+<p>Properly align <em>huge</em> formulas vertically on a line:
+<svg class="m-math" style="vertical-align: -7.7pt;" height='21.2063pt' version='1.1' viewBox='0 -10.8498 46.8022 16.965' width='58.5028pt'>
+<title>LaTeX Math</title>
+<desc>
+\hat q^{-1} = \frac{\hat q^*}{|\hat q|^2}
+</desc>
+<defs>
+<path d='M2.77958 -0.842839C2.93499 -0.735243 2.94695 -0.735243 2.98879 -0.735243C3.09041 -0.735243 3.18605 -0.824907 3.18605 -0.944458S3.09639 -1.09988 3.04857 -1.12379C2.74371 -1.24932 2.43885 -1.37484 2.12802 -1.48842C2.73773 -1.73948 2.90511 -1.79925 3.0127 -1.84707C3.10237 -1.88892 3.18605 -1.9188 3.18605 -2.03836S3.09041 -2.24757 2.98879 -2.24757C2.94097 -2.24757 2.90511 -2.22366 2.85729 -2.19377L2.00847 -1.65579C2.01445 -1.73948 2.03836 -1.94869 2.04433 -2.02042C2.05629 -2.13998 2.10411 -2.49863 2.10411 -2.60025S2.01445 -2.77958 1.90685 -2.77958C1.80523 -2.77958 1.70959 -2.70187 1.70959 -2.60025C1.70959 -2.58829 1.76339 -2.05031 1.76936 -2.0264C1.77534 -1.96065 1.79925 -1.7335 1.80523 -1.65579L0.956413 -2.19377C0.908593 -2.22366 0.872727 -2.24757 0.824907 -2.24757C0.723288 -2.24757 0.627646 -2.15791 0.627646 -2.03836S0.71731 -1.88294 0.765131 -1.85903C1.06999 -1.7335 1.37484 -1.60797 1.68568 -1.4944C1.07597 -1.24334 0.908593 -1.18356 0.800996 -1.13574C0.711333 -1.0939 0.627646 -1.06401 0.627646 -0.944458S0.723288 -0.735243 0.824907 -0.735243C0.872727 -0.735243 0.974346 -0.800996 1.04608 -0.848817C1.12976 -0.896638 1.333 -1.02814 1.41071 -1.08194C1.60797 -1.20747 1.6797 -1.25529 1.80523 -1.32702C1.79925 -1.24334 1.77534 -1.03412 1.76936 -0.962391L1.70959 -0.382565C1.70959 -0.280946 1.80523 -0.203238 1.90685 -0.203238C2.01445 -0.203238 2.10411 -0.280946 2.10411 -0.382565C2.10411 -0.388543 2.05031 -0.926526 2.04433 -0.956413C2.03836 -1.02217 2.01445 -1.24932 2.00847 -1.32702L2.77958 -0.842839Z' id='eq3-g0-3'/>
+<path d='M3.79377 -3.28369C3.80174 -3.31557 3.80971 -3.36339 3.80971 -3.40324C3.80971 -3.45106 3.77783 -3.51482 3.7061 -3.51482C3.61046 -3.51482 3.28369 -3.20399 3.15616 -2.98082C3.06849 -3.15616 2.82939 -3.51482 2.33524 -3.51482C1.3868 -3.51482 0.342715 -2.40697 0.342715 -1.2274C0.342715 -0.398506 0.876712 0.0797011 1.49041 0.0797011C1.88892 0.0797011 2.21569 -0.151432 2.45479 -0.358655C2.44682 -0.334745 2.19975 0.669489 2.16787 0.804981C2.04832 1.26725 2.04832 1.27522 1.5462 1.28319C1.45056 1.28319 1.34695 1.28319 1.34695 1.43462C1.34695 1.48244 1.3868 1.5462 1.4665 1.5462C1.57011 1.5462 1.75342 1.53026 1.85704 1.52229H2.27945C2.91706 1.52229 3.06052 1.5462 3.12428 1.5462C3.15616 1.5462 3.27572 1.5462 3.27572 1.39477C3.27572 1.28319 3.16413 1.28319 3.06849 1.28319C2.68593 1.28319 2.68593 1.23537 2.68593 1.16364C2.68593 1.15567 2.68593 1.11582 2.71781 0.996264L3.79377 -3.28369ZM2.6142 -0.988294C2.58232 -0.868742 2.58232 -0.844832 2.44682 -0.6934C2.03238 -0.207223 1.68169 -0.143462 1.51432 -0.143462C1.1477 -0.143462 0.964384 -0.478207 0.964384 -0.892653C0.964384 -1.26725 1.17958 -2.12005 1.35492 -2.47073C1.58605 -2.95691 1.97659 -3.29166 2.34321 -3.29166C2.87721 -3.29166 3.0127 -2.66999 3.0127 -2.6142C3.0127 -2.58232 2.99676 -2.52653 2.98879 -2.48667L2.6142 -0.988294Z' id='eq3-g2-113'/>
+<path d='M5.57111 -1.80922C5.69863 -1.80922 5.87397 -1.80922 5.87397 -1.99253S5.69863 -2.17584 5.57111 -2.17584H1.00423C0.876712 -2.17584 0.70137 -2.17584 0.70137 -1.99253S0.876712 -1.80922 1.00423 -1.80922H5.57111Z' id='eq3-g1-0'/>
+<path d='M1.35492 -5.67472C1.35492 -5.80224 1.35492 -5.97758 1.17161 -5.97758S0.988294 -5.80224 0.988294 -5.67472V1.68966C0.988294 1.81719 0.988294 1.99253 1.17161 1.99253S1.35492 1.81719 1.35492 1.68966V-5.67472Z' id='eq3-g1-106'/>
+<path d='M8.06974 -3.87347C8.23711 -3.87347 8.4523 -3.87347 8.4523 -4.08867C8.4523 -4.31582 8.24907 -4.31582 8.06974 -4.31582H1.02814C0.860772 -4.31582 0.645579 -4.31582 0.645579 -4.10062C0.645579 -3.87347 0.848817 -3.87347 1.02814 -3.87347H8.06974ZM8.06974 -1.64981C8.23711 -1.64981 8.4523 -1.64981 8.4523 -1.86501C8.4523 -2.09215 8.24907 -2.09215 8.06974 -2.09215H1.02814C0.860772 -2.09215 0.645579 -2.09215 0.645579 -1.87696C0.645579 -1.64981 0.848817 -1.64981 1.02814 -1.64981H8.06974Z' id='eq3-g6-61'/>
+<path d='M2.92902 -8.29689L1.36289 -6.67098L1.55417 -6.49166L2.91706 -7.72304L4.29191 -6.49166L4.48319 -6.67098L2.92902 -8.29689Z' id='eq3-g6-94'/>
+<path d='M5.27223 -5.15268C5.27223 -5.21245 5.22441 -5.26027 5.16463 -5.26027C5.06899 -5.26027 4.60274 -4.82989 4.37559 -4.41146C4.1604 -4.94944 3.78979 -5.27223 3.27572 -5.27223C1.92478 -5.27223 0.466252 -3.52677 0.466252 -1.75741C0.466252 -0.573848 1.15965 0.119552 1.9726 0.119552C2.60623 0.119552 3.13225 -0.358655 3.38331 -0.633624L3.39527 -0.621669L2.94097 1.17161L2.83337 1.60199C2.72578 1.96065 2.54645 1.96065 1.98456 1.9726C1.85305 1.9726 1.7335 1.9726 1.7335 2.19975C1.7335 2.28344 1.80523 2.3193 1.88892 2.3193C2.05629 2.3193 2.27148 2.29539 2.43885 2.29539H3.65828C3.83761 2.29539 4.04085 2.3193 4.22017 2.3193C4.29191 2.3193 4.43537 2.3193 4.43537 2.09215C4.43537 1.9726 4.33973 1.9726 4.1604 1.9726C3.59851 1.9726 3.56264 1.88892 3.56264 1.79328C3.56264 1.7335 3.5746 1.72154 3.61046 1.56613L5.27223 -5.15268ZM3.58655 -1.42267C3.52677 -1.21943 3.52677 -1.19552 3.3594 -0.968369C3.09639 -0.633624 2.57036 -0.119552 2.00847 -0.119552C1.51831 -0.119552 1.24334 -0.561893 1.24334 -1.26725C1.24334 -1.92478 1.61395 -3.26376 1.8411 -3.76588C2.24757 -4.60274 2.80946 -5.03313 3.27572 -5.03313C4.06476 -5.03313 4.22017 -4.0528 4.22017 -3.95716C4.22017 -3.94521 4.18431 -3.78979 4.17235 -3.76588L3.58655 -1.42267Z' id='eq3-g3-113'/>
+<path d='M3.21594 -1.11781H2.99477C2.98281 -1.03412 2.92304 -0.639601 2.83337 -0.573848C2.79153 -0.537983 2.30735 -0.537983 2.22366 -0.537983H1.10585L1.87098 -1.15965C2.07422 -1.32105 2.60623 -1.70361 2.79153 -1.88294C2.97086 -2.06227 3.21594 -2.36712 3.21594 -2.79153C3.21594 -3.53873 2.54047 -3.97509 1.73948 -3.97509C0.968369 -3.97509 0.430386 -3.467 0.430386 -2.90511C0.430386 -2.60025 0.687422 -2.56438 0.753176 -2.56438C0.902615 -2.56438 1.07597 -2.67198 1.07597 -2.88717C1.07597 -3.01868 0.998257 -3.20996 0.735243 -3.20996C0.872727 -3.51482 1.23736 -3.74197 1.64981 -3.74197C2.27746 -3.74197 2.6122 -3.27572 2.6122 -2.79153C2.6122 -2.36712 2.33126 -1.93076 1.91283 -1.54819L0.496139 -0.251059C0.436364 -0.191283 0.430386 -0.185305 0.430386 0H3.03064L3.21594 -1.11781Z' id='eq3-g4-50'/>
+<path d='M2.50262 -5.07696C2.50262 -5.29215 2.48667 -5.30012 2.27148 -5.30012C1.94471 -4.98132 1.52229 -4.79004 0.765131 -4.79004V-4.52702C0.980324 -4.52702 1.41071 -4.52702 1.87298 -4.74222V-0.653549C1.87298 -0.358655 1.84907 -0.263014 1.09191 -0.263014H0.812951V0C1.13973 -0.0239103 1.82516 -0.0239103 2.18381 -0.0239103S3.23587 -0.0239103 3.56264 0V-0.263014H3.28369C2.52653 -0.263014 2.50262 -0.358655 2.50262 -0.653549V-5.07696Z' id='eq3-g5-49'/>
+<path d='M2.11208 -5.53126L0.980324 -4.46326L1.13973 -4.27198L2.11208 -5.06102L3.08443 -4.27198L3.24384 -4.45529L2.11208 -5.53126Z' id='eq3-g5-94'/>
+</defs>
+<g id='eq3-page1'>
+<use x='0.858581' xlink:href='#eq3-g6-94' y='0'/>
+<use x='0' xlink:href='#eq3-g3-113' y='0'/>
+<use x='5.61916' xlink:href='#eq3-g1-0' y='-4.33844'/>
+<use x='12.2057' xlink:href='#eq3-g5-49' y='-4.33844'/>
+<use x='20.2588' xlink:href='#eq3-g6-61' y='0'/>
+<use x='36.7711' xlink:href='#eq3-g5-94' y='-5.25582'/>
+<use x='36.1491' xlink:href='#eq3-g2-113' y='-5.25582'/>
+<use x='40.2158' xlink:href='#eq3-g0-3' y='-8.0686'/>
+<rect height='0.478187' width='12.9224' x='33.8798' y='-3.22789'/>
+<use x='33.8798' xlink:href='#eq3-g1-106' y='4.12263'/>
+<use x='36.8541' xlink:href='#eq3-g5-94' y='4.12263'/>
+<use x='36.2321' xlink:href='#eq3-g2-113' y='4.12263'/>
+<use x='40.2989' xlink:href='#eq3-g1-106' y='4.12263'/>
+<use x='42.6512' xlink:href='#eq3-g4-50' y='1.85337'/>
+</g>
+</svg>
+and make sure there's enough space for all the complex <svg class="m-math" style="vertical-align: -0.0pt;" height='10.2117pt' version='1.1' viewBox='0 -8.16937 12.6773 8.16937' width='15.8467pt'>
+<title>LaTeX Math</title>
+<desc>
+W
+</desc>
+<defs>
+<path d='M10.7955 -6.83836C11.0705 -7.30461 11.3335 -7.74695 12.0508 -7.81868C12.1584 -7.83064 12.266 -7.84259 12.266 -8.03387C12.266 -8.16538 12.1584 -8.16538 12.1225 -8.16538C12.0986 -8.16538 12.0149 -8.14147 11.2259 -8.14147C10.8672 -8.14147 10.4966 -8.16538 10.1499 -8.16538C10.0782 -8.16538 9.93474 -8.16538 9.93474 -7.93823C9.93474 -7.83064 10.0304 -7.81868 10.1021 -7.81868C10.3412 -7.80672 10.7238 -7.73499 10.7238 -7.36438C10.7238 -7.20897 10.676 -7.12528 10.5564 -6.92204L7.29265 -1.20747L6.86227 -7.43611C6.86227 -7.57958 6.99377 -7.80672 7.66326 -7.81868C7.81868 -7.81868 7.93823 -7.81868 7.93823 -8.04583C7.93823 -8.16538 7.81868 -8.16538 7.7589 -8.16538C7.34047 -8.16538 6.89813 -8.14147 6.46775 -8.14147H5.84608C5.66675 -8.14147 5.45156 -8.16538 5.27223 -8.16538C5.2005 -8.16538 5.05704 -8.16538 5.05704 -7.93823C5.05704 -7.81868 5.14072 -7.81868 5.34396 -7.81868C5.8939 -7.81868 5.8939 -7.80672 5.94172 -7.07746L5.97758 -6.64707L2.8812 -1.20747L2.43885 -7.37634C2.43885 -7.50785 2.43885 -7.80672 3.25181 -7.81868C3.38331 -7.81868 3.51482 -7.81868 3.51482 -8.03387C3.51482 -8.16538 3.40722 -8.16538 3.33549 -8.16538C2.91706 -8.16538 2.47472 -8.14147 2.04433 -8.14147H1.42267C1.24334 -8.14147 1.02814 -8.16538 0.848817 -8.16538C0.777086 -8.16538 0.633624 -8.16538 0.633624 -7.93823C0.633624 -7.81868 0.729265 -7.81868 0.896638 -7.81868C1.45853 -7.81868 1.47049 -7.74695 1.4944 -7.36438L2.02042 -0.0239103C2.03238 0.179328 2.04433 0.251059 2.1878 0.251059C2.30735 0.251059 2.33126 0.203238 2.43885 0.0239103L6.00149 -6.20473L6.44384 -0.0239103C6.45579 0.179328 6.46775 0.251059 6.61121 0.251059C6.73076 0.251059 6.76663 0.191283 6.86227 0.0239103L10.7955 -6.83836Z' id='eq4-g0-87'/>
+</defs>
+<g id='eq4-page1'>
+<use x='0' xlink:href='#eq4-g0-87' y='0'/>
+</g>
+</svg> things between
+the lines <svg class="m-math" style="vertical-align: -6.7pt;" height='18.2261pt' version='1.1' viewBox='0 -9.24319 67.6716 14.5809' width='84.5895pt'>
+<title>LaTeX Math</title>
+<desc>
+W = \sum_{i=0}^{n} \frac{w_i}{h_i}
+</desc>
+<defs>
+<path d='M5.03313 6.38406L0.789041 11.6324C0.6934 11.7519 0.681445 11.7758 0.681445 11.8237C0.681445 11.9552 0.789041 11.9552 1.00423 11.9552H10.9151L11.9432 8.97833H11.6443C11.3455 9.87497 10.5445 10.6042 9.52827 10.9509C9.33699 11.0107 8.51208 11.2976 6.75467 11.2976H1.67372L5.82217 6.16887C5.90585 6.06127 5.92976 6.0254 5.92976 5.97758S5.91781 5.91781 5.84608 5.81021L1.96065 0.478207H6.69489C8.05778 0.478207 10.8075 0.561893 11.6443 2.79751H11.9432L10.9151 0H1.00423C0.681445 0 0.669489 0.0119552 0.669489 0.382565L5.03313 6.38406Z' id='eq5-g0-80'/>
+<path d='M10.7955 -6.83836C11.0705 -7.30461 11.3335 -7.74695 12.0508 -7.81868C12.1584 -7.83064 12.266 -7.84259 12.266 -8.03387C12.266 -8.16538 12.1584 -8.16538 12.1225 -8.16538C12.0986 -8.16538 12.0149 -8.14147 11.2259 -8.14147C10.8672 -8.14147 10.4966 -8.16538 10.1499 -8.16538C10.0782 -8.16538 9.93474 -8.16538 9.93474 -7.93823C9.93474 -7.83064 10.0304 -7.81868 10.1021 -7.81868C10.3412 -7.80672 10.7238 -7.73499 10.7238 -7.36438C10.7238 -7.20897 10.676 -7.12528 10.5564 -6.92204L7.29265 -1.20747L6.86227 -7.43611C6.86227 -7.57958 6.99377 -7.80672 7.66326 -7.81868C7.81868 -7.81868 7.93823 -7.81868 7.93823 -8.04583C7.93823 -8.16538 7.81868 -8.16538 7.7589 -8.16538C7.34047 -8.16538 6.89813 -8.14147 6.46775 -8.14147H5.84608C5.66675 -8.14147 5.45156 -8.16538 5.27223 -8.16538C5.2005 -8.16538 5.05704 -8.16538 5.05704 -7.93823C5.05704 -7.81868 5.14072 -7.81868 5.34396 -7.81868C5.8939 -7.81868 5.8939 -7.80672 5.94172 -7.07746L5.97758 -6.64707L2.8812 -1.20747L2.43885 -7.37634C2.43885 -7.50785 2.43885 -7.80672 3.25181 -7.81868C3.38331 -7.81868 3.51482 -7.81868 3.51482 -8.03387C3.51482 -8.16538 3.40722 -8.16538 3.33549 -8.16538C2.91706 -8.16538 2.47472 -8.14147 2.04433 -8.14147H1.42267C1.24334 -8.14147 1.02814 -8.16538 0.848817 -8.16538C0.777086 -8.16538 0.633624 -8.16538 0.633624 -7.93823C0.633624 -7.81868 0.729265 -7.81868 0.896638 -7.81868C1.45853 -7.81868 1.47049 -7.74695 1.4944 -7.36438L2.02042 -0.0239103C2.03238 0.179328 2.04433 0.251059 2.1878 0.251059C2.30735 0.251059 2.33126 0.203238 2.43885 0.0239103L6.00149 -6.20473L6.44384 -0.0239103C6.45579 0.179328 6.46775 0.251059 6.61121 0.251059C6.73076 0.251059 6.76663 0.191283 6.86227 0.0239103L10.7955 -6.83836Z' id='eq5-g3-87'/>
+<path d='M2.32727 -5.29215C2.33524 -5.30809 2.35915 -5.41171 2.35915 -5.41968C2.35915 -5.45953 2.32727 -5.53126 2.23163 -5.53126C2.19975 -5.53126 1.95268 -5.50735 1.76936 -5.49141L1.32304 -5.45953C1.1477 -5.44359 1.068 -5.43562 1.068 -5.29215C1.068 -5.18057 1.17958 -5.18057 1.27522 -5.18057C1.65778 -5.18057 1.65778 -5.13275 1.65778 -5.06102C1.65778 -5.03711 1.65778 -5.02117 1.61793 -4.87771L0.486177 -0.342715C0.454296 -0.223163 0.454296 -0.175342 0.454296 -0.167372C0.454296 -0.0318804 0.565878 0.0797011 0.71731 0.0797011C0.844832 0.0797011 0.956413 0 1.02017 -0.103611C1.04408 -0.151432 1.10785 -0.406476 1.1477 -0.565878L1.33101 -1.27522C1.35492 -1.39477 1.43462 -1.69763 1.45853 -1.81719C1.57808 -2.27945 1.57808 -2.29539 1.75342 -2.55044C2.02441 -2.94097 2.399 -3.29166 2.933 -3.29166C3.21993 -3.29166 3.3873 -3.12428 3.3873 -2.74969C3.3873 -2.31133 3.05255 -1.40274 2.90112 -1.0122C2.79751 -0.749191 2.79751 -0.70137 2.79751 -0.597758C2.79751 -0.143462 3.1721 0.0797011 3.51482 0.0797011C4.29589 0.0797011 4.62267 -1.03611 4.62267 -1.13973C4.62267 -1.21943 4.5589 -1.24334 4.50311 -1.24334C4.40747 -1.24334 4.39153 -1.18755 4.36762 -1.10785C4.17634 -0.454296 3.84159 -0.143462 3.53873 -0.143462C3.41121 -0.143462 3.34745 -0.223163 3.34745 -0.406476S3.41121 -0.765131 3.49091 -0.964384C3.61046 -1.26725 3.96115 -2.18381 3.96115 -2.63014C3.96115 -3.2279 3.5467 -3.51482 2.97285 -3.51482C2.52653 -3.51482 2.10411 -3.32354 1.73748 -2.90112L2.32727 -5.29215Z' id='eq5-g2-104'/>
+<path d='M2.37509 -4.97335C2.37509 -5.14869 2.24757 -5.27621 2.06426 -5.27621C1.85704 -5.27621 1.6259 -5.08493 1.6259 -4.84583C1.6259 -4.67049 1.75342 -4.54296 1.93674 -4.54296C2.14396 -4.54296 2.37509 -4.73425 2.37509 -4.97335ZM1.21146 -2.04832L0.781071 -0.948443C0.74122 -0.828892 0.70137 -0.73325 0.70137 -0.597758C0.70137 -0.207223 1.00423 0.0797011 1.42665 0.0797011C2.19975 0.0797011 2.52653 -1.03611 2.52653 -1.13973C2.52653 -1.21943 2.46276 -1.24334 2.40697 -1.24334C2.31133 -1.24334 2.29539 -1.18755 2.27148 -1.10785C2.08817 -0.470237 1.76139 -0.143462 1.44259 -0.143462C1.34695 -0.143462 1.25131 -0.183313 1.25131 -0.398506C1.25131 -0.589788 1.3071 -0.73325 1.41071 -0.980324C1.49041 -1.19552 1.57011 -1.41071 1.65778 -1.6259L1.90486 -2.27148C1.97659 -2.45479 2.07223 -2.70187 2.07223 -2.83736C2.07223 -3.23587 1.75342 -3.51482 1.34695 -3.51482C0.573848 -3.51482 0.239103 -2.399 0.239103 -2.29539C0.239103 -2.22366 0.294894 -2.19178 0.358655 -2.19178C0.462267 -2.19178 0.470237 -2.2396 0.494147 -2.3193C0.71731 -3.07646 1.08394 -3.29166 1.32304 -3.29166C1.43462 -3.29166 1.51432 -3.25181 1.51432 -3.02864C1.51432 -2.94894 1.50635 -2.83736 1.42665 -2.59826L1.21146 -2.04832Z' id='eq5-g2-105'/>
+<path d='M1.59402 -1.3071C1.61793 -1.42665 1.69763 -1.72951 1.72154 -1.84907C1.83313 -2.27945 1.83313 -2.28742 2.01644 -2.55044C2.27945 -2.94097 2.65405 -3.29166 3.18804 -3.29166C3.47497 -3.29166 3.64234 -3.12428 3.64234 -2.74969C3.64234 -2.31133 3.3076 -1.40274 3.15616 -1.0122C3.05255 -0.749191 3.05255 -0.70137 3.05255 -0.597758C3.05255 -0.143462 3.42715 0.0797011 3.76986 0.0797011C4.55093 0.0797011 4.87771 -1.03611 4.87771 -1.13973C4.87771 -1.21943 4.81395 -1.24334 4.75816 -1.24334C4.66252 -1.24334 4.64658 -1.18755 4.62267 -1.10785C4.43138 -0.454296 4.09664 -0.143462 3.79377 -0.143462C3.66625 -0.143462 3.60249 -0.223163 3.60249 -0.406476S3.66625 -0.765131 3.74595 -0.964384C3.8655 -1.26725 4.21619 -2.18381 4.21619 -2.63014C4.21619 -3.2279 3.80174 -3.51482 3.2279 -3.51482C2.58232 -3.51482 2.16787 -3.12428 1.93674 -2.82142C1.88095 -3.25978 1.53026 -3.51482 1.12379 -3.51482C0.836862 -3.51482 0.637609 -3.33151 0.510087 -3.08443C0.318804 -2.70984 0.239103 -2.31133 0.239103 -2.29539C0.239103 -2.22366 0.294894 -2.19178 0.358655 -2.19178C0.462267 -2.19178 0.470237 -2.22366 0.526027 -2.43088C0.621669 -2.82142 0.765131 -3.29166 1.09988 -3.29166C1.3071 -3.29166 1.35492 -3.0924 1.35492 -2.91706C1.35492 -2.7736 1.31507 -2.62217 1.25131 -2.35915C1.23537 -2.29539 1.11582 -1.82516 1.08394 -1.71357L0.789041 -0.518057C0.757161 -0.398506 0.70934 -0.199253 0.70934 -0.167372C0.70934 0.0159402 0.860772 0.0797011 0.964384 0.0797011C1.10785 0.0797011 1.2274 -0.0159402 1.28319 -0.111582C1.3071 -0.159402 1.37086 -0.430386 1.41071 -0.597758L1.59402 -1.3071Z' id='eq5-g2-110'/>
+<path d='M3.90535 -2.60623C3.95318 -2.79751 4.04085 -3.14022 4.04085 -3.18804C4.04085 -3.3873 3.88144 -3.43512 3.7858 -3.43512C3.50685 -3.43512 3.45903 -3.23587 3.36339 -2.86924C3.25978 -2.45479 3.2279 -2.30336 3.10834 -1.84907C3.03661 -1.5462 2.94097 -1.17161 2.94097 -0.940473C2.94097 -0.900623 2.94894 -0.836862 2.94894 -0.797011C2.94894 -0.789041 2.73375 -0.143462 2.20772 -0.143462C1.88892 -0.143462 1.53026 -0.270984 1.53026 -0.860772C1.53026 -1.25131 1.71357 -1.76936 1.96862 -2.41494C2.04832 -2.62217 2.07223 -2.6939 2.07223 -2.83736C2.07223 -3.27572 1.72154 -3.51482 1.35492 -3.51482C0.565878 -3.51482 0.239103 -2.39103 0.239103 -2.29539C0.239103 -2.22366 0.294894 -2.19178 0.358655 -2.19178C0.462267 -2.19178 0.470237 -2.2396 0.494147 -2.3193C0.70137 -3.0127 1.04408 -3.29166 1.33101 -3.29166C1.45056 -3.29166 1.52229 -3.21196 1.52229 -3.02864C1.52229 -2.86127 1.45853 -2.67796 1.40274 -2.5345C1.09191 -1.73748 0.948443 -1.31507 0.948443 -0.964384C0.948443 -0.151432 1.61793 0.0797011 2.17584 0.0797011C2.30336 0.0797011 2.71781 0.0797011 3.04458 -0.446326C3.26775 -0.0159402 3.76986 0.0797011 4.11258 0.0797011C4.82989 0.0797011 5.16463 -0.589788 5.30809 -0.868742C5.56314 -1.3868 5.84209 -2.43088 5.84209 -2.90112C5.84209 -3.52279 5.48344 -3.52279 5.45156 -3.52279C5.26027 -3.52279 5.03711 -3.31557 5.03711 -3.10834C5.03711 -2.99676 5.08493 -2.933 5.14072 -2.89315C5.22839 -2.81345 5.4675 -2.6142 5.4675 -2.22366C5.4675 -1.99253 5.24433 -1.23537 5.02117 -0.820922C4.79801 -0.422416 4.53499 -0.143462 4.13649 -0.143462C3.7858 -0.143462 3.51482 -0.326775 3.51482 -0.836862C3.51482 -1.04408 3.57061 -1.26725 3.68219 -1.71357L3.90535 -2.60623Z' id='eq5-g2-119'/>
+<path d='M2.0802 -3.73001C2.0802 -3.87347 1.9726 -3.96912 1.83512 -3.96912C1.67372 -3.96912 1.50037 -3.8137 1.50037 -3.64035C1.50037 -3.49091 1.60797 -3.40125 1.73948 -3.40125C1.93076 -3.40125 2.0802 -3.58057 2.0802 -3.73001ZM1.72154 -1.64384C1.74545 -1.70361 1.79925 -1.84707 1.82316 -1.90087C1.8411 -1.95467 1.86501 -2.01445 1.86501 -2.11606C1.86501 -2.45081 1.56613 -2.63611 1.26725 -2.63611C0.657534 -2.63611 0.364633 -1.84707 0.364633 -1.71557C0.364633 -1.68568 0.388543 -1.63188 0.472229 -1.63188S0.573848 -1.66775 0.591781 -1.72154C0.759153 -2.30137 1.07597 -2.43885 1.24334 -2.43885C1.36289 -2.43885 1.40473 -2.36115 1.40473 -2.22366C1.40473 -2.10411 1.36887 -2.01445 1.35691 -1.9726L1.04608 -1.20747C0.974346 -1.03412 0.974346 -1.02217 0.896638 -0.818929C0.818929 -0.639601 0.789041 -0.561893 0.789041 -0.460274C0.789041 -0.155417 1.06401 0.0597758 1.39278 0.0597758C1.99651 0.0597758 2.29539 -0.729265 2.29539 -0.860772C2.29539 -0.872727 2.28941 -0.944458 2.18182 -0.944458C2.09813 -0.944458 2.09215 -0.91457 2.05629 -0.800996C1.96065 -0.496139 1.71557 -0.137484 1.41071 -0.137484C1.30311 -0.137484 1.24932 -0.209215 1.24932 -0.352677C1.24932 -0.472229 1.28518 -0.561893 1.36289 -0.747198L1.72154 -1.64384Z' id='eq5-g1-105'/>
+<path d='M8.06974 -3.87347C8.23711 -3.87347 8.4523 -3.87347 8.4523 -4.08867C8.4523 -4.31582 8.24907 -4.31582 8.06974 -4.31582H1.02814C0.860772 -4.31582 0.645579 -4.31582 0.645579 -4.10062C0.645579 -3.87347 0.848817 -3.87347 1.02814 -3.87347H8.06974ZM8.06974 -1.64981C8.23711 -1.64981 8.4523 -1.64981 8.4523 -1.86501C8.4523 -2.09215 8.24907 -2.09215 8.06974 -2.09215H1.02814C0.860772 -2.09215 0.645579 -2.09215 0.645579 -1.87696C0.645579 -1.64981 0.848817 -1.64981 1.02814 -1.64981H8.06974Z' id='eq5-g5-61'/>
+<path d='M3.89738 -2.54247C3.89738 -3.39527 3.80971 -3.91333 3.5467 -4.42341C3.19601 -5.12478 2.55044 -5.30012 2.11208 -5.30012C1.10785 -5.30012 0.74122 -4.55093 0.629639 -4.32777C0.342715 -3.74595 0.326775 -2.95691 0.326775 -2.54247C0.326775 -2.01644 0.350685 -1.21146 0.73325 -0.573848C1.09988 0.0159402 1.68966 0.167372 2.11208 0.167372C2.49465 0.167372 3.18007 0.0478207 3.57858 -0.74122C3.87347 -1.31507 3.89738 -2.02441 3.89738 -2.54247ZM2.11208 -0.0557908C1.8411 -0.0557908 1.29116 -0.183313 1.12379 -1.02017C1.03611 -1.47447 1.03611 -2.22366 1.03611 -2.63811C1.03611 -3.18804 1.03611 -3.74595 1.12379 -4.18431C1.29116 -4.99726 1.91283 -5.07696 2.11208 -5.07696C2.38306 -5.07696 2.933 -4.94147 3.0924 -4.21619C3.18804 -3.77783 3.18804 -3.18007 3.18804 -2.63811C3.18804 -2.16787 3.18804 -1.45056 3.0924 -1.00423C2.92503 -0.167372 2.37509 -0.0557908 2.11208 -0.0557908Z' id='eq5-g4-48'/>
+<path d='M5.82615 -2.65405C5.9457 -2.65405 6.10511 -2.65405 6.10511 -2.83736S5.91382 -3.02067 5.79427 -3.02067H0.781071C0.661519 -3.02067 0.470237 -3.02067 0.470237 -2.83736S0.629639 -2.65405 0.749191 -2.65405H5.82615ZM5.79427 -0.964384C5.91382 -0.964384 6.10511 -0.964384 6.10511 -1.1477S5.9457 -1.33101 5.82615 -1.33101H0.749191C0.629639 -1.33101 0.470237 -1.33101 0.470237 -1.1477S0.661519 -0.964384 0.781071 -0.964384H5.79427Z' id='eq5-g4-61'/>
+</defs>
+<g id='eq5-page1'>
+<use x='0' xlink:href='#eq5-g3-87' y='0'/>
+<use x='15.9982' xlink:href='#eq5-g5-61' y='0'/>
+<use x='28.4237' xlink:href='#eq5-g0-80' y='-8.96645'/>
+<use x='41.043' xlink:href='#eq5-g2-110' y='-5.81161'/>
+<use x='41.043' xlink:href='#eq5-g2-105' y='3.487'/>
+<use x='43.9262' xlink:href='#eq5-g4-61' y='3.487'/>
+<use x='50.5127' xlink:href='#eq5-g4-48' y='3.487'/>
+<use x='58.433' xlink:href='#eq5-g2-119' y='-4.92115'/>
+<use x='64.5098' xlink:href='#eq5-g1-105' y='-3.70607'/>
+<rect height='0.478187' width='9.23859' x='58.433' y='-3.22789'/>
+<use x='59.0315' xlink:href='#eq5-g2-104' y='4.12263'/>
+<use x='63.9114' xlink:href='#eq5-g1-105' y='5.33771'/>
+</g>
+</svg> because
+<svg class="m-math" style="vertical-align: -4.4pt;" height='15.9127pt' version='1.1' viewBox='0 -9.24319 63.4496 12.7302' width='79.312pt'>
+<title>LaTeX Math</title>
+<desc>
+Y = \sum_{i=0}^{n} B
+</desc>
+<defs>
+<path d='M5.03313 6.38406L0.789041 11.6324C0.6934 11.7519 0.681445 11.7758 0.681445 11.8237C0.681445 11.9552 0.789041 11.9552 1.00423 11.9552H10.9151L11.9432 8.97833H11.6443C11.3455 9.87497 10.5445 10.6042 9.52827 10.9509C9.33699 11.0107 8.51208 11.2976 6.75467 11.2976H1.67372L5.82217 6.16887C5.90585 6.06127 5.92976 6.0254 5.92976 5.97758S5.91781 5.91781 5.84608 5.81021L1.96065 0.478207H6.69489C8.05778 0.478207 10.8075 0.561893 11.6443 2.79751H11.9432L10.9151 0H1.00423C0.681445 0 0.669489 0.0119552 0.669489 0.382565L5.03313 6.38406Z' id='eq6-g0-80'/>
+<path d='M2.37509 -4.97335C2.37509 -5.14869 2.24757 -5.27621 2.06426 -5.27621C1.85704 -5.27621 1.6259 -5.08493 1.6259 -4.84583C1.6259 -4.67049 1.75342 -4.54296 1.93674 -4.54296C2.14396 -4.54296 2.37509 -4.73425 2.37509 -4.97335ZM1.21146 -2.04832L0.781071 -0.948443C0.74122 -0.828892 0.70137 -0.73325 0.70137 -0.597758C0.70137 -0.207223 1.00423 0.0797011 1.42665 0.0797011C2.19975 0.0797011 2.52653 -1.03611 2.52653 -1.13973C2.52653 -1.21943 2.46276 -1.24334 2.40697 -1.24334C2.31133 -1.24334 2.29539 -1.18755 2.27148 -1.10785C2.08817 -0.470237 1.76139 -0.143462 1.44259 -0.143462C1.34695 -0.143462 1.25131 -0.183313 1.25131 -0.398506C1.25131 -0.589788 1.3071 -0.73325 1.41071 -0.980324C1.49041 -1.19552 1.57011 -1.41071 1.65778 -1.6259L1.90486 -2.27148C1.97659 -2.45479 2.07223 -2.70187 2.07223 -2.83736C2.07223 -3.23587 1.75342 -3.51482 1.34695 -3.51482C0.573848 -3.51482 0.239103 -2.399 0.239103 -2.29539C0.239103 -2.22366 0.294894 -2.19178 0.358655 -2.19178C0.462267 -2.19178 0.470237 -2.2396 0.494147 -2.3193C0.71731 -3.07646 1.08394 -3.29166 1.32304 -3.29166C1.43462 -3.29166 1.51432 -3.25181 1.51432 -3.02864C1.51432 -2.94894 1.50635 -2.83736 1.42665 -2.59826L1.21146 -2.04832Z' id='eq6-g1-105'/>
+<path d='M1.59402 -1.3071C1.61793 -1.42665 1.69763 -1.72951 1.72154 -1.84907C1.83313 -2.27945 1.83313 -2.28742 2.01644 -2.55044C2.27945 -2.94097 2.65405 -3.29166 3.18804 -3.29166C3.47497 -3.29166 3.64234 -3.12428 3.64234 -2.74969C3.64234 -2.31133 3.3076 -1.40274 3.15616 -1.0122C3.05255 -0.749191 3.05255 -0.70137 3.05255 -0.597758C3.05255 -0.143462 3.42715 0.0797011 3.76986 0.0797011C4.55093 0.0797011 4.87771 -1.03611 4.87771 -1.13973C4.87771 -1.21943 4.81395 -1.24334 4.75816 -1.24334C4.66252 -1.24334 4.64658 -1.18755 4.62267 -1.10785C4.43138 -0.454296 4.09664 -0.143462 3.79377 -0.143462C3.66625 -0.143462 3.60249 -0.223163 3.60249 -0.406476S3.66625 -0.765131 3.74595 -0.964384C3.8655 -1.26725 4.21619 -2.18381 4.21619 -2.63014C4.21619 -3.2279 3.80174 -3.51482 3.2279 -3.51482C2.58232 -3.51482 2.16787 -3.12428 1.93674 -2.82142C1.88095 -3.25978 1.53026 -3.51482 1.12379 -3.51482C0.836862 -3.51482 0.637609 -3.33151 0.510087 -3.08443C0.318804 -2.70984 0.239103 -2.31133 0.239103 -2.29539C0.239103 -2.22366 0.294894 -2.19178 0.358655 -2.19178C0.462267 -2.19178 0.470237 -2.22366 0.526027 -2.43088C0.621669 -2.82142 0.765131 -3.29166 1.09988 -3.29166C1.3071 -3.29166 1.35492 -3.0924 1.35492 -2.91706C1.35492 -2.7736 1.31507 -2.62217 1.25131 -2.35915C1.23537 -2.29539 1.11582 -1.82516 1.08394 -1.71357L0.789041 -0.518057C0.757161 -0.398506 0.70934 -0.199253 0.70934 -0.167372C0.70934 0.0159402 0.860772 0.0797011 0.964384 0.0797011C1.10785 0.0797011 1.2274 -0.0159402 1.28319 -0.111582C1.3071 -0.159402 1.37086 -0.430386 1.41071 -0.597758L1.59402 -1.3071Z' id='eq6-g1-110'/>
+<path d='M4.37559 -7.35243C4.48319 -7.79477 4.53101 -7.81868 4.99726 -7.81868H6.55143C7.90237 -7.81868 7.90237 -6.67098 7.90237 -6.56339C7.90237 -5.59502 6.934 -4.36364 5.35592 -4.36364H3.63437L4.37559 -7.35243ZM6.39601 -4.268C7.69913 -4.5071 8.88269 -5.41569 8.88269 -6.51557C8.88269 -7.44807 8.05778 -8.16538 6.70685 -8.16538H2.86924C2.64209 -8.16538 2.5345 -8.16538 2.5345 -7.93823C2.5345 -7.81868 2.64209 -7.81868 2.82142 -7.81868C3.55068 -7.81868 3.55068 -7.72304 3.55068 -7.59153C3.55068 -7.56762 3.55068 -7.49589 3.50286 -7.31656L1.88892 -0.884682C1.78132 -0.466252 1.75741 -0.3467 0.920548 -0.3467C0.6934 -0.3467 0.573848 -0.3467 0.573848 -0.131507C0.573848 0 0.645579 0 0.884682 0H4.98531C6.81445 0 8.22516 -1.3868 8.22516 -2.59427C8.22516 -3.5746 7.36438 -4.17235 6.39601 -4.268ZM4.69838 -0.3467H3.08443C2.91706 -0.3467 2.89315 -0.3467 2.82142 -0.358655C2.68991 -0.37061 2.67796 -0.394521 2.67796 -0.490162C2.67796 -0.573848 2.70187 -0.645579 2.72578 -0.753176L3.56264 -4.12453H5.81021C7.22092 -4.12453 7.22092 -2.80946 7.22092 -2.71382C7.22092 -1.56613 6.18082 -0.3467 4.69838 -0.3467Z' id='eq6-g2-66'/>
+<path d='M7.02964 -6.83836L7.30461 -7.11333C7.83064 -7.65131 8.27298 -7.78281 8.69141 -7.81868C8.82291 -7.83064 8.93051 -7.84259 8.93051 -8.04583C8.93051 -8.16538 8.81096 -8.16538 8.78705 -8.16538C8.64359 -8.16538 8.48817 -8.14147 8.34471 -8.14147H7.85455C7.50785 -8.14147 7.13724 -8.16538 6.80249 -8.16538C6.7188 -8.16538 6.5873 -8.16538 6.5873 -7.93823C6.5873 -7.83064 6.70685 -7.81868 6.74271 -7.81868C7.10137 -7.79477 7.10137 -7.61544 7.10137 -7.54371C7.10137 -7.4122 7.00573 -7.23288 6.76663 -6.95791L3.9213 -3.69415L2.57036 -7.32852C2.49863 -7.49589 2.49863 -7.5198 2.49863 -7.54371C2.49863 -7.79477 2.98879 -7.81868 3.13225 -7.81868S3.40722 -7.81868 3.40722 -8.03387C3.40722 -8.16538 3.29963 -8.16538 3.2279 -8.16538C3.02466 -8.16538 2.78555 -8.14147 2.58232 -8.14147H1.25529C1.0401 -8.14147 0.812951 -8.16538 0.609714 -8.16538C0.526027 -8.16538 0.394521 -8.16538 0.394521 -7.93823C0.394521 -7.81868 0.502117 -7.81868 0.681445 -7.81868C1.26725 -7.81868 1.37484 -7.71108 1.48244 -7.43611L2.96488 -3.45504C2.97684 -3.41918 3.0127 -3.28767 3.0127 -3.25181S2.4269 -0.860772 2.39103 -0.74122C2.29539 -0.418431 2.17584 -0.358655 1.41071 -0.3467C1.20747 -0.3467 1.11183 -0.3467 1.11183 -0.119552C1.11183 0 1.24334 0 1.2792 0C1.4944 0 1.74545 -0.0239103 1.9726 -0.0239103H3.38331C3.59851 -0.0239103 3.84956 0 4.06476 0C4.14844 0 4.29191 0 4.29191 -0.215193C4.29191 -0.3467 4.20822 -0.3467 4.00498 -0.3467C3.26376 -0.3467 3.26376 -0.430386 3.26376 -0.561893C3.26376 -0.645579 3.3594 -1.02814 3.41918 -1.26725L3.84956 -2.98879C3.9213 -3.23985 3.9213 -3.26376 4.02889 -3.38331L7.02964 -6.83836Z' id='eq6-g2-89'/>
+<path d='M8.06974 -3.87347C8.23711 -3.87347 8.4523 -3.87347 8.4523 -4.08867C8.4523 -4.31582 8.24907 -4.31582 8.06974 -4.31582H1.02814C0.860772 -4.31582 0.645579 -4.31582 0.645579 -4.10062C0.645579 -3.87347 0.848817 -3.87347 1.02814 -3.87347H8.06974ZM8.06974 -1.64981C8.23711 -1.64981 8.4523 -1.64981 8.4523 -1.86501C8.4523 -2.09215 8.24907 -2.09215 8.06974 -2.09215H1.02814C0.860772 -2.09215 0.645579 -2.09215 0.645579 -1.87696C0.645579 -1.64981 0.848817 -1.64981 1.02814 -1.64981H8.06974Z' id='eq6-g4-61'/>
+<path d='M3.89738 -2.54247C3.89738 -3.39527 3.80971 -3.91333 3.5467 -4.42341C3.19601 -5.12478 2.55044 -5.30012 2.11208 -5.30012C1.10785 -5.30012 0.74122 -4.55093 0.629639 -4.32777C0.342715 -3.74595 0.326775 -2.95691 0.326775 -2.54247C0.326775 -2.01644 0.350685 -1.21146 0.73325 -0.573848C1.09988 0.0159402 1.68966 0.167372 2.11208 0.167372C2.49465 0.167372 3.18007 0.0478207 3.57858 -0.74122C3.87347 -1.31507 3.89738 -2.02441 3.89738 -2.54247ZM2.11208 -0.0557908C1.8411 -0.0557908 1.29116 -0.183313 1.12379 -1.02017C1.03611 -1.47447 1.03611 -2.22366 1.03611 -2.63811C1.03611 -3.18804 1.03611 -3.74595 1.12379 -4.18431C1.29116 -4.99726 1.91283 -5.07696 2.11208 -5.07696C2.38306 -5.07696 2.933 -4.94147 3.0924 -4.21619C3.18804 -3.77783 3.18804 -3.18007 3.18804 -2.63811C3.18804 -2.16787 3.18804 -1.45056 3.0924 -1.00423C2.92503 -0.167372 2.37509 -0.0557908 2.11208 -0.0557908Z' id='eq6-g3-48'/>
+<path d='M5.82615 -2.65405C5.9457 -2.65405 6.10511 -2.65405 6.10511 -2.83736S5.91382 -3.02067 5.79427 -3.02067H0.781071C0.661519 -3.02067 0.470237 -3.02067 0.470237 -2.83736S0.629639 -2.65405 0.749191 -2.65405H5.82615ZM5.79427 -0.964384C5.91382 -0.964384 6.10511 -0.964384 6.10511 -1.1477S5.9457 -1.33101 5.82615 -1.33101H0.749191C0.629639 -1.33101 0.470237 -1.33101 0.470237 -1.1477S0.661519 -0.964384 0.781071 -0.964384H5.79427Z' id='eq6-g3-61'/>
+</defs>
+<g id='eq6-page1'>
+<use x='0' xlink:href='#eq6-g2-89' y='0'/>
+<use x='12.714' xlink:href='#eq6-g4-61' y='0'/>
+<use x='25.1395' xlink:href='#eq6-g0-80' y='-8.96645'/>
+<use x='37.7589' xlink:href='#eq6-g1-110' y='-5.81161'/>
+<use x='37.7589' xlink:href='#eq6-g1-105' y='3.487'/>
+<use x='40.642' xlink:href='#eq6-g3-61' y='3.487'/>
+<use x='47.2285' xlink:href='#eq6-g3-48' y='3.487'/>
+<use x='53.9533' xlink:href='#eq6-g2-66' y='0'/>
+</g>
+</svg></p>
+<p>The <code class="m-code"><span class="k">\cfrac</span></code> thing doesn't align well: <svg class="m-math" style="vertical-align: -6.3pt;" height='30.1719pt' version='1.1' viewBox='0 -14.1436 70.1821 24.1375' width='87.7276pt'>
+<title>LaTeX Math</title>
+<desc>
+W = \sum_{i=0}^{n} \cfrac{w_i}{h_i}
+</desc>
+<defs>
+<path d='M5.03313 6.38406L0.789041 11.6324C0.6934 11.7519 0.681445 11.7758 0.681445 11.8237C0.681445 11.9552 0.789041 11.9552 1.00423 11.9552H10.9151L11.9432 8.97833H11.6443C11.3455 9.87497 10.5445 10.6042 9.52827 10.9509C9.33699 11.0107 8.51208 11.2976 6.75467 11.2976H1.67372L5.82217 6.16887C5.90585 6.06127 5.92976 6.0254 5.92976 5.97758S5.91781 5.91781 5.84608 5.81021L1.96065 0.478207H6.69489C8.05778 0.478207 10.8075 0.561893 11.6443 2.79751H11.9432L10.9151 0H1.00423C0.681445 0 0.669489 0.0119552 0.669489 0.382565L5.03313 6.38406Z' id='eq7-g0-80'/>
+<path d='M2.37509 -4.97335C2.37509 -5.14869 2.24757 -5.27621 2.06426 -5.27621C1.85704 -5.27621 1.6259 -5.08493 1.6259 -4.84583C1.6259 -4.67049 1.75342 -4.54296 1.93674 -4.54296C2.14396 -4.54296 2.37509 -4.73425 2.37509 -4.97335ZM1.21146 -2.04832L0.781071 -0.948443C0.74122 -0.828892 0.70137 -0.73325 0.70137 -0.597758C0.70137 -0.207223 1.00423 0.0797011 1.42665 0.0797011C2.19975 0.0797011 2.52653 -1.03611 2.52653 -1.13973C2.52653 -1.21943 2.46276 -1.24334 2.40697 -1.24334C2.31133 -1.24334 2.29539 -1.18755 2.27148 -1.10785C2.08817 -0.470237 1.76139 -0.143462 1.44259 -0.143462C1.34695 -0.143462 1.25131 -0.183313 1.25131 -0.398506C1.25131 -0.589788 1.3071 -0.73325 1.41071 -0.980324C1.49041 -1.19552 1.57011 -1.41071 1.65778 -1.6259L1.90486 -2.27148C1.97659 -2.45479 2.07223 -2.70187 2.07223 -2.83736C2.07223 -3.23587 1.75342 -3.51482 1.34695 -3.51482C0.573848 -3.51482 0.239103 -2.399 0.239103 -2.29539C0.239103 -2.22366 0.294894 -2.19178 0.358655 -2.19178C0.462267 -2.19178 0.470237 -2.2396 0.494147 -2.3193C0.71731 -3.07646 1.08394 -3.29166 1.32304 -3.29166C1.43462 -3.29166 1.51432 -3.25181 1.51432 -3.02864C1.51432 -2.94894 1.50635 -2.83736 1.42665 -2.59826L1.21146 -2.04832Z' id='eq7-g1-105'/>
+<path d='M1.59402 -1.3071C1.61793 -1.42665 1.69763 -1.72951 1.72154 -1.84907C1.83313 -2.27945 1.83313 -2.28742 2.01644 -2.55044C2.27945 -2.94097 2.65405 -3.29166 3.18804 -3.29166C3.47497 -3.29166 3.64234 -3.12428 3.64234 -2.74969C3.64234 -2.31133 3.3076 -1.40274 3.15616 -1.0122C3.05255 -0.749191 3.05255 -0.70137 3.05255 -0.597758C3.05255 -0.143462 3.42715 0.0797011 3.76986 0.0797011C4.55093 0.0797011 4.87771 -1.03611 4.87771 -1.13973C4.87771 -1.21943 4.81395 -1.24334 4.75816 -1.24334C4.66252 -1.24334 4.64658 -1.18755 4.62267 -1.10785C4.43138 -0.454296 4.09664 -0.143462 3.79377 -0.143462C3.66625 -0.143462 3.60249 -0.223163 3.60249 -0.406476S3.66625 -0.765131 3.74595 -0.964384C3.8655 -1.26725 4.21619 -2.18381 4.21619 -2.63014C4.21619 -3.2279 3.80174 -3.51482 3.2279 -3.51482C2.58232 -3.51482 2.16787 -3.12428 1.93674 -2.82142C1.88095 -3.25978 1.53026 -3.51482 1.12379 -3.51482C0.836862 -3.51482 0.637609 -3.33151 0.510087 -3.08443C0.318804 -2.70984 0.239103 -2.31133 0.239103 -2.29539C0.239103 -2.22366 0.294894 -2.19178 0.358655 -2.19178C0.462267 -2.19178 0.470237 -2.22366 0.526027 -2.43088C0.621669 -2.82142 0.765131 -3.29166 1.09988 -3.29166C1.3071 -3.29166 1.35492 -3.0924 1.35492 -2.91706C1.35492 -2.7736 1.31507 -2.62217 1.25131 -2.35915C1.23537 -2.29539 1.11582 -1.82516 1.08394 -1.71357L0.789041 -0.518057C0.757161 -0.398506 0.70934 -0.199253 0.70934 -0.167372C0.70934 0.0159402 0.860772 0.0797011 0.964384 0.0797011C1.10785 0.0797011 1.2274 -0.0159402 1.28319 -0.111582C1.3071 -0.159402 1.37086 -0.430386 1.41071 -0.597758L1.59402 -1.3071Z' id='eq7-g1-110'/>
+<path d='M10.7955 -6.83836C11.0705 -7.30461 11.3335 -7.74695 12.0508 -7.81868C12.1584 -7.83064 12.266 -7.84259 12.266 -8.03387C12.266 -8.16538 12.1584 -8.16538 12.1225 -8.16538C12.0986 -8.16538 12.0149 -8.14147 11.2259 -8.14147C10.8672 -8.14147 10.4966 -8.16538 10.1499 -8.16538C10.0782 -8.16538 9.93474 -8.16538 9.93474 -7.93823C9.93474 -7.83064 10.0304 -7.81868 10.1021 -7.81868C10.3412 -7.80672 10.7238 -7.73499 10.7238 -7.36438C10.7238 -7.20897 10.676 -7.12528 10.5564 -6.92204L7.29265 -1.20747L6.86227 -7.43611C6.86227 -7.57958 6.99377 -7.80672 7.66326 -7.81868C7.81868 -7.81868 7.93823 -7.81868 7.93823 -8.04583C7.93823 -8.16538 7.81868 -8.16538 7.7589 -8.16538C7.34047 -8.16538 6.89813 -8.14147 6.46775 -8.14147H5.84608C5.66675 -8.14147 5.45156 -8.16538 5.27223 -8.16538C5.2005 -8.16538 5.05704 -8.16538 5.05704 -7.93823C5.05704 -7.81868 5.14072 -7.81868 5.34396 -7.81868C5.8939 -7.81868 5.8939 -7.80672 5.94172 -7.07746L5.97758 -6.64707L2.8812 -1.20747L2.43885 -7.37634C2.43885 -7.50785 2.43885 -7.80672 3.25181 -7.81868C3.38331 -7.81868 3.51482 -7.81868 3.51482 -8.03387C3.51482 -8.16538 3.40722 -8.16538 3.33549 -8.16538C2.91706 -8.16538 2.47472 -8.14147 2.04433 -8.14147H1.42267C1.24334 -8.14147 1.02814 -8.16538 0.848817 -8.16538C0.777086 -8.16538 0.633624 -8.16538 0.633624 -7.93823C0.633624 -7.81868 0.729265 -7.81868 0.896638 -7.81868C1.45853 -7.81868 1.47049 -7.74695 1.4944 -7.36438L2.02042 -0.0239103C2.03238 0.179328 2.04433 0.251059 2.1878 0.251059C2.30735 0.251059 2.33126 0.203238 2.43885 0.0239103L6.00149 -6.20473L6.44384 -0.0239103C6.45579 0.179328 6.46775 0.251059 6.61121 0.251059C6.73076 0.251059 6.76663 0.191283 6.86227 0.0239103L10.7955 -6.83836Z' id='eq7-g2-87'/>
+<path d='M3.3594 -7.99801C3.37136 -8.04583 3.39527 -8.11756 3.39527 -8.17733C3.39527 -8.29689 3.27572 -8.29689 3.25181 -8.29689C3.23985 -8.29689 2.65405 -8.24907 2.59427 -8.23711C2.39103 -8.22516 2.21171 -8.20125 1.99651 -8.18929C1.69763 -8.16538 1.61395 -8.15342 1.61395 -7.93823C1.61395 -7.81868 1.70959 -7.81868 1.87696 -7.81868C2.46276 -7.81868 2.47472 -7.71108 2.47472 -7.59153C2.47472 -7.5198 2.45081 -7.42416 2.43885 -7.38829L0.705355 -0.466252C0.657534 -0.286924 0.657534 -0.263014 0.657534 -0.191283C0.657534 0.071731 0.860772 0.119552 0.980324 0.119552C1.18356 0.119552 1.33898 -0.0358655 1.39875 -0.167372L1.93674 -2.33126C1.99651 -2.59427 2.06824 -2.84533 2.12802 -3.10834C2.25953 -3.61046 2.25953 -3.62242 2.48667 -3.96912S3.25181 -5.03313 4.17235 -5.03313C4.65056 -5.03313 4.81793 -4.67447 4.81793 -4.19626C4.81793 -3.52677 4.35168 -2.22366 4.08867 -1.50635C3.98107 -1.21943 3.9213 -1.06401 3.9213 -0.848817C3.9213 -0.310834 4.29191 0.119552 4.86575 0.119552C5.97758 0.119552 6.39601 -1.63786 6.39601 -1.70959C6.39601 -1.76936 6.34819 -1.81719 6.27646 -1.81719C6.16887 -1.81719 6.15691 -1.78132 6.09714 -1.57808C5.82217 -0.621669 5.37983 -0.119552 4.90162 -0.119552C4.78207 -0.119552 4.59078 -0.131507 4.59078 -0.514072C4.59078 -0.824907 4.73425 -1.20747 4.78207 -1.33898C4.99726 -1.91283 5.53524 -3.32354 5.53524 -4.01694C5.53524 -4.73425 5.11681 -5.27223 4.20822 -5.27223C3.52677 -5.27223 2.92902 -4.94944 2.43885 -4.32777L3.3594 -7.99801Z' id='eq7-g2-104'/>
+<path d='M4.11258 -0.729265C4.37559 -0.0119552 5.11681 0.119552 5.57111 0.119552C6.4797 0.119552 7.01768 -0.669489 7.35243 -1.4944C7.6274 -2.1878 8.06974 -3.76588 8.06974 -4.47123C8.06974 -5.2005 7.69913 -5.27223 7.59153 -5.27223C7.30461 -5.27223 7.04159 -4.98531 7.04159 -4.7462C7.04159 -4.60274 7.12528 -4.51905 7.18506 -4.47123C7.29265 -4.36364 7.60349 -4.04085 7.60349 -3.41918C7.60349 -3.0127 7.26874 -1.88892 7.01768 -1.32702C6.68294 -0.597758 6.2406 -0.119552 5.61893 -0.119552C4.94944 -0.119552 4.73425 -0.621669 4.73425 -1.17161C4.73425 -1.51831 4.84184 -1.93674 4.88966 -2.13998L5.39178 -4.14844C5.45156 -4.38755 5.55915 -4.80598 5.55915 -4.8538C5.55915 -5.03313 5.41569 -5.15268 5.23636 -5.15268C4.88966 -5.15268 4.80598 -4.8538 4.73425 -4.56687C4.61469 -4.10062 4.11258 -2.0802 4.06476 -1.81719C4.01694 -1.61395 4.01694 -1.48244 4.01694 -1.21943C4.01694 -0.932503 3.63437 -0.478207 3.62242 -0.454296C3.49091 -0.32279 3.29963 -0.119552 2.92902 -0.119552C1.98456 -0.119552 1.98456 -1.01619 1.98456 -1.21943C1.98456 -1.60199 2.06824 -2.12802 2.60623 -3.55068C2.74969 -3.9213 2.80946 -4.07671 2.80946 -4.31582C2.80946 -4.81793 2.45081 -5.27223 1.86501 -5.27223C0.765131 -5.27223 0.32279 -3.53873 0.32279 -3.44309C0.32279 -3.39527 0.37061 -3.33549 0.454296 -3.33549C0.561893 -3.33549 0.573848 -3.38331 0.621669 -3.55068C0.920548 -4.60274 1.3868 -5.03313 1.82914 -5.03313C1.94869 -5.03313 2.13998 -5.02117 2.13998 -4.63861C2.13998 -4.57883 2.13998 -4.32777 1.93674 -3.80174C1.37484 -2.30735 1.25529 -1.81719 1.25529 -1.36289C1.25529 -0.107597 2.28344 0.119552 2.89315 0.119552C3.09639 0.119552 3.63437 0.119552 4.11258 -0.729265Z' id='eq7-g2-119'/>
+<path d='M8.06974 -3.87347C8.23711 -3.87347 8.4523 -3.87347 8.4523 -4.08867C8.4523 -4.31582 8.24907 -4.31582 8.06974 -4.31582H1.02814C0.860772 -4.31582 0.645579 -4.31582 0.645579 -4.10062C0.645579 -3.87347 0.848817 -3.87347 1.02814 -3.87347H8.06974ZM8.06974 -1.64981C8.23711 -1.64981 8.4523 -1.64981 8.4523 -1.86501C8.4523 -2.09215 8.24907 -2.09215 8.06974 -2.09215H1.02814C0.860772 -2.09215 0.645579 -2.09215 0.645579 -1.87696C0.645579 -1.64981 0.848817 -1.64981 1.02814 -1.64981H8.06974Z' id='eq7-g4-61'/>
+<path d='M3.89738 -2.54247C3.89738 -3.39527 3.80971 -3.91333 3.5467 -4.42341C3.19601 -5.12478 2.55044 -5.30012 2.11208 -5.30012C1.10785 -5.30012 0.74122 -4.55093 0.629639 -4.32777C0.342715 -3.74595 0.326775 -2.95691 0.326775 -2.54247C0.326775 -2.01644 0.350685 -1.21146 0.73325 -0.573848C1.09988 0.0159402 1.68966 0.167372 2.11208 0.167372C2.49465 0.167372 3.18007 0.0478207 3.57858 -0.74122C3.87347 -1.31507 3.89738 -2.02441 3.89738 -2.54247ZM2.11208 -0.0557908C1.8411 -0.0557908 1.29116 -0.183313 1.12379 -1.02017C1.03611 -1.47447 1.03611 -2.22366 1.03611 -2.63811C1.03611 -3.18804 1.03611 -3.74595 1.12379 -4.18431C1.29116 -4.99726 1.91283 -5.07696 2.11208 -5.07696C2.38306 -5.07696 2.933 -4.94147 3.0924 -4.21619C3.18804 -3.77783 3.18804 -3.18007 3.18804 -2.63811C3.18804 -2.16787 3.18804 -1.45056 3.0924 -1.00423C2.92503 -0.167372 2.37509 -0.0557908 2.11208 -0.0557908Z' id='eq7-g3-48'/>
+<path d='M5.82615 -2.65405C5.9457 -2.65405 6.10511 -2.65405 6.10511 -2.83736S5.91382 -3.02067 5.79427 -3.02067H0.781071C0.661519 -3.02067 0.470237 -3.02067 0.470237 -2.83736S0.629639 -2.65405 0.749191 -2.65405H5.82615ZM5.79427 -0.964384C5.91382 -0.964384 6.10511 -0.964384 6.10511 -1.1477S5.9457 -1.33101 5.82615 -1.33101H0.749191C0.629639 -1.33101 0.470237 -1.33101 0.470237 -1.1477S0.661519 -0.964384 0.781071 -0.964384H5.79427Z' id='eq7-g3-61'/>
+</defs>
+<g id='eq7-page1'>
+<use x='0' xlink:href='#eq7-g2-87' y='0'/>
+<use x='15.9982' xlink:href='#eq7-g4-61' y='0'/>
+<use x='28.4237' xlink:href='#eq7-g0-80' y='-8.96645'/>
+<use x='41.043' xlink:href='#eq7-g1-110' y='-5.81161'/>
+<use x='41.043' xlink:href='#eq7-g1-105' y='3.487'/>
+<use x='43.9262' xlink:href='#eq7-g3-61' y='3.487'/>
+<use x='50.5127' xlink:href='#eq7-g3-48' y='3.487'/>
+<use x='58.433' xlink:href='#eq7-g2-119' y='-8.99623'/>
+<use x='66.8008' xlink:href='#eq7-g1-105' y='-7.20297'/>
+<rect height='0.478187' width='11.7491' x='58.433' y='-3.22789'/>
+<use x='59.2477' xlink:href='#eq7-g2-104' y='8.20066'/>
+<use x='65.9862' xlink:href='#eq7-g1-105' y='9.99393'/>
+</g>
+</svg></p>
+<p>Huh, apparently backslashes have to be escaped in things like this:
+<code class="m-code">frac</code></p>
+<!-- /content -->
+      </div>
+    </div>
+  </div>
+</article>
+</main>
+</body>
+</html>
diff --git a/pelican-plugins/m/test/math/page.rst b/pelican-plugins/m/test/math/page.rst
new file mode 100644 (file)
index 0000000..c920d1d
--- /dev/null
@@ -0,0 +1,27 @@
+m.math
+######
+
+:summary: no.
+
+.. role:: tex(code)
+    :language: tex
+.. role:: math-primary(math)
+    :class: m-primary
+
+Inline colored math :math-primary:`a^2` and colored math block:
+
+.. math::
+    :class: m-success
+
+    a^2 + b^2 = c^2
+
+Properly align *huge* formulas vertically on a line:
+:math:`\hat q^{-1} = \frac{\hat q^*}{|\hat q|^2}`
+and make sure there's enough space for all the complex :math:`W` things between
+the lines :math:`W = \sum_{i=0}^{n} \frac{w_i}{h_i}` because
+:math:`Y = \sum_{i=0}^{n} B`
+
+The :tex:`\\cfrac` thing doesn't align well: :math:`W = \sum_{i=0}^{n} \cfrac{w_i}{h_i}`
+
+Huh, apparently backslashes have to be escaped in things like this:
+:tex:`\frac`
diff --git a/pelican-plugins/m/test/test_math.py b/pelican-plugins/m/test/test_math.py
new file mode 100644 (file)
index 0000000..91894af
--- /dev/null
@@ -0,0 +1,12 @@
+from m.test import PluginTestCase
+
+class Math(PluginTestCase):
+    def __init__(self, *args, **kwargs):
+        super().__init__(__file__, '', *args, **kwargs)
+
+    def test(self):
+        self.run_pelican({
+            'PLUGINS': ['m.htmlsanity', 'm.math']
+        })
+
+        self.assertEqual(*self.actual_expected_contents('page.html'))