I am trying to make a "for loop" that will iterate the variable reaches 1. However, none of the "for loops" I have found in the Internet works.
These files will be distributed to other people and thus it would help if we only stick to the default packages. In this case, I'm using the ifthen
package.
\newcommand{\displayauthors}[1]
{
\newcounter{blargh}
\setcounter{blargh}{#1}
\ifthenelse{#1 = 0}{
}{
\the\value{blargh}
\displayauthors{\value{blargh}}
}
This command is error-free. However, when I run
\displayauthors{2}
LaTeX complains that
Command \c@blargh already defined.
What is causing this and how do I fix this?