TransWikia.com

Exsol package didn't work with me

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}

One Answer

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:

enter image description here

Correct answer by Marijn on April 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP