Main author: Fr. Jacques PeronnThis material is subject to the MIT license.n
Option handling for LuaLaTeX packages
This package has been extracted from
lyluatex where it was originally developed as supporting functionality. However, as it turned out it is useful as a building block for LuaLaTeX packages in general, and the development of
luaformatters made it clear that the option handling code had to be moved to a standalone package.
Initially there is no extensive documentation available since the package wasn't originally intended to be exposed to third-party packages or even end-users; the best sources of documentation are
luaformatters codes, and the docstrings of
Download the contents of this package in one zip archive (39.0k).
luaoptions – Option handling for LuaLaTeX packages
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.
|Copyright||2015–2022 The LuaLaTeX-Tools Project|
|Contained in||TeX Live as luaoptions|
MiKTeX as luaoptions