I'm trying to create a new environment:
\newenvironment{tasksx}{
\begin{tasks}[counter-format = (tsk[a]), after-item-skip = -.5ex, before-skip = -2.5em, after-skip = 1em]
\task
\end{tasks}
}
But when I try to compile:
Text
\begin{tasksx}(3)
\task 1
\task 2
\task 3
\task 4
\task 5
\end{tasksx}
I get the error: !Undefined control sequence. \task 1