Re: Macro voor meervoudsvormen

Rick van Rein <[email protected]>
Newsgroups gmane.comp.tex.dutch
Message-ID <[email protected]>
Hoi Pander,

> \newcommand{\qappels}[1]{%}
> \newcommand{\qeieren}[1]{%}

Beter zou misschien wel zijn \newcommand{\quantity}[3]{%}
en dan gebruiken als \newcommand{\qappels}[1]{\quantity{appel}{appels}{#1}}
-- ik zal je theoretische bloemlezingen op currying besparen ;-)

Had je al nagedacht over het gebruik van hoofdletters trouwens?
Goed Nederlands is immers

	Ik verkocht 1 appel.
	Hoeveel zei je?
	1 Appel.

> Hoe kan ik het beste bovenstaande newcommand marco's implementeren?

Ik zou \ifnum<num><rel><num> <text>\else<text>\fi gebruiken uit TeX:

	\newcommand{\quantity}[3]{\ifnum #3=1 #1\else #2\fi}

Ongetest, maar wellicht een goed startpunt?  De hoofdletters blijven
wel een punt van zorg natuurlijk... die zou je met een \qAppels kunnen
aanpakken misschien :-)


Groet,
 -Rick
_______________________________________________
TeX-NL mailing list
[email protected]
http://www.ntg.nl/cgi-bin/mailman/listinfo/tex-nl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.