Expand description
§term-maths
Character-grid mathematical notation renderer for terminals.
Accepts LaTeX math input and renders it as 2D Unicode character art suitable for display in a terminal. Targets JuliaMono as the recommended font.
§Quick Start
let block = term_maths::render(r"\frac{a}{b}");
println!("{}", block);
// a
// ───
// b§Output Backends
- Plain text — always available via
render()andDisplay - crossterm — direct terminal output (feature
crossterm) - ratatui — TUI widget (feature
ratatui) - LaTeX round-trip — serialise back to LaTeX via
to_latex()
Re-exports§
pub use latex_renderer::LatexRenderer;pub use rendered_block::RenderedBlock;pub use renderer::MathRenderer;pub use renderer::TerminalRenderer;
Modules§
- latex_
renderer - LaTeX renderer — serialises an
EqNodeAST back to a LaTeX string. - layout
- mathfont
- Unicode Mathematical Alphanumeric Symbols mapping (U+1D400–U+1D7FF).
- rendered_
block - renderer
- Output backend trait and implementations.