$-- Provides configuration of document metadata for writing the title block.
$-- Note that in addition to these templates and partials, Quarto will also make normalized authors and affiliations data available to the template,
$-- making is easy to write custom title blocks against a standard schema.
$--
$-- %%%% TODO %%%%%
$-- Customize is needed, like below for printing the authors. Otherwise remove this partials to use Quarto default one.
$-- %%%%%%%%%%%%%%%%
$if(linenumbers)$
\usepackage{lineno}
\linenumbers
$endif$
$if(doublespacing)$
\usepackage{setspace}
\doublespacing
$endif$
$if(date)$
\renewcommand{\today}{$date$}
$endif$
\newcommand{\runninghead}{A Preprint }
$if(runninghead)$
\renewcommand{\runninghead}{$runninghead$ }
$endif$
$if(title)$
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
$endif$
$if(subtitle)$
\usepackage{etoolbox}
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
  \apptocmd{\@title}{\par {\large #1 \par}}{}{}
}
\makeatother
\subtitle{$subtitle$}
$endif$
\def\asep{\\\\\\ } % default: all authors on same column
$if(authorcols)$
\def\asep{\And }
$endif$
\author{${ by-author:_authors.tex()[\asep] }}
\date{$date$}
