forked from WHCS-UCF/SD1-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
whcs.tex
220 lines (194 loc) · 5.33 KB
/
whcs.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% WHCS Senior design 1 document
% Written at UCF in 2015
% Typeset by Grant Hernandez
% For authors, see the title page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% What type of document are we building here
\ifdefined\enabledraft
\documentclass[draft,letterpaper,11pt]{article}
\else
\ifdefined\enablefinal
\documentclass[final,letterpaper,11pt]{article}
\else
\documentclass[letterpaper,11pt]{article}
\fi
\fi
\usepackage[margin=1in, lmargin=1.5in]{geometry}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Common color names
\usepackage[usenames,svgnames]{xcolor}
% For \textsubscript
\usepackage{fixltx2e}
% For meeting senior design specifications
\usepackage{parskip}
% For easy importing of documents
\usepackage{import}
% For the checkbox and other math symbols
\usepackage{amsmath}
\usepackage{amssymb}
% Advanced captions
\usepackage{caption}
% TODO tracking
\usepackage[obeyFinal,colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
% Fancy section headings
\usepackage{titlesec}
% TikZ madness
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
% Filler text
\usepackage{lipsum}
% Wrapping text around figures
\usepackage{wrapfig}
% For pretty code listings
\usepackage{listings}
% Keep floats in check with [H]
\usepackage{float}
% For including raw PDFs
\usepackage{pdfpages}
% Fancy if statements
\usepackage{ifthen}
\usepackage{array}
%\usepackage{booktabs,adjustbox}
%\usepackage{supertabular}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hyperref should be last
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Document jumping and linkage
% NEVER use draft mode for hyperref
\ifdefined\enabledraft
\usepackage[draft=false]{hyperref}
\else
\usepackage{hyperref}
\fi
% Probably not needed for now
%\usepackage{setspace}
%\usepackage{fancyhdr}
%\usepackage{wrapfig}
%\usepackage[binary-units]{siunitx}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Color Palette
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Code Colors
\definecolor{CommentGreen}{rgb}{0,0.6,0}
\definecolor{numbering}{gray}{0.5}
\definecolor{keywordc}{rgb}{.63,0,.42}
% Title page
\definecolor{whcs-accent}{HTML}{A66AFF}
\definecolor{whcs-accent-dark}{HTML}{6600FF}
\definecolor{whcs-muted}{HTML}{555555}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX Configuration & Macros
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Keep our graphics nice and neat
\graphicspath{{img/}}
% Customize hyperref
\urlstyle{same} % remove monospaced links
\ifdefined\printable
\hypersetup{pdfnewwindow=true, % prevent the user from leaving the paper
hidelinks,
% PDF Meta
pdftitle={Wireless Home Control System - UCF Senior Design I},
pdfsubject={University of Central Florida Senior Design 2015},
pdfauthor={Grant Hernandez},
}
\else
\hypersetup{pdfnewwindow=true, % prevent the user from leaving the paper
colorlinks,
linkcolor={whcs-accent-dark},
citecolor={blue!50!black},
urlcolor={blue!80!black},
% PDF Meta
pdftitle={Wireless Home Control System - UCF Senior Design I},
pdfsubject={University of Central Florida Senior Design 2015},
pdfauthor={Grant Hernandez},
}
\fi
% Customize autoref names
% See page 16 of hyperref manual
\renewcommand\sectionautorefname{Section}
\renewcommand\subsubsectionautorefname{Section}
\renewcommand\subsectionautorefname{Section}
\renewcommand\paragraphautorefname{Section}
% Custom figure macro for quick and easy changes across the document
% \ucffig
% Param 1: label
% Param 2: figure content
% Param 3: caption
\newcommand{\ucffig}[3]{
\begin{figure}[H]
\centering
\makebox[\textwidth][c]{
#2
}
\caption{#3}
\label{#1}
\end{figure}
}
\newcommand{\ucfgfx}[4][scale=1.0]{
\ucffig{#2}{\includegraphics[#1]{#3}}{#4}
}
% TBW macro
\newcommand{\tbw}{\emph{This section is in the process of being written.}}
% Section Heading Customization
\ifdefined\printable
\else
\ifdefined\enabledraft
\else
\newcommand\titlebar{%
\input{section-heading.tex}
}
\titleformat{\section}{\bfseries\Large}{\color{white}\titlebar}{0.1cm}{}
\fi
\fi
% Disable images on draft mode
\ifdefined\enabledraft
\renewcommand{\includegraphics}[2][]{}
\renewcommand{\includepdf}[2][]{}
\else
\fi
\renewcommand*{\thesection}{\arabic{section}}
% A custom listing format
\lstdefinestyle{code}{%
basicstyle=\ttfamily\small,
language=php,
numbers=left,
numberstyle=\footnotesize\color{numbering},
fontadjust=true,
basewidth=0.5em,
% flexiblecolumns=true,
keywordstyle={\bfseries\color{magenta}},
commentstyle=\color{CommentGreen},
stringstyle=\color{red},
showstringspaces=false,
tabsize=4,
%xleftmargin=\MaxSizeOfLineNumbers
}
%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%
% BEGIN DOCUMENT
%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%=%
\begin{document}
% We want this depth for our TOC
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{4}
% Start roman numerals as per the spec
\pagenumbering{roman}
% BEGIN COVER PAGE
\input{title-page.tex}
\todo{Fix footnotes in captions and list of figure hyperlinks}
% BEGIN TOC,LOF,LOT
\tableofcontents% \addcontentsline{toc}{section}{Table of Contents}
%\let\clearpage\relax
\listoffigures% \addcontentsline{toc}{section}{List of Figures}
\listoftables% \addcontentsline{toc}{section}{List of Tables}
\listoftodos
\clearpage
% \endgroup
% Resume usage of arabic numerals
\pagenumbering{arabic}
% BEGIN SECTION LISTING
%\onehalfspacing
\import{./}{toc.tex}
\end{document}