0

exsheets can be used to print out of solutions to a set of exercises. For example:

enter image description here

My question is, how do I reduce the vertical distance between solutions? This is what a series of questions and solutions look like (this code works) when using the exsheets package

\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 Answer 1

1

You can change the skip-below dimension for the solution environment. (default= +0.5\baselineskip)

a

\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}
1
  • The solution given works. However, I also had a task list inside the solution, which added its own vertical space. Use after-skip=-10pt to remove that space as well, eg \settasks{after-skip=-10pt}
    – rhody
    Sep 5, 2022 at 20:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .