Typesetting Mathematics

Using KaTeX to typeset mathematical equations.

Motif uses KaTeX\KaTeX to render mathematical equations in the browser. In order to enable it in your project, the Katex stylesheet needs to be added to your pages. This is done by including the following to your motif.json config's head section (to access it, open search using P and type motif.json):

  "head": [
    "<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css' crossorigin='anonymous' />",

Inline equations

Inline equations are delimited by a single $ sign:

An inline equation: i=1i = \sqrt{-1}.
An inline equation: $i = \sqrt{-1}$.

Standalone equations

Standalone equations are delimited by two $ signs:

0sinxxdx=π2\int_0^\infty \frac{\sin x}{x} dx = \frac{\pi}{2}
\int_0^\infty \frac{\sin x}{x} dx = \frac{\pi}{2}

Copyright © 2022 Motif Land Inc. All rights reserved. This website is built with Motif.