namedef
TeX definitions with named parameters
- Version:
- 1.0
- Copyright:
- Phelype Oleinik
- License:
- lppl1.3c
- Packaged on:
- 06/22/2020 20:11:57
- Number of files:
- 6
- Size on disk:
- 649.91 kB
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: \def\SayHello#1{Hello, #1!} but with namedef you can replace #1 by, say, #[person]: \named\def\SayHello#[person]{Hello, #[person]!} and \named will figure out the numbering of the parameters for you.