[texhax] help with programming LaTeX

Uwe Lueck uwe.lueck at web.de
Thu Feb 15 15:58:10 CET 2007


> At 23:38 23.11.06, Karl Berry wrote:
> 
> >I don't know if LaTeX has special commands for loops.  In plain TeX,
> >you say
> >\loop
> >   foo
> >\if...
> >   bar
> >\repeat
> >
> >where the \if... is any TeX conditional.  To nest loops, use groups.

Here is a tiny LaTeX package for loops: 

    CTAN:/macros/latex/contrib/forloop/

Cheers, 
  Uwe. 


More information about the texhax mailing list