<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>anirbanbasu - katex</title>
    <subtitle>Website of Anirban Basu</subtitle>
    <link rel="self" type="application/atom+xml" href="https://anirbanbasu.netlify.app/tags/katex/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://anirbanbasu.netlify.app"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2025-12-23T00:00:00+00:00</updated>
    <id>https://anirbanbasu.netlify.app/tags/katex/atom.xml</id>
    <entry xml:lang="en">
        <title>Math Typesetting</title>
        <published>2025-12-23T00:00:00+00:00</published>
        <updated>2025-12-23T00:00:00+00:00</updated>
        
        <author>
          <name>
            Eyal Kalderon
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://anirbanbasu.netlify.app/musings/math-typesetting/"/>
        <id>https://anirbanbasu.netlify.app/musings/math-typesetting/</id>
        
        <content type="html" xml:base="https://anirbanbasu.netlify.app/musings/math-typesetting/">&lt;p&gt;Terminus supports &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;katex.org&#x2F;&quot;&gt;$\KaTeX$&lt;&#x2F;a&gt;, a fast, easy-to-use
JavaScript library for TeX math rendering on the Web.&lt;&#x2F;p&gt;
&lt;section class=&quot;alert info&quot; role=&quot;note&quot; aria-labelledby=&quot;0Zsxg17u&quot;&gt;
    &lt;div class=&quot;alert-icon alert-icon-info&quot;&gt;&lt;&#x2F;div&gt;
    &lt;div class=&quot;alert-content&quot; role=&quot;presentation&quot;&gt;
        &lt;strong id=&quot;0Zsxg17u&quot; class=&quot;alert-title&quot; aria-hidden=&quot;true&quot;&gt;TODO&lt;&#x2F;strong&gt;
        &lt;p&gt;Will elaborate more later...&lt;&#x2F;p&gt;

    &lt;&#x2F;div&gt;
&lt;&#x2F;section&gt;
&lt;h2 id=&quot;usage&quot;&gt;Usage&lt;a class=&quot;post-anchor&quot; href=&quot;#usage&quot; aria-label=&quot;Anchor link for: usage&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
&lt;&#x2F;h2&gt;
&lt;p&gt;To enable $\KaTeX$ support site-wide, add this to your site&#x27;s &lt;code&gt;config.toml&lt;&#x2F;code&gt;:&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;toml&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[extra]&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;katex =&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;&quot;&gt; true&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Alternatively, $\KaTeX$ support may be enabled selectively on individual pages
(e.g. &lt;code&gt;content&#x2F;blog&#x2F;my-page.md&lt;&#x2F;code&gt;) or on an entire section of your site (e.g.
&lt;code&gt;content&#x2F;blog&#x2F;_index.md&lt;&#x2F;code&gt;) by adding the above to your frontmatter instead. For
instance:&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;markdown&quot; data-name=&quot;content&#x2F;blog&#x2F;my-page.md&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;title = &amp;quot;My Page&amp;quot;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;date = 2026-01-01&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;&quot;&gt;extra&lt;&#x2F;span&gt;&lt;span&gt;]&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;katex = true&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;+++&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;This is some Markdown containing an inline $\KaTeX$ formula!&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;examples&quot;&gt;Examples&lt;a class=&quot;post-anchor&quot; href=&quot;#examples&quot; aria-label=&quot;Anchor link for: examples&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;#&lt;&#x2F;span&gt;&lt;&#x2F;a&gt;
&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;tex&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;$$&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\displaystyle \frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}{\Bigl(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\sqrt&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\phi \sqrt&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;5&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}}-&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\phi&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;\Bigr) e^{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\frac25 \pi&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}} = &lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{e^{-&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;2\pi&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}} {&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{e^{-&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;4\pi&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}} {&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{e^{-&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;6\pi&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}} {&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{e^{-&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;8\pi&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}} {&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\cdots&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;} } } }&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;$$&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;$$
\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
$$&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;tex&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;$$&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;&amp;quot;&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\displaystyle&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; \left(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt; \sum&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;_{k=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}^n a_k b_k \right)^&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;2 \leq&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; \left(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt; \sum&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;_{k=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}^n a_k^&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;2&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; \right) \left(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt; \sum&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;_{k=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}^n b_k^&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;2&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; \right)&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;$$&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;$$
&quot;\displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
$$&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #F8F8F2; background-color: #272822;&quot;&gt;&lt;code data-lang=&quot;tex&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;$$&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\displaystyle&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; {&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; +&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;  \frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{q^&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;2&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}{(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;-q)}+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{q^&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;6&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}{(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;-q)(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;-q^&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;2&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;)}+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\cdots&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; }= &lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\prod&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;_{j=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;0&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}^{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\infty&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\frac&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;}{(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;-q^{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;5&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;j+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;2&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;})(&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;-q^{&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;5&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;j+&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;3&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;})}, &lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\quad\quad \text&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;{for }&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\lvert&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt; q&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;\rvert&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;&amp;lt;&lt;&#x2F;span&gt;&lt;span style=&quot;color: #AE81FF;font-style: italic;&quot;&gt;1&lt;&#x2F;span&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #66D9EF;font-style: italic;&quot;&gt;$$&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;$$
\displaystyle {1 +  \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots }= \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert&amp;lt;1.
$$&lt;&#x2F;p&gt;
</content>
        
    </entry>
</feed>
