Repository navigation
Expand file tree
/
Copy pathdefinitions.tex
More file actions
251 lines (201 loc) · 6.86 KB
/
Copy pathdefinitions.tex
File metadata and controls
251 lines (201 loc) · 6.86 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
%%
%% Place here your \usepackage's. Some recommended packages are already included.
%%
% Graphics:
\usepackage[final]{graphicx}
%\usepackage{graphicx} % use this line instead of the above to suppress graphics in draft copies
%\usepackage{graphpap} % \defines the \graphpaper command
% Indent first line of each section:
%\usepackage{indentfirst}
% Good AMS stuff:
\usepackage{amsthm} % facilities for theorem-like environments
\usepackage[tbtags]{amsmath} % a lot of good stuff!
% Fonts and symbols:
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{xspace}
% Algorithm figures
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\usepackage{microtype}
\usepackage{subfigure}
\usepackage{color}
\usepackage{todonotes}
\usepackage{url}
\newfloat{algorithm}{t}{lop}
\usepackage{blindtext}
%% Controls spacing between lines (\doublespacing, \onehalfspacing, etc.):
\usepackage[utf8x]{inputenc}
\usepackage{fancyhdr}
% This package to change the font if the document. This font is optional as you preference. You can comment it to use the CMU font
%\usepackage{helvet}
%\renewcommand{\familydefault}{\sfdefault}
%% \usepackage{amsmath}
%% \usepackage{amssymb}
\usepackage{lipsum}
% \newfloat{algorithm}{t}{lop}
% Packages for setting the length and width of document
\usepackage{setspace}
% Package for sideway images and figures
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{epstopdf}
\usepackage{caption}
% Formatting tools:
%\usepackage{relsize} % relative font size selection, provides commands \textsmalle, \textlarger
%\usepackage{xspace} % gentle spacing in macros, such as \newcommand{\acims}{\textsc{acim}s\xspace}
% Page formatting utility:
%\usepackage{geometry}
\usepackage{multirow}
% For MATLAB code
\usepackage{listings}
\usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}
% For citations
\usepackage[numbers,sort]{natbib}
\usepackage[nottoc]{tocbibind}
\usepackage[all,cmtip]{xy}
% Change the color of the hyperlinks and titles from blue to black
\usepackage{hyperref}
\hypersetup{
colorlinks = false,
linkbordercolor = {white},
linkcolor=black,
filecolor=black,
urlcolor=black,
citecolor=black
}
%%
%% Place here your \newcommand's and \renewcommand's. Some examples already included.
%%
%\newcommand{\acims}{\textsc{acim}s\xspace}
\newcommand{\Mspace} {{\mathbb M}}
\newcommand{\Rspace} {{\mathbb R}}
\newcommand{\Cspace} {{\mathbb C}}
\newcommand{\Mo} {{\hat M}}
\newcommand{\Ms} {{\tilde M}}
\newcommand{\Do} {{\hat D}}
\newcommand{\Ds} {{\tilde D}}
\newcommand{\doo} {{\hat d}}
\newcommand{\dss} {{\tilde d}}
\newcommand{\w} {{\mathbf w}}
% general
\newcommand{\ie}{i.e.}
\newcommand{\eg}{e.g.}
\newcommand{\reffig}[1]{{Figure~\ref{#1}}}
\newcommand{\refchap}[1]{{Chapter~\ref{#1}}}
\newcommand{\refsec}[1]{{Section~\ref{#1}}}
\newcommand{\reftab}[1]{{Table~\ref{#1}}}
\newcommand{\refapp}[1]{{Appendix~\ref{#1}}}
\newcommand{\refeq}[1]{{Equation~\ref{#1}}}
\newcommand{\refalg}[1]{{Algorithm~\ref{#1}}}
\newcommand{\myparagraph}[1]{\noindent \textbf{#1}}
\newcommand{\highlight}[1]{{\color{black}#1}}
%%
%% Place here your \newtheorem's:
%%
%% Some examples commented out below. Create your own or use these...
%%%%%%%%%\swapnumbers % this makes the numbers appear before the statement name.
%\theoremstyle{plain}
%\newtheorem{thm}{Theorem}[chapter]
%\newtheorem{prop}[thm]{Proposition}
%\newtheorem{lemma}[thm]{Lemma}
%\newtheorem{cor}[thm]{Corollary}
%\theoremstyle{definition}
%\newtheorem{define}{Definition}[chapter]
%\theoremstyle{remark}
%\newtheorem*{rmk*}{Remark}
%\newtheorem*{rmks*}{Remarks}
%% This defines the "proo" environment, which is the same as proof, but
%% with "Proof:" instead of "Proof.". I prefer the former.
%\newenvironment{proo}{\begin{proof}[Proof:]}{\end{proof}}
%\usepackage[subfigure]{tocloft}
\usepackage[explicit]{titlesec}%
\usepackage{titletoc}
\usepackage{etoolbox}
% To add space between the Table of Contents, List of Figures and the List of Tables and the list content
\addtocontents{toc}{\vspace{1.2cm}}
\addtocontents{lof}{\vspace{1.2cm}}
\addtocontents{lot}{\vspace{1.2cm}}
% This command for chapters
\newcommand\chap[1]{%
\chapter*{#1}%
\addcontentsline{toc}{chapter}{#1}}
% Table of contents formatting
% Removing the dots between the Title and the page number
\makeatletter
\renewcommand{\@dotsep}{10000}
\makeatother
\usepackage{tabto}
\usepackage{makebox}
% Table of contents font and space modifications
\titlecontents{chapter}[0pt]
{\vskip 10pt \bfseries}
{\bfseries\text{Chapter }\thecontentslabel\tabto{3.5cm}}
{}
{\hfill\bfseries\contentspage}
\titlecontents{section}[0pt]
{}
{\quad\quad\thecontentslabel\tabto{3.5cm}}
{}
{\hfill\contentspage}
\titlecontents{subsection}[0pt]
{}
{\quad\quad\thecontentslabel\tabto{3.5cm}}
{}
{\hfill\contentspage}
\titlecontents{table}[0pt]
{}
{\quad\quad\thecontentslabel\tabto{3.5cm}}
{}
{\hfill\contentspage}
\titlecontents{figure}[0pt]
{}
{\quad\quad\thecontentslabel\tabto{3.5cm}}
{}
{\hfill\contentspage}
% Change the Table of Contents, List of Tables ... etc. font size insited of big font
\renewcommand{\contentsname}{\normalsize{Table of Contents}}
\renewcommand{\listfigurename}{\normalsize{List of Figures}}
\renewcommand{\listtablename}{\normalsize{List of Tables}}
\renewcommand{\bibname}{\normalsize{Bibliography}}
\renewcommand{\indexname}{\normalsize{Index}}
% May 2009 added this to move page number up a bit
\addtolength{\voffset}{-2em}
% This is to format the chapter tags in this file
\usepackage{chngcntr}
\usepackage{lipsum}% just to generate text for the example
%% Page layout (customized to letter paper and Stevens requirements):
% if not using pdflatex to produce output, you may need to change to pagewidth and pageheight variables.
%\pagewidth 8.5in
%\pageheight 11in
\pdfpagewidth 8.5in
\pdfpageheight 11in
%
\setlength{\textheight}{8.5in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\textwidth}{6.0in}
\setlength{\topmargin}{0.in}
\setlength{\headheight}{0.5in}
\setlength{\headwidth}{6.0in}
% change from .25in to .5 in May 2009
\setlength{\headsep}{0.65in}
\setlength{\parindent}{12mm}
% For each chapter and section titles in the rest of the document the font formatting
% Chapter styles
\usepackage{sectsty}
\chapternumberfont{\normalsize}
\chaptertitlefont{\normalsize}
\makeatletter
% No extra space between chapter number and chapter header lines:
\patchcmd{\@makechapterhead} {\vskip 20}{\vskip 0} {}{}
% Reduce extra space between chapter header and section header lines by 50%:
\patchcmd{\@makechapterhead} {\vskip 40}{\vskip 20}{}{}
\patchcmd{\@makeschapterhead}{\vskip 40}{\vskip 20}{}{} % for unnumbered chapters
\makeatother
% Sections styles
\sectionfont{\normalsize}
% Sub-sections styles
\subsectionfont{\normalsize}