# Is it possible to use a task inside another task environment?

by manooooh   Last Updated January 14, 2018 05:23 AM

I am trying to put a task inside another task environment (I am very impressed that nobody has asked this), but it does not work:

\begin{tasks}(1)
\task Task b)1 % or b)1)  ,  or b1)  ,  something like that.


When I compile I have 7 errors.

Instead of that, I use the inparaenum environment. For example:

\begin{tasks}(1)

\begin{inparaenum}[b1)]
\item Item b1)
\hfil
\item Item b2)
\\
\item Item b3)
\hfil
\item Item b4)
\end{inparaenum}


Note that between \item Task b and \begin{inparaenum}[b1)] I added a line break because if not, the text appears immediately after Task b).

But if I run this code:

\begin{tasks}(1)

\begin{inparaenum}[a1)]
\item Item a1) % it says: 11) Item a1)
\hfil
\item Item a2) % it says: 22) Item a2)
\\
\item Item a3) % it says: 33) Item a3)
\hfil
\item Item a4) % it says: 44) Item a4)
\end{inparaenum}


I get the following warning:

Package paralist Warning: Incorrect label; no or multiple counters.
(paralist)                The label is: a1) on input line 2435.


For that reason I do not want to work with the inparaenum environment, but yes with the task environment haha. I would like to work with a task within another task. Does anyone know if this is possible?

If not, I would like to solve the second problem.

Thanks!

Tags :