I'm trying to create a notes packet for my class, which is basically a long list of questions, 2 or 3 to a page, with space after each question where the students can work out solutions.
I'm using the enumitem
package, and I have worked out an almost perfect solution, using a custom list enviroment and defining itemsep
and after
to do the vertical spacing work:
\documentclass{article}
\usepackage[shortlabels]{enumitem}
\newlist{questions}{enumerate}{1}
\setlist[questions]{label=\itshape{{Question }\arabic*.},
ref={Question }\arabic*,
leftmargin=*,
itemindent=*,
itemsep=\fill,
after={\vfill},
resume}
\begin{document}
\begin{questions}
\item First Question
\item Another Question
\item Another Question
\item Another Question
\end{questions}
\end{document}
This works fine, until I decide I want to spread these questions out over two pages, by manually inserting a \newpage
:
\begin{document}
\begin{questions}
\item First Question
\item Another Question
\newpage
\item Another Question
\item Another Question
\end{questions}
\end{document}
In this version, Question 2 ends up at the bottom of page 1, with no space after it. I can sorta fix it by ending the questions
list before the newpage, and restarting it afterwards, like so:
\begin{document}
\begin{questions}
\item First Question
\item Another Question
\end{questions}
\newpage
\begin{questions}
\item Another Question
\item Another Question
\end{questions}
\end{document}
...but ending and restarting the list every time I want to insert a new page is a pain.
Is there a more "elegant" (read: easier) way to get the behavior I want using the enumitem package? I'm pretty sold on enumitem and I'd rather not switch to a different package unless there is a really good reason to.
\vfill\newpage
will put question 2 somewhere in the middle.\def\vfnp{\vfill\newpage}
?