New on CTAN: namedef
Date: June 21, 2020 7:36:05 PM CEST
Phelype Oleinik submitted the
namedef
package.
Version: 1.0 2020-06-20
License: lppl1.3c
Summary description: TeX definitions with named parameters
Announcement text:
namedef 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.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/namedef The package’s files themselves can be inspected at http://mirror.ctan.org/macros/generic/namedef/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
namedef 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.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/namedef The package’s files themselves can be inspected at http://mirror.ctan.org/macros/generic/namedef/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
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.
Package | namedef |
Version | 1.0 2020-06-20 |
Copyright | 2019–2020 Phelype Oleinik |
Maintainer | Phelype Oleinik |