Skip to main content

mathtex_engine/
lib.rs

1//! Typesets LaTeX math with a XeTeX engine: bake a [`Format`] once, then [`Typesetter::typeset`] fragments.
2#![forbid(unsafe_code)]
3
4mod adapter;
5mod format;
6mod host_box;
7mod lower;
8mod resource;
9mod resource_font;
10mod shaper;
11mod texmf;
12mod typeset;
13
14pub use format::{BuildError, Format, FormatBuilder, FormatError};
15pub use host_box::{
16    HostBox, HostBoxGlyph, HostBoxRequest, HostBoxRule, HostBoxRun, HostBoxes, MathStyle,
17    NoHostBoxes,
18};
19pub use mathtex_font as font;
20pub use resource::{
21    FileSystemResourceProvider, InMemoryResourceProvider, Resource, ResourceError, ResourceKind,
22    ResourceProvider, ResourceRequest,
23};
24pub use resource_font::ResourceFontLoader;
25pub use texmf::{TexmfError, TexmfResources, TEXMF_ROOT_ENV};
26pub use typeset::{
27    Diagnostic, DiagnosticKind, MathMode, Options, Typeset, TypesetError, Typesetter,
28    FRAGMENT_SOURCE,
29};