\documentclass[$if(documentclass)$$documentclass$$else$article$endif$$if(classoption)$,$classoption$$endif$]{jss}
\usepackage[utf8]{inputenc}

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

\usepackage{amsmath}
\usepackage{amssymb}

\author{
$for(author)$$author.name$\\$author.affiliation$$sep$ \And $endfor$
}
\title{$title.formatted$}
$if(keywords.formatted)$
\Keywords{$for(keywords.formatted)$$keywords.formatted$$sep$, $endfor$}
$endif$

\Abstract{
$abstract$
}

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

%% publication information
$if(volume)$
\Volume{$volume$}
$endif$
%% \Issue{9}
$if(semester)$
\Month{$semester$}
$endif$
$if(year)$
\Year{$year$}
$endif$
$if(journal)$
\JournalName{$journal$}
$endif$
$if(class-url)$
\ClassURL{$class-url$}
$endif$
%% \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(highlighting-macros)$
$highlighting-macros$
$endif$

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

\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$

$for(include-after)$
$include-after$
$endfor$

\end{document}
