diff options
author | Christophe ROGER <darwiin@users.noreply.github.com> | 2019-06-30 16:39:51 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-30 16:39:51 +1100 |
commit | 1a2b75c5a506ab7d227654269c9cce9399183e22 (patch) | |
tree | 3a0f5c0b2216559447d24b78e4ee3e37d8b99aed | |
parent | 8b4a7d917a6b051358e7cc88b22bb8e44157f418 (diff) | |
parent | 70d162aba67768540318101ac9ccb2aaafd41ee4 (diff) | |
download | cv-1a2b75c5a506ab7d227654269c9cce9399183e22.tar.gz cv-1a2b75c5a506ab7d227654269c9cce9399183e22.tar.bz2 cv-1a2b75c5a506ab7d227654269c9cce9399183e22.tar.xz cv-1a2b75c5a506ab7d227654269c9cce9399183e22.zip |
Merge pull request #41 from darwiin/font-size-option
[EVO] Add new size option. Fixes #28.
-rwxr-xr-x | README.md | 7 | ||||
-rwxr-xr-x | example/cv.tex | 4 | ||||
-rwxr-xr-x | yaac-another-awesome-cv.cls | 12 |
3 files changed, 18 insertions, 5 deletions
@@ -48,10 +48,15 @@ When declaring the `\documentclass` you can use option(s) to customize your CV r % header layout, fonts included in the fonts directory and the default color scheme \documentclass[localFont]{yaac-another-awesome-cv} -% Used with localFont option, the template will use the 'alternative' +% Used with alternative option, the template will use the 'alternative' % header layout, your system fonts and the default color scheme \documentclass[alternative]{yaac-another-awesome-cv} +% Used with localFont, alternative and 10pt options the template will use the 'alternative' +% header layout, fonts included in the fonts directory, the default color scheme and the '10pt' font size. +% Based on the article document class, size options are 10pt, 11pt and 12pt +\documentclass[localFont,alternative,10pt]{yaac-another-awesome-cv} + ``` ### Construct the header diff --git a/example/cv.tex b/example/cv.tex index 1d94839..3b67a54 100755 --- a/example/cv.tex +++ b/example/cv.tex @@ -10,10 +10,10 @@ % Template license:
% CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
-\documentclass[localFont,alternative]{yaac-another-awesome-cv}
+\documentclass[localFont,alternative,10pt]{yaac-another-awesome-cv}
\name{Christophe}{Roger}
\tagline{Architecte Logiciel | Développeur/Concepteur Senior Java/JEE}
-\photo{2.5cm}{cr}
+\photo{2.5cm}{darwiin}
\socialinfo{
\linkedin{christopheroger}
\github{darwiin}\\
diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls index 66daa59..e002a33 100755 --- a/yaac-another-awesome-cv.cls +++ b/yaac-another-awesome-cv.cls @@ -17,9 +17,17 @@ % % This work consists of the files awesome-source-cv.cls -\ProvidesClass{yaac-another-awesome-cv}[2018/10/17 v1.10.2 'YAAC: Another Awesome CV' Class] +\ProvidesClass{yaac-another-awesome-cv}[2019/06/18 v2.0.0 'YAAC: Another Awesome CV' Class] -\LoadClass[a4paper]{article} +\def\@@ptsize{10pt} + +\DeclareOption{10pt}{\def\@@ptsize{10pt}} +\DeclareOption{11pt}{\def\@@ptsize{11pt}} +\DeclareOption{12pt}{\def\@@ptsize{12pt}} + +\ProcessOptions\relax + +\LoadClass[a4paper,\@@ptsize]{article} \newif\if@showLinks \@showLinksfalse |