transfer from old repo

This commit is contained in:
Andreas Gammelgaard Damsbo 2026-08-19 09:27:27 +02:00
commit 277e2b8cf3
No known key found for this signature in database
1111 changed files with 83736 additions and 0 deletions

View file

@ -0,0 +1,106 @@
% ---------------
% TITLE SECTION
% ---------------
\begin{titlepage}
\center
% Don't include a newpage before \maketitle
{\let\newpage\relax\maketitle}
% Needs to come after \maketitle
\thispagestyle{title}
\vspace{0.25in}
$if(word-count)$
{\center Word count: $word-count$}
$endif$
\vspace{0.5in}
\begin{center}
\textbf{Author note}
$for(by-author)$
\raggedright\setlength{\parindent}{0.5in}$it.name.literal$$if(it.orcid)$,~\orcidlink{$it.orcid$}~\url{https://orcid.org/$it.orcid$}$endif$$if(it.metadata.title)$, $it.metadata.title$$if(it.affiliations)$, $for(it.affiliations)$$if(it.department)$$it.department$, $endif$$it.name$$sep$; $endfor$ $endif$$endif$
$endfor$
\end{center}
$if(correspondence-prefix)$
\begin{center}
\textbf{Correspondence}
$for(by-author)$
$if(it.attributes.corresponding)$
\par\raggedright\setlength{\parindent}{0.5in}$correspondence-prefix$~$it.name.literal$$if(it.email)$ (\href{mailto:$it.email$}{$it.email$})$endif$$if(it.affiliations)$, $for(it.affiliations)$$if(it.department)$$it.department$, $endif$$it.name$, $if(it.address)$$it.address$, $endif$$if(it.city)$$it.city$, $endif$$if(it.region)$$it.region$ $endif$$if(it.postal-code)$$it.postal-code$$endif$$if(it.country)$, $it.country$$endif$$sep$; $endfor$ $endif$
$endif$
$endfor$
\end{center}
$endif$
$if(additional-info)$
\begin{center}
\textbf{Additional information}
\par\raggedright\setlength{\parindent}{0.5in}$additional-info$
\end{center}
$endif$
$if(thanks)$
\begin{center}
\textbf{Acknowledgments}
\par\raggedright\setlength{\parindent}{0.5in}$thanks$
\end{center}
$endif$
\vfill % Fill the rest of the page with whitespace
\end{titlepage}
\doublespacing
$if(abstract)$
\begin{abstract}
\noindent $abstract$
\end{abstract}
\vspace{\baselineskip}
$if(keywords)$\indent \keywords{%
$for(keywords)$$keywords$$sep$, $endfor$%
}$endif$
\newpage
$endif$
\begin{center}
\singlespacing
\textbf{$title$$if(subtitle)$:\\$subtitle$$endif$}
\end{center}
$if(epigraph)$
$for(epigraph)$
$if(epigraph.source)$
\epigraph{$epigraph.text$}{---$epigraph.source$}
$else$
\epigraph{$epigraph.text$}
$endif$
$endfor$
$endif$
% -------------------
% END TITLE SECTION
% -------------------

View file

@ -0,0 +1,113 @@
% -----------------------
% END-OF-PREAMBLE STUFF
% -----------------------
% For patching commands like \subtitle
\usepackage{etoolbox}
% -----------------
% Running headers
% -----------------
\usepackage{fancyhdr}
\setlength{\headheight}{0.25in}
\renewcommand{\headrulewidth}{0pt} % Remove lines
\renewcommand{\footrulewidth}{0pt}
% SHORT TITLE Page #
\fancypagestyle{normal}{
\fancyhf{}
\lhead{\uppercase{$if(short-title)$ $short-title$ $else$ $title$ $endif$}}
\rhead{\thepage}
}
% Running head: SHORT TITLE Page #
\fancypagestyle{title}{
\fancyhf{}
\lhead{Running head: \uppercase{$if(short-title)$ $short-title$ $else$ $title$ $endif$}}
\rhead{}
}
% Use regular heading style
\pagestyle{normal}
$if(epigraph)$
% -----------
% Epigraphs
% -----------
\usepackage{epigraph}
\renewcommand{\epigraphsize}{\footnotesize}
\setlength{\epigraphrule}{0em}
\setlength{\beforeepigraphskip}{0em}
\setlength{\afterepigraphskip}{1em}
$endif$
$if(biblatex)$
% ----------
% BibLaTeX
% ----------
$if(biblatex-chicago)$
\usepackage[$if(biblio-style)$$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex-chicago}
$else$
\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
$endif$
\setlength\bibitemsep{0pt} % No space between bib entries
\setlength\bibhang{\parindent} % Match document indentation
% Fix biblatex's odd preference for using In: by default.
\renewbibmacro{in:}{%
\ifentrytype{article}{}{%
\printtext{\bibstring{}\intitlepunct}}}
\addbibresource{$bibliography$}
% Start bibliography on new page
\pretocmd{\printbibliography}{\clearpage}{}{}
$endif$
% ----------------------
% Title block elements
% ----------------------
\usepackage{authblk}
\renewcommand*{\Authsep}{, }
\renewcommand*{\Authand}{ and }
\renewcommand*{\Authands}{, and }
\renewcommand*{\Affilfont}{\normalsize}
\renewcommand*{\Authfont}{\normalsize}
$if(title)$
\title{$title$$if(subtitle)$:$endif$}
$endif$
$if(subtitle)$
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
\apptocmd{\@title}{\par #1 \par}{}{}
}
\makeatother
\subtitle{$subtitle$}
$endif$
$for(by-author)$
\author[$for(it.affiliations)$$it.number$$sep$,$endfor$]{$by-author.name.literal$}
$endfor$
$for(by-affiliation)$
\affil[$it.number$]{$it.name$}
$endfor$
\date{}
% Typeset URLs in the same font as their parent environment
%
% This has to come at the end of the preamble, after any biblatex stuff because
% some biblatex styles (like APA) define their own \urlstyle{}
\usepackage{url}
\urlstyle{same}
% ---------------------------
% END END-OF-PREAMBLE STUFF
% ---------------------------