Skip to content

Commit 8507a85

Browse files
committed
Initial commit
Create McDowell CV class; implement header.
1 parent 6aa831b commit 8507a85

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*.fls
77
*.out
88
*.toc
9+
*.gz
10+
*.pdf
911

1012
## Intermediate documents:
1113
*.dvi

McDowell_CV_Template.tex

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
\documentclass{mcdowellcv}
2+
3+
% Set document margins
4+
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry}
5+
6+
\name{Gayle L. McDowell}
7+
\address{123 Spruce St, Apt 35 \linebreak Philadelphia PA 19103}
8+
\contacts{(555) 555-1212 \linebreak [email protected]}
9+
10+
\begin{document}
11+
12+
\printheader
13+
14+
\end{document}

mcdowellcv.cls

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
\ProvidesClass{mcdowellcv}[2015/12/14 v0.5 McDowell CV class]
2+
3+
\LoadClass[11pt,letterpaper]{article} % Font size and paper type
4+
5+
% Set font to Calibri
6+
\usepackage{fontspec}
7+
\setmainfont{Calibri}
8+
9+
% Remove paragraph indentation
10+
\usepackage[parfill]{parskip}
11+
12+
% Required for boldface (\bf and \bfseries) tabular columns
13+
\usepackage{array}
14+
15+
% Required for ifthenelse statements
16+
\usepackage{ifthen}
17+
18+
% Suppress page numbers
19+
\pagestyle{empty}
20+
21+
% Flexible tables
22+
\usepackage{tabu}
23+
24+
% Address
25+
\makeatletter
26+
27+
\def\address#1{\def\@address{#1}}
28+
\def\@address{}
29+
30+
\def\printaddress{
31+
\small{\@address}
32+
}
33+
34+
\makeatother
35+
36+
% Name
37+
\makeatletter
38+
39+
\def\name#1{\def\@name{#1}}
40+
\def\@name{}
41+
42+
\def\printname{
43+
\textbf{\LARGE{\@name}}
44+
}
45+
46+
\makeatother
47+
48+
% Contacts
49+
\makeatletter
50+
51+
\def\contacts#1{\def\@contacts{#1}}
52+
\def\@contacts{}
53+
54+
\def\printcontacts{
55+
\small{\@contacts}
56+
}
57+
58+
\makeatother
59+
60+
\makeatletter
61+
\def\printheader{
62+
\begin{center}
63+
\begin{tabu} to 1\textwidth { X[m,l] X[-1,m,c] X[m,r] }
64+
\printaddress & \printname & \printcontacts \\
65+
\end{tabu}
66+
\end{center}
67+
}
68+
\makeatother

0 commit comments

Comments
 (0)