-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathTemplate_Dissertation.tex
356 lines (274 loc) · 10.2 KB
/
Template_Dissertation.tex
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
% !TeX program = pdflatex
% !TeX TS-program = pdflatex
% !TeX TXS-program:compile = txs:///pdflatex/
% !BIB program = biber
% !BIB TS-program = biber
% !TeX TXS-program:bibliography = txs:///biber
%%%%%%%%%%%%%%%%
%% PREAMBLE %%
%%%%%%%%%%%%%%%%
% To ``accept'' all changes in the document:
%\PassOptionsToPackage{final}{changes}
%\PassOptionsToPackage{disable}{todonotes}
\documentclass[11pt, a4paper, twoside]{book}
% Use option ``fleqn'' for left-aligned display formulae
\newcommand{\dissafterdefense}{1}
% See https://www.rsf.uni-bonn.de/dekanat/Formulare/vorgaben-pflichtexemplare-wiwi/:
% Set to 1 for the final version AFTER the defense, because only after the defense is the second page (which lists the date of the defense and the names of the supervisors) to be included!
% The same applies to the ``Tag der Promotion'' note on the title page.
% Also the CV at the end of the disseration is to be included only after the defense.
\newcommand{\disstitle}
{Essays in Theoretical Microeconomics and\unskip\nobreak\ Empirical\unskip\nobreak\ Macroecoconomics with\unskip\nobreak\ Implications for Social Policy All\unskip\nobreak\ around\unskip\nobreak\ the\unskip\nobreak\ World}
\newcommand{\dissauthor}
{\v{U}.~R.~B{\`e}ta \c{Z}\^ane-{\AA}l}
\newcommand{\dissbornin}
{Summacumlaudeville}
\newcommand{\disssubmitdate}
{July~2023}
\newcommand{\dissdean}
{Prof.~Dr. J\"urgen von Hagen}
\newcommand{\dissfirstsupervisor}
{Lou~E. Vu{\"i}-T{\o}n}
\newcommand{\disssecondsupervisor}
{Prof.~Dr. V\H{a}e-R\'ee Sm\k{a}rt}
\newcommand{\dissyear}
{2023}
\newcommand{\dissdatedefense}
{1.~September~\dissyear}
\input {0_0_Preamble/Preamble_Fundamental_packages}
\hypersetup{pdftitle={\disstitle}, pdfauthor={\dissauthor}}
\input {0_0_Preamble/Preamble_Page_layout_dissertation}
\input {0_0_Preamble/Preamble_Page_layout_general}
\subimport{0_0_Preamble/}{Preamble_Fonts_Charter_FiraSans}
\input {0_0_Preamble/Preamble_Sansserif_math}
\input {0_0_Preamble/Preamble_BibLaTeX_AER} %\input{0_0_Preamble/Preamble_BibLaTeX_APA}
\input {0_0_Preamble/Preamble_Commenting_and_highlighting}
\input {0_0_Preamble/Preamble_Miscellaneous}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LOAD THE .BIB FILE(S) %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% If desired, set up deviations from the default bibliography settings:
%\ExecuteBibliographyOptions{
% compresspages = false,
% uniquename = true, uniquelist = true, maxbibnames = 99
%}
%% % Full author list on first citation, ``et al.'' only from second citation onwards:
%% See https://tex.stackexchange.com/questions/478750/biblatex-first-citation-all-names-after-that-et-al:
%\AtEveryCitekey{%
% \ifciteseen
% {}
% {\defcounter{maxnames}{6}}%
%}
\bibliography{Library.bib}
%\addbibresource{.../filename.bib} % Use to add further .bib files for the individual papers
%%%%%%%%%%%%
%% BODY %%
%%%%%%%%%%%%
\begin{document}
% Save original definitions of the referencing commands
\makeatletter
\let \labelorig \label
\let \label@in@display@orig \label@in@display%
\makeatother
\let \reforig \ref
\let \eqreforig \eqref
\let \autoreforig \autoref
\let \hyperreforig \hyperref
\let \pagereforig \pageref
\begin{refsection}
\input{0_1_Frontmatter_Dissertation/Frontmatter}
% use \input here, because \subimport prevents generation of the ToC
% Any citation occurring in a figure or table caption has to be included here!
% Otherwise it will not appear correctly in the list of figures/tables.
% ==>
\nocite{Gerhardt2017}
% <==
\end{refsection}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% INTRODUCTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{refsection}
\chapter*{Introduction}
\label{diss:intro}
\addcontentsline{toc}{chapter}{Introduction}
\chaptermark{Introduction}
\graphicspath{{0_Introduction_Dissertation/}}
\input{0_Introduction_Dissertation/Introduction}
\begin{refcontext}[sorting=nyt]
% Sort BIBLIOGRAPHY by alphabet (while CITATIONS are sorted by year)
\phantomsection
\printbibliography[heading=subbibliography]
\end{refcontext}
\end{refsection}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\currentchapter}{Ch1}
% Redefine the referencing commands to be chapter-specific in order to
% avoid erroneous cross-references from one chapter to another ==>
\makeatletter
\renewcommand{\label}[1]{\labelorig{\currentchapter:#1}}
% Based on https://tex.stackexchange.com/a/135995:
\renewcommand{\label@in@display}[1]{\label@in@display@orig{\currentchapter:#1}}
\makeatother
\renewcommand{\ref}[1]{\reforig{\currentchapter:#1}}
\renewcommand{\eqref}[1]{(\ref{#1})}
\renewcommand{\autoref}[1]{\autoreforig{\currentchapter:#1}}
\renewcommand{\hyperref}[2][]{\hyperreforig[\currentchapter:#1]{#2}}
\renewcommand{\pageref}[1]{\pagereforig{\currentchapter:#1}}
% <==
\begin{refsection}
% Save old footnote definition
\makeatletter
\renewcommand{\@makefntext}[1]{\@makefntextorig{#1}}
\makeatother
\chapter
[My Job Market Paper]
{My Job Market Paper%
\setcounter{footnote}{1}\textsuperscript{\Large\fnsymbol{footnote}}%
}
\label{diss:JMP}
% Use footnote symbols instead of numbers
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\footnotetext[1]{\:\protect\input{1_Example_Content/1_Introduction/Acknowledgments}}
% Switch back to the original footnote definition
\renewcommand{\thefootnote}{\thefootnoteorig}
\makeatletter
\renewcommand{\@makefntext}[1]{\@makefntextcustom{#1}}
\renewcommand{\@makefnmark}{\@makefnmarkorig}
\makeatother
\setcounter{footnote}{0}
\graphicspath{{1_Example_Content/}}
% \subimport enables execution of \input commands in subdocuments without having to adjust paths
% Do not use \subimport*{...} (i.e., the asterisk version), since this will lead to
% font issues.
\subimport{1_Example_Content/1_Introduction/}{Introduction}
\subimport{1_Example_Content/2_Methods/}{Design}
\subimport{1_Example_Content/2_Methods/}{Predictions_dissertation}
\subimport{1_Example_Content/3_Results/}{Results}
\subimport{1_Example_Content/3_Results/}{Structural_Estimation}
\subimport{1_Example_Content/4_Discussion/}{Discussion}
\subimport{1_Example_Content/5_Conclusion/}{Conclusion}
\begin{subappendices}
\label{sec:appendix}
\FloatBarrier
\subimport{1_Example_Content/9_Appendix/}{Attention}
\FloatBarrier
\newpage
\subimport{1_Example_Content/9_Appendix/}{Additional_Figures}
\FloatBarrier
\subimport{1_Example_Content/9_Appendix/}{siunitx_Examples}
\clearpage
% \clearpage must be issued INSIDE the subappendices environment
% for the pagestyle to be applied correctly
\end{subappendices}
\begin{refcontext}[sorting=nyt]
% Sort BIBLIOGRAPHY by alphabet (while CITATIONS are sorted by year)
\phantomsection
\printbibliography[heading=subbibliography]
\end{refcontext}
\end{refsection}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER 2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\currentchapter}{Ch2}
\begin{refsection}
% Save old footnote definition
\makeatletter
\renewcommand{\@makefntext}[1]{\@makefntextorig{#1}}
\makeatother
\chapter
[My Second Paper Has a~Long Title That\nolinebreak\ Spans Two Lines]
{My Second Paper Has a\nolinebreak\ Long Title That\nolinebreak\ Spans Two Lines%
\setcounter{footnote}{1}\textsuperscript{\Large\fnsymbol{footnote}}%
}
\label{diss:MySecondPaper}
% Use footnote symbols instead of numbers
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\footnotetext[1]{\:\protect\input{1_Example_Content/1_Introduction/Acknowledgments}}
% Switch back to the original footnote definition
\renewcommand{\thefootnote}{\thefootnoteorig}
\makeatletter
\renewcommand{\@makefntext}[1]{\@makefntextcustom{#1}}
\renewcommand{\@makefnmark}{\@makefnmarkorig}
\makeatother
\setcounter{footnote}{0}
\vspace{-\bigskipamount}\textsf{\textit{Joint with Adam Smith, Janet Smith, and Jeremiah Smith}} \bigskip
\graphicspath{{1_Example_Content/}}
\subimport{1_Example_Content/1_Introduction/}{Introduction}
\subimport{1_Example_Content/2_Methods/}{Design}
\subimport{1_Example_Content/2_Methods/}{Predictions_dissertation}
\subimport{1_Example_Content/3_Results/}{Results}
\subimport{1_Example_Content/3_Results/}{Structural_Estimation}
\subimport{1_Example_Content/4_Discussion/}{Discussion}
\subimport{1_Example_Content/5_Conclusion/}{Conclusion}
\begin{subappendices}
\label{sec:appendix}
\FloatBarrier
\subimport{1_Example_Content/9_Appendix/}{Attention}
\FloatBarrier
\newpage
\subimport{1_Example_Content/9_Appendix/}{Additional_Figures}
\FloatBarrier
\subimport{1_Example_Content/9_Appendix/}{siunitx_Examples}
\clearpage
% \clearpage must be issued INSIDE the subappendices environment
% for the pagestyle to be applied correctly
\end{subappendices}
\begin{refcontext}[sorting=nyt]
% Sort BIBLIOGRAPHY by alphabet (while CITATIONS are sorted by year)
\phantomsection
\printbibliography[heading=subbibliography]
\end{refcontext}
\end{refsection}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CHAPTER 3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\currentchapter}{Ch3}
%\begin{comment}
\begin{refsection}
\chapter{Math Tests}
\label{diss:MathTests}
{%
\setlength{\parindent}{0cm}
%\setlength{\mathindent}{0cm} % Only for ``fleqn'' option
\input{2_Math_Tests/mathtest_defs}
\renewcommand{\showfamily}{{\color{magenta}%
Serif%
}}
{\rmfamily\mdseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}
\renewcommand{\showfamily}{{\color{magenta}%
Serif Bold%
}}
{\rmfamily\bfseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}
\renewcommand{\showfamily}{{\color{magenta}%
Sans Serif%
}}
{\sffamily\mdseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}
\renewcommand{\showfamily}{{\color{magenta}%
Sans Serif Bold%
}}
{\sffamily\bfseries%
\input{2_Math_Tests/mathtest}%
\subsection{Math ``Torture'' Test \showfamily}
\input{2_Math_Tests/mathtest_TeXbook}%
}
}
\end{refsection}
%\end{comment}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FORMAL STUFF %%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifnum \dissafterdefense=1
\begin{refsection}
\selectlanguage{ngerman}
\chapter*{%
Lebenslauf%
% \setcounter{footnote}{1}\textsuperscript{\fnsymbol{footnote}}
}
\input{9_Formal_Stuff/CV}
\end{refsection}
\fi
\end{document}