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

Binary file not shown.

View file

@ -0,0 +1,48 @@
title: Hikma
author: Andrew Heiss
version: 0.0.1
contributes:
formats:
common:
date-format: full
pdf:
# Template pieces
template-partials:
- "partials/title.tex"
- "partials/before-body.tex"
include-in-header:
- "include-in-header.tex"
# Document styling
geometry:
- top=5pc # 10p0
- bottom=5pc # 10p0
- left=8pc # 11p0
- right=5pc # 11p0
- heightrounded
toc: true
# Citations and links
colorlinks: true
linkcolor: DarkSlateBlue
urlcolor: DarkSlateBlue
citecolor: DarkSlateBlue
link-citations: true
biblio-title: "References"
biblio-config: false # Don't use the default template's biblatex commands
cite-method: biblatex
biblatex-chicago: false # Custom flag for enabling biblatex-chicago
biblio-style: apa
biblatexoptions:
- backend=biber
# The titlesec package provides its own mechanism for dealing with
# inline/block headings, so we need to disable pandoc's support for it
# (see https://stackoverflow.com/q/42916124/120898)
block-headings: false
# Indent paragraphs instead of adding space between them
indent: true
html:
theme: styles/pretty.scss

View file

@ -0,0 +1,133 @@
% -----------------------
% CUSTOM PREAMBLE STUFF
% -----------------------
% -----------------
% Typography tweaks
% -----------------
% Indent size
\setlength{\parindent}{1pc} % 1p0
% Fix widows and orphans
\usepackage[all,defaultlines=2]{nowidow}
% List things
\usepackage{enumitem}
% Same document-level indentation for ordered and ordered lists
\setlist[1]{labelindent=\parindent}
\setlist[itemize]{leftmargin=*}
\setlist[enumerate]{leftmargin=*}
% Wrap definition list terms
% https://tex.stackexchange.com/a/9763/11851
\setlist[description]{style=unboxed}
% For better TOCs
\usepackage{tocloft}
% Remove left margin in lists inside longtables
% https://tex.stackexchange.com/a/378190/11851
\AtBeginEnvironment{longtable}{\setlist[itemize]{nosep, wide=0pt, leftmargin=*, before=\vspace*{-\baselineskip}, after=\vspace*{-\baselineskip}}}
% -----------------
% Title block stuff
% -----------------
% Abstract
\usepackage[overload]{textcase}
\usepackage[runin]{abstract}
\renewcommand{\abstractnamefont}{\sffamily\footnotesize\bfseries\MakeUppercase}
\renewcommand{\abstracttextfont}{\sffamily\small}
\setlength{\absleftindent}{\parindent * 2}
\setlength{\absrightindent}{\parindent * 2}
\abslabeldelim{\quad}
\setlength{\abstitleskip}{-\parindent}
% Keywords
\newenvironment{keywords}
{\vskip -3em \hspace{\parindent}\small\sffamily{\sffamily\footnotesize\bfseries\MakeUppercase{Keywords}}\quad}
{\vskip 3em}
% Title
\usepackage{titling}
\setlength{\droptitle}{3em}
\pretitle{\par\vskip 5em \begin{flushleft}\LARGE\sffamily\bfseries}
\posttitle{\par\end{flushleft}\vskip 0.75em}
% Authors
%
% PHEW this is complicated for a number of reasons!
%
% When using \and with multiple authors, the article class in LaTeX wraps each
% author block in a tabluar environment with a hardcoded center alignment. It's
% possible to use \preauthor{} to start tabulars with a left alignment {l}, but
% that only applies to the first author because the others all use \and with the
% hardcoded {c}. But we can override the \and command and add our own {l}
%
% (See https://github.com/rstudio/rmarkdown/issues/1716#issuecomment-560601691
% for an example of redefining \and to just be \\)
%
% That's all great, except tabulars have some amount of default horizontal
% padding, which makes left-aligned author blocks not actuall get fully
% left-aligned on the page. We can set the horizontal padding for the column to
% 0, but it requires some wonky syntax: {@{\hspace{0em}}l@{}}
\renewcommand{\and}{\end{tabular} \hskip 3em \begin{tabular}[t]{@{\hspace{0em}}l@{}}}
\preauthor{\begin{flushleft}
\lineskip 1.5em
\begin{tabular}[t]{@{\hspace{0em}}l@{}}}
\postauthor{\end{tabular}\par\end{flushleft}}
% Omit the date since the \published command does that
\predate{}
\postdate{}
% Command for a note at the top of the first page describing the publication
% status of the paper.
\newcommand{\published}[1]{%
\gdef\puB{#1}}
\newcommand{\puB}{}
\renewcommand{\maketitlehooka}{%
\par\noindent\footnotesize\sffamily \puB}
% ------------------
% Section headings
% ------------------
\usepackage{titlesec}
\titleformat*{\section}{\Large\sffamily\bfseries\raggedright}
\titleformat*{\subsection}{\large\sffamily\bfseries\raggedright}
\titleformat*{\subsubsection}{\normalsize\sffamily\bfseries\raggedright}
\titleformat*{\paragraph}{\small\sffamily\bfseries\raggedright}
% \titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}
% Starred version removes indentation in following paragraph
\titlespacing*{\section}{0em}{2em}{0.1em}
\titlespacing*{\subsection}{0em}{1.25em}{0.1em}
\titlespacing*{\subsubsection}{0em}{0.75em}{0em}
% -----------
% Footnotes
% -----------
% NB: footmisc has to come after biblatex because of conflicts
\usepackage[bottom, flushmargin]{footmisc}
\renewcommand*{\footnotelayout}{\footnotesize}
\addtolength{\skip\footins}{10pt} % vertical space between rule and main text
\setlength{\footnotesep}{5pt} % vertical space between footnotes
% ----------
% Captions
% ----------
\usepackage[font={small,sf}, labelfont={small,sf,bf}]{caption}
% ---------------------------
% END CUSTOM PREAMBLE STUFF
% ---------------------------

View file

@ -0,0 +1,52 @@
% ---------------
% TITLE SECTION
% ---------------
$if(published)$
$if(code-repo)$
\published{\textbf{$date$} \qquad $published$ \\ {\scriptsize $code-repo$}}
$else$
\published{\textbf{$date$} \qquad {\scriptsize $published$}}
$endif$
$else$
$if(code-repo)$
\published{\textbf{$date$} \\ {\scriptsize $code-repo$}}
$else$
\published{\textbf{$date$}}
$endif$
$endif$
$if(title)$
\maketitle
$endif$
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
\vskip 3em
$endif$
$if(keywords)$
\begin{keywords}
\def\sep{;\ }
$for(keywords/allbutlast)$$keywords$\sep $endfor$
$for(keywords/last)$$keywords$$endfor$
\end{keywords}
$endif$
$if(epigraph)$
$for(epigraph)$
$if(epigraph.source)$
\epigraph{$epigraph.text$}{---$epigraph.source$}
$else$
\epigraph{$epigraph.text$}
$endif$
$endfor$
$endif$
% -------------------
% END TITLE SECTION
% -------------------
\newpage

View file

@ -0,0 +1,78 @@
% -----------------------
% END-OF-PREAMBLE STUFF
% -----------------------
$if(epigraph)$
% -----------
% Epigraphs
% -----------
\usepackage{epigraph}
\renewcommand{\epigraphsize}{\sffamily\footnotesize}
\setlength{\epigraphrule}{0em}
\setlength{\beforeepigraphskip}{-2em}
\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
\renewcommand*{\bibfont}{\footnotesize} % Use smaller font
\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$}
$endif$
% ----------------------
% Title block elements
% ----------------------
\usepackage{orcidlink} % Create automatic ORCID icons/links
$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 {\vskip 0.25em \large #1 \par}}{}{}
}
\makeatother
\subtitle{$subtitle$}
$endif$
\author{
$for(by-author)$
{\large $it.name.literal$$if(it.orcid)$~\orcidlink{$it.orcid$}$endif$}%
$if(it.attributes.corresponding)$\thanks{Corresponding author.}$endif$ \\%
$for(it.affiliations)$$it.name$ \\$endfor$%
{\footnotesize \url{$it.email$}} \and
$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
% ---------------------------

View file

@ -0,0 +1 @@
/*-- scss:defaults --*/