-
Notifications
You must be signed in to change notification settings - Fork 3
/
mun-letterhead.sty
90 lines (71 loc) · 1.98 KB
/
mun-letterhead.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
\RequirePackage{mun-colour}
\RequirePackage{mun-fonts}
%
% Faculty- and Department-specific names and return addresses.
% Can be overridden with \faculty, \returnaddress and \website, but this is
% easier.
%
\newif\if@engineering
\@engineeringfalse
\DeclareOption{engineering}{\@engineeringtrue}
\newif\if@ece
\@ecefalse
\DeclareOption{ece}{\@ecetrue}
\newif\ifblackandwhite
\blackandwhitefalse
\DeclareOption{bw}{\blackandwhitetrue}
\@for\@tempa:=%
10pt,12pt,14pt,letterpaper,legalpaper,a4paper,onecolumn,twocolumn,twoside,%
midterm,final%
\do{%
\DeclareOption{\@tempa}{\OptionNotUsed}%
}
\ProcessOptions\relax
%
% Internal macros with key memo information:
%
\newcommand{\@faculty}{Unknown Faculty}
\newcommand{\@returnaddress}{Unspecified return address}
\newcommand{\@website}{https://www.mun.ca}
%
% Faculty- and Department-specific information (can still be overridden):
%
\if@engineering
\renewcommand{\@faculty}{Faculty of Engineering and Applied Science}
\renewcommand{\@returnaddress}{%
St. John's, NL~~Canada~~A1B~3X5 \\
Tel: 709~864~8812~Fax: 709~864~4042
}
\renewcommand{\@website}{https://www.mun.ca/engineering}
\fi
\if@ece
\renewcommand{\@faculty}{Faculty of Engineering and Applied Science}
\renewcommand{\@returnaddress}{%
Department of Electrical and Computer Engineering \\
St. John's, NL~~~Canada~~~A1B~3X5 \\
Tel: 709~864~8177~~~~Fax: 709~864~4042
}
\renewcommand{\@website}{https://www.mun.ca/engineering/ece}
\fi
\newcommand{\letterhead}{
\parbox{4in}{
\ifblackandwhite
\includegraphics[width=0.875in]{memorial-bw}
\else
\includegraphics[width=0.875in]{memorial}
\fi
\vspace{6pt}
\hspace{1pt}
\textcolor{MUNGrey}{\fontsize{10pt}{12pt}\selectfont \bf \@faculty}
\vspace{6pt}
\hspace{2pt}
\parbox{\textwidth}{
\sf
\fontsize{8pt}{10.25pt}\selectfont
\textcolor{MUNGrey}{\@returnaddress}
\\
\textcolor{MUNClaret}{\@website}
}
\vspace{12pt}
}
}