\documentclass[12pt,twoside,addpoints]{exam} \printanswers{} \input{0-include} \input{0-gradetables} \title{\textsc{Year 9 Mathematics\\ Topic 6: Formulas}} \author{PEN Education} \date{2024} \backgroundsetup{placement = top, hshift=0cm, vshift=-\textwidth*0.70, scale = 0.75, contents ={\ifnum\value{page}=1 \includegraphics[width=\textwidth]{img/logo-cover.png}\else \fi}} \begin{document} \maketitle % this sets the current page style to title \thispagestyle{headandfoot} \dotfill \tableofcontents \dotfill \section{Introduction} \setcounter{secmarks}{0} \input{1-intro} \setcounter{sec1marks}{\thesecmarks} \section{Substitution into formulas} \setcounter{secmarks}{0} \input{2-subs} \setcounter{sec2marks}{\thesecmarks} \section{Changing the subject of a formula} \setcounter{secmarks}{0} \input{3-subj} \setcounter{sec3marks}{\thesecmarks} \section{Constructing Formulas} \setcounter{secmarks}{0} \input{4-constr} \setcounter{sec4marks}{\thesecmarks} \newpage \section{Homework} \setcounter{secmarks}{0} \input{0-homework} \setcounter{hwmarks}{\thesecmarks} \foreach \i in {1,2,...,10} { \addtocounter{totalmarks}{\value{sec\i marks}} } \addtocounter{totalmarks}{\value{hwmarks}} \section{Marking} \mygradetable{4} \end{document} % Local Variables: % TeX-engine: luatex % End: