Skip to main content

Module tex

Module tex 

Source
Expand description

Schema-doc TeX emission. Port of RelaxNG.pm lines 545–815.

Walks the simplified AST (in Relaxng::modules and the lookup tables populated by super::simplify) and produces a single schema.tex string consumable by latexmlman.sty’s \schemamodule / \patterndef / \elementdef / \attrdef / \moduleref / \patternref / \elementref macros.

Behaviour intentionally byte-equivalent (modulo whitespace settled at the unit-test level) with the Perl documentModules for the same simplified state. The schema-doc-style omissions (SKIP_SVG/SKIP_ARIA/SKIP_XHTML) live on Options with the same defaults as upstream.

Structs§

Options
Schema-doc emission options. Defaults match Perl’s $SKIP_SVG=1;$SKIP_ARIA=1;$SKIP_XHTML=1 constants.

Functions§

clean_tex
cleanTeX: escape #, escape _, wrap <...> in \texttt{...}, strip URN prefix, recognise #PCDATA.
document_modules
Top-level emission. Returns a single schema.tex string.