-
Notifications
You must be signed in to change notification settings - Fork 4
/
thesis.tex
174 lines (135 loc) · 3.97 KB
/
thesis.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
\documentclass[12pt, a4, twoside]{report}
% DEFAULT PACKAGE SETUP
\usepackage{setspace,graphicx,epstopdf,amsmath,amsfonts,amssymb,amsthm}
\usepackage{marginnote,datetime,enumitem,rotating, fancyvrb}
\usepackage{hyperref, float}
\usepackage{verbatim}
\usepackage{booktabs}
\usepackage{subfigure}
\usepackage[longnamesfirst]{natbib}
\usdate
%For referencing theorems and lemmas
\usepackage{cleveref}% http://ctan.org/pkg/cleveref
\usepackage{arydshln}
% Deal with multiple bibliographies
\usepackage{emptypage}
\usepackage{multibib}
\newcites{Somm}{References}
\newcites{Intro}{References}
\newcites{One}{References}
\newcites{Two}{References}
\newcites{Three}{References}
% Number paragraphs and subparagraphs and include them in TOC
\setcounter{tocdepth}{2}
% JFE-specific includes:
\usepackage{indentfirst} % Indent first sentence of a new section.
\usepackage{jfe} % JFE-specific formatting of sections, etc.
% Set margins
\usepackage[margin=1in]{geometry}
\usepackage{accents}
% Theorem titles
\newtheorem{theorem}{Theorem}[section]
\newtheorem{claim}{Claim}
\newtheorem{assumption}{Assumption}[section]
\newtheorem{proposition}{Proposition}
\newtheorem{conjecture}{Conjecture}
\newtheorem{lemma}{Lemma} %[section]
\newtheorem{corollary}{Corollary}
\newtheorem{condition}{Condition}
\newtheorem{definition}{Definition}
% For cref
\crefname{lemma}{Lemma}{Lemmas}
\crefname{claim}{Claim}{Claims}
\crefname{proposition}{Proposition}{Propostions}
\crefname{figure}{Figure}{Figures}
\crefname{table}{Table}{Tables}
\crefname{equation}{Eq.}{Eqs.}
\crefname{algocf}{Algorithm}{Algorithms}
\crefname{appendix}{Appendix}{Appendices}
\crefname{appsec}{Appendix}{Appendices}
% needed?
%\newcommand\subfigsize{0.5\textwidth}
%\newcommand{\omegvec}{\bm{\omega}}
% needed?
%\newcommand\munderbar[1]{%
% \underaccent{\bar}{#1}}
%\newcolumntype{d}[1]{D..{#1}} % for alignment of numbers on decimal marker
% For dealing with multiple appendices
\makeatletter
\newcounter{savesection}
\newcounter{apdxsection}
\renewcommand\appendix{\par
\setcounter{savesection}{\value{section}}%
\setcounter{section}{\value{apdxsection}}%
\setcounter{subsection}{0}%
\gdef\thesection{\@Alph\c@section}}
\newcommand\unappendix{\par
%\setcounter{apdxsection}{\value{section}}%
\setcounter{apdxsection}{0}%
\setcounter{section}{\value{savesection}}%
\setcounter{subsection}{0}%
\gdef\thesection{\@arabic\c@section}}
\makeatother
% For dealing with pagecount around abstracts
\makeatletter
\newcounter{stored_pagecount}
\makeatother
% Reset counters at starts of chapters
\makeatletter
\@addtoreset{theorem}{chapter}
\@addtoreset{proposition}{chapter}
\makeatother
% Redefine chapter heading to reduce whitespace
\makeatletter
\renewcommand*\@makechapterhead[1]{%
%\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
%\vskip 40\p@
}}
\makeatother
% needed?
% \setlist{noitemsep} % Reduce space between list items (itemize, enumerate, etc.)
% needed?
%\makeatletter
%\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
% \hskip -\arraycolsep
% \let\@ifnextchar\new@ifnextchar
% \array{#1}}
%\makeatother
\begin{document}
\setlist{noitemsep} % Reduce space between list items (itemize, enumerate, etc.)
\singlespacing
\input{titlepage.tex}
\cleardoublepage
\input{titrepage.tex}
\cleardoublepage
\include{acknowledgements}
% cleardoublepage ensures section begins on odd page
\cleardoublepage
\tableofcontents
\cleardoublepage
\listoffigures
\cleardoublepage
\listoftables
% Ensure that appendix numbering properly initialized
\unappendix
\cleardoublepage
\input{sommaire.tex}
\cleardoublepage
\input{introduction.tex}
\cleardoublepage
\input{chapter1.tex}
\cleardoublepage
\input{chapter2.tex}
\cleardoublepage
\input{chapter3.tex}
\cleardoublepage
\input{conclusion.tex}
\end{document}