I quite often see, and myself create, exercises which consist of multiple subexercises or parts, like this:
# Exercise 1
Two cars are traveling in opposite directions.
They are 2.7km apart, driving 50km/h and 65km/h, respectively.
a) Write the equations of motion for the two cars.
b) Find the time t at which the two cars will meet.
c) Find the distance traveled by the cars when they meet.
As far as I can see, this is not a feature directly provided by the xsim package. Any recommendations on how to achieve this by other means?
A solution with the enumerate or itemize environment works, but maybe there are other ways.
\documentclass{article}
\usepackage{xsim}
\begin{document}
\begin{exercise}
Two cars travel ....
\begin{enumerate}
\item Write the equations ...
\item Find the time ...
\item Find the distance ...
\end{enumerate}
\end{exercise}
\end{document}
If one uses a solution like the above one, one has to keep the subexercises or parts in the same order in both the exercise and solution environment manually.
exercise
environment, then I manually have to change them in the in thesolution
environment as well. Some people might want some points bookkeeping to work with subexercises/parts as well.