0

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?

Sebastiano
  • 54,118
  • Will each problem always be accompanied by a solution? How complex of a structure could the solution part be (in terms of LaTeX code)? – Werner Feb 07 '22 at 21:55
  • Yes, there will be a solution for each problem. Problems will have simple solutions, eg. \problem{Solve 2x+3=5.}{1}. – Katarina Feb 07 '22 at 22:08
  • There are the packages xsim, exercise, answers, propsoln, … – cgnieder Mar 12 '22 at 08:14

0 Answers0