Module script

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 written to an IO writer.

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_to_string
Run the Texlang interpreter for the provided VM and return the result as a string.
set_io_writer