I use the flashcard package in my work. I want to use task package in my flashcards, but it seems to be impossible. Who can help me?

My TeX code is:

\documentclass[avery5371,grid,frame]{flashcards}
\begin{document}
%\cardfrontstyle{empty}
\begin{flashcard}{Hi}
\end{flashcard}
\end{document}


I can reproduce the issue. The compilation never ends, I don't understand why. Do you absolutely need the task package? You could use the enumitem environment and customize it, as shown below.

Alternative solution

\documentclass[avery5371,grid,frame]{flashcards}

\usepackage{enumitem}

\begin{document}

\begin{flashcard}{Hi}

Toto

\begin{enumerate}[label=\alph*)]
\item First
\item Second
\item Third
\item Forth
\end{enumerate}

\end{flashcard}

\end{document}

• Thanks for your answer. This package has been used for multiple-choice questions. If it can not possible I should use another enviroments, like you. – Mohammad Golestani Oct 20 at 5:37

I don't know where the problem stems from but I have a simple solution: wrap the tasks environment in braces:

\documentclass[avery5371,grid,frame]{flashcards}