\documentclass[
$if(papersize)$
  $papersize$paper,
$endif$
$for(classoption)$
  $classoption$$sep$,
$endfor$
]{amnestyreport}
$highlighting-macros$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title{$title$}
$endif$
$if(subtitle)$
\subtitle{$subtitle$}
$endif$
$if(titleimage)$
\titleimage{$titleimage$}
$endif$
$if(titleimagecaption)$
\titleimagecaption{$titleimagecaption$}
$endif$
$if(copyrightyear)$
\copyrightyear{$copyrightyear$}
$endif$
$if(firstpublicationyear)$
\firstpublicationyear{$firstpublicationyear$}
$endif$
$if(reportyear)$
\reportyear{$reportyear$}
$endif$
$if(reportmonth)$
\reportmonth{$reportmonth$}
$endif$
$if(reportindex)$
\reportindex{$reportindex$}
$endif$
$if(blurb)$
\blurb{$blurb$}
$endif$

$if(bibliography)$
\addbibresource{$bibliography$}
$endif$

\begin{document}
\frontmatter
\maketitle

$for(include-before)$
$include-before$
$endfor$

$if(toc)$
\tableofcontents
$endif$
$if(lof)$
\listoffigures
$endif$
$if(lot)$
\listoftables
$endif$
\mainmatter

$body$

\backmatter
\end{document}