Skip to content

Commit

Permalink
Fix warnings, refactor
Browse files Browse the repository at this point in the history
Remove unsupported ligature font features from the class; rename \printcvheader
to \makeheader; move margin and parskip setup closer to the class declaration.
  • Loading branch information
dnl-blkv committed Dec 20, 2015
1 parent 121a050 commit b51a4f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions McDowell_CV_Template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

\begin{document}

% Print CV header
\printcvheader
% Print the header
\makeheader

% Print CV content
% Print the content
\begin{cvsection}{Employment}
\begin{cvsubsection}{Software Engineer, Intern}{Apple Computer}{Summer 2004}
iChat AV
Expand Down
12 changes: 6 additions & 6 deletions mcdowellcv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@
\ProvidesClass{mcdowellcv}[2015/12/15 v0.9 McDowell CV class]

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

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

% Set font face
\usepackage{fontspec}
\setmainfont[SmallCapsFeatures={Renderer=Basic},
Ligatures={NoCommon, NoDiscretionary, NoHistoric, NoRequired, NoContextual}]{Calibri}
Ligatures={TeX, NoCommon, NoDiscretionary}]{Calibri}

% Remove paragraph indentation
\usepackage[parfill]{parskip}
Expand All @@ -53,9 +56,6 @@ Ligatures={NoCommon, NoDiscretionary, NoHistoric, NoRequired, NoContextual}]{Cal
% separation to a negative value to suppress a single parskip before lists
\setlist{leftmargin=*, noitemsep, topsep=-1\parskip}

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

% For spcaed small caps
\usepackage{microtype}

Expand Down Expand Up @@ -120,7 +120,7 @@ Ligatures={NoCommon, NoDiscretionary, NoHistoric, NoRequired, NoContextual}]{Cal
\makeatother

\makeatletter
\newcommand\printcvheader{
\newcommand\makeheader{
\begin{center}
\begin{tabu} to 1\textwidth { X[l,m] X[2,c,m] X[r,m] }
\printaddress & \printname & \printcontacts \\
Expand Down

0 comments on commit b51a4f4

Please sign in to comment.