Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Create McDowell CV class; implement header.
  • Loading branch information
dnl-blkv committed Dec 14, 2015
1 parent 6aa831b commit 8507a85
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*.fls
*.out
*.toc
*.gz
*.pdf

## Intermediate documents:
*.dvi
Expand Down
14 changes: 14 additions & 0 deletions McDowell_CV_Template.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
\documentclass{mcdowellcv}

% Set document margins
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry}

\name{Gayle L. McDowell}
\address{123 Spruce St, Apt 35 \linebreak Philadelphia PA 19103}
\contacts{(555) 555-1212 \linebreak [email protected]}

\begin{document}

\printheader

\end{document}
68 changes: 68 additions & 0 deletions mcdowellcv.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
\ProvidesClass{mcdowellcv}[2015/12/14 v0.5 McDowell CV class]

\LoadClass[11pt,letterpaper]{article} % Font size and paper type

% Set font to Calibri
\usepackage{fontspec}
\setmainfont{Calibri}

% Remove paragraph indentation
\usepackage[parfill]{parskip}

% Required for boldface (\bf and \bfseries) tabular columns
\usepackage{array}

% Required for ifthenelse statements
\usepackage{ifthen}

% Suppress page numbers
\pagestyle{empty}

% Flexible tables
\usepackage{tabu}

% Address
\makeatletter

\def\address#1{\def\@address{#1}}
\def\@address{}

\def\printaddress{
\small{\@address}
}

\makeatother

% Name
\makeatletter

\def\name#1{\def\@name{#1}}
\def\@name{}

\def\printname{
\textbf{\LARGE{\@name}}
}

\makeatother

% Contacts
\makeatletter

\def\contacts#1{\def\@contacts{#1}}
\def\@contacts{}

\def\printcontacts{
\small{\@contacts}
}

\makeatother

\makeatletter
\def\printheader{
\begin{center}
\begin{tabu} to 1\textwidth { X[m,l] X[-1,m,c] X[m,r] }
\printaddress & \printname & \printcontacts \\
\end{tabu}
\end{center}
}
\makeatother

0 comments on commit 8507a85

Please sign in to comment.