luaoptions__source

Option handling for LuaLaTeX packages

Version:
0.8
Copyright:
The LuaLaTeX-Tools Project
License:
mit
Packaged on:
11/01/2022 21:11:30
Number of files:
4
Size on disk:
10 kB

This LuaLaTeX package provides extensive support for handling options, on package level and locally. It allows the declaration of sets of options, along with defaults, expected/allowed values and limited type checking. These options can be enforced as package options, changed at any point during a document, or overwritten locally by optional macro arguments. It is also possible to instantiate an Options object as an independent Lua object, without linking it to a package. Luaoptions can be used to enforce and prepopulate options, or it can be used to simply handle the parsing of optional key=value arguments into proper Lua tables.