latex-rust 1.0.0

Pure-Rust LaTeX math renderer. Parse to AST, TeX-faithful layout in zenith-float, emit SVG, PNG, or egui shapes. No JavaScript, no webview, no runtime.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Render backends: SVG, PNG (`tiny-skia`, feature `png`), and egui
//! (`features = ["egui"]`).
//!
//! Pipeline: [`crate::layout::MathBox`] → this module. SVG is the v1 output.
//! PNG and egui are optional. Without their features those entry points return
//! [`crate::Error::Unsupported`].

pub mod egui;
pub mod png;
pub mod svg;

#[cfg(feature = "egui")]
pub use egui::{latex_to_shapes, paint_egui, shapes};
pub use egui::{render_egui, EguiOptions};
pub use png::{latex_to_png, render_png, PngBackground, PngOptions};
pub use svg::{latex_to_svg, render_svg, SvgOptions};