-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcourseoutline.cls
544 lines (447 loc) · 16.4 KB
/
courseoutline.cls
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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
%
% Copyright (c) 2014, Jonathan Anderson <[email protected]>.
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are met:
%
% 1. Redistributions of source code must retain the above copyright notice,
% this list of conditions and the following disclaimer.
%
% 2. Redistributions in binary form must reproduce the above copyright notice,
% this list of conditions and the following disclaimer in the documentation
% and/or other materials provided with the distribution.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
% ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
% LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
% POSSIBILITY OF SUCH DAMAGE.
%
%
% The 'courseoutline' class generates course outlines as required at
% Memorial University of Newfoundland. Many of its settings default to
% values appropriate for the Faculty of Engineering and Applied Science,
% but should be customisable for other faculties and departments via LaTeX
% class options.
%
% The class assumes that you have installed the commercial Adobe Garamond Pro
% files (licensed by the University) and are running under XeLaTeX.
%
% The class currently supports two options:
%
% - engineering: Use the names "Engineering", "Faculty of Engineering", etc.
% in the relevant places and emit the Faculty's policy on
% academic integrity ("Like Professional Engineers...").
% - ece: Use the names "Electrical and Computer Engineering", etc.
% in the relevant places and emit the Engineering policy on
% academic integrity ("Like Professional Engineers...").
% - safelabs: Don't emit a "Lab Safety" section even if a lab slot is
% declared with \lab. This is intended for use with
% computer labs (not electrical, structural, chemical labs).
%
% The following commands must be used to declare key information about the
% course (illustrated with example or default inputs):
%
% \coursename{Foundations of programming}
% \coursenumber{3891}
% \courseterm{Fall 2014}
%
% \instructor{Your name}
% \email{[email protected]}
% \phone{(123) 456-7890 x9876}
% \office{EN1234}
% \officehours{Tue 15:00--16:00, Thu 09:00--10:00}
%
%
% The following commands are optional:
%
% \ta{The name(s) of TA(s), if any}
% \tamail{\{ta1,ta2\}@provider.com}
% \taphone{(123) 456-7890 x1234}
% \taoffice{EN4321}
% \tahours{Thu}{15:00}{16:00}
%
% \website{http://faculty.uni.com/course_website} % no need for \url{}!
% \communication{other ways to communicate}
% \officialdescription{description from official (accreditation?) documents}
%
% \prerequisites{ENGI1020,MATH1000}
%
% \lecture{MWF}{9:00}{10:00}{EN2006}
% \tutorial{Tue}{14:00}{15:00}{EN2006}
% \lab{Thu}{14:00}{17:00}{EN3099}
%
%
% Based on this input, the class exports the following commands:
%
% \nameandnumber % e.g., "Engineering 1000"
% \shortnumber % e.g., "ENGI 1000"
% \shortname % e.g., "Introduction to Stuff"
% \fullname % e.g., "Engineering 1000: Introduction to Stuff"
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{courseoutline}[2014/05/27 University course outline]
% Use the basic article structure.
\LoadClass{article}
\RequirePackage{mun-fonts}
\RequirePackage{mun-colour}
\RequirePackage{booktabs}
\RequirePackage{fancyhdr}
\RequirePackage[margin=.75in,bottom=1.5in]{geometry}
\RequirePackage{graphicx}
\RequirePackage{hyperref}
\RequirePackage{tabularx}
\RequirePackage{titlesec}
%
% Use the names "Engineering", "Faculty of Engineering and Applied Science"
% and "ENGI" in the appropriate places. Emit the Engineering-specific policy
% on academic integrity and professional conduct.
%
% Other Faculties and Departments should add similar class options here.
%
\newif\if@engineering
\@engineeringfalse
\DeclareOption{engineering}{\@engineeringtrue}
\newif\if@ece
\@ecefalse
\DeclareOption{ece}{\@ecetrue}
%
% Don't emit the "Lab Safety" section, even if there is a lab slot.
% This is for use with computer labs, which don't require PPE, etc. like
% oher labs (electrical, structural, chemical...).
%
\newif\if@safelabs
\@safelabsfalse
\DeclareOption{safelabs}{\@safelabstrue}
%
% Allow some text about Supplemental Instruction to be emitted.
%
\newif\if@si
\@sifalse
\DeclareOption{supplementalinstruction}{\@sitrue}
%
% Pass the remaining options to 'article'.
%
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\makeatletter
%
% Internal macros that represent key course information:
%
\newcommand{\@faculty}{Unknown Faculty}
\newcommand{\@shortfaculty}{Unknown}
\if@ece
\renewcommand{\@faculty}{Department of Electrical and Computer Engineering}
\renewcommand{\@shortfaculty}{ECE}
\else
\if@engineering
\renewcommand{\@faculty}{Faculty of Engineering and Applied Science}
\renewcommand{\@shortfaculty}{Engineering}
\fi
\fi
\newcommand{\@courseprefix}{ENGI}
\newcommand{\@coursename}{Short Name}
\newcommand{\@coursenumber}{XXXX}
\newcommand{\@courseterm}{Spring XXXX}
\newcommand{\@name}{Dr No}
\newcommand{\@email}{[email protected]}
\newcommand{\@office}{EN-XXXX}
\newcommand{\@officehours}{}
\newcommand{\@tahours}{}
\newcommand{\@calendar}{includes modules on foo, bar, baz and wibble.}
\newcommand{\@lecturedays}{MWF}
\newcommand{\@lecturestart}{X:00}
\newcommand{\@lecturefinish}{Y:00}
\newcommand{\@lectureroom}{EN-XXXX}
\newcommand{\@credithours}{3}
\newif\if@tutorial
\@tutorialfalse
\newif\if@labs
\@labsfalse
\newcommand{\@textbook}{\textendash}
%
% Externally-visible commands to define course information. These are
% documented in the header comment at the top of this file, so if you add new
% commands, please also add documentation there!
%
\newcommand{\coursename}[1]{\renewcommand\@coursename{#1}}
\newcommand{\coursenumber}[1]{\renewcommand\@coursenumber{#1}}
\newcommand{\courseterm}[1]{\renewcommand\@courseterm{#1}}
\newcommand{\instructor}[1]{\renewcommand\@name{#1}}
\newcommand{\email}[1]{\renewcommand\@email{#1}}
\newcommand{\phone}[1]{\newcommand\@phone{#1}}
\newcommand{\office}[1]{\renewcommand\@office{#1}}
\newcommand{\officehours}[1]{\renewcommand\@officehours{#1}}
\newcommand\@talabel{TA(s)}
\newcommand{\ta}[1]{\newcommand\@ta{#1}}
\newcommand{\talabel}[1]{\renewcommand\@talabel{#1}}
\newcommand{\tamail}[1]{\newcommand\@tamail{#1}}
\newcommand{\taphone}[1]{\newcommand\@taphone{#1}}
\newcommand{\taoffice}[1]{\newcommand\@taoffice{#1}}
\newcommand{\tahours}[1]{\renewcommand\@tahours{#1}}
\newcommand{\website}[1]{\newcommand\@website{#1}}
\newcommand{\communication}[1]{\newcommand\@othercomms{#1}}
\newcommand{\officialdescription}[1]{\renewcommand\@calendar{#1}}
\newcommand{\prerequisites}[1]{\newcommand\@prereqs{#1}}
\newcommand{\corequisites}[1]{\newcommand\@coreqs{#1}}
\newcommand{\creditrestrictions}[1]{\newcommand\@creditrestr{#1}}
\newcommand{\lecture}[4]{
\renewcommand\@lecturedays{#1}
\renewcommand\@lecturestart{#2}
\renewcommand\@lecturefinish{#3}
\renewcommand\@lectureroom{#4}
}
\newcommand{\tutorial}[4]{
\newcommand\@tutorialdays{#1}
\newcommand\@tutorialstart{#2}
\newcommand\@tutorialfinish{#3}
\newcommand\@tutorialroom{#4}
\@tutorialtrue
}
\newcommand{\lab}[4]{
\newcommand\@labdays{#1}
\newcommand\@labstart{#2}
\newcommand\@labfinish{#3}
\newcommand\@labroom{#4}
\@labstrue
}
\newcommand{\accreditationunits}[1]{\newcommand\@aus{#1}}
\newcommand{\contentcategories}[1]{\newcommand\@content{#1}}
\newcommand{\credithours}[1]{\renewcommand\@credithours{#1}}
\newcommand{\labhours}[1]{\newcommand\@labhours{#1}}
\newcommand{\otherrequirements}[1]{\newcommand\@otherrequirements{#1}}
\newcommand{\textbook}[1]{\renewcommand\@textbook{#1}}
\newcommand{\references}[1]{\newcommand\@references{#1}}
%
% Externally-visible outputs (also documented in the header comment):
%
\newcommand{\nameandnumber}{\@shortfaculty~\@coursenumber}
\newcommand{\shortname}{\@coursename}
\newcommand{\shortnumber}{\@courseprefix~\@coursenumber}
\newcommand{\fullname}{\nameandnumber:~\@coursename}
\newcommand{\lecturetimes}{
\@lecturedays~\@lecturestart--\@lecturefinish
}
\newcommand{\tutorialtimes}{
\ifdefined\@tutorialdays
\@tutorialdays~\@tutorialstart--\@tutorialfinish
\fi
}
\newcommand{\labtimes}{
\ifdefined\@labdays
\@labdays~\@labstart--\@labfinish
\fi
}
%
% Page headers:
%
\pagestyle{fancy}
\setlength{\headheight}{.75in}
\renewcommand{\headrulewidth}{0.0pt}
\fancyhead{}
\fancyfoot{}
\fancyhead[R] {\headercolour \it \shortname~\@courseterm}
\fancyfoot[C] {\neutralcolour \bf \thepage}
\fancypagestyle{plain}{
\setlength{\headheight}{.25in}
\fancyhead {}
\fancyfoot[C] {\neutralcolour \bf \thepage}
}
%
% No paragraph indentation:
%
\setlength{\parindent}{0cm}
\setlength{\parskip}{.5em}
%
% Customised title:
%
\newcommand{\head}[1]{\textbf{\headercolour #1}}
\newcommand{\wide}[1]{\multicolumn{3}{p{0.8 \hsize}}{#1}}
\renewcommand{\maketitle}
{
\thispagestyle{plain}
\mbox{
\parbox{5.5in}{
\includegraphics[width=1.1in]{memorial} \vspace{6pt} \\
{\neutralcolour \bf \hspace{5pt}\@faculty}
}
\parbox{2in}{
\neutralcolour \bf
Course Outline \\
\shortnumber \\
\\
\@courseterm
}
}
\vspace{.2in}
{\bf \LARGE \headercolour \fullname} \\
\vspace{.1in}
\begin{tabularx}{\textwidth}{lXlX}
\head{Instructor}
& \parbox[t]{2in}{
\@name \\
\href{mailto:\@email}{\tt \@email} \\
\ifdefined \@phone \@phone \\ \fi
\@office
}
& \ifdefined \@ta \head{\@talabel} \fi
& \ifdefined \@ta
\parbox[t][][t]{2in}{
\@ta \\
\ifdefined \@tamail \href{mailto:\@tamail}{\tt \@tamail} \\ \fi
\ifdefined \@taphone \@taphone \\ \fi
\ifdefined \@taoffice \@taoffice \fi
}
\fi
\\
\\[-.5em]
\head{Office Hours} & \@officehours & & \@tahours
\\[.5em]
\ifdefined
\@website \head{Website} & \wide{\url{\@website}}
\\
\fi
\ifdefined \@othercomms \head{Communication} & \wide{\@othercomms} \\ \fi
\\[-.75em]
\head{Calendar entry} & \wide{\@calendar} \\
\ifdefined \@prereqs \head{Prerequisite(s)}& \wide{\@prereqs} \\ \fi
\ifdefined \@coreqs \head{Co-Requisites} & \wide{\@coreqs} \\ \fi
\ifdefined \@creditrestr \head{Credit Restrictions} & \wide{\@creditrestr} \\ \fi
\head{Schedule}
& Lecture \hfill \lecturetimes & \multicolumn{2}{l}{\@lectureroom}
\\
\if@tutorial
& Tutorial \hfill \tutorialtimes & \multicolumn{2}{l}{\@tutorialroom}
\\ \fi
\if@labs
& Lab \hfill \labtimes & \multicolumn{2}{l}{\@labroom}
\\ \fi
\head{Credit value} & \@credithours~credit-hours
& \ifdefined \@labhours \head{Lab hours} \fi
& \ifdefined \@labhours \@labhours \fi
\\
\ifdefined \@aus
\head{Accreditation units} & \@aus &
\ifdefined \@content
\head{Content categories} & \@content
\fi
\\
\fi
\ifdefined \@otherrequirements
\head{Other req.} & \multicolumn{3}{l}{\@otherrequirements} \\
\fi
\head{Textbook}
& \multicolumn{3}{l}{\parbox[t]{4.75in}{\@textbook}} \\
\ifdefined \@references
\head{References}
& \multicolumn{3}{l}{\parbox[t]{4.75in}{\@references}} \\
\fi
\end{tabularx}
\renewcommand{\arraystretch}{1.25}
}
%
% Section, etc. headings:
%
\titlespacing{\section}{0pt}{.5em}{0pt}
\titlespacing{\subsection}{0pt}{1em}{0.25em}
\titlespacing{\subsubsection}{0pt}{0.5em}{0em}
\titleformat{name=\section}{\Large \bf \headercolour}{\thesection}{.5em}{}
\titleformat{name=\subsection}{\large \bf \headercolour}{\thesubsection}{.5em}{}
\titleformat{name=\subsubsection}{\bf \headercolour}{\thesubsubsection}{.5em}{}
%
% Various bits of text that are common to many/all course outlines:
%
\newcommand{\engrintegrity}[0]{
}
\newcommand{\academicintegrity}[0]{
\if@engineering
\section{Academic Integrity and Professional Conduct}
Students are expected to conduct themselves in all aspects of the course at the
highest level of academic integrity.
Any student found to commit academic misconduct will be dealt with according
to the Faculty and University practices.
More information is available at
\url{http://www.mun.ca/engineering/undergrad/academicintegrity.php}.
Students are encouraged to consult the Faculty of Engineering and Applied
Science Student Code of Conduct at
\url{http://www.mun.ca/engineering/undergrad/academicintegrity.php}
and Memorial University's Code of Student Conduct at
\url{http://www.mun.ca/student/conduct}.
\else
\section{Academic Integrity}
Students are reminded of the Memorial University of Newfoundland Code,
which states:
\begin{quote}
All members of the Memorial University of Newfoundland Community, which includes
students, faculty, and staff, shall treat others with respect and fairness, be
responsible and honest, and uphold the highest standards of academic integrity.
\end{quote}
Academic misconduct is governed by section 6.11 of the University Calendar,
which begins:
\begin{quote}
Within the University community there is a collective responsibility to maintain
a high level of scholarly integrity. A student is expected to adhere to those
principles which constitute proper academic conduct. Academic misconduct cannot
be condoned or even appear to be condoned. A student has the responsibility to
know which actions, as described under Academic Offences, could be construed as
dishonest or improper. A student is reminded that for further guidance on proper
scholarly behaviour he/she should seek advice from his/her instructors and
faculty advisors.
\end{quote}
\fi
}
\newcommand{\boilerplate}[0]{
\academicintegrity
\if@si
\section{Supplemental Instruction}
Supplemental Instruction (SI) is a peer-facilitated learning enhancement model
designed to improve student learning and performance in difficult courses.
During SI sessions, the SI Leader engages students using interactive learning
strategies, which encourage involvement, comprehension, and synthesis of
subject content.
SI is attached to this course to provide a systematic and structured approach
for processing the course material.
Two SI sessions will be offered weekly.
The schedule will be announced in the first week of classes.
\fi
\if@safelabs
% The 'safelabs' option was passed to the class, elide the Lab Safety statement.
\else
\ifdefined\@labtimes
\section{Lab Safety}
Students are expected to demonstrate awareness
of, and personal accountability for, safe laboratory conduct. Appropriate
personal protective equipment (PPE) must be worn (e.g. steel-toed shoes,
safety glasses, etc.) and safe work practices must be followed as indicated
for individual laboratories, materials and equipment. Students will
immediately report any concerns regarding safety to the teaching assistant,
staff technologist, and professor.
\fi
\fi
\section{Inclusion and Equity}
Students who require accommodations are encouraged to contact the Glenn Roy
Blundon Centre, \url{http://www.mun.ca/blundon/about/index.php}.
The mission of the Blundon Centre is to provide and co-ordinate programs and
services that enable students with disabilities to maximize their educational
potential and to increase awareness of inclusive values among all members of the
university community.
The university experience is enriched by the diversity of viewpoints, values,
and backgrounds that each class participant possesses.
In order for this course to encourage as much insightful and comprehensive
discussion among class participants as possible, there is an expectation that
dialogue will be collegial and respectful across disciplinary, cultural, and
personal boundaries.
\section{Student Assistance}
Student Affairs and Services offers help
and support in a variety of areas, both academic and personal. More
information can be found at \url{http://www.mun.ca/student}.
}
\makeatother
\endinput