lectures.alex.balgavy.eu

Lecture notes from university.
git clone git://git.alex.balgavy.eu/lectures.alex.balgavy.eu.git
Log | Files | Refs | Submodules

page-math.html (1909B)


      1 {% extends "base.html" %}
      2 
      3 {% block title %}{{ page.title }}{% endblock title %}
      4 
      5 {% block sidebar %}
      6 {% set parent_section = get_section(path=page.ancestors | last) %}
      7 <h1><a href="{{ parent_section.permalink }}">{{ parent_section.title }}</a></h1>
      8 
      9 <noscript>
     10   <p>
     11     This page uses a local copy of <a href="https://katex.org/">KaTeX</a> to render math notation, which is free software licensed under the MIT license.
     12     Without JavaScript, some math notation may be difficult to read.
     13     PS, if someone knows how to render math server-side with the <a href="http://getzola.org/">Zola</a> SSG, let me know.
     14   </p>
     15 </noscript>
     16 
     17 <h2>Table of Contents</h2>
     18 <ul>
     19 {% for h1 in page.toc %}
     20 <li>
     21   <a href="{{h1.permalink | safe}}">{{ h1.title }}</a>
     22   {% if h1.children %}
     23   <ul>
     24     {% for h2 in h1.children %}
     25     <li>
     26       <a href="{{h2.permalink | safe}}">{{ h2.title }}</a>
     27     </li>
     28     {% endfor %}
     29   </ul>
     30   {% endif %}
     31 </li>
     32 {% endfor %}
     33 </ul>
     34 {% endblock sidebar %}
     35 
     36 {% block scripts %}
     37 <link rel="stylesheet" href="/katex/style.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X">
     38 <script defer src="/katex/script.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4"></script>
     39 <script defer src="/katex/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa"></script>
     40 <script>
     41   document.addEventListener("DOMContentLoaded", function() {
     42     renderMathInElement(document.body, {
     43       delimiters: [
     44         {left: "$$", right: "$$", display: true},
     45         {left: "$", right: "$", display: false},
     46         {left: "\\(", right: "\\)", display: false},
     47         {left: "\\[", right: "\\]", display: true}
     48       ]
     49     });
     50   });
     51 </script>
     52 {% endblock %}
     53 
     54 {% block content %}
     55 {{ page.content | replace(from="<img ", to="<img loading=lazy ") | safe }}
     56 {% endblock content %}