exsheets 可用于打印一组练习的答案。例如:
我的问题是,如何减少解决方案之间的垂直距离?这是使用 exsheets 包时一系列问题和解决方案的样子(此代码有效)
\documentclass{article}
\usepackage{exsheets}
\begin{document}
\begin{question}
Answer this question
\end{question}
\begin{solution}
This is the solution
\end{solution}
\begin{question}
Another question
\end{question}
\begin{solution}
Another solution
\end{solution}
\printsolutions
\end{document}
答案1
您可以更改skip-below
解决方案环境的维度。(默认= +0.5\baselineskip
)
\documentclass{article}
\usepackage{exsheets}
\SetupExSheets[solution]{skip-below = {-0.1\baselineskip}} % added <<<<<<<<<<<<<
\begin{document}
\begin{question}
Answer this question
\end{question}
\begin{solution}
This is the solution
\end{solution}
\begin{question}
Another question
\end{question}
\begin{solution}
Another solution
\end{solution}
\printsolutions
\end{document}