I am writing a documentclass for exam papers and using a \question command:
Code: Select all
\newcommand{\question}[3]{%
\section{\grade/\thesection}%
#2\\
\fbox{%
\begin{minipage}{0.98\columnwidth}
\parbox[t][#1]{0.97\columnwidth}{#3}
\end{minipage}
}
}
Is there a way to get the minipage or parbox to vertically scale so that it is *at least* the height of the first argument, but will go more than that to space things out?
At present, when I have several questions, if the 'next' question is too large to fit on the page, it creates it on a new page, but the current page might have three or four questions with the last one on the current page maybe 10cm above the end of the page. I am using a twocolumn layout. Thanks.