-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcv.tex
172 lines (124 loc) · 2.91 KB
/
cv.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
162
163
164
165
166
167
168
169
170
171
172
% Macros for CV formatting.
% Copyright (c) 2021, Michael Pascale.
% Use Extended Plain TeX Features
\input eplain
\enablehyperlinks
\raggedbottom
% Page setup (PDFTeX)
\pdfpagewidth=8.5in
\pdfpageheight=11in
% Margins.
\hoffset=-0.25in
\voffset=-0.25in
\vsize=9.50in
\hsize=7.00in
% Single spaced.
\baselineskip=12pt
% Define font sizes.
%\font\large=cmr10 at 24pt
%\font\medium=cmr10 at 18pt
%\font\small=cmr10 at 11pt
%\font\tiny=cmr10 at 10pt
% Define font sizes.
\font\large=ptmr at 24pt
\font\medium=ptmr at 18pt
\font\small=ptmr at 11pt
\font\tiny=ptmr at 10pt
\font\bf=ptmb at 11pt
\font\it=ptmri at 11pt
%\font\large=ptmr at 24pt
%\font\medium=ptmr at 18pt
%\font\small=ptmr at 11pt
%\font\tiny=ptmr at 10pt
% Declare necessary registers.
\newdimen\center
\newbox\textbox
\newdimen\centertext
\newbox\bulletlenbox
% Centered Text
% Arguments:
% Text to center
\def\centered#1{
\center=\hsize
\divide \center by 2
\noindent\hbox{#1}\setbox\textbox\lastbox
\centertext=\wd\textbox
\divide \centertext by 2
\advance \center by -\centertext
\noindent\hskip\center #1
}
% Section Heading w/ Horizontal Rule
% Arguments:
% Section name
\def\section#1{
\begingroup
\penalty-1000
\vskip 5mm \noindent\tiny #1 \vskip1mm\hrule \vskip2mm
\endgroup
}
% Indented Section (Left and Right Indent)
% Arguments:
% Text to indent
\long\def\indented#1{
\par
\advance \leftskip by 5mm
\advance \rightskip by 5mm
\noindent #1\par
\advance \leftskip by -5mm
\advance \rightskip by -5mm
}
% Position or Education Listing
% Arguments:
% Title, Date, Institution, Place, Description
\long\def\listing#1#2#3#4#5{
\begingroup
\noindent\bf #1 \small \hfill #2
\penalty10000\noindent #3 \hfill #4
\def\lastarg{#5}
\ifx \empty\lastarg
\else
\penalty10000\vskip 3mm \indented{\noindent #5}
\fi
\vskip 3mm
\endgroup
}
% Short Position or Education Listing
% Arguments:
% Title, Date, Institution, Place, Description
\long\def\shortlisting#1#2#3#4#5{
\begingroup
\noindent\bf #1 \small \hfill #2
\penalty10000\noindent #3 \hfill #4
\def\lastarg{#5}
\ifx \empty\lastarg
\else
\penalty10000\noindent #5
\fi
\vskip 2mm
\endgroup
}
% Publication Listing w/ Hanging Indent
% Arguments:
% APA formatted citation
\def\publisting#1{
\begingroup
\parindent=0mm
\hangindent=10mm
#1
\vskip 1mm
\endgroup
}
% Project Listing
% Arguments:
% Title, Authors/Metadata, Details, Body
\long\def\project#1#2#3#4
{\noindent\bi#1\small\par\penalty10000
\noindent #2 \vskip1mm\par\penalty10000
\noindent #3 \hfill #4\vskip 3mm
}
\def\projectitem#1{\setbox\bulletlenbox=\hbox{$\to$ }\vskip1mm\par\noindent\hangindent=\wd\bulletlenbox\hangafter=1 $\to$ #1}
% Hyperlink
% Arguments:
% URL, Text
\def\hl#1#2{\hlstart{url}{bstyle=U,bwidth=1,bcolor=.16 .78 .59}{#1}#2\hlend}
\def\ml#1{\hl{mailto:#1}{#1}}