%! TEX program = lualatex \documentclass[12pt,twoside,addpoints]{exam} \noprintanswers{} \input{0-include} \input{0-gradetables} \title{\textsc{Year 9 Mathematics\\ Topic 7a\\: Index Laws}} \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{The Index Laws} \setcounter{secmarks}{0} \input{2-ind-laws} \setcounter{sec2marks}{\thesecmarks} \section{Negative Indices} \setcounter{secmarks}{0} \input{3-neg-ind} \setcounter{sec3marks}{\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{3} \end{document} % Local Variables: % TeX-engine: luatex % End: