\documentclass[10pt, twoside, twocolumn]{extarticle}
\usepackage[utf8]{inputenc}

\usepackage[left=1cm, right=1cm, top=1cm, bottom=1cm, portrait, a4paper]{geometry}
\setlength{\columnsep}{1cm}

\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent

\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}

\usepackage{framed}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
%\fancyhead[LO,LE]{\Large \thetitle}
\fancyfoot{} % clear all footer fields
\fancyfoot[RE,RO]{}%{\thepage}
%\fancyfoot[LO,LE]{Reactive Systems Engineering 2013}
\renewcommand{\headrulewidth}{0pt}% 1pt
\renewcommand{\footrulewidth}{0pt}% 1pt

\newcommand{\tightlist}{}

\renewcommand{\labelitemi}{--}
\usepackage{enumerate}

%\usepackage[pdftex]{changebar}

\usepackage{amssymb}

\usepackage{url}
%\usepackage[hyphens]{url}
%\usepackage[]{hyperref}
\usepackage[breaklinks]{hyperref}
\urlstyle{same}

\usepackage{aeguill}

\usepackage{multicol}
\usepackage[usenames]{xcolor}
\definecolor{gray}{rgb}{.3,.3,.3}

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\usepackage{tabularx}
\usepackage{booktabs}

%\usepackage{helvet}
%\usepackage{charter}
%\renewcommand{\sfdefault}{phv}

\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{40mm}
\setlength{\TPVertModule}{10mm}
\textblockorigin{20mm}{20mm} % start everything near the top-left corner


\usepackage{enumitem}

\LetLtxMacro{\OldIncludegraphics}{\includegraphics}
\renewcommand{\includegraphics}[2][]{\OldIncludegraphics[width=\linewidth, #1]{#2}}
\renewcommand{\caption}{}

\usepackage{ifthen}

\newcommand{\nbox}[1]{%
\setlength{\fboxsep}{2pt}
\setlength{\fboxrule}{0.4pt}
\framebox[0.3in][r]{\raisebox{-0.8cm}{\small\textsf{#1}}}}

\newcommand{\teamprefix}[4]{%
% #1 team number
% #2 course
% #3 rat
% #4 date
\vspace*{5cm}%
\begin{center}
\begin{minipage}{0.5\linewidth}
\emph{Keep the scratch card attached to the paper and hand in both of them.}
\end{minipage}
\end{center}
\vspace*{5cm}%
\addthumb{}{#1}{white}{black}
\begin{tabular}{@{}ll}%
\ifthenelse{\not\equal{#2}{}}{Course: & \textbf{#2}\\}{}%
RAT: & \textbf{#3} \\
\ifthenelse{\not\equal{#4}{}}{Date: & \textbf{#4}\\}{}%
Team: & \textbf{#1}\\
\end{tabular}\\%
\rule{\linewidth}{0.4pt}
\vfill
}%

\newcommand{\individualprefix}[7]{%
% #1 name
% #2 name shortcode
% #3 team number
% #4 table (optional)
% #5 course
% #6 rat
% #7 date
\begin{tabular}{@{}ll}
\ifthenelse{\not\equal{#5}{}}{Course: & \textbf{#5}\\}{}%
RAT: & \textbf{#6} \\
\ifthenelse{\not\equal{#7}{}}{Date: & \textbf{#7}\\}{}%
      &   \\
Name: & \textbf{#1} --- \texttt{#2}\\
Team: & \textbf{#3} \\
\ifthenelse{\not\equal{#4}{}}{Table: & \textbf{#4}\\}{}%
\end{tabular}\vspace{1em}

%
\rule{\linewidth}{0.4pt}
\textsf{\textbf{Instructions:}}
\begin{itemize}\setlength\itemsep{-0.5em}
\item Select \textbf{one} answer alternative for each question.
\item Select the answer alternative that matches \textbf{best}.
\item No helping material is allowed.
\item Only write within the answer box.
\end{itemize}
%
\rule{\linewidth}{0.4pt}
\textsf{\textbf{Answers:} (A, B, C, or D)}\\
\begin{tabularx}{\linewidth}{@{}XXXXXXXXXX}
\nbox{1}&\nbox{2}&\nbox{3}&\nbox{4}&\nbox{5}&\nbox{6}&\nbox{7}&\nbox{8}&\nbox{9}&\nbox{10}\\
\end{tabularx}\\

\textsf{\textbf{Checksum:} (Count how many of each letters you have used.)}\\
\begin{tabularx}{\linewidth}{@{}XXXXXXXXXX}
\nbox{A} & \nbox{B} & \nbox{C} & \nbox{D}   & & & & & & \\
\end{tabularx}
\vfill
}%

% pandoc creates figures that float away, so we override and set position to H.
% Overwrite \begin{figure}[htbp] with \begin{figure}[H]
\usepackage{float}
\let\origfigure=\figure
\let\endorigfigure=\endfigure
\renewenvironment{figure}[1][]{%
  \origfigure[H]
}{%
  \endorigfigure
}

\usepackage[sfdefault]{biolinum}

\newcommand{\question}[1]{
\vspace{10pt}
\vfill
\rule{\linewidth}{0.4pt}
\textsf{\textbf{Question #1:}}
}

\usepackage[width=0.8cm]{thumbs}

\begin{document}
\pagenumbering{arabic}
