-
Notifications
You must be signed in to change notification settings - Fork 10
/
katex-header.html
30 lines (30 loc) · 1.44 KB
/
katex-header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous" type="text/css">
<script defer src=
"https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous" type="text/javascript">
</script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous" type="text/javascript">
</script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "\\(", right: "\\)", display: false},
{left: "$", right: "$", display: false},
{left: "\\[", right: "\\]", display: true}
],
macros: {
"\\Zq": "\\mathbb{Z}_q",
"\\G": "\\mathbb{G}",
"\\T": "\\mathbb{T}",
"\\O": "\\mathcal{O}",
"\\P": "\\mathcal{P}",
"\\V": "\\mathcal{V}",
"\\H": "\\mathcal{H}",
"\\?": "\\stackrel{?}{=}",
"\\ith": "i^{\\text{th}}",
"\\sk": "\\text{sk}",
},
});
});
</script>