I have an exam class document containing only questions (about 500 or so questions) using
\begin{questions}
\question[5] Question 1 text
\question[10] Question 2 txt
\question[10] Question 3 txt
...
\question[10] Question 500 txt
\end{questions}
I don't intend to generate solutions for any question. Currently all questions appear one after the other in the document.
Now I want each question to appear on a new page. What is the easiest/fastest way to do this without adding solutions environment to each question manually?
I did NOT add the following code after each \question environment to leave all the remaining space on the page blank (as advised in the manual).
\vspace*{\stretch{1}}
\newpage
Thanks in advance!
Edit: Is there a way to modify:
\renewcommand{\questionshook}{\setlength{\itemsep}{1in}}
As given in the exam class manual, this command inserts additional one inch of blank space between questions.
\newpage
without thevspace*
?/newpage
after each question. The solution demands for simple command to get new question on each page.\newpage
before each question, as suggested by Peter Wilson, would be an easy search-and-replace job for a text editor, so it does count as a solution in my eyes. – Still, your desired approach would be much cleaner. Have you tried sth like\newcommand{\pagequestion}{\newpage\question}
and\pagequestion[10]
? It works for me.\documentclass{exam}
) I made for testing purposes. You didn't give us a MWE to work with: that's all I could do. – To the point: I agree with your requiring a clean solution (setting one parameter > find-replace-all). It's surprisingly difficult, though.\question
resists to many of the direct approaches (renewcommand, patch, appto, \let\oldquestion\question etc.). It might be worth contacting the maintainer about this.