I would like to write a mathbook with problems and solutions (first the problems, and then the solutions in the end). It should look somehow like this: Math book: how to write Exercise and Answers
However, I would like to have a problem and its solution together in the LaTeX source code, probably use some command similiar to this:
\problem{text of the problem}{text of the solution of the problem}
Is this possible? Is there any enviroment for this?
xsim,exercise,answers,propsoln, … – cgnieder Mar 12 '22 at 08:14