Created
January 17, 2016 19:25
-
-
Save vasishth/cba616388c4bc62263f0 to your computer and use it in GitHub Desktop.
The solutions to the automated test.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt,a4paper]{article} | |
%% packages | |
\usepackage{a4wide,verbatim,Sweave,url} | |
%% new environments | |
\newenvironment{question}{\item \textbf{Problem}\newline}{} | |
\newenvironment{solution}{\textbf{Solution}\newline}{} | |
\newenvironment{answerlist}{\renewcommand{\labelenumi}{(\alph{enumi})}\begin{enumerate}}{\end{enumerate}} | |
%% paragraphs | |
\setlength{\parskip}{0.7ex plus0.1ex minus0.1ex} | |
\setlength{\parindent}{0em} | |
%% fonts: Helvetica | |
\renewcommand{\sfdefault}{phv} | |
\IfFileExists{sfmath.sty}{ | |
\RequirePackage{sfmath} | |
\renewcommand{\rmdefault}{phv} | |
}{} | |
\newcommand{\extext}[1]{\textbf{\large #1}} | |
\newcommand{\exmchoice}[5]{% | |
\mbox{(a) \,\, \framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#1}} \hspace*{2mm}}% | |
\mbox{(b) \,\, \framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#2}} \hspace*{2mm}}% | |
\mbox{(c) \,\, \framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#3}} \hspace*{2mm}}% | |
\mbox{(d) \,\, \framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#4}} \hspace*{2mm}}% | |
\mbox{(e) \,\, \framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#5}} \hspace*{2mm}}% | |
} | |
\newcommand{\exnum}[9]{% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#1}}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#2}}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#3}}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#4}}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#5}}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#6}}}% | |
\mbox{ \makebox[3mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-2mm} .}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#7}}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#8}}}% | |
\mbox{\framebox[8mm]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#9}}}% | |
} | |
\newcommand{\exstring}[1]{% | |
\mbox{\framebox[0.9\textwidth][l]{\rule[-1mm]{0mm}{5mm} \hspace*{-1.6mm} \extext{#1}} \hspace*{2mm}}% | |
} | |
%% new commands | |
\makeatletter | |
\newcommand{\ID}[1]{\def\@ID{#1}} | |
\newcommand{\Date}[1]{\def\@Date{#1}} | |
\ID{00001} | |
\Date{YYYY-MM-DD} | |
%% \exinput{header} | |
\newcommand{\myID}{\@ID} | |
\newcommand{\myDate}{\@Date} | |
\makeatother | |
%% headings | |
\markboth{\textnormal{\bf \large Statistics Test: \myID}}% | |
{\textnormal{\bf \large Statistics Test: \myID}} | |
\pagestyle{myheadings} | |
\begin{document} | |
%% title page | |
\thispagestyle{empty} | |
{\sf | |
\textbf{\LARGE{University of Potsdam}} | |
\textbf{\large{Statistics Test \myDate \hfill Exam ID \myID}} | |
%\vspace*{2cm} | |
%\begin{tabular}{p{14cm}} | |
%\textbf{Name:} \hrule \\[1.5cm] | |
%\textbf{Student ID:} \hrule \\[1.5cm] | |
%Declaration: This submission is my work alone; I did not consult anyone about it, and I did not use any other unfair means for obtaining the answer(s). | |
%\newline | |
%\textbf{Signature:} \hrule \\[1.5cm] | |
%\end{tabular} | |
%\vspace*{1cm} | |
%% \exinput{questionnaire} | |
} | |
\newpage | |
\begin{enumerate} | |
%% \exinput{exercises} | |
\end{enumerate} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment