每当没有提供解决方案时,XSIM 都会重复练习的陈述作为其解决方案。这只发生在自定义练习类型中。在下面的示例中,它不应显示“任务 2 的提示”。
\documentclass{article}
\usepackage{xsim}
\DeclareExerciseType{task}{
exercise-env = task ,
solution-env = taskhint ,
exercise-name = Task ,
solution-name = Hint for task ,
exercise-template = default ,
solution-template = default
}
\begin{document}
\section*{Tasks}
\begin{task}
Statement of task 1.
\end{task}
\begin{taskhint}
Hint for task 1.
\end{taskhint}
\begin{task}
Statement of task 2.
\end{task}
\begin{task}
Statement of task 3.
\end{task}
\begin{taskhint}
Hint for task 3.
\end{taskhint}
\section*{Hints}
\printallsolutions
\end{document}