Code: Select all
\documentclass[11pt]{exam}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage[margin=1in]{geometry}
\newcommand{\class}{Class title}
\newcommand{\term}{Winter 2015}
\newcommand{\examnum}{Test 1}
\begin{document}
\pagestyle{head}
\runningheadrule
\firstpageheader{\textbf{\textsl{\textsf{Class title}}}}{\Large{\textbf{\textsf{Test 1}}}}{\large{\textsf{Winter 2015}}}\runningheader{\textsl{Class title}}{Winter 2015}{Page \thepage\ of \numpages}
\begin{minipage}[t]{6.5in}
\textsf{Name:} \makebox[2.5in]{\hrulefill}
\medskip\medskip
\textbf{If you want to be successfull:}
\medskip
\begin{itemize}
\item A directive.
\medskip
\item Another directive.
\medskip
\item A directive again.
\medskip
\item Yet another directive.
\medskip
\item You will fail anyway!
\end{itemize}
\medskip
\end{minipage}
\rule[1ex]{\textwidth}{0.1pt}
\begin{questions}
\addpoints
\question[2] A question.
\question[5] Another question.
\newpage
\question[10] Calculate $f(x) = x^2$ from $x = 1$ ?
\newpage
\question[10] Consider this $f(x) = x^2$.
\end{questions}
\end{document}
\noindent
works for the name field, but do nothing for the next line (defined in a minipage).Also, I would like to see the page number alternated left-right in the header, depending on the page number, since the document would be printed on both sides of the paper.
(and why is the overleaf preview so long ?).