TeX - LaTeX Asked on April 16, 2021
Exsol package didn’t work with me in this code:
documentclass{book}
usepackage{exsol}
begin{document}
begin{exercises}[columns=2]
begin{exercise}
Calculate $y = 5 + 7$
end{exercises}
begin{solution}
$y = 12$
end{solution}
begin{exercise}
Calculate $y = 7 - 12$
end{exercises}
begin{solution}
$y = -5$
end{solution}
end{exercises}
end{document}
The exsol
package requires Babel (although the manual says it is optional). You can use any language that you want, for example english
.
Furthermore, in your code, you close a single exercise with end{exercises}
, which should not have the s
at the end (only the full block should end with end{exercises}
).
Working example:
documentclass{book}
usepackage[english]{babel}
usepackage{exsol}
begin{document}
begin{exercises}[columns=2]
begin{exercise}
Calculate $y = 5 + 7$
end{exercise}
begin{solution}
$y = 12$
end{solution}
begin{exercise}
Calculate $y = 7 - 12$
end{exercise}
begin{solution}
$y = -5$
end{solution}
end{exercises}
end{document}
Result:
Correct answer by Marijn on April 16, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP