Renders LaTeX math equations using KaTeX, MathJax, or Typst rendering engines.
npx quartz plugin add github:quartz-community/latexplugins:
- source: github:quartz-community/latex
enabled: true
options:
renderEngine: katexFor advanced use cases, you can override in TypeScript:
import * as ExternalPlugin from "./.quartz/plugins";
ExternalPlugin.Latex({
renderEngine: "katex",
});| Option | Type | Default | Description |
|---|---|---|---|
renderEngine |
"katex" | "mathjax" | "typst" |
"katex" |
The rendering engine to use for LaTeX. |
customMacros |
Record<string, string | Args[]> |
{} |
Custom LaTeX macros. |
katexOptions |
KatexOptions |
undefined |
Options for the KaTeX engine. |
mathJaxOptions |
MathjaxOptions |
undefined |
Options for the MathJax engine. |
typstOptions |
TypstOptions |
undefined |
Options for the Typst engine. |
See the Quartz documentation for more information.
MIT