\documentclass[
$for(classoption)$
  $classoption$$sep$,
$endfor$
]{$documentclass$}

\usepackage[utf8]{inputenc}

\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}

\author{
$for(author)$$author.name$\\$author.affiliation$$sep$ \And $endfor$
}
\title{$title.formatted$}

\Plainauthor{$for(author)$$author.name$$sep$, $endfor$}
$if(title.plain)$
\Plaintitle{$title.plain$}
$endif$
$if(title.short)$
\Shorttitle{$title.short$}
$endif$

\Abstract{
$abstract$
}

$if(keywords.formatted)$
\Keywords{$for(keywords.formatted)$$keywords.formatted$$sep$, $endfor$}
$endif$
$if(keywords.plain)$
\Plainkeywords{$for(keywords.plain)$$keywords.plain$$sep$, $endfor$}
$endif$

%% publication information
%% \Volume{50}
%% \Issue{9}
%% \Month{June}
%% \Year{2012}
%% \Submitdate{$submitdate$}
%% \Acceptdate{2012-06-04}

\Address{
$for(author)$
  $if(author.address)$
  $author.name$\\
  $author.affiliation$\\
  $author.address$\\
  $if(author.email)$E-mail: $author.email$\\$endif$
  $if(author.url)$URL: $author.url$\\~\\$endif$
  $endif$
$endfor$
}

$if(csl-refs)$
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newenvironment{cslreferences}%
  {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
  \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
  {\par}
$endif$

% Pandoc header
$for(header-includes)$
$header-includes$
$endfor$

$preamble$

\begin{document}

$body$

$if(natbib)$
$if(bibliography)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
$endif$
$endif$

$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$

\end{document}

