Skip to main content

Module math

Module math 

Source
Expand description

RaTeX-backed math renderer for the rpic texlabels extension.

Register with [rpic_core::set_math_renderer(render_math)]. The hook in the core is backend-neutral; docs/tex-labels.md records Typst + mitex as the documented alternative should this backend ever need replacing.

Functionsยง

render_math
Typeset tex (inline math, no $ delimiters) at font_pt points into a self-contained SVG fragment (KaTeX fonts embedded as glyph paths) plus exact metrics in inches.