I'd like to know if the following is possible with the xsim
package:
- Could the space created by commands like
\blank[width=4.8\linewidth,linespread=1.5]{}
(as given in the manual) not be printed ifsolution/print
is set totrue
? - Could a part of the document that is not a question be printed only if a particular tag is selected?
In other words, I'd like to achieve the following:
\documentclass{article}
\usepackage{xsim}
\xsimsetup{
solution/print = true,
tags = A
}
\begin{document}
% This part would be printed only if the tag A was selected.
\somecommand{Instruction for A}
\begin{exercise}[tags={A, B}]
Tell me your mood
% Those lines would *not* be printed if solution/print is set to true.
\blank[width=4.8\linewidth,linespread=1.5]{}
\end{exercise}
\end{document}
I've read the documentation but can't figure out whenever this is possible or not.
print
toggles. The same goes for tags, exposed in 7.4. The section 13.3. "Commands for Usage in Template Definitions" is rich in additional commands , but I don't see any command being able to trigger something outside a solution or question environment.