Skip to content

Commit

Permalink
update renv and other minor additions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbartholdy committed May 3, 2024
1 parent 6d179f9 commit 2857715
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 296 deletions.
1 change: 1 addition & 0 deletions _variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
dissertation:
doi: ""
github: https://github.com/bbartholdy/endgame
version: "![GitHub release (with filter)](https://img.shields.io/github/v/release/bbartholdy/endgame)"

intro:
version: "![Current version](https://img.shields.io/badge/Version-v2-blue)"
Expand Down
86 changes: 66 additions & 20 deletions endgame.tex
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
\usepackage{booktabs}
\usepackage{emptypage}
\usepackage{amsthm}
\makeatletter
\def\thm@space@setup{%
Expand All @@ -109,22 +110,66 @@
}
\makeatother


\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\begingroup
\mbox{}
\vspace*{\fill}
\begin{center}
\textit{This page is unintentionally left blank.}
\end{center}
\vspace{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn\mbox{}\newpage\fi
\endgroup\fi\fi}
\makeatother


%% Chapter formatting

%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
%\usepackage[Lenny]{fncychap}

%\def\fourtytwo{"All right," said Deep Thought. "The Answer to the Great Question..."\\
%"Yes..!"\\
%"Of Life, the Universe and Everything..." said Deep Thought.\\
%"Yes...!"\\
%"Is..." said Deep Thought, and paused.\\
%"Yes...!"\\
%"Is..."\\
%"Yes...!!!...?"\\
%"Forty-two," said Deep Thought, with infinite majesty and calm.}
\def\fourtytwo{"How many roads must a man walk down?"}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear existing header/footer entries
% Place Page X of Y on the right-hand
% side of the footer
%\fancyhead[LE]{\ifnum\value{page} = 42
%\huge\bfseries{\thepage}\else\thepage\fi}
%\fancyhead[LE]{\ifnum\value{page} = 42
% \footnotesize\bfseries{\fourtytwo}\else\thepage\fi}
%\fancyfoot[L]{\ifnum\value{page} = 42
%\scriptsize\fourtytwo\fi}
\fancyhead[LE]{\ifnum\value{page} = 42
\textit\fourtytwo\else\thepage\enspace\MakeLowercase{\textsl{\leftmark}}\fi}
\fancyhead[RO]{\MakeLowercase{\textsl{\rightmark}}\enspace\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\usepackage{titlesec, blindtext, color} % titlesec needs `pandoc --variable subparagraph` to work
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries}

% chapter and section names in header
\renewcommand{\chaptermark}[1]{\markboth{\MakeLowercase{\chaptername\ \thechapter\ -\ #1}}{}}
\renewcommand*{\chaptermark}[1]{\markboth{\MakeLowercase{\chaptername\ \thechapter\ -\ #1}}{}}
%\renewcommand{\chaptermark}[1]{\markboth{\MakeLowercase{\chaptername\_\thechapter\ <-\ #1}}{}}
%\renewcommand{\chaptermark}[1]{\markboth{\MakeLowercase{\chaptername\_\thechapter\ <-\ #1}}{}}
\renewcommand{\chaptermark}[1]{\markboth{\MakeLowercase{#1}}{}}
\renewcommand{\chaptermark}[1]{\markboth{\MakeLowercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\MakeLowercase{#1}}{} }

% fix header names for toc, lof, and lot
% fix header names for toc, lof, and lot to match chapter and section names
\usepackage{etoolbox}
\patchcmd{\tableofcontents}{\MakeUppercase\contentsname}{\MakeLowercase\contentsname}{}{}
\patchcmd{\tableofcontents}{\MakeUppercase\contentsname}{\MakeLowercase\contentsname}{}{} % twice to remove on both sides of header
Expand All @@ -134,7 +179,6 @@
\patchcmd{\listoftables}{\MakeUppercase\listtablename}{\MakeLowercase\listtablename}{}{} % twice to remove on both sides of header



% modify captions for figures and tables
\usepackage[labelfont=bf,
labelsep=endash,
Expand Down Expand Up @@ -309,14 +353,24 @@
Research Council under the European Union's Horizon 2020 research and
innovation program, grant agreement number STG--677576
(``HARVEST''). \\[0.4cm]
\textbf{Print version:} \href{https://doi.org/}{2024.04.0}
\textbf{Print version:} \href{https://doi.org/10.5281/zenodo.11077009}{2024.04.1} \\[0.4cm]
\textbf{Printed by:} Gildeprint \\[0.4cm]
\end{flushleft}
\endgroup
%% End: promotor and committee page %%

\frontmatter
%%%\maketitle
%
\clearpage
\thispagestyle{empty}
\vspace*{\fill}
\vspace*{3cm}
\hfill\textit{En bar røv at trutte i}
\par
\hfill\vspace*{4cm} Jan Bartholdy
\vspace*{\fill}

\renewcommand*\contentsname{Table of contents}
{
\setcounter{tocdepth}{2}
Expand Down Expand Up @@ -471,17 +525,9 @@ \chapter*{Open Science Statement}
Science Framework (\href{https://doi.org/10.17605/OSF.IO/3YX8M}{DOI:
10.17605/OSF.IO/3YX8M}).

\begin{center}
\includegraphics[width=1.04167in,height=\textheight]{figures/osf-qr.png}

\clearpage
\thispagestyle{empty}
\vspace*{3cm}

\hfill\textit{En bar røv at trutte i}

\par

\hfill\vspace*{4cm} Jan Bartholdy \vspace*{\fill}
\end{center}

\bookmarksetup{startatroot}

Expand Down Expand Up @@ -9192,10 +9238,10 @@ \section*{References cited}\label{references-cited-5}
\phantomsection\label{supplementary-information}
\bookmarksetup{startatroot}

\chapter*{Supplementary information}
\addcontentsline{toc}{chapter}{Supplementary information}
\chapter*{Supplementary Information}
\addcontentsline{toc}{chapter}{Supplementary Information}

\markboth{Supplementary information}{Supplementary information}
\markboth{Supplementary Information}{Supplementary Information}

This dissertation contains a lot of supplementary materials. Therefore,
none of it is included in the dissertation itself. I will instead
Expand Down
Loading

0 comments on commit 2857715

Please sign in to comment.