PDF verssion of D manuals

Christian Kamm kamm at nospam.de
Thu Dec 14 22:30:12 PST 2006


> I'm pretty certain you could write a TeX macro to do that.

This should do the trick:
\def\replicate#1#2{\ifnum#1>0 #2%
   \expandafter\replicate\expandafter{\number\numexpr#1-1}{#2}\fi}

Used as \replicate{4}{l}. I found this snippet - written by David Kastrup  
- in "Pearls of TEX Programming" (2005).

Christian



More information about the Digitalmars-d-announce mailing list