|
|
Line 21: |
Line 21: |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.js" integrity="sha384-/y1Nn9+QQAipbNQWU65krzJralCnuOasHncUFXGkdwntGeSvQicrYkiUBwsgUqc1" crossorigin="anonymous"></script> | | <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.js" integrity="sha384-/y1Nn9+QQAipbNQWU65krzJralCnuOasHncUFXGkdwntGeSvQicrYkiUBwsgUqc1" crossorigin="anonymous"></script> |
| | | |
− | <script>
| |
− | document.addEventListener("DOMContentLoaded", function() {
| |
− | renderMathInElement(document.body, {
| |
− | delimiters: [{
| |
− | left: "$$",
| |
− | right: "$$",
| |
− | display: true
| |
− | },
| |
− | {
| |
− | left: "\\[",
| |
− | right: "\\]",
| |
− | display: true
| |
− | },
| |
− | {
| |
− | left: "$",
| |
− | right: "$",
| |
− | display: false
| |
− | },
| |
− | {
| |
− | left: "\\(",
| |
− | right: "\\)",
| |
− | display: false
| |
− | }
| |
− | ],
| |
− | throwOnError: false,
| |
− | macros: {
| |
− | '\\tag': '\\pod\\text'
| |
− | }
| |
− | });
| |
− | var eqno = document.querySelectorAll(".katex span > span.mspace.quad");
| |
− | for (var i = 0; i < eqno.length; ++i) {
| |
− | if (eqno[i].parentNode.className)
| |
− | continue;
| |
− | var quad = eqno[i];
| |
− | var span = quad.parentNode;
| |
− | var text = span.nextSibling;
| |
− | var pare = text.nextSibling;
| |
− | span.removeChild(quad);
| |
− | span.appendChild(text);
| |
− | span.appendChild(pare);
| |
− | span.className = 'eqno';
| |
− | }
| |
− | });
| |
− | </script>
| |
| | | |
| <!-- 标题栏logo --> | | <!-- 标题栏logo --> |