1 \documentclass[a4paper,10pt,titlepage]{report}
5 \parskip 10pt % sets spacing between paragraphs
6 %\renewcommand{\baselinestretch}{1.5} % Uncomment for 1.5 spacing between lines
7 %\parindent 0pt % sets leading space for paragraphs
14 %\usepackage{subfigure}
17 \usepackage{pdflscape} % Needed for landscaping - in pdf viewer
19 \usepackage{amsmath, amsthm,amssymb}
25 \usepackage[compact]{titlesec}
26 \titlespacing{\chapter}{0pt}{0pt}{0pt}
27 \titleformat{\chapter}
28 {\normalfont\LARGE\bfseries}{\thechapter.}{1em}{}
30 \usepackage[usenames,dvipsnames]{color}
31 \usepackage{listings} % For code snippets
33 \definecolor{darkgray}{rgb}{0.95,0.95,0.95}
34 \definecolor{darkred}{rgb}{0.75,0,0}
35 \definecolor{darkblue}{rgb}{0,0,0.75}
36 \definecolor{pink}{rgb}{1,0.5,0.5}
37 \lstset{language=Java}
38 \lstset{backgroundcolor=\color{darkgray}}
39 \lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt}
40 \lstset{keywordstyle=\color{darkred}\bfseries}
41 \lstset{commentstyle=\color{darkblue}}
42 %\lstset{stringsyle=\color{red}}
43 \lstset{showstringspaces=false}
44 \lstset{basicstyle=\small}
48 \newtheorem{theorem}{Theorem}[section]
49 \newtheorem{lemma}[theorem]{Lemma}
50 \theoremstyle{definition}\newtheorem{definition}[theorem]{Definition}
51 \newtheorem{proposition}[theorem]{Proposition}
52 \newtheorem{corollary}[theorem]{Corollary}
53 \newtheorem{example}{Example}
54 \theoremstyle{remark}\newtheorem*{remark}{Remark}
56 \newcommand{\Phid}[0]{\dot{\Phi}}
57 \newcommand{\Phib}[0]{\bar{\Phi}}
59 \newcommand{\de}[0]{\delta}
60 \newcommand{\deb}[0]{\bar{\delta}}
62 \newcommand{\that}[0]{\hat{\theta}}
64 \newcommand{\vect}[1]{\boldsymbol{#1}} % Draw a vector
65 \newcommand{\divg}[1]{\nabla \cdot #1} % divergence
66 \newcommand{\curl}[1]{\nabla \times #1} % curl
67 \newcommand{\grad}[1]{\nabla #1} %gradient
68 \newcommand{\pd}[3][ ]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} %partial derivative
69 \newcommand{\der}[3][ ]{\frac{d^{#1} #2}{d #3^{#1}}} %full derivative
70 \newcommand{\phasor}[1]{\tilde{#1}} % make a phasor
71 \newcommand{\laplacian}[1]{\nabla^2 {#1}} % The laplacian operator
75 % Reference things in GitHub
76 \newcommand{\gitref}[2]{\href{https://github.com/szmoore/MCTX3420/blob/master/#1/#2}{ \textcolor{blue}{\emph{#2}}}}
77 % Refer to API commands
78 \newcommand{\api}[1]{ ``\textcolor{black}{\texttt{/api/#1}}''}
80 % To make underscores printable without escaping them
81 \usepackage[T1]{fontenc}
84 % Refer to code (can change each one as needed)
85 \newcommand{\funct}[1]{ \texttt{#1}}
86 \newcommand{\var}[1]{ \texttt{#1}}
87 \newcommand{\type}[1]{ \texttt{#1}}
88 \newcommand{\code}[1]{ \texttt{#1}}
91 %\usepackage{endfloat}
94 \topmargin -0.6true in
96 \textheight 9.5true in
97 \oddsidemargin 0.25true in
98 \evensidemargin 0.25true in
101 \usepackage{fancyheadings}
103 \addtolength{\headheight}{2.5pt}
104 \renewcommand{\chaptermark}[1]{\markboth{\thechapter~~#1}{}}
105 \renewcommand{\sectionmark}[1]{\markright{\thesection~~#1}{}}
106 \ifthenelse{\boolean{@twoside}}
108 \rhead[\bfseries \rightmark]{\bfseries \thepage}
109 \lhead[\bfseries \leftmark]{\bfseries \thepage}
110 \addtolength{\headwidth}{\marginparsep}
111 \addtolength{\headwidth}{\marginparwidth}
113 \lhead{\bfseries \leftmark}
114 \rhead{\bfseries \thepage}
118 %---------------------------------------------------------
119 %---------------------------------------------------------
122 \include{titlepage/Titlepage} % This is who you are
126 %\include{acknowledgments/Acknowledgments} % This is who you thank
130 %\include{abstract/Abstract} % This is your thesis abstract
132 \pagenumbering{roman}
134 %---------------------------------------------------------
135 % Do the table of Contents and lists of figures and tables
136 %---------------------------------------------------------
143 \pagenumbering{arabic}
144 %---------------------------------------------------------
145 %---------------------------------------------------------
146 %Include the chapters!
148 \include{chapters/Introduction}
150 \include{chapters/Design} % This is chapter 1
152 %\include{chapters/Approach} % This is chapter 2
154 \include{chapters/Results}
156 %---------------------------------------------------------
157 \renewcommand{\bibname}{References}
158 \bibliography{references/refs}
159 \bibliographystyle{ieeetr}
160 \addcontentsline{toc}{part}{References}
161 %---------------------------------------------------------
165 \include{appendices/glossary}
166 %\include{proposal/proposal.tex}
167 %\renewcommand\chaptername{Appendix}
169 %\include{appendices/electron_optics}
170 %\include{appendices/electron_gun_circuit}
171 %\include{appendices/tcs_noise}
172 %\include{appendices/data_aquisition}
175 %---------------------------------------------------------