Auntie Google says yes.
Graham Lee
2008-12-31 02:07:24
Sure it's possible. You can also recur. eplain has iteration macros in it, see, eg, here.
If you're really interested in this stuff, you also want to get hold of the TeXbook, by Knuth;
Just make the following into a new command and be sure to use package ifthen
.
\begin{tabular}{l|*{10}{c|}}
\newcounter{count}
\whiledo{\value{count}<10}{
\ifthenelse{\value{count}=0}{}{\the\value{count}}
\ifthenelse{\value{count}<9}{&}{\\}
\stepcounter{count}
}
letters&a&b&c&d&e&f&g&h&i\\
\end{tabular}