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:
\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.
Quellen | /macros/generic/namedef |
Dokumentation | |
Fehlermeldungen | https://github.com/PhelypeOleinik/namedef/issues |
Repository | https://github.com/PhelypeOleinik/namedef |
Version | 1.0 2020-06-20 |
Lizenzen | The LaTeX Project Public License 1.3c |
Copyright | 2019–2020 Phelype Oleinik |
Betreuer | Phelype Oleinik |
Enthalten in | TeX Live als namedef MiKTeX als namedef |
Themen | Expl3 Makro-Definitionen Allgemeine Makros |
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (630.2k).
Ankündigungen
Vorschläge
Vielleicht sind auch die folgenden Pakete von Interesse.
Bewertungskommentare