Expand description
Typesets LaTeX math with a XeTeX engine: bake a Format once, then Typesetter::typeset fragments.
Re-exports§
pub use mathtex_font as font;
Structs§
- Diagnostic
- A warning raised while typesetting.
- File
System Resource Provider - Resource provider over a directory, a request’s canonical name is a path relative to the root.
- Format
- A validated packaged XeTeX format and its native fonts, the same bytes load on every little endian target.
- Format
Builder - Bakes a packaged format: INITEX runs an optional kernel file, then the preamble, then dumps.
- HostBox
- A host laid out box, its runs and rules drawn relative to its baseline origin with y down.
- Host
BoxGlyph - A glyph at its baseline origin, relative to the box’s baseline origin with y down.
- Host
BoxRequest - One placement of
\hostbox{token}. - Host
BoxRule - A filled rectangle whose bottom left corner is
origin, relative to the box’s baseline origin with y down. - Host
BoxRun - Glyphs of one face inside a host box, the fragment carries the key so the host can draw them.
- InMemory
Resource Provider - Resource provider over resources held in memory, keyed by canonical name and kind.
- NoHost
Boxes - Host boxes of a host that has none, every
\hostboxrenders nothing and emits a warning. - Options
- Limits and caching of a
Typesetter. - Resource
- A resolved resource.
- Resource
Font Loader - Loads font files through a
ResourceProvider, one key per file in load order. - Resource
Request - A request for a named resource of a given kind.
- Texmf
Resources - Resource provider over a TeX Live
texmf-disttree by exact file name, through itsls-Rindex. - Typeset
- A typeset fragment and the warnings TeX and the host boxes raised.
- Typesetter
- Typesets math fragments against one format, keeping the fonts it loaded across fragments.
Enums§
- Build
Error - Why a format could not be baked.
- Diagnostic
Kind - Kind of a
Diagnostic. - Format
Error - Why bytes are not a usable format.
- Math
Mode - Math mode a fragment is typeset in.
- Math
Style - Math style at a host box’s placement, display style reports as text as TeX’s size does.
- Resource
Error - Why a resource could not be read.
- Resource
Kind - Kind of file a request asks for, which picks the suffixes the engine tries and the search path.
- Texmf
Error - Why a TeX Live tree could not be opened.
- Typeset
Error - Why a fragment could not be typeset.
Constants§
- FRAGMENT_
SOURCE - Source name of the fragment in the fragment’s source map, its spans index the caller’s
tex. - TEXMF_
ROOT_ ENV - Environment variable naming a
texmf-distroot, read byTexmfResources::discover.
Traits§
- Host
Boxes - Answers
\hostbox{token}with a box the host lays out, such as a nested editor field. - Resource
Provider - Resolves the TeX inputs, packages, fonts and other files a format build reads.