Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How do I keep questions from splitting between pages in exam? For example in the MWE below, I'd like to have a page break after Question 2 so that Question 3 can start on a new page. I don't particularly care how this is done but I imagine a vertical fill would work. Is there a command within exam that does this? I only see the commands that specify what to do with the header/footer if there is continuation but nothing about disabling continuation.

EDIT: Is there a way to make exam do this automatically instead of having me specify where to have a page break?

\documentclass[addpoints]{exam}
\usepackage{blindtext}

\begin{document}

\begin{questions}

\question
\blindtext[3]
\begin{choices}
\choice 
\choice 
\choice 
\choice 
\choice 
\end{choices}

%

\question
\blindtext
\begin{choices}
\choice 
\choice 
\choice 
\choice 
\choice 
\end{choices}

%

\question
\blindtext
\begin{choices}
\choice 
\choice 
\choice 
\choice 
\choice 
\end{choices}

%

\end{questions}
\end{document}
share|improve this question
add comment

2 Answers

It looks to me that, if all else should fail, you can wrap your question-choice blocks in

\begin{minipage}{\linewidth}
\question \dots
\end{minipage}
share|improve this answer
add comment

Use \newpage after question 2. This will start question 3 on a new page.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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