may I ask one more question, as I'm stuck with this: how to use \whiledo inside tabular environment?
Here is a function, which somehow needs to output '&' to the tabular out of whiledo loop:
Code: Select all
\newcommand{\VAanalyse}[2]{
\subsubsection{\fontspec{#1}#1}
\begin{verse}
\begin{tabular}{rl}
variant & demonstration \\
\hline \\
\newcounter{ctr}
\setcounter{ctr}{1}
\whiledo{\value{ctr}<#2 \OR \value{ctr}=#2}
{
\arabic{ctr} &
{
\fontspec[Variant=\arabic{ctr}]{#1}
\testtext
} \\
\stepcounter{ctr}
}
\end{tabular}
\end{verse}
}