forked from lalider/tufte-latex-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
222 lines (174 loc) · 5.97 KB
/
main.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
% -*- Mode:TeX -*-
%% IMPORTANT: The official thesis specifications are available at:
%% http://libraries.mit.edu/archives/thesis-specs/
%%
%% Please verify your thesis' formatting and copyright
%% assignment before submission. If you notice any
%% discrepancies between these templates and the
%% MIT Libraries' specs, please let us know
%% by e-mailing [email protected]
%% The documentclass options along with the pagestyle can be used to generate
%% a technical report, a draft copy, or a regular thesis. You may need to
%% re-specify the pagestyle after you \include cover.tex. For more
%% information, see the first few lines of mitthesis.cls.
%\documentclass[12pt,vi,twoside]{mitthesis}o
%%
%% If you want your thesis copyright to you instead of MIT, use the
%% ``vi'' option, as above.
%%
%\documentclass[12pt,twoside,leftblank]{mitthesis}
%%
%% If you want blank pages before new chapters to be labelled ``This
%% Page Intentionally Left Blank'', use the ``leftblank'' option, as
%% above.
\documentclass[nobib,justified,titlepage]{tufte-book}
\usepackage{lgrind}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{caption}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{moreverb}
\usepackage{alltt}
%\usepackage{parskip}
\usepackage{url}
\usepackage{array}
\usepackage{pdfpages}
\usepackage{wrapfig}
\usepackage{geometry}
\usepackage{afterpage}
\usepackage{capt-of}
\usepackage{pdflscape}
% \usepackage[authoryear]{natbib}
\usepackage{longtable}
\usepackage[natbibapa]{apacite}
% \usepackage[natbibapa]{apacite}
% \bibliographystyle{apacite}
\setcitestyle{citestyle=authoryear,brackets=square, maxcitenames=3}
\titleformat{\chapter}%
[display]% shape
{\relax\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\begin{flushleft}}{}}% format applied to label+text
% {\itshape\LARGE\chaptertitlename~\thechapter}% label
{\itshape\HUGE\thechapter}% label
{0pt}% horizontal separation between label and title body
{\Huge\rmfamily\itshape}% before the title body
[\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\end{flushleft}}{}]% after the title body
\makeatother
\setcounter{secnumdepth}{1}
\let\cite\citep
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
%% These have been added at the request of the MIT Libraries, because
%% some PDF conversions mess up the ligatures. -LB, 1/22/2014
\usepackage{fancyvrb}
%%
% Prints argument within hanging parentheses (i.e., parentheses that take
% up no horizontal space). Useful in tabular environments.
\newcommand{\hangp}[1]{\makebox[0pt][r]{(}#1\makebox[0pt][l]{)}}
%%
% Prints an asterisk that takes up no horizontal space.
% Useful in tabular environments.
\newcommand{\hangstar}{\makebox[0pt][l]{*}}
%%
% Prints a trailing space in a smart way.
\usepackage{xspace}
% custom page numbering
\fancypagestyle{plain}{
\fancyhead[LE]{\thepage\quad\smallcaps}%
\fancyhead[RO]{\smallcaps\quad\thepage}%
}
\usepackage[parfill]{parskip}
% remove paragraph indentation
\makeatletter
% Paragraph indentation and separation for normal text
\renewcommand{\@tufte@reset@par}{%
\setlength{\RaggedRightParindent}{0.0pc}%
\setlength{\JustifyingParindent}{0.0pc}%
\setlength{\parindent}{0pc}%
\setlength{\parskip}{\baselineskip}%
}
\@tufte@reset@par
% Paragraph indentation and separation for marginal text
\renewcommand{\@tufte@margin@par}{%
\setlength{\RaggedRightParindent}{0.0pc}%
\setlength{\JustifyingParindent}{0.0pc}%
\setlength{\parindent}{0.0pc}%
\setlength{\parskip}{10pt}%
}
\makeatother
%% This bit allows you to either specify onwly the files which you wish to
%% process, or `all' to process all files which you \include.
%% Krishna Sethuraman (1990).
% \setcounter{secnumdepth}{0}
% \includeonly{chap2}
\makeatletter
\renewcommand{\maketitlepage}{%
\begingroup%
\setlength{\parindent}{0pt}
\newgeometry{left=2.4cm}
{\fontsize{24}{24}\selectfont\textit{\@author}\par}
\vspace{1.75in}{\fontsize{50}{60}\selectfont\@title\par}
\vspace{0.5in}{\fontsize{14}{14}\selectfont\textsf{\smallcaps{\@date}}\par}
\vfill{\fontsize{14}{14}\selectfont\textit{\@publisher}\par}
\thispagestyle{empty}
\endgroup
}
\makeatother
% \titlecontents{part}%
% [0pt]% distance from left margin
% {\addvspace{0.25\baselineskip}}% above (global formatting of entry)
% {\allcaps{Part~\thecontentslabel}\allcaps}% before w/ label (label = ``Part I'')
% {\allcaps{Part~\thecontentslabel}\allcaps}% before w/o label
% {}% filler and page (leaders and page num)
% [\vspace*{0.5\baselineskip}]% after
% \titlecontents{chapter}%
% [4em]% distance from left margin
% {}% above (global formatting of entry)
% {\contentslabel{2em}\textit}% before w/ label (label = ``Chapter 1'')
% {\hspace{0em}\textit}% before w/o label
% {\qquad\thecontentspage}% filler and page (leaders and page num)
% [\vspace*{0.5\baselineskip}]% after
% %%%% End additional code by Kevin Godby
\title{A Tufte-styled Thesis Template}
\date{}
\author[Carla F. Griggio]{Carla F. Griggio}
\publisher{}
\publisher{Universit\'e Paris-Saclay, ED STIC\\Supervisor: Your supervisor's name}
\newcommand{\formatpart}[1]{%
\centering%
\begin{fullwidth}
\centering%
\hfil\partname~\thepart\hfil%%
\newline%
% \hfil\pgfornament[width=4cm]{84}\hfil%
\newline%
#1%
\end{fullwidth}
}
\titleformat% Formatting the part header
{\part} % command
[block] % shape
{\bfseries\sc\Huge} % format
{} % label
{} % sep
{ \formatpart
}%
\begin{document}
\frontmatter
\maketitlepage
\include{cover}
% Some departments (e.g. 5) require an additional signature page. See
% signature.tex for more information and uncomment the following line if
% applicable.
% \include{signature}
\include{contents}
\mainmatter
% Some departments (e.g. 5) require an additional signature page. See
% signature.tex for more information and uncomment the following line if
% applicable.
% \include{signature}
\pagestyle{plain}
\include{chap1}
\appendix
\include{appa}
\include{biblio}
\end{document}