% use [nosolutions] flag to hide solutions.
% use [solutions] flag to show solutions.
\documentclass[
	solutions,
	singlenumbering
]{../../../lib/tex/handout}
\usepackage{../../../lib/tex/macros}


\usepackage{mathtools} % for \coloneqq

%\usepackage{lua-visual-debug}

\usepackage{censor}
\usepackage{alltt}


\newenvironment{helpbox}[1][0.5]{
	\begin{center}
	\begin{tcolorbox}[
		colback=white!90!black,
		colframe=white!90!black,
		coltitle=black,
		center title,
		width = #1\textwidth,
		leftrule = 0mm,
		rightrule = 0mm,
		toprule = 0mm,
		bottomrule = 0mm,
		left = 1mm,
		right = 1mm,
		top = 1mm,
		bottom = 1mm,
		toptitle = 1mm,
		lefttitle = 1mm,
		titlerule = 1pt,
		title={\textbf{Things you will need:}}
	]
}{
	\end{tcolorbox}
	\end{center}
}

% Logic block comment
\newcommand{\cmnt}[1]{\textcolor{gray}{\# #1}}

\newcounter{allttLineCounter}
\setcounter{allttLineCounter}{0}

\newcommand{\linenoref}[1]{\colorbox{gray!30!white}{#1}}
\newcommand{\lineno}{
	\stepcounter{allttLineCounter}%
	\linenoref{\ifnum\value{allttLineCounter}<10 0\fi\arabic{allttLineCounter}}%
}

% Redefine alltt so it automatically
% resets allttLineCounter
\let\oldalltt\alltt
\renewenvironment{alltt}
	{\setcounter{allttLineCounter}{0}\begin{oldalltt}}
	{\end{oldalltt}}


\newcommand{\thus}{\(\Rightarrow\)}
\newcommand{\qed}{\(\blacksquare\)}



\uptitlel{Advanced 2}
\uptitler{\smallurl{}}
\title{To Mock a Mockingbird}
\subtitle{
	Prepared by Mark on \today \\
	Based on a book of the same name.
}

\begin{document}

	\maketitle

	\input{parts/00 intro}
	\input{parts/01 tmam}
	\input{parts/02 kestrel}
	\input{parts/03 bonus}

\end{document}