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 a)
\task Task b)
\begin{tasks}(1)
\task Task b)1 % or b)1) , or b1) , something like that.
\end{tasks}
\task Task c)
\end{tasks}
When I compile I have 7 errors.
Instead of that, I use the inparaenum
environment. For example:
\begin{tasks}(1)
\task Task a)
\task Task b)
\begin{inparaenum}[b1)]
\item Item b1)
\hfil
\item Item b2)
\\
\item Item b3)
\hfil
\item Item b4)
\end{inparaenum}
\task Task c)
\end{tasks}
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)
\task Task a)
\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}
\task Task b)
\task Task c)
\end{tasks}
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!
EDIT:
I have this code now:
\documentclass[11pt]{article}
\usepackage{tasks}
\begin{document}
\begin{enumerate}
\item 1.
\item 2.
\item 3.
\begin{tasks}(1)
\task a)
{\begin{tasks}(2)
\task a1)
\task a2)
\task a3)
\task a4)
\end{tasks}}
\task b)
\task c)
\end{tasks}
\item 4.
\begin{tasks}(3)
\task a)
\task b)
\task c)
\end{tasks}
\end{enumerate}
\end{document}
When I compile I get:
And a Bad Box's message:
Overfull \hbox (27.37506 too wide) in paragraph at lines 22--22
How could I fix those 2 errors?
tasks
package section 3.1: “thetasks
environment cannot be nested.”:(
. If I have a manyitem
andtask
items thetask
that is most out starts withd)
, but thesubtasks
starts correctly:a)
,b)
,c)
andd)
. Are these the problems you were talking about? Thanks.