-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathwt_template.tex
More file actions
189 lines (157 loc) · 4.8 KB
/
wt_template.tex
File metadata and controls
189 lines (157 loc) · 4.8 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
%/////////////////////////////////////////////////////////%
%// PREAMBLE //%
%/////////////////////////////////////////////////////////%
\documentclass[11pt]{article}
%%%%%%%%%%%%%%%%%%%%%%%
% Packages
%%%%%%%%%%%%%%%%%%%%%%%
%% Fonts and Symbols
%% --------------------------
\usepackage{
amsmath, % math operators
amssymb, % math symbols
}
%% Graphics
%% --------------------
\usepackage{
graphicx, % allows insertion of images
subfigure, % allows subfigures (a), (b), etc.
}
\graphicspath{ {graphics/} } % (graphicx) relative path to graphics folder
%% Tables
%% --------------------------
\usepackage{
booktabs, % better tables, discourages vertical rulings
multicol, % allow multi columns
}
%% Layout Alteration
%% --------------------------
\usepackage{
enumitem, % indented items for glossary
framed, % nice boxes; used in Supervisor's Approval
geometry, % change the margins for specific PAGES
}
\setlist[description]{style=nextline}
\geometry{ % specify page size options for (geometry)
a4paper, % paper size
margin=1in, % specified independently with hmargin vmargin
}
%% Units
%% --------------------------
\usepackage{
siunitx, % has S (decimal align) column type
}
\sisetup{input-symbols = { () }, % do not treat "(" and ")" in any special way
group-digits = false, % no grouping of digits
% load-configurations = abbreviations,
% per-mode = symbol,
}
%% Misc
%% --------------------------
\usepackage{
pdfpages, % import pdfs into this document -- used for the Letter
url, % allows urls to be added to document
}
%% Bibliography
%% --------------------------
\usepackage[
backend=biber,
style=ieee]
{biblatex}
\addbibresource{wt_template.bib}
%%%%%%%%%%%%%%%%%%%%%%%
% Macros and Commands
%%%%%%%%%%%%%%%%%%%%%%%
% override S column type with centered text column
\providecommand{\textcol}[1]{\multicolumn{1}{c}{#1}}
% provides a place to write on documents; like __________________ that
\providecommand{\blankline}[1]{\rule{#1}{0.5pt}}
% Set up page numbering for appendices as (Appendix Letter) - (Page Number)
\providecommand{\StartAppendices}{
\newpage
\newcounter{AppendixCounter}
\renewcommand{\thepage}{\Alph{AppendixCounter} \textendash\ \arabic{page}}
}
% Manually construct the section title for each appendix and then
% add an entry to the ToC
\providecommand{\Appendix}[1]{
\newpage
\stepcounter{AppendixCounter}
\setcounter{page}{1}
\section*{Appendix \Alph{AppendixCounter}\quad #1}
\addtocontents{toc}{\protect\contentsline{section}%
{Appendix \Alph{AppendixCounter}\quad #1}{}}
% \protect preserves the spacing in the ToC
}
%%%%%%%%%%%%%%%%%%%%%%%
% Environments
%%%%%%%%%%%%%%%%%%%%%%%
% Hides the formatting for the summary
\newenvironment{Summary}
{ % beginning formatting
% manually add entry to the toc since section*
% suppresses addition to toc
\addcontentsline{toc}{section}{Summary}
\topskip0pt % remove top padding
\vspace*{\stretch{2}} % Pad 2/3 of the page length
\section*{Summary} % don't append a section number before "Summary"
}
{ % end formatting
\vspace*{\stretch{3}}
}
% Hides the formatting for the glossary
\newenvironment{Glossary}
{ %beginning formatting
\addcontentsline{toc}{section}{Glossary}
\section*{Glossary}
\begin{description}
}
{
\end{description}
}
%/////////////////////////////////////////////////////////%
%// BODY //%
%/////////////////////////////////////////////////////////%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%
% Title Page
%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{gobble} % turn off page numbering
\include{sections/titlepage}
%%%%%%%%%%%%%%%%%%%%%%%
% Front matter
%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\includepdf{letter/letter_of_transmittal}
\newpage
\addtocontents{toc}{~\hfill\textbf{Page}\par} % 'Page' above the page numbers
\tableofcontents
\newpage
\pagenumbering{roman} % i, ii, iii, ... page numbering
\addcontentsline{toc}{section}{\listfigurename} % manually add to toc
\addtocontents{lof}{~\hfill\textbf{Page}\par}
\listoffigures
\newpage % LoF and LoT may be on the same page if they fit
\addcontentsline{toc}{section}{\listtablename}
\addtocontents{lot}{~\hfill\textbf{Page}\par}
\listoftables
\include{sections/summary}
\include{sections/glossary}
%%%%%%%%%%%%%%%%%%%%%%%
% Main Body
%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\pagenumbering{arabic} % 1, 2, 3, ... page numbering
\include{sections/body} % consider using one file per section in the body
%%%%%%%%%%%%%%%%%%%%%%%
% References
%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\renewcommand*{\UrlFont}{\rmfamily} % preserve default font for URLs
\printbibliography[heading=bibintoc,title={References}]
%%%%%%%%%%%%%%%%%%%%%%%
% Back Matter
%%%%%%%%%%%%%%%%%%%%%%%
\StartAppendices{}
\include{sections/appendix}
\end{document}