Skip to content

quartz-community/latex

Repository files navigation

@quartz-community/latex

Renders LaTeX math equations using KaTeX, MathJax, or Typst rendering engines.

Installation

npx quartz plugin add github:quartz-community/latex

Usage

plugins:
  - source: github:quartz-community/latex
    enabled: true
    options:
      renderEngine: katex

For 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

About

Quartz's default latex plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors