@quartz-community/latex
v0.1.0
Published
LaTeX/KaTeX/MathJax/Typst math rendering plugin for Quartz
Readme
@quartz-community/latex
Renders LaTeX math equations using KaTeX, MathJax, or Typst rendering engines.
Installation
npx quartz plugin add github:quartz-community/latexUsage
plugins:
- 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",
});Configuration
| 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. |
Documentation
See the Quartz documentation for more information.
License
MIT
