Add chapter quote stuff, fix preview mode
This commit is contained in:
parent
878ad632dd
commit
fbf27d57da
8 changed files with 822 additions and 31 deletions
|
|
@ -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}" > $@
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -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}" > $@
|
||||
|
|
|
|||
1
chapter-introduction/Makefile
Symbolic link
1
chapter-introduction/Makefile
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../Chapter_Makefile
|
||||
|
|
@ -1 +1,9 @@
|
|||
|
||||
\chapterquote{Meredith Whittaker\cite{greenbergSignalMoreEncrypted2024}}{
|
||||
It’s not for lack of ideas or possibilities. It’s 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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
11
thesis.tex
11
thesis.tex
|
|
@ -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]{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue