Skip to content
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

Example file xsim.issue-49.tex does not produce expected output #96

Closed
wwywong opened this issue Jan 20, 2022 · 3 comments
Closed

Example file xsim.issue-49.tex does not produce expected output #96

wwywong opened this issue Jan 20, 2022 · 3 comments

Comments

@wwywong
Copy link

wwywong commented Jan 20, 2022

The file xsim.issue-49.tex does not produce the output included in the repository. Exercises 6, 7, and 8 have repeated choice labels. (See also https://tex.stackexchange.com/q/630848/119 )

Built using:

This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021/Arch Linux) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./xsimtest2.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2021-11-22>

xsim version: Package: xsim 2021/02/03 v0.20c eXercise Sheets IMproved
tasks version: Package: tasks 2021/02/20 v1.3a lists with columns filled horizontally

@wwywong
Copy link
Author

wwywong commented Jan 20, 2022

I am guessing this is broken by some change to the tasks package.

Replacing the definition of \correct to add \refstepcounter seems to fix the problem.

\newcommand*\correct{\refstepcounter{task}\thetask\expanded{\SetExerciseProperty{choice}{\thetask}}}

@muzimuzhi
Copy link

The change came from a fixed problem in tasks. According to cgnieder/tasks#24, the \refstepcounter is now required since tasks v1.4 (2022/01/08).

@cgnieder
Copy link
Owner

Thanks. Fixed for the next release.

cgnieder added a commit that referenced this issue Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants