unlatex

Rust bindings to unified-latex

1 unstable release

0.1.0 Feb 2, 2023


Used in unlatex-cli

MIT/Apache

660KB
709 lines

UnLaTex

Description

UnLaTex is a library for parsing and formatting LaTeX.

Examples

let formatted = unlatex::format("E = mc^2").unwrap();
let ast = unlatex::parse("E = mc^2").unwrap();

lib.rs:

This crate offers Rust bindings to unified-latex. This allows you to parse and format LaTeX documents.

Usage

Add this to your Cargo.toml:

[dependencies]
unlatex-core = "0.1.0"

Examples

let formatted = unlatex::format("E = mc^2").unwrap();
let ast = unlatex::parse("E = mc^2").unwrap();

Dependencies

~5.5MB
~153K SLoC