Expand description
Tools for converting TeX’s internal data structures to Boxworks.
Knuth’s TeX has a bunch of diagnostic tooling for inspecting the internal data structures in its typesetting engine. This module contains functions that read the diagnostic output of Knuth’s TeX and reconstruct TeX’s internal data structures as Boxworks data structures. The initial motivation is to verify that subsystems of TeX and Boxworks – like the subsystem that converts text into a horizontal list – are doing the same thing.
These functions require that TeX is installed because they ultimately invoke TeX to generate the right diagnostic information.
Structs§
- Binary
NotFound - Error return when a binary on the host computer was not found.
- Error
- Error returned by internal functions that parse TeX logs These internal parsing functions will eventually be made public and so the errors were made public.
- Recording
TexEngine - A
TexEnginethat records the terminal output of the most recent run of the inner engine.
Enums§
- Error
Kind - Kind of error when parsing TeX logs.
Traits§
- TexEngine
- Implementations of this trait can run TeX source code and return stdout.
Functions§
- build_
horizontal_ lists - Build horizontal lists from some text.
- build_
vertical_ lists - Build verticals list from some text.
- diagnostic_
preamble - Returns the TeX preamble to use when comparing Boxworks output to TeX’s.
- extract_
paragraph_ trace - Extracts the
\tracingparagraphstrace from TeX’s terminal output: everything from@firstpass(or@secondpass, if the first pass is skipped) up to the end of the trace. - new_
tex_ engine_ binary - A TeX engine binary on the host computer, like
texorpdftex. - prepend_
looseness - Prepends
\looseness=<looseness>to the provided text.