-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmaster.tex
More file actions
198 lines (141 loc) · 5.41 KB
/
master.tex
File metadata and controls
198 lines (141 loc) · 5.41 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
%!TEX TS-options = --output-directory=build
\RequirePackage{etoolbox}
\newcommand{\onlyif}[2]{\iftoggle{#1}{#2}{}}
%% Sometimes, we need the good old \if ...
\makeatletter
\newcommand{\iftogglehard}[1]{%
\ifcsdef{etb@tgl@#1}
{\csname etb@tgl@#1\endcsname\iftrue\iffalse}
{\etb@noglobal\etb@err@notoggle{#1}\iffalse}%
}
\makeatother
\newtoggle{draft} % true = draft version => quicker compilation but some features disabled (microtype, chapterthumb because of bug with synctex, ...)
\newtoggle{chapterthumb} % true = enable chapter thumbs; false = disable chapterthumb
\newtoggle{showoverflow} % true = show overflows
\newtoggle{allowtodo} % false = remove todo command
\newtoggle{showtodo} % true = show todo; false = hide todo
\newtoggle{inlinetodo} % true = use inlined todo instead of the package
\newtoggle{printversion} % true = print version, without colored linked; false = default version
\newtoggle{biblatex} % true = use biblatex for the bibliography; false = use bibtex
\newtoggle{chapter_bib} % true = display intermediate bibliographies; false = don't. Needs biblatex.
\newtoggle{chap_minitoc} % true = display mini table of contents at the beginning of each chapter
\newtoggle{lettrine} % true = enable the lettrine command
\newtoggle{enluminure} % true = enable the enluminure command. Works only if lettrine is set to true
% \toggletrue{printversion}
% \toggletrue{draft}
\toggletrue{chapterthumb}
% \toggletrue{showoverflow}
% \toggletrue{allowtodo}
% \toggletrue{showtodo}
\toggletrue{biblatex}
\toggletrue{chapter_bib}
\toggletrue{chap_minitoc}
\toggletrue{lettrine}
\toggletrue{enluminure}
\input{aux/layout.tex}
\input{aux/packages.tex}
\input{aux/fonts.tex}
\input{aux/macros.tex}
\input{aux/topic_macros.tex}
\input{aux/chapter_toggles.tex}
\usepackage{lipsum}
\makeglossary
\makeindex
\title{An amazing PhD topic}
\subtitle{Great things you did}
\author{John DOE \texorpdfstring{\\[1em]}{---} Supervisors: Jane SMITH}
\date{}
%-------------------------------------------------------------------
% Bibliography
%-------------------------------------------------------------------
\onlyif{biblatex}{
%% Add all your bib resources one-by-one if you are using biblatex
%% The first two suppose that you are using Cryptobib (http://cryptobib.di.ens.fr)
\addbibresource{cryptobib/abbrev3}
\addbibresource{cryptobib/crypto.bib}
\addbibresource{biblio_aux.bib}
\defbibheading{references}[References]{%
\section*{#1}%
\markboth{#1}{#1}%
}
\defbibheading{fullbib}[Complete Bibliography]{%
\chapter*{#1}%
\addcontentsline{toc}{chapter}{#1}
\markboth{#1}{#1}%
}
\defbibheading{selfbib}[\bibname]{%
\subsection*{#1}%
% \addcontentsline{toc}{subsection}{#1}
}
%% Here, list all your contributions
\DeclareBibliographyCategory{self}
\addtocategory{self}{EPRINT:Doe36}
\addtocategory{self}{NDSS:DoeSmi38}
\addtocategory{self}{CCS:DDMS39}
}
\begin{document}
\frontmatter
% to silence warnings about identifiers duplication
% cf. https://en.wikibooks.org/wiki/LaTeX/Hyperlinks#Problems_with_Links_and_Pages
\pagenumbering{alph}
%% Add the cover of the thesis
\includepdf{cover/front.pdf}
\setcounter{page}{0}
\cleardoublepage
\maketitle
% to silence warnings about identifiers duplication
% cf. https://en.wikibooks.org/wiki/LaTeX/Hyperlinks#Problems_with_Links_and_Pages
\pagenumbering{roman}
%-------------------------------------------------------------------
% Acknowledgments
%-------------------------------------------------------------------
% \thispagestyle{empty}\hbox{}\newpage%
\input{content/acknowledgments.tex}
\cleardoublepage
%-------------------------------------------------------------------
% ToCs Setup
%-------------------------------------------------------------------
\onlyif{chap_minitoc}{
\dominitoc
}
\setcounter{tocdepth}{1}% no subsection
\setcounter{secnumdepth}{3}
%-------------------------------------------------------------------
% Résumé en Français (Summary in French)
%-------------------------------------------------------------------
%% Use this if you need to write a summary of your thesis (possibly
%% in an other language).
%% Otherwise, you can comment it.
\subimport{content/resume_fr/}{resume_fr_master.tex}
%-------------------------------------------------------------------
% ToC
%-------------------------------------------------------------------
\cleartoevenpage[\thispagestyle{empty}]
\pdfbookmark{Table of Contents}{book:toc}
\tableofcontents
%-------------------------------------------------------------------
% Content
%-------------------------------------------------------------------
\mainmatter
\pagenumbering{arabic}
\addtocrule
\import{content/}{content}
%-------------------------------------------------------------------
% Back Matter
%-------------------------------------------------------------------
\backmatter
%-------------------------------------------------------------------
% Bibliography
%-------------------------------------------------------------------
\iftoggle{biblatex}{
\printbibliography[heading=fullbib, title=Bibliography]
}{
\bibliographystyle{alpha}
%% If you use the standard bibtex, list your bib resources here
\bibliography{cryptobib/abbrev3,biblio_aux,cryptobib/crypto}
}
\listoffigures
\listoftables
\listofalgorithms
% \includepdf{cover/back.pdf}
\end{document}