Add chapter quote stuff, fix preview mode

This commit is contained in:
jaseg 2025-06-13 17:54:23 +02:00
parent 878ad632dd
commit fbf27d57da
8 changed files with 822 additions and 31 deletions

View file

@ -24,7 +24,7 @@ all: clean chapter.pdf
.PHONY: preview
preview:
biber --input-directory=.. chapter || true
pdflatex -shell-escape -jobname chapter ../chapter-template.tex
pdflatex -shell-escape -jobname chapter '\def\thesispreviewmode{}\input{chapter-template.tex}'
version.tex: chapter.tex
echo "${VERSION_STRING}" > $@

View file

@ -23,7 +23,7 @@ all: clean thesis.pdf
.PHONY: preview
preview:
biber --input-directory=.. chapter || true
pdflatex -shell-escape thesis.tex
pdflatex -shell-escape -jobname thesis '\def\thesispreviewmode{}\input{thesis.tex}'
version.tex: thesis.tex $(addsuffix /chapter.tex,${CHAPTERS})
echo "${VERSION_STRING}" > $@

View file

@ -0,0 +1 @@
../Chapter_Makefile

View file

@ -1 +1,9 @@
\chapterquote{Meredith Whittaker\cite{greenbergSignalMoreEncrypted2024}}{
Its not for lack of ideas or possibilities. Its that we actually have to start taking seriously the shifts that
are going to be required to do this thing—to build tech that rejects surveillance and centralized control—whose
necessity is now obvious to everyone.
}
\chaptertitle{Introduction}
\section{Test}

View file

@ -7,19 +7,23 @@
\graphicspath{{\figurepath}}
\newcommand{\chaptertitle}[1]{
\faketableofcontents
\chapter{#1}
\ifdefined\thesispreviewmode
{\Large \textbf{Draft build}, git revision \texttt{\input{version}}}
\fi
\setstretch{1}
\minitoc
\newpage
\setstretch{1.3}
\chapter{#1}
\ifdefined\thesispreviewmode
\vspace*{-1cm}
{\Large \textbf{Draft build}, git revision \texttt{\input{version}}}
\vspace*{1cm}
\fi
\printchapterquote
\setstretch{1}
\minitoc
\newpage
\setstretch{1.3}
}
\begin{document}
\faketableofcontents
\input{chapter}
\chapterbibliography

View file

@ -73,6 +73,20 @@
\addtolength{\headwidth}{\marginparwidth}
\addtolength{\headwidth}{-1cm}
\newcommand{\chapterquote}[2]{\def\chapterquoteattribution{#1}\def\chapterquotecontent{#2}}
\newcommand{\printchapterquote}{
\ifdefined\chapterquoteattribution
\begin{quote}
\chapterquotecontent
\begin{flushright}
\textit{-- \chapterquoteattribution}
\end{flushright}
\end{quote}
\let\chapterquotecontent\undefined
\let\chapterquoteattribution\undefined
\fi
}
\newcommand{\todo}[1]{
\ifdefined\thesispreviewmode
\marginpar{

793
main.bib

File diff suppressed because it is too large Load diff

View file

@ -6,11 +6,12 @@
\newcommand{\figurepath}{}
\newcommand{\chaptertitle}[1]{
\chapter{#1}
\setstretch{1}
\minitoc
\newpage
\setstretch{1.3}
\chapter{#1}
\setstretch{1}
\chapterquote
\minitoc
\newpage
\setstretch{1.3}
}
\newcommand{\dochapter}[1]{