-
Notifications
You must be signed in to change notification settings - Fork 23
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
\DeclareExerciseCollection works not as expected #94
Labels
bug
error in the code
Comments
This is probably the same bug as #95 |
Currently, the optional argument filters exercises with or. This means an exercise is added if any of the tags match. I admit that this behaviour is not intuitive and not clearly documented. Also, I think a user should have a choice whether any or all conditions should match. |
In the next release the following code: \documentclass[a4paper]{article}
\usepackage[use-aux]{xsim}
\DeclareExerciseTagging{level}
\DeclareExerciseCollection[topics=algebra,level=1]{easy-algebra}
\xsimsetup{
collection/easy-algebra/match-all ,
collect
}
\begin{document}
\section{Exercises}
\collectexercises{easy-algebra}
\begin{exercise}[topics=algebra, level=1]
algebra question 1 level=1
\end{exercise}
\begin{exercise}[topics=calculus, level=1]
calculus question 1 level=1
\end{exercise}
\begin{exercise}[topics=algebra, level=2]
algebra question 2 level=2
\end{exercise}
\collectexercisesstop{easy-algebra}
\printcollection{easy-algebra}
\end{document} will give |
BTW: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the example in the manual, I would expect that
selects all exercises which have the topic
algebra
and arelevel 1
questions. However, it seems thatalgebra
or arelevel 1
questions are selected. Is there a way to make the former work such that one the first question is printed in the example below?The text was updated successfully, but these errors were encountered: