$passoptions.latex()$
\DocumentMetadata{
  lang        = $language_iso639$,
  pdfversion  = 1.7,
  pdfstandard = ua-1,
  testphase   = latest
}

\documentclass[]{$documentclass$}
\usepackage{etoolbox}
\usepackage[table]{xcolor}
\usepackage[margin=3cm, footskip=1cm]{geometry}
\usepackage{amsmath,amssymb}
% color section titles
\usepackage{sectsty}
\definecolor{section_title_color}{RGB}{32,67,92}
\sectionfont{\color{section_title_color}\sffamily\bfseries}
\subsectionfont{\color{section_title_color}\sffamily}
\subsubsectionfont{\color{section_title_color}\sffamily\bfseries}
% Table colors
\definecolor{table_header_color}{RGB}{219,219,219}
\definecolor{table_even_row_color}{RGB}{250,250,250}
\definecolor{table_odd_row_color}{RGB}{235,235,235}
% Governikus imports
\usepackage{pdflscape}
\usepackage{longtable}
% pandoc imports
\usepackage{fancyvrb}
\usepackage{tcolorbox}
\newcommand{\VerbBar}{|}
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
\definecolor{code_box_background}{RGB}{242, 242, 242}
\newenvironment{Shaded}{
  \begin{tcolorbox}[
    colback=code_box_background,
    colframe=black,
    boxsep=5pt,
    arc=4pt,
    boxrule=0.5pt,
    verbatim
  ]
}{
  \end{tcolorbox}
}
\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{#1}}
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\BuiltInTok}[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}}
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{#1}}}
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}}
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{#1}}
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{#1}}}
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
\newcommand{\ExtensionTok}[1]{#1}
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{#1}}
\newcommand{\ImportTok}[1]{\textcolor[rgb]{0.00,0.50,0.00}{\textbf{#1}}}
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\NormalTok}[1]{#1}
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{#1}}
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{#1}}
\newcommand{\RegionMarkerTok}[1]{#1}
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}}
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}}
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\usepackage{longtable,booktabs,array}
% Adjust padding of booktabs toprule, midrule and bottomrule to remove gaps
% between colored rows in tables and the rules
\aboverulesep = 0pt
\belowrulesep = 0pt

\usepackage{calc} % for calculating minipage widths
\makeatletter
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
\makeatother
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
\makesavenoteenv{longtable}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\usepackage{bookmark}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
% Metadata
\usepackage{caption}
\usepackage{hyperref}
\hypersetup{
  pdfauthor={$pdfauthor$},
  pdftitle={$app_name$},
  pdfsubject={$pdfsubject$},
  pdfkeywords={$pdfkeywords$},
  pdfproducer={LaTeX},
  pdfcreator={LaTeX via pandoc},
  hidelinks,
  colorlinks=true,
  linkcolor=section_title_color,
}
% Boxes
\definecolor{boxes_background}{RGB}{247, 247, 247}
\definecolor{boxes_frame}{RGB}{134, 152, 155}
\definecolor{important_box_background}{RGB}{248, 228, 210}
\definecolor{see_also_box_background}{RGB}{219, 239, 230}
\definecolor{note_box_background}{RGB}{208, 222, 250}
\newenvironment{ImportantBox}{
  \begin{tcolorbox}[
    colback=boxes_background,
    colbacktitle=important_box_background,
    colframe=boxes_frame,
    coltitle=black,
    boxsep=5pt,
    arc=1pt,
    boxrule=0.5pt,
    parbox=false,
    title=Important
  ]
}{
  \end{tcolorbox}
}
\newenvironment{SeeAlsoBox}{
  \begin{tcolorbox}[
    colback=boxes_background,
    colbacktitle=see_also_box_background,
    colframe=boxes_frame,
    coltitle=black,
    boxsep=5pt,
    boxrule=0.5pt,
    parbox=false,
    title=See also
  ]
}{
  \end{tcolorbox}
}\newenvironment{NoteBox}{
  \begin{tcolorbox}[
    colback=boxes_background,
    colbacktitle=note_box_background,
    colframe=boxes_frame,
    coltitle=black,
    boxsep=5pt,
    boxrule=0.5pt,
    parbox=false,
    title=Note
  ]
}{
  \end{tcolorbox}
}
% Footnote numbering
\newcounter{originalfootnotevalue}
\setcounter{secnumdepth}{3} % Numbering depth
\setcounter{tocdepth}{$tocdepth$} % ToC depth


% Common includes
\makeatletter
\IfFileExists{parskip.sty}{%
  \usepackage{parskip}
}{% else
  \setlength{\parindent}{0pt}
  \setlength{\parskip}{6pt plus 2pt minus 1pt}}
\makeatother


$fonts.latex()$
$font-settings.latex()$
$for(header-includes)$
$header-includes$
$endfor$
$after-header-includes.latex()$

% Language
\usepackage[english, ngerman, shorthands=off]{babel}
\usepackage[autostyle,german=quotes]{csquotes} % Needed for correct german quotes from ""-quotes

\setlocalecaption{english}{continues}{(continues on following page)}
\setlocalecaption{ngerman}{continues}{(Fortsetzung auf folgender Seite)}
\setlocalecaption{english}{continued}{(continued from previous page)}
\setlocalecaption{ngerman}{continued}{(Fortsetzung von vorheriger Seite)}

% Fonts
\usepackage{tgtermes}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

% Titlepage
\title{$app_name$ \linebreak $pdfsubject$}

\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
}
\makeatother
\subtitle{$subtitle$}

\author{$author$}
\date{$date$}

% Redefine \tableofcontents to not include a title
\makeatletter
\renewcommand\tableofcontents{%
    \@starttoc{toc}%
}
\makeatother

\begin{document}
\selectlanguage{$language_babel$}
\thispagestyle{empty}
\maketitle

$body$

\end{document}
