-
Notifications
You must be signed in to change notification settings - Fork 11
/
pd2.sty
299 lines (253 loc) · 8.1 KB
/
pd2.sty
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
\usepackage{setspace}
\usepackage{url}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{color}
\usepackage{scrextend}
\usepackage{titletoc}
\usepackage{sectsty}
\usepackage{fancyhdr}
\usepackage[utf8]{inputenc}
\usepackage[hmargin=1.5in, vmargin=1.5in]{geometry}
% This is the styles files, you don't need to edit this whatsoever unless you
% want to change the format of the report. As it is now, it conforms exactly
% to the Spring 2013 PD2 Report Writing Guidelines
\sectionfont{\normalsize}
\subsectionfont{\normalsize}
\subsubsectionfont{\normalsize}
\newcommand{\faculty}[1]{
\newcommand{\myFaculty}{#1}
}
\newcommand{\reporttitle}[1] {
\newcommand{\myTitle}{#1}
}
\newcommand{\fullname}[1] {
\newcommand{\myName}{#1}
}
\newcommand{\term}[1] {
\newcommand{\myTerm}{#1}
}
\newcommand{\program}[1] {
\newcommand{\myProgram}{#1}
}
\newcommand{\studentid}[1] {
\newcommand{\myIdNumber}{#1}
}
\newcommand{\address}[1] {
\newcommand{\myAddress}{#1}
}
\newcommand{\city}[1] {
\newcommand{\myCity}{#1}
}
\newcommand{\postalcode}[1] {
\newcommand{\myPostalCode}{#1}
}
\newcommand{\pdtitle}[1] {
\newcommand{\myPD}{#1}
}
\newcommand{\UwLocation}{Waterloo, Ontario}
\newcommand{\supervisor}[3] {
\newcommand{\supervisorAddress}{#1 #2 #3}
\newcommand{\supervisorSalutation}{#1 #3}
}
\newlength\mylen
\settowidth\mylen{Figure\ }
\addtolength\cftfignumwidth{\mylen}
\addtolength\cfttabnumwidth{\mylen}
\renewcommand*{\cftfigfont}{Figure }
\renewcommand*{\cfttabfont}{Table \hspace{0.075in}}
\doublespacing
\addtolength{\parskip}{\baselineskip}
\setlength{\parindent}{0pt}
\setlength{\cftsecnumwidth}{25pt}
\setlength{\parskip}{1em}
\newcommand{\waterlootitlepage}[4] {
\titlecontents{section}
[0pt]
{}%
{\contentsmargin{0pt}
\thecontentslabel\enspace%
}
{\contentsmargin{0pt}}
{\titlerule*[.5pc]{.}\contentspage}
[]
\begin{singlespace}
\begin{titlepage}
\begin{center}
\textbf{\MakeUppercase{University of Waterloo}} \\
#1
\vfill
{
\textsc{\textbf{\MakeUppercase{#2}}}
}
\vfill
#3
\vfill
Prepared by \\
#4
\end{center}
\end{titlepage}
\end{singlespace}
}
\newcommand{\waterlooletterofsubmittal}[9] {
\begin{waterlooletter}
#1 \\
#2 \\
#3 \\ \\
\today \\ \\
#4, PD2 Instructor \\
Professional Development Program \\
University of Waterloo \\
200 University Avenue West \\
Waterloo, Ontario \\
N2L 3G1 \\ \\
Dear #5: \\
#8
Sincerely, \\ \\
#9 \\
#6 \\
ID #7
\end{waterlooletter}
}
\newenvironment{waterlooletter}{
\begin{singlespace}}{
\end{singlespace}
\thispagestyle{empty}
\newpage
}
\makeatletter
\renewcommand\@biblabel[1]{#1} % No brackets for the references
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin20pt% change 20 pt according to your needs
\advance\leftmargin\labelsep
\setlength\itemindent{-20pt}% change using the inverse of the length used before
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\renewcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\makeatother
\newcommand{\makereferences}[1]{
\newpage
\addcontentsline{toc}{section}{References}
\begin{thebibliography}{99\kern\bibindent}
#1
\end{thebibliography}
\newpage
}
\newcommand{\addchecklistappendix}{
Your report must:
\begin{itemize}
\item $\left[ Y \right]$ Include 4-6 pages of body content. Figures or tables that are included in the body are excluded in the 4-6 page count. (Example: 8 pages of content that includes a one-page figure and a half-page table counts as 6.5 pages of body content.) Adherence to the 3Cs (clarity, conciseness, and coherence) will allow you to meet this page limit.
\item $\left[ Y \right]$ Include at least one table (Place the table in the body of your report if you discuss it in detail; place the table in an appendix if your analysis refers to it only briefly.)
\item $\left[ Y \right]$ Include at least one figure (Place the figure in the body of your report if you discuss it in detail; place the figure in an appendix if your analysis refers to it only briefly.)
\item $\left[ Y \right]$ Use a 12-point serif font
\item $\left[ Y \right]$ Be double-spaced
\item $\left[ Y \right]$ Be written in formal, standard English, with no contractions
\item $\left[ Y \right]$ Be spell checked and proofread
\item $\left[ Y \right]$ Include pages numbered according to the conventions described in the Report Resources tab.
\end{itemize}
Your report must conform to the format and conventions described in the Report Resources page. You do not have to bind your report or include a front cover because you will submit your report to us online. Your report will include the following pages and sections:
\begin{itemize}
\item $\left[ Y \right]$ Title page
\item $\left[ Y \right]$ Letter of submittal (addressed to the PD 2 course instructor)
\item $\left[ Y \right]$ Table of contents
\item $\left[ Y \right]$ List of figures and tables, if appropriate (Figures or tables in an appendix should not be listed on the List of figures and tables; figures or tables elsewhere in your report are required to be on this list.)
\item $\left[ Y \right]$ Summary
\item $\left[ Y \right]$ Introduction
\item $\left[ Y \right]$ Body (that includes both an objective analytical component and a reflective component)
\item $\left[ Y \right]$ Conclusions (the section is "conclusions" as in "findings", not "conclusion")
\item $\left[ Y \right]$ Recommendations (specific, measurable, and attainable)
\item $\left[ Y \right]$ References
\item $\left[ Y \right]$ Appendices (you need at least one appendix which includes this checklist)
\end{itemize}
}
\newcommand{\addanappendix}[2]{
\tocsection{#1}
#2
}
\makeatletter
\renewcommand\ext@table{lof}
\makeatother
\renewcommand\cftfigpresnum{Figure }
\renewcommand\cfttabpresnum{Table }
\newcommand{\mytableofcontents} {
\tableofcontents
\newpage
\begin{center}
\tocsection{List of Tables and Figures}
\end{center}
\listoffigures
\newpage
}
\newcommand{\mySection}[2] {
\section{#1}
#2
}
\newcommand{\mySubSection}[2] {
\begin{addmargin}[1.5em]{0em}
\subsection{#1}
#2
\end{addmargin}
}
\newcommand{\mySubSubSection}[2] {
\begin{addmargin}[1.5em]{0em}
\subsubsection{#1}
#2
\end{addmargin}
}
\newcommand{\myFigure}[3] {
\begin{figure}
\centering
\scalebox{#1}{\includegraphics{#2}}
\caption{#3}
\end{figure}
}
\newcommand{\myTable}[3] {
\begin{table}
\centering
\scalebox{#1}{\includegraphics{#2}}
\caption{#3}
\end{table}
}
\def\thesection{\arabic{section}.0 }
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\renewcommand{\contentsname} {
\begin{center}
Table of Contents
\end{center}
}
\newcommand{\bulletpoints}[1]{
\begin{spaceditemize}
#1
\end{spaceditemize}
}
\renewcommand{\listfigurename}{}
\renewcommand{\cftsecleader}{\bfseries\cftdotfill{\cftdotsep}}
\renewcommand{\cftfigpresnum}{Figure }
\renewcommand{\cftfigaftersnum}{ --- }
\renewcommand{\cftfignumwidth}{65pt}
\newcommand{\tocsection}[1]{
\section*{#1}
\addcontentsline{toc}{section}{#1}
}
\newenvironment{spaceditemize}{
\begin{list}{$\bullet$}
{
\setlength{\parskip}{0pt}
}}
{\end{list}\bigskip
}