-
Notifications
You must be signed in to change notification settings - Fork 26
/
mmd-envelope-begin-doc.tex
100 lines (73 loc) · 1.61 KB
/
mmd-envelope-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
%
% 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
\else
\date{\mydate}
\fi
\usepackage[
plainpages=false,
pdfpagelabels,
pdftitle={\mytitle},
pagebackref,
pdfauthor={\myauthor},
pdfkeywords={\mykeywords}
]{hyperref}
\usepackage{memhfixc}
\def\justauthor{\myauthor}
% Create return address
\def\returnaddress{\raggedright
\normalsize
\renewcommand{\baselinestretch}{1.1}
\textbf{\myauthor} \\}
\ifx\position\undefined
\addtodef{\returnaddress}{}{\emph{\defaultposition}}
\else
\addtodef{\returnaddress}{}{\emph{\position} \\}
\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
\usepackage{mmd-envelope}
\begin{document}
\setlength{\parindent}{0pt}
% Configure Recipient
\ifx\recipient\undefined
\else
\addtodef{\myrecipient}{}{\textbf{\recipient}}
\fi
\ifx\recipientaddress\undefined
\else
\addtodef{\myrecipient}{}{\\ \recipientaddress}
\fi
\mainmatter
% Use envelope style
\thispagestyle{envelope}
% Insert return address
{\color{returnaddress}\returnaddress}
\vspace*{\fill}
% Return to main settings
\large
\renewcommand{\baselinestretch}{1.2}
\setlength{\parskip}{12pt}
% Insert Recipient
\begin{adjustwidth}{3in}{0in}
\myrecipient
\vspace*{\fill}
\end{adjustwidth}
\end{document}