答案1
您可以启用layouts
样式并选择合适的模板进行练习。
\documentclass{article}
\usepackage{xsim}
\loadxsimstyle{layouts}
\xsimsetup{exercise/template=runin}
\begin{document}
\begin{exercise}[points=4]
\end{exercise}
\begin{exercise}[points=4]
\end{exercise}
\begin{exercise}[points=4]
\end{exercise}
\begin{exercise}[points=4,bonus-points=10]
\end{exercise}
\end{document}