Expand description
LaTeX formula support for genpdfi-rs.
This module provides the Latex element which allows rendering LaTeX formulas
into PDF documents using MicroTeX.
Only available if the latex feature is enabled.
Structsยง
- Latex
- A LaTeX formula element that renders mathematical expressions using MicroTeX.
Constantsยง
- EMPIRICAL_
ADJUSTMENT_ ๐FACTOR - MICROTEX_
DPI ๐ - Helper constants for LaTeX rendering at 720 DPI
Staticsยง
- MICROTEX_
RENDERER ๐ - Global MicroTeX renderer instance - initialized only once
Functionsยง
- apply_
svg_ ๐scale - Applies a scale factor to SVG dimensions.
- extract_
svg_ ๐dimensions - Extracts width and height from SVG attributes in pixels.
- get_
microtex_ ๐renderer - Get or initialize the MicroTeX renderer (thread-safe singleton). MicroTeX must only be initialized once - multiple initializations crash the engine.