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
- getoptk: Define macros with sophisticated options
- inlinedef: Inline expansions within definitions
- xnewcommand: Define \global and \protected commands with \newcommand