<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>maths &amp;mdash; Demo</title>
    <link>https://qua.name/demo/tag:maths</link>
    <description>A playground for trying WriteFreely on qua.name. Log in as demo / demo; everything resets nightly at 04:00 Amsterdam time.</description>
    <pubDate>Tue, 01 Dec 2026 04:32:05 +0100</pubDate>
    <item>
      <title>Maths</title>
      <link>https://qua.name/demo/maths</link>
      <description>&lt;![CDATA[This blog has MathJax switched on (in the blog settings, under Text Rendering), so you can write formulas in TeX notation and they are typeset in the reader&#39;s browser.&#xA;&#xA;Inline formulas&#xA;&#xA;Wrap a formula in single dollar signs, or in \\( and \\):&#xA;&#xA;~markdown&#xA;Pythagoras: $a^2 + b^2 = c^2$, and Euler: \\(e^{i\pi} + 1 = 0\\).&#xA;~&#xA;&#xA;Pythagoras: $a^2 + b^2 = c^2$, and Euler: \\(e^{i\pi} + 1 = 0\\).&#xA;&#xA;Displayed formulas&#xA;&#xA;Use double dollar signs, or \\[ and \\], for a formula on its own line:&#xA;&#xA;~markdown&#xA;$$&#xA;x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}&#xA;$$&#xA;&#xA;\\[ \int\{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi} \\]&#xA;~&#xA;&#xA;$$&#xA;x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}&#xA;$$&#xA;&#xA;\\[ \int\{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi} \\]&#xA;&#xA;A sum and a matrix:&#xA;&#xA;~markdown&#xA;$$&#xA;\sum\{k=1}^{n} k = \frac{n(n+1)}{2}&#xA;\qquad&#xA;\begin{pmatrix} a &amp; b \\\\ c &amp; d \end{pmatrix}&#xA;$$&#xA;~&#xA;&#xA;$$&#xA;\sum\{k=1}^{n} k = \frac{n(n+1)}{2}&#xA;\qquad&#xA;\begin{pmatrix} a &amp; b \\\\ c &amp; d \end{pmatrix}&#xA;$$&#xA;&#xA;Markdown goes first&#xA;&#xA;Your post is turned from Markdown into HTML before MathJax sees it, and Markdown has its own uses for some characters. That is why the examples above look a little odd:&#xA;&#xA;A backslash in front of punctuation is a Markdown escape and disappears. Where TeX needs one, type two: \\(, \\[, \\{, and four for a line break, \\\\.&#xA;Underscores and asterisks can turn into italics. Write \_ and \ inside formulas.&#xA;A hyphen with spaces on both sides becomes a dash, so write b^2-4ac rather than b^2 - 4ac.&#xA;With dollar signs switched on, two prices in one paragraph look like a formula. Write \$ for a literal dollar sign: it costs \$5, or \$10 for two.&#xA;&#xA;The editor&#39;s Preview shows the Markdown result but does not typeset formulas; open the published post to see those.&#xA;&#xA;Where formulas don&#39;t render&#xA;&#xA;MathJax runs on the blog&#39;s own pages. Elsewhere, for example in a Mastodon timeline, readers see the TeX source instead.&#xA;&#xA;#maths #markdown&#xA;&#xA;This is a demo post on qua.name; see About this demo.*]]&gt;</description>
      <content:encoded><![CDATA[<p>This blog has MathJax switched on (in the blog settings, under <strong>Text Rendering</strong>), so you can write formulas in TeX notation and they are typeset in the reader&#39;s browser.</p>

<h2 id="inline-formulas">Inline formulas</h2>

<p>Wrap a formula in single dollar signs, or in <code>\\(</code> and <code>\\)</code>:</p>

<pre><code class="language-markdown">Pythagoras: $a^2 + b^2 = c^2$, and Euler: \\(e^{i\pi} + 1 = 0\\).
</code></pre>

<p>Pythagoras: $a^2 + b^2 = c^2$, and Euler: \(e^{i\pi} + 1 = 0\).</p>

<h2 id="displayed-formulas">Displayed formulas</h2>

<p>Use double dollar signs, or <code>\\[</code> and <code>\\]</code>, for a formula on its own line:</p>

<pre><code class="language-markdown">$$
x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}
$$

\\[ \int\_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi} \\]
</code></pre>

<p>$$
x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}
$$</p>

<p>\[ \int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi} \]</p>

<p>A sum and a matrix:</p>

<pre><code class="language-markdown">$$
\sum\_{k=1}^{n} k = \frac{n(n+1)}{2}
\qquad
\begin{pmatrix} a &amp; b \\\\ c &amp; d \end{pmatrix}
$$
</code></pre>

<p>$$
\sum_{k=1}^{n} k = \frac{n(n+1)}{2}
\qquad
\begin{pmatrix} a &amp; b \\ c &amp; d \end{pmatrix}
$$</p>

<h2 id="markdown-goes-first">Markdown goes first</h2>

<p>Your post is turned from Markdown into HTML before MathJax sees it, and Markdown has its own uses for some characters. That is why the examples above look a little odd:</p>
<ul><li>A backslash in front of punctuation is a Markdown escape and disappears. Where TeX needs one, type two: <code>\\(</code>, <code>\\[</code>, <code>\\{</code>, and four for a line break, <code>\\\\</code>.</li>
<li>Underscores and asterisks can turn into italics. Write <code>\_</code> and <code>\*</code> inside formulas.</li>
<li>A hyphen with spaces on both sides becomes a dash, so write <code>b^2-4ac</code> rather than <code>b^2 - 4ac</code>.</li>
<li>With dollar signs switched on, two prices in one paragraph look like a formula. Write <code>\$</code> for a literal dollar sign: it costs \$5, or \$10 for two.</li></ul>

<p>The editor&#39;s <strong>Preview</strong> shows the Markdown result but does not typeset formulas; open the published post to see those.</p>

<h2 id="where-formulas-don-t-render">Where formulas don&#39;t render</h2>

<p>MathJax runs on the blog&#39;s own pages. Elsewhere, for example in a Mastodon timeline, readers see the TeX source instead.</p>

<p><a href="/demo/tag:maths" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">maths</span></a> <a href="/demo/tag:markdown" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">markdown</span></a></p>

<p><em>This is a demo post on <a href="https://qua.name" rel="nofollow">qua.name</a>; see <a href="/demo/about-this-demo" rel="nofollow">About this demo</a>.</em></p>
]]></content:encoded>
      <guid>https://qua.name/demo/maths</guid>
      <pubDate>Sat, 28 Nov 2026 04:00:11 +0100</pubDate>
    </item>
  </channel>
</rss>