-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
261 lines (204 loc) · 6.69 KB
/
main.tex
File metadata and controls
261 lines (204 loc) · 6.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
\documentclass[
paper=240mm:170mm,
paper=portrait,
parskip=half,
cleardoublepage=plain,
toc=chapterentrywithdots,
chapterprefix=true,
captions=tableheading,
fontsize=10pt,
mpinclude=true,
DIV=13,
BCOR=15mm
]{scrbook}
\usepackage{fontspec}
\setmainfont{sourceserifpro}
\renewcommand*\sectfont{\normalcolor\bfseries}
\setmonofont[Scale=MatchLowercase]{Droid Sans Mono}
\usepackage[english]{babel}
% Het formaat van een doctoraat is "proefschrift B5".
% Een lichte afwijking tegenover ISO B5. B5 = 176x250mm
% Wij gebruiken 170x240mm.
% 1/9th of height = 28mm
% 1/9th of width = 19mm
% top = 1/9th + 1/18th
\usepackage[paperwidth=17cm, paperheight=24cm, heightrounded, top=2.6cm, bottom=5.3cm, right=3.8cm]{geometry} % left=1.9cm, total right 3.8, so 2.3
\addtolength{\marginparwidth}{1.5cm}
% \usepackage[
% % set width and height to width and height + 4mm
% width=18.4truecm, height=25.4truecm,
% % use any combination of these options to add different cut markings
% cam,
% % set the type of TeX renderer you use
% lualatex,
% % center the contents
% center
% ]{crop}
% We want more margins
% \addtolength{\marginparwidth}{1.5cm}
\usepackage{graphicx} % Required for inserting images
\usepackage{natbib} % probably should've done biblatex
\usepackage{hyperref}
\usepackage[sectionbib]{chapterbib}
\usepackage{float}
\usepackage{amsfonts} % checkmark
\usepackage{wasysym} % partial bullet
\usepackage{microtype}
\usepackage{xr}
\usepackage{transparent}
\usepackage[utf8]{inputenc}
\usepackage{epigraph}
\newcommand{\hidetitlepar}[1]{\par}
\usepackage{svg}
\usepackage{xurl}
\usepackage{listings}
\usepackage{afterpage}
\newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\renewcommand{\bibname}{References}
\usepackage{babel}%.................. Language setup
\addto{\captionsenglish}{\renewcommand{\bibname}{References}}
\usepackage{xcolor}
% Listings
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{kwordblue}{HTML}{00769E}
\definecolor{basiccolor}{HTML}{003B4F}
\definecolor{stringgreen}{HTML}{20794D}
\definecolor{background}{RGB}{233,236,239}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{background},
commentstyle=\color{codegreen},
keywordstyle=\color{kwordblue},
numberstyle=\tiny\color{codegray},
stringstyle=\color{stringgreen},
basicstyle=\ttfamily\footnotesize\color{basiccolor},
breakatwhitespace=false,
breaklines=true,
captionpos=t,
keepspaces=true,
numbers=left,
numbersep=8pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
frame=single,
rulecolor=\color{black},
xleftmargin=2pt,
xrightmargin=2pt,
framextopmargin=0pt, % <-- Increased top margin
framexbottommargin=0pt,
framexleftmargin=0pt,
framexrightmargin=0pt,
framesep=2pt, % <-- Set to 0pt so code and frame touch
}
\lstset{style=mystyle}
\usepackage{caption}
\renewcommand*{\captionformat}{~}
\setkomafont{captionlabel}{\small\bfseries}
\setkomafont{caption}{\small}
\setcapindent{1em}
\DeclareCaptionFont{black}{\color{black}}
\DeclareCaptionFormat{listing}{%
\parbox{\textwidth}{%
\fcolorbox{black}{white}{%
\parbox{\dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}{#1#2#3}%
}%
}%
}
\captionsetup[lstlisting]{format=listing,labelfont=black,textfont=black}
\lstset{
captionpos=t,
belowcaptionskip=4pt,
abovecaptionskip=0pt
}
\renewcommand{\lstlistingname}{\bfseries Listing}
% marginnotes
\usepackage{scrlayer-scrpage}
\usepackage{scrlayer-notecolumn}
\addtokomafont{notecolumn.marginpar}{\scriptsize\raggedright}
\newcommand*{\marginnote}{\makenote}
\newcommand*{\comment}[1]{\makenote{\textcolor{red}{#1}}}
\newcommand*{\inlinecomment}[1]{\textcolor{red}{#1}}
\newcommand{\https}[1]{\href{https://#1}{#1}}
\newcommand{\footlink}[1]{\footnote{\https{#1}}}
\makeatletter
\ModifyLayer[
contents = {%
\textheight = 2\textheight%
\slnc@processnotes{marginpar}%
}
]{notecolumn.marginpar}
% no dots after chapter title
\renewcommand*{\chapterformat}{%
\mbox{\chapappifchapterprefix{\nobreakspace}\thechapter
\IfUsePrefixLine{}{\enskip}}%
}
% Smaller dots for table
\newcommand\mydots{\ifmmode\ldots\else\makebox[1em][c]{.\hfil.\hfil.}\fi}
\def\thickhline{\noalign{\hrule height.8pt}}
\usepackage{pdfpages}
% \NewDocumentCommand \software {m}{\textsc{#1}}
\NewDocumentCommand \software {m}{#1}
\raggedbottom
% for linenumbers
\usepackage{lineno}
% \linenumbers
\begin{document}
\frontmatter
\pagestyle{empty}
\includepdf[pages=-, pagecommand={}]{titlepage2.pdf}
\pagestyle{plain}
\include{genai}
\epigraph{'t Kan verkeren.}{\textit{Bredero}}
\include{acknowledgements}
\include{0_summary}
\include{0_samenvatting}
\includepdf[pages=-, pagecommand={}]{pubs.pdf}
\include{0_conferences}
\tableofcontents
\mainmatter
\include{1-introduction/1-introduction}
\part{Trajectory inference}
\include{2-trajectoriesoverview/2-trajectoriesoverview}
\include{3-dynchro/3-dynchro}
\part{Interoperability}
\setlength{\epigraphwidth}{0.7\textwidth}
\epigraph{
The big idea is ``messaging'' ... The Japanese have a small word - ma - for ``that which is in between'' - perhaps the nearest English equivalent is ``interstitial''.
The key in making great and growable systems is much more to design how its
modules communicate rather than what their internal properties and
behaviors should be.
}{\textit{Alan Kay, On Messaging}}
% https://wiki.c2.com/?AlanKayOnMessaging
% https://userpage.fu-berlin.de/~ram/pub/pub_jf47ht81Ht/doc_kay_oop_en
% https://news.ycombinator.com/item?id=19415983
\include{4-interoperability/4-interoperability}
\include{5-anndataR/5-anndataR}
\part{Visualization}
\include{6-funkyheatmap/6-funkyheatmap}
\part{Reflections}
% \epigraph{
% How we remember changes how we have lived.
% Time runs both ways. We make stories of our lives.
% }{\textit{Guy Gavriel Kay, Under Heaven}}
\include{7a-future/7a-future}
\include{7-discussion/7-discussion}
\setlength{\epigraphwidth}{0.45\textwidth}
\epigraph{\foreignlanguage{greek}{Θάλαττα! Θάλαττα!}}{\textit{Xenophon, Anabasis}}
% \phantomsection{}
\appendix
\part{Appendices}
% \addcontentsline{toc}{part}{Appendices}
\include{4-interoperability/4-4-appendix}
% \include{6-funkyheatmap/funkyheatmap_appendix}
\chapter{Getting started with funkyheatmap}
\label{app:funky}
\includepdf[pages=-, pagecommand={}]{6-funkyheatmap/funkyheatmap_customized.pdf}
% \includepdf[pages=-]{6-funkyheatmap/funkyheatmap_appendix.pdf}
% \afterpage{\blankpage}
% \afterpage{\blankpage}
\end{document}