%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Cover sheet for TU/e examinations. Sample tex file.
% LaTeX code original version written by Hans Cuypers,
% slightly adapted by Marko Boon and updated to 2020 version.
% For questions or information, please contact m.a.a.boon@tue.nl
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{exam}
% For the version in color:
\usepackage{tuecover2020}
% For the version in black/white:
%\usepackage[grayscale]{tuecover2020}
\usepackage{a4wide}
\newcommand{\coursename}{Transport and Distribution}
\newcommand{\coursecode}{1CK00}
\newcommand{\examdate}{03-07-2018}
\newcommand{\starttime}{18:00}
\newcommand{\stoptime}{21:00}
\newcommand{\nop}{\numpages} %number of pages
\newcommand{\noq}{\numquestions} %number of questions
\renewcommand{\npoints}{\numpoints\ }
\newcommand{\finalgrade}{divide total of points by 3}
\newcommand{\typeofanswers}{open questions}
\newcommand{\inspection}{July 13, 10.00-11.00 or July 14, 10.00-11.00 (by e-mail appointment prior to July 12!)}
\newcommand{\remarksone}{The answers should fit within the provided box. \textcolor{red}{Do not give answers on other pages!}}
\newcommand{\remarkstwo}{Give you answers in \textcolor{red}{ENGLISH!}}
\newcommand{\remarksthree}{Put your name and student number on \textcolor{red}{EACH} page!}
\notebookallowed
%\calculatorallowed
\graphiccalculatorallowed
%\lecturenotesbooksallowed
\notesallowed
\dictionaryallowed{Dutch-English, English-Dutch}
\othertoolsallowed{iPad}
\headrule
\footrule
\lhead{Name: \hspace{5cm}Student ID:}
% \rhead{this is page \thepage}
\cfoot{}
\rfoot{Page \thepage\ of \numpages}
%Load the file with all the layout
\begin{document}
%create an English version
\makefirstpageEN
\newpage
% The actual exam
% \setlength{\parskip}{0.5em}
% \setlength{\parindent}{0cm}
% \large
\begin{questions}
\addpoints %needed by the \numpoints command; without this, the points are not counted correctly.
\question[5]
Who's your favorite professor?
\makeemptybox{1in}
\question This is an essay question with two parts.
\begin{parts}
\part[2]
The first part is worth 2 points.
\begin{solution}[1in]
This is the solution to the first part of the first question.
\end{solution}
\part[3]
The second part is worth 3 points.
\begin{solution}[2in]
This is the solution to the second part of the first question.
\end{solution}
\end{parts}
\question This is a multipart, short-answer question.
\begin{parts}
\part[2] This is the first short-answer question. It calls for an
answer here. \answerline[a.1 answer]
And again here. \answerline[a.2 answer]
\part[1] This is the second short-answer question.
\answerline[b answer]
\end{parts}
\newpage
\question[3] This is a multiple choice question with the choices
displayed horizontally.
\begin{oneparchoices}
\choice Choice one.
\choice Choice two.
\choice Choice three.
\choice Choice four.
\end{oneparchoices}
\begin{solution}[0.5in]
Choice three is correct.
\end{solution}
\question[3] This is a another multiple choice question with the choices
displayed as a vertical list.
\begin{choices}
\choice Choice one.
\choice Choice two.
\choice Choice three.
\choice Choice four.
\end{choices}
\begin{solution}[0.5in]
Choice four is correct this time.
\end{solution}
\end{questions}
\end{document}