diff --git a/McDowell_CV_Template.tex b/McDowell_CV_Template.tex index bf04713..2e70fb7 100644 --- a/McDowell_CV_Template.tex +++ b/McDowell_CV_Template.tex @@ -19,7 +19,9 @@ %% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, %% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE %% SOFTWARE. -\documentclass{mcdowellcv} + +% The font could be set to Windows-specific Calibri by using the 'calibri' option +\documentclass[]{mcdowellcv} % For mathematical symbols \usepackage{amsmath} diff --git a/README.md b/README.md index d8f8706..f1c5ce0 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ http://www.careercup.com/resume. The class is based on `article` class. The paper format is set to U.S. letterpaper by default. +Class Options +------------- + - `calibri` - sets calibri as the main font. Otherwise the default font is Times New Roman since version 1.1.0. + Commands -------- The class features the following commands: diff --git a/mcdowellcv.cls b/mcdowellcv.cls index 60b93d7..f1875b5 100644 --- a/mcdowellcv.cls +++ b/mcdowellcv.cls @@ -21,8 +21,19 @@ %% SOFTWARE. \ProvidesClass{mcdowellcv}[2015/12/15 v1.0.0 McDowell CV class] +% Set up the fonts according to options +\def\mainfontsize{11pt} +\def\mainfontface{Times New Roman} + +\DeclareOption{calibri}{% + \def\mainfontsize{11pt} + \def\mainfontface{Calibri} +} + +\ProcessOptions\relax + % Set font size and paper type -\LoadClass[letterpaper,11pt]{article} +\LoadClass[letterpaper,\mainfontsize]{article} % Set document margins \usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} @@ -30,7 +41,7 @@ % Set font face \usepackage{fontspec} \setmainfont[SmallCapsFeatures={Renderer=Basic}, -Ligatures={TeX, NoCommon, NoDiscretionary}]{Calibri} +Ligatures={TeX, NoCommon, NoDiscretionary}]{\mainfontface} % Remove paragraph indentation \usepackage[parfill]{parskip}