-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of \thetask in the tasks environment is messed up #24
Comments
dejanziv
changed the title
Usa of \thetask in the tasks environment is messed up
Use of \thetask in the tasks environment is messed up
Mar 10, 2021
The change is due to #23. This should never have worked in the first place. Here is a working version: \documentclass{article}
\usepackage{tasks}
\newif\ifshowanswers
\showanswerstrue
\newcommand{\correct}{%
\refstepcounter{task}%
\ifshowanswers
\bfseries
\fi
\thetask
}
\begin {document}
A tricky question follows:
\begin{tasks}
\task[\correct] Correct answer 1.
\task Wrong answer 1.
\task Wrong answer 2.
\task Wrong answer 3.
\task[\correct] Correct answer 2.
\end{tasks}
\end{document} |
Dear Clemens,
Thanks a lot for your prompt reply! I admit I didn't pay close attention to
#23.
Best regards,
Dejan Zivkovic
…On Sun, Mar 14, 2021 at 10:34 AM Clemens Niederberger < ***@***.***> wrote:
The change is due to #23 <#23>.
This should never have worked in the first place. Here is a working version:
\documentclass{article}\usepackage{tasks}
\newif\ifshowanswers\showanswerstrue
\newcommand{\correct}{%
\refstepcounter{task}%
\ifshowanswers
\bfseries
\fi
\thetask
}
\begin {document}
A tricky question follows:
\begin{tasks}
\task[\correct] Correct answer 1.
\task Wrong answer 1.
\task Wrong answer 2.
\task Wrong answer 3.
\task[\correct] Correct answer 2.\end{tasks}
\end{document}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOTHETNZIGJLZQXB7VMPBUTTDR7KVANCNFSM4Y5U6ZVQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use of \thetask in the tasks environment is messed up in the latest version 1.3a, as illustrated in the attached minimal example. With previous version 1.3 the example works just fine.
brokentasks.pdf
The text was updated successfully, but these errors were encountered: