This commit is contained in:
parent
2846ca694c
commit
b640e5f86a
1 changed files with 14 additions and 1 deletions
|
@ -9,11 +9,24 @@
|
||||||
src="//cdn.jsdelivr.net/npm/katex@0.16.6/dist/contrib/auto-render.min.js"
|
src="//cdn.jsdelivr.net/npm/katex@0.16.6/dist/contrib/auto-render.min.js"
|
||||||
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
|
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
onload="renderMathInElement(document.body);"
|
|
||||||
></script>
|
></script>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
const macros = {};
|
const macros = {};
|
||||||
|
for (const item of new Map(
|
||||||
|
Object.entries({
|
||||||
|
N: "mathbb{N}",
|
||||||
|
R: "mathbb{R}",
|
||||||
|
Z: "mathbb{Z}",
|
||||||
|
O: "Theta",
|
||||||
|
ra: "rightarrow",
|
||||||
|
la: "leftarrow",
|
||||||
|
RA: "Rightarrow",
|
||||||
|
LA: "Leftarrow",
|
||||||
|
})
|
||||||
|
)[Symbol.iterator]()) {
|
||||||
|
macros[`\\${item[0]}`] = `\\${item[1]}`;
|
||||||
|
}
|
||||||
|
|
||||||
renderMathInElement(document.body, {
|
renderMathInElement(document.body, {
|
||||||
delimiters: [
|
delimiters: [
|
||||||
|
|
Loading…
Reference in a new issue