latex-rust 1.0.1

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.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! LaTeX math → [`MathNode`] AST.
//!
//! Pipeline: [`preprocess`] → [`tokenize`] → typed parse. Unknown or unsupported
//! input is [`ParseError`](crate::error::ParseError), never a silent partial tree.

mod ast;
mod parse;
mod preproc;
mod token;

pub use ast::{
    AccentKind, AtomKind, ColSpec, DelimSize, Delimiter, EnvRow, EqNumber, IntegralKind, MathNode,
    MatrixStyle, PhantomKind, SpaceKind, TextStyle,
};
pub use parse::{parse, parse_with_colors};
pub use preproc::preprocess;
pub use token::{format_tokens, tokenize, Token};