CTAN Comprehensive TeX Archive Network

Ankündigungen für namedef

namedef – definitions with named parameters

This package provides a prefix \named to be used in 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.

Paketnamedef
Version1.0 2020-06-20
Copyright2019–2020 Phelype Oleinik
BetreuerPhelype Oleinik

Atom Atom-1.0-Feed mit Ankündigungen für das Paket namedef.
RSS RSS-2.0-Feed mit Ankündigungen für das Paket namedef.

Gästebuch Seiten-Struktur Impressum Autor kontaktieren