Welcome to mirror list, hosted at ThFree Co, Russian Federation.

math.html « partials « layouts - github.com/heyeshuang/hugo-theme-tokiwa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a0712ef42a8081b3dbbbf0ae10f7c87e1daafd2 (plain)
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
<!-- KaTeX (as in HugoBasicExample) -->
<!-- to update Katex check out https://github.com/KaTeX/KaTeX -->

<!-- Katex css -->
<link rel="stylesheet" href='{{"lib/katex.min.css"|absURL}}' crossorigin="anonymous">

<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src='{{"lib/katex.min.js"|absURL}}' crossorigin="anonymous"></script>

<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src='{{"lib/contrib/auto-render.min.js"|absURL}}'
crossorigin="anonymous"
onload='renderMathInElement(document.body);'></script>


<script>
    document.addEventListener("DOMContentLoaded", function() {
        renderMathInElement(document.body, {
            delimiters: [
                {left: "$$", right: "$$", display: true},
                {left: "$", right: "$", display: false}
            ]
        });
    });
</script>