4

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}
\usepackage{tasks}
\begin{document}
%\cardfrontstyle{empty}
\begin{flashcard}{Hi}
\begin{tasks}(4)
\task First
\task Second
\task Third
\task Forth
\end{tasks}
\end{flashcard}
\end{document}
1

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{tasks}% Doesn't work
\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
1

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}
\usepackage{tasks}
\begin{document}

\begin{flashcard}{Hi}
  {\begin{tasks}(4)
    \task First
    \task Second
    \task Third
    \task Forth
  \end{tasks}}
\end{flashcard}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.