CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/luaoptions

README.md

Main author: Fr. Jacques PeronnThis material is subject to the MIT license.n

luaoptions

Option handling for Lua 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 Lua 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 lyluatex and luaformatters codes, and the docstrings of luaoptions.lua and luaoptions-lib.lua.

Download the contents of this package in one zip archive (39.0k).

luaoptions – Option handling for Lua packages

This Lua 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.

Packageluaoptions
Bug trackerhttps://github.com/lualatex-tools/luaoptions/issues
Repositoryhttps://github.com/lualatex-tools/luaoptions
Version0.8 2022-10-30
LicensesMIT License
Copyright2015–2022 The Lua-Tools Project
MaintainerJacques Peron
Contained inTeX Live as luaoptions
MiKTeX as luaoptions
TopicsPackage support
Lua
...
Guest Book Sitemap Contact Contact Author