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}
Iceheat
  • 23
  • 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 08: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 01 '17 at 03:37
  • @JohnKormylo, it doesn't work. – Iceheat Mar 01 '17 at 04:29
  • Questions are basically lists, so you could just use e.g. \setlength{\itemsep}{1in} within the questions environment. – campa Mar 01 '17 at 09:01
  • Interesting, because it worked just fine for me. How recent is your version of exam class? – John Kormylo Mar 01 '17 at 13:32

1 Answers1

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}%
}
Werner
  • 603,163