forked from dnl-blkv/mcdowell-cv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create McDowell CV class; implement header.
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
*.fls | ||
*.out | ||
*.toc | ||
*.gz | ||
|
||
## Intermediate documents: | ||
*.dvi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |