General ⇒ Adding space under headers in exam.cls
Adding space under headers in exam.cls
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Adding space under headers in exam.cls
use \vspace*, as the following example suggests:
Code: Select all
\documentclass{exam}
\pagestyle{headandfoot}
\runningfootrule
\lhead[Math 115]{}
\chead[First Exam]{}
\rhead[July 4, 1776]{}
\lfoot[]{Math 115}
\cfoot[]{First Exam}
\rfoot[]{Page \thepage\ of \numpages}
\begin{document}
\vspace*{5cm}%change the argument to suit your needs
\begin{questions}
\question
Why is there air?
\question
How much wood would a woodchuck chuck if a woodchuck could chuck wood?
\question Compute $\displaystyle\int_0^1 x^2 \, dx$.
\end{questions}
\end{document}
Re: Adding space under headers in exam.cls
Adding space under headers in exam.cls
\vspace* inserts vertical space after the line in which it appears. Vertical space can also be inserted by \vspace the difference is that space inserted by \vspace will be deleted if it occurs at the top of a new page.dmt wrote:I tried that ... but without the star and it didn't work. Is it the star that makes the difference, and if so, why?
space inserted by \vspace* will never be deleted. Hence \vspace* is used.
See page no. 42 of the package documentation for more info.
Thanks,
Arif