Lua API reference
The reference of the Lua modules that come with glu. For an introduction to Lua in glu, start with Automate with Lua.
- glu.frontend is the typesetting API: documents, text, fonts, pages and tables.
- glu.htmlbag renders an HTML string from a script.
- glu.json encodes, decodes, reads and writes JSON.
- glu.log writes structured log messages.
- glu.pdf writes PDF directly.
- xml.cxpath queries XML files with XPath.
- hobby draws MetaPost-style paths with Hobby curves.
- Backend modules cover
glu,glu.nodeandglu.font, the low-level access to the typesetting engine. - glu.textshape gives direct access to OpenType text shaping.