-
Notifications
You must be signed in to change notification settings - Fork 26
/
mmd-letterhead-begin-doc.tex
162 lines (121 loc) · 2.55 KB
/
mmd-letterhead-begin-doc.tex
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
%
% Get ready for the actual document
%
% Black and White Option
\ifx\blackandwhite\undefined
\def\musclogo{MUSC-C.pdf}
\else
\definecolor{accent}{HTML}{000000}
\definecolor{returnaddress}{HTML}{000000}
\def\musclogo{MUSC-BW.pdf}
\fi
\ifx\mydate\undefined
\def\mydate{\today}
\fi
\usepackage[
plainpages=false,
pdfpagelabels,
pdftitle={\mytitle},
pagebackref,
pdfauthor={\myauthor},
pdfkeywords={\keywords}
]{hyperref}
\usepackage{memhfixc}
\def\justauthor{\myauthor}
% Define signature
\ifx\signature\undefined
\def\signature{~ \\ Sincerely,\\
\ifx\graphicsignature\undefined
\else
\resizebox{2in}{!}{\includegraphics{signature}}\\
\fi
\justauthor}
\else
\fi
% Create return address
\def\returnaddress{\raggedleft
\footnotesize
\renewcommand{\baselinestretch}{1.1}
\textbf{\myauthor} \\}
\ifx\position\undefined
\addtodef{\returnaddress}{}{\emph{\defaultposition}}
\else
\addtodef{\returnaddress}{}{\emph{\position} \\}
\fi
\ifx\email\undefined
\addtodef{\returnaddress}{}{\emph{\defaultemail}
~
}
\else
\addtodef{\returnaddress}{}{\emph{\email}
~
}
\fi
\ifx\department\undefined
\addtodef{\returnaddress}{}{\textbf{\defaultdepartment}}
\else
\addtodef{\returnaddress}{}{\textbf{\department} \\}
\fi
\ifx\address\undefined
\addtodef{\returnaddress}{}{\defaultaddress}
\else
\addtodef{\returnaddress}{}{\address \\}
\fi
\ifx\phone\undefined
\addtodef{\returnaddress}{}{\defaultphone}
\else
\addtodef{\returnaddress}{}{Tel \phone \\}
\fi
\ifx\fax\undefined
\addtodef{\returnaddress}{}{\defaultfax}
\else
\addtodef{\returnaddress}{}{Fax \fax \\}
\fi
\ifx\web\undefined
\addtodef{\returnaddress}{}{\defaultweb
}
\else
\addtodef{\returnaddress}{}{ \web \\
}
\fi
\usepackage{mmd-letterhead}
\begin{document}
\VerbatimFootnotes
\setlength{\parindent}{0pt}
% Configure Recipient
\ifx\recipient\undefined
\else
\addtodef{\myrecipient}{}{\recipient}
\fi
\ifx\recipientaddress\undefined
\else
\addtodef{\myrecipient}{}{\\ \recipientaddress}
\fi
\mainmatter
% User coverpage style
\thispagestyle{letterhead-cover}
% Insert return address
\begin{figure}[t]
\begin{adjustwidth}{-0.5in}{-0.5in}
\begin{minipage}[l][\logoheight]{4in}
\coverlogo
\vspace*{\fill}
\end{minipage}
\hfill
\begin{minipage}[r][\logoheight]{2in}
{\renewcommand{\baselinestretch}{1.1}
\color{returnaddress}\returnaddress}
\vspace*{\fill}
\end{minipage}
\end{adjustwidth}
\end{figure}
\pagestyle{letterhead}
\large
% Return to main settings
\renewcommand{\baselinestretch}{1.2}
\setlength{\parskip}{12pt}
%\input{mmd-title}
% Insert Recipient
\myrecipient
% Insert date
\mydate