-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpreamble.sty
More file actions
256 lines (224 loc) · 7.36 KB
/
preamble.sty
File metadata and controls
256 lines (224 loc) · 7.36 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
\ProvidesPackage{preamble}
%table of contents settings
\makeatletter
\renewcommand{\subsubsection}{\ttl@straightclass{subsubsection}}
\makeatother
\titleformat{\subsubsection}[hang]
{\em}
{\thesubsubsection}
{1em}
{}
[]
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{1}
\hypersetup{bookmarksdepth=3}
\usepackage{etoolbox}
\RequirePackage{etoolbox}
\makeatletter
\newif\if@tufte@margtab\@tufte@margtabfalse
\newcommand{\classiccaptionstyle}{%
\long\def\@caption##1[##2]##3{%
\par
\addcontentsline{\csname ext@##1\endcsname}{##1}%
{\protect\numberline{\csname the##1\endcsname}{\ignorespaces ##2}}%
\begingroup
\@parboxrestore
\if@minipage
\@setminipage
\fi
\normalsize
\@makecaption{\csname fnum@##1\endcsname}{\ignorespaces ##3}\par
\endgroup}
\long\def\@makecaption##1##2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{\@tufte@caption@font##1: ##2}%
\ifdim \wd\@tempboxa >\hsize
\@tufte@caption@font\if@tufte@margtab\@tufte@caption@justification\fi##1: ##2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\setcaptionfont{\normalfont}
\let\caption\@tufte@orig@caption%
\let\label\@tufte@orig@label}
\makeatother
\newenvironment{pagefigure}{%
\begin{figure*}[p]
\classiccaptionstyle
}{\end{figure*}}
\usepackage{microtype}
\usepackage[utf8]{inputenc}
%%
% For nicely typeset tabular material
\usepackage{booktabs}
%%
% For graphics / images
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\graphicspath{{figures/}{chapters/introduction/figures/}{chapters/nm_imp_comparison/figures/}}
% The fancyvrb package lets us customize the formatting of verbatim
% environments. We use a slightly smaller font.
\usepackage{fancyvrb}
\fvset{fontsize=\normalsize}
\usepackage{amsmath} % assumes amsmath package installed
\usepackage{amssymb} % assumes amsmath package installed
\usepackage{bm} %bold italic vectors
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{units}
\usepackage{nicefrac}
\DeclareMathOperator{\argmin}{argmin}
\usepackage{multirow}
\newcommand{\vsigstarzero}{\multirow{2}{*}{\rotatebox{90}{\footnotesize \hphantom{$\star$}}}}
\newcommand{\vsigstarone}{\multirow{2}{*}{\rotatebox{90}{\footnotesize $\star$}}}
\newcommand{\vsigstartwo}{\multirow{2}{*}{\rotatebox{90}{\footnotesize $\star\negmedspace\star$}}}
\newcommand{\vsigstarthree}{\multirow{2}{*}{\rotatebox{90}{\footnotesize $\star\negthickspace\star\negthickspace\star$}}}
%%
% 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}
%%
% Some shortcuts for Tufte's book titles. The lowercase commands will
% produce the initials of the book title in italics. The all-caps commands
% will print out the full title of the book in italics.
% Prints the month name (e.g., January) and the year (e.g., 2008)
\newcommand{\monthyear}{%
\ifcase\month\or January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or
December\fi\space\number\year
}
% Prints an epigraph and speaker in sans serif, all-caps type.
\newcommand{\openepigraph}[2]{%
%\sffamily\fontsize{14}{16}\selectfont
\begin{fullwidth}
\sffamily\large
\begin{doublespace}
\noindent\allcaps{#1}\\% epigraph
\noindent\allcaps{#2}% author
\end{doublespace}
\end{fullwidth}
}
% Inserts a blank page
\newcommand{\blankpage}{\newpage\hbox{}\thispagestyle{empty}\newpage}
% Macros for typesetting the documentation
\newcommand{\hlred}[1]{\textcolor{Maroon}{#1}}% prints in red
\newcommand{\hangleft}[1]{\makebox[0pt][r]{#1}}
\newcommand{\hairsp}{\hspace{1pt}}% hair space
\newcommand{\hquad}{\hskip0.5em\relax}% half quad space
\newcommand{\TODO}{\textcolor{red}{\bf TODO!}\xspace}
\newcommand{\ie}{\textit{i.\hairsp{}e.}\xspace}
\newcommand{\eg}{\textit{e.\hairsp{}g.}\xspace}
\newcommand{\na}{\quad--}% used in tables for N/A cells
%my commands
\synctex=1
\usepackage{comment}
\usepackage[disable]{todonotes}
\usepackage{cleveref}
\newcommand{\creflastconjunction}{, and\nobreakspace}
\usepackage{caption}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage{import}
%list types
\usepackage[inline]{enumitem}
\newlist{steps}{enumerate}{10}
\setlist[steps]{label*=\arabic*., ref=\arabic*}
\crefname{stepsi}{step}{steps}
\Crefname{stepsi}{Step}{Steps}
\newlist{challenges}{enumerate}{10}
\setlist[challenges]{label=\emph{Challenge \arabic*:}, ref=\arabic*, align=left,
listparindent=\parindent, parsep=0pt}
\crefname{challengesi}{challenge}{challenges}
\Crefname{challengesi}{Challenge}{Challenges}
\newlist{contributions}{enumerate}{10}
\setlist[contributions]{label=\emph{Contribution \arabic*:}, ref=\arabic*, align=left,
listparindent=\parindent, parsep=0pt}
\crefname{contributionsi}{contribution}{contributions}
\Crefname{contributionsi}{Contribution}{Contributions}
\newlist{tasks}{enumerate}{10}
\setlist[tasks]{label=\emph{Task \arabic*:}, ref=\arabic*,
align=left, listparindent=\parindent, parsep=0pt}
\crefname{tasksi}{task}{tasks}
\Crefname{tasksi}{Task}{Tasks}
\newlist{days}{enumerate}{10}
\setlist[days]{label=\emph{Day \arabic*:}, ref=\arabic*,
align=left, listparindent=\parindent, parsep=0pt}
\crefname{daysi}{day}{days}
\Crefname{daysi}{Day}{Days}
\newcommand{\thesistitle}{Design and Evaluation of Robust Control Methods for
Robotic Transfemoral Prostheses}
\newcommand{\prob}[1]{\operatorname{P} \left( #1 \right)}
\newcommand{\tn}[1]{\mathrm{#1}}
\usepackage{xparse}
\DeclareDocumentCommand{\func}{m o o m}
{%
\IfValueTF{#2}
{%
\IfValueTF{#3}
{\operatorname{#1}_{#2}^{#3} \left( #4 \right)}
{\operatorname{#1}_{#2} \left( #4 \right)}
}
{%
\IfValueTF{#3}
{\operatorname{#1}^{#3} \left( #3 \right)}
{\operatorname{#1} \left( #4 \right)}
}
}
\DeclareDocumentCommand{\funcil}{m o o m}
{%
\IfValueTF{#2}
{%
\IfValueTF{#3}
{\operatorname{#1}_{#2}^{#3} (#4)}
{\operatorname{#1}_{#2} (#4)}
}
{%
\IfValueTF{#3}
{\operatorname{#1}^{#3} (#3)}
{\operatorname{#1} (#4)}
}
}
\DeclareDocumentCommand{\funcsb}{m o o m}
{%
\IfValueTF{#2}
{%
\IfValueTF{#3}
{\operatorname{#1}_{#2}^{#3} \left[ #4 \right]}
{\operatorname{#1}_{#2} \left[ #4 \right]}
}
{%
\IfValueTF{#3}
{\operatorname{#1}^{#3} \left[ #3 \right]}
{\operatorname{#1} \left[ #4 \right]}
}
}
\DeclareDocumentCommand{\vecf}{m o o}
{%
\IfValueTF{#2}
{%
\IfValueTF{#3}
{\bm{#1}_{#2}^{#3}}
{\bm{#1}_{#2} }
}
{%
\IfValueTF{#3}
{\bm{#1}^{#3}}
{\bm{#1} }
}
}
%%
% Book metadata
\title{\thesistitle}
\author[Nitish Thatte]{Nitish Thatte}
%\publisher{Publisher of This Book}
% Generates the index
\usepackage{makeidx}
\makeindex