\documentclass{${latex.documentclass}}

\usepackage{fontspec}
\usepackage{amssymb,amsmath}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\usepackage{hyperref}

${#title}
\title{${title}}
${/title}
${#subtitle}
\subtitle{${subtitle}}
${/subtitle}
\author{${#authors}${.}${^.[end]} \and ${/.[end]}${/authors}}
${#date}
\date{${date}}
${/date}

${{latex.preamble}}

\begin{document}

${#title}
\maketitle
${/title}

${#abstract}
\begin{abstract}
${abstract}
\end{abstract}
${/abstract}

\tableofcontents

${{body}}

\end{document}
