namedef – TeX definitions with named parameters
This package provides a prefix \named to be used in TeX definitions so that parameters can be identified by their name rather than by number, giving parameters a semantic rather than syntactic meaning, making it easy to understand long definitions.
A usual definition reads:
but with namedef you can replace #1 by, say, #[person]:
and \named will figure out the numbering of the parameters for you.
|Licenses||The LaTeX Project Public License 1.3c|
|Copyright||2019–2020 Phelype Oleinik|
|Contained in||TeX Live as namedef|
MiKTeX as namedef
Download the contents of this package in one zip archive (630.2k).
Maybe you are interested in the following packages as well.
- default: Provide default parameters for TeX macros
- plainpkg: A minimal method for making generic packages
- langcode: Simple language-dependent settings based on language codes
- expkv-cs: Define expandable key=val macros using expkv