0

How do I change the vertical separation of questions in a questions environment? I need to know how to do it because there are times a vertical separation is not needed, and there are times it is more appropriate (or it looks better) for the exam to have some vertical separation.

I already used the method of using enumitem package as described here, but it doesn't work.

MWE:

\documentclass[11pt]{exam}

\begin{document}

\begin{questions}
\question He believed that matter consists of four elements of air, earth, water, and fire.
\question She believed that the children are our future if they are taught well.
\end{questions}

\end{document}
  • 2
    Welcome to TeX.SE. Please edit your posting so that it acually generates the issue you're trying to fix. (With a single \question item in a questions environment, how can one talk about the vertical distance between (at least a pair of) items?) – Mico Feb 28 '17 at 8:00
  • Just stick a \vfill between the questions (or \vspace{1in} for example). – John Kormylo Feb 28 '17 at 16:18
  • I'm sorry @Mico. You're right, I didn't realize it :) I edited it now. – Iceheat Mar 1 '17 at 3:37
  • @JohnKormylo, it doesn't work. – Iceheat Mar 1 '17 at 4:29
  • Questions are basically lists, so you could just use e.g. \setlength{\itemsep}{1in} within the questions environment. – campa Mar 1 '17 at 9:01
1

I use the following in my preamble.

You can set the itemseparation, topseparation, leftmargins etc, for questions, question parts, subparts and subsubparts as well.

\renewcommand{\questionshook}{%
  \setlength{\itemsep}{0.7cm}%
}

\renewcommand{\partshook}{%
  \setlength{\itemsep}{0.7cm}%
  \setlength{\topsep}{0.7cm}%
  \setlength{\leftmargin}{0cm}%
}

\renewcommand{\subpartshook}{%
  \setlength{\itemsep}{0.7cm}%
  \setlength{\topsep}{0.7cm}%
}

\renewcommand{\subsubpartshook}{%
  \setlength{\itemsep}{0.7cm}%
  \setlength{\topsep}{0.7cm}%
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.