Module script

Source
Expand description

Support for running TeX scripts.

This module enables using TeX as a scripting language. TeX files are processed using the usual TeX semantics, but instead of typesetting the result and outputting it to PDF (say), the output is returned as a list of tokens. These can be easily converted to a string using texlang::token::write_tokens.

Structs§

Component

Functions§

get_newline
Get the \newline command.
get_par
Get the \par command.
run
Run the Texlang interpreter for the provided VM and return the result as list of tokens.
run_and_write
Run the Texlang interpreter for the provided VM and write the tokens as strings to the provided writer.
set_allow_undefined_command