<div dir="ltr">Hi all,<br><br>I have the following problem: I wish to create a command (\addTask{taskname}), what create a command with a name what consist of two part.<br>The first part is always the same (task) and the second part is a value of a counter (taskcounter). <br>
The problem is, that \newcommand don't accept counters value as the frst arguement. I try so: <br><br>\newcounter{taskcounter}<br>\setcounter{taskcounter}{0}<br><br>\newcommand{\addTask}[1]{%<br> \newcommand{%<br>
\task\arabic{taskcounter}%<br> }{%<br> #1%<br> }%<br>}<br><br>Of course, the counter called taskcounter have a value(0), but the command named \task0 has not created. <br>Please, if comebody could help me, send a source code.<br>
Thx!<br><br><br>Gery [Balogh Gergõ]<br>
</div>