\documentclass[12pt,twoside,addpoints]{exam}

\usepackage[top=15mm,bottom=20mm,right=20mm,left=20mm]{geometry}
\usepackage{pgffor}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage{enumerate}
\usepackage{multicol}
\usepackage{cancel}
\usepackage{fontspec}
\usepackage{background}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{wasysym}
\usepackage{rotating}

\usepackage{ifthen}   % Required for conditional statements
\usepackage{pgf}      % Required for random number generation
\printanswers

\input{0-include}
% that's all folks

\usetikzlibrary{decorations.text, shadows}
\newfontfamily\looney[]{That's Font Folks!}
\definecolor{darkblueOuter}{RGB}{1,11,23}
\definecolor{darkblueInner}{RGB}{1,18,37}
%

\setcounter{tocdepth}{1}

\title{\textsc{Year 9 Mathematics\\ Topic 3\\Consumer Arithmetic [Workshop]}}
\author{PEN Education}
\date{\today}


\setlength\parindent{0pt}


\backgroundsetup{placement = top, hshift=0cm, vshift=-\textwidth*0.65, scale = 0.85, contents ={\ifnum\value{page}=1 \includegraphics[width=\textwidth]{img/logo-cover.png}\else \fi}}

% some exam environment options
\marksnotpoints
\pointsinrightmargin
\boxedpoints
\setlength{\rightpointsmargin}{1cm}


\newcommand{\randomword}[1]{%
  \pgfmathsetmacro{\angle}{random(-45,45)}% Generate a random angle between -45 and 45
  \rotatebox{\angle}{#1}%
}


\begin{document}

\maketitle % this sets the current page style to title
\dotfill


\tableofcontents

\cfoot{\thepage}

\dotfill
\section{Introduction}
    \input{1-intro}
%\section{Review of Content}
%    \input{2-review}
\section{New Problems, Old Theory}
    \input{3-new}
\section{Individual Work}
    \input{4-individual}
\section{Group Race}
    \input{5-group}
\section{Homework}
    \input{0-homework}
%\section{The End}
%\hspace{4.5cm}
%    \input{0-outro}

%playground

\end{document}

% Local Variables:
% TeX-engine: luatex
% End:
