summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Roger <darwiinc@live.fr>2016-09-30 06:07:08 +1100
committerChristophe Roger <darwiinc@live.fr>2016-09-30 06:07:08 +1100
commit3273db2efdc36dea6f9b36198035ea5599e529e9 (patch)
tree9262449f5227cdb6a0e3f2aa5d08da04a8d73986
parentec6efcf92736d28dfb1a531010a957b10062deb0 (diff)
downloadcv-3273db2efdc36dea6f9b36198035ea5599e529e9.tar.gz
cv-3273db2efdc36dea6f9b36198035ea5599e529e9.tar.bz2
cv-3273db2efdc36dea6f9b36198035ea5599e529e9.tar.xz
cv-3273db2efdc36dea6f9b36198035ea5599e529e9.zip
New option to use local font in place of system font
-rwxr-xr-xawesome-source-cv.cls25
-rwxr-xr-xcv.tex18
2 files changed, 27 insertions, 16 deletions
diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls
index b0f12cc..90d6827 100755
--- a/awesome-source-cv.cls
+++ b/awesome-source-cv.cls
@@ -29,6 +29,10 @@
\renewcommand{\linkColor}{\color{myBlue}}
\renewcommand{\symbolcolor}{\textcolor{myBlue}}
}
+
+\DeclareOption{localFont}{
+ \def\@local{local}
+}
\ProcessOptions
% Dependences
@@ -46,6 +50,7 @@
\RequirePackage{array}
\RequirePackage{enumitem}
\RequirePackage{longtable}
+\RequirePackage{xifthen}
\definecolor{myBlue}{HTML}{FF9B1C}
@@ -71,12 +76,20 @@
% Setup fonts
\defaultfontfeatures{Mapping=tex-text}
-%\setmainfont[BoldFont = Helvetica Neue, ItalicFont=Helvetica Neue Thin Italic ,SmallCapsFont = Helvetica Neue Light]{Helvetica Neue Thin}
-\setmainfont{SourceSansPro-Light}[
- Path = fonts/,
- BoldFont = SourceSansPro-Semibold,
- ItalicFont = SourceSansPro-LightIt,
- SmallCapsFont = SourceSansPro-Regular]
+%
+
+\ifthenelse{\isundefined{\@local}}
+{
+ %\setmainfont[BoldFont = Helvetica Neue, ItalicFont=Helvetica Neue Thin Italic ,SmallCapsFont = Helvetica Neue Light]{Helvetica Neue Thin}
+ \setmainfont[BoldFont = Source Sans Pro Semibold, ItalicFont=Source Sans Pro Light Italic,SmallCapsFont = Source Sans Pro]{Source Sans Pro Light}
+}
+{
+ \setmainfont{SourceSansPro-Light}[
+ Path = fonts/,
+ BoldFont = SourceSansPro-Semibold,
+ ItalicFont = SourceSansPro-LightIt,
+ SmallCapsFont = SourceSansPro-Regular]
+}
%New length definition
\newlength{\datebox}
diff --git a/cv.tex b/cv.tex
index ab72622..213adb2 100755
--- a/cv.tex
+++ b/cv.tex
@@ -1,7 +1,5 @@
% !TEX TS-program = xelatex
-
-\documentclass{awesome-source-cv}
-
+\documentclass[localFont]{awesome-source-cv}
\name{Christophe}{ROGER}
\tagline{Chef de projet IT}
@@ -14,18 +12,18 @@
\address{2 Rue du quartier, 98765 Ville, Pays}\\
\infos{Né le 23 septembre 1982 (33 ans) à Nouméa, Nouvelle-Calédonie}
}
-%------------------------------------------
+
\begin{document}
\makecvheader
%--------------------SECTIONS-----------------------------------
\input{section_headline}
-\input{section_competences} % Section compétence
-\input{section_experience_short} % Section expérience
-\input{section_langues} % Section langues
-\input{section_scolarite} % Section scholarité
-%\input{section_interets} % Section intérêts
-\input{section_references} % Section références
+\input{section_competences} % Section compétence
+\input{section_experience_short} % Section expérience
+\input{section_langues} % Section langues
+\input{section_scolarite} % Section scholarité
+%\input{section_interets} % Section intérêts
+\input{section_references} % Section références
\end{document} \ No newline at end of file