summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Roger <darwiinc@live.fr>2016-09-30 06:10:43 +1100
committerChristophe Roger <darwiinc@live.fr>2016-09-30 06:10:43 +1100
commit8e29062610444f27e5612d7154e8484229a679bb (patch)
tree33fe4bc1f7249e00d28ea89099e5b40504dad90d
parent0eb225f953cf029e9979e7051f8f7eacfa572015 (diff)
parent3273db2efdc36dea6f9b36198035ea5599e529e9 (diff)
downloadcv-8e29062610444f27e5612d7154e8484229a679bb.tar.gz
cv-8e29062610444f27e5612d7154e8484229a679bb.tar.bz2
cv-8e29062610444f27e5612d7154e8484229a679bb.tar.xz
cv-8e29062610444f27e5612d7154e8484229a679bb.zip
Merge branch 'master' into local-github
New cls name Local fonts option Changes to be committed: modified: README.md renamed: source-awesome-cv.cls -> awesome-source-cv.cls modified: cv.tex new file: fonts/SourceSansPro-Black.otf new file: fonts/SourceSansPro-BlackIt.otf new file: fonts/SourceSansPro-Bold.otf new file: fonts/SourceSansPro-BoldIt.otf new file: fonts/SourceSansPro-ExtraLight.otf new file: fonts/SourceSansPro-ExtraLightIt.otf new file: fonts/SourceSansPro-It.otf new file: fonts/SourceSansPro-Light.otf new file: fonts/SourceSansPro-LightIt.otf new file: fonts/SourceSansPro-Regular.otf new file: fonts/SourceSansPro-Semibold.otf new file: fonts/SourceSansPro-SemiboldIt.otf
-rwxr-xr-xREADME.md9
-rwxr-xr-xawesome-source-cv.cls (renamed from source-awesome-cv.cls)39
-rwxr-xr-xcv.tex17
-rwxr-xr-xfonts/SourceSansPro-Black.otfbin0 -> 234176 bytes
-rwxr-xr-xfonts/SourceSansPro-BlackIt.otfbin0 -> 81120 bytes
-rwxr-xr-xfonts/SourceSansPro-Bold.otfbin0 -> 235128 bytes
-rwxr-xr-xfonts/SourceSansPro-BoldIt.otfbin0 -> 80392 bytes
-rwxr-xr-xfonts/SourceSansPro-ExtraLight.otfbin0 -> 221580 bytes
-rwxr-xr-xfonts/SourceSansPro-ExtraLightIt.otfbin0 -> 76400 bytes
-rwxr-xr-xfonts/SourceSansPro-It.otfbin0 -> 79724 bytes
-rwxr-xr-xfonts/SourceSansPro-Light.otfbin0 -> 226032 bytes
-rwxr-xr-xfonts/SourceSansPro-LightIt.otfbin0 -> 77816 bytes
-rwxr-xr-xfonts/SourceSansPro-Regular.otfbin0 -> 229588 bytes
-rwxr-xr-xfonts/SourceSansPro-Semibold.otfbin0 -> 232680 bytes
-rwxr-xr-xfonts/SourceSansPro-SemiboldIt.otfbin0 -> 80316 bytes
15 files changed, 42 insertions, 23 deletions
diff --git a/README.md b/README.md
index b95b3c0..4a6bb74 100755
--- a/README.md
+++ b/README.md
@@ -1,17 +1,16 @@
-Source Awesome CV [![Example](https://img.shields.io/badge/Exemple-pdf-blue.svg)](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/resume.pdf)
+Awesome Source CV [![Example](https://img.shields.io/badge/Exemple-pdf-blue.svg)](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/resume.pdf)
=================
-Latex CV based on CV template created by Alessandro Plasmati. The original templates utilizes _XeLaTeX_ engine and _Fontin_ font.
+Latex CV based on CV template created by Alessandro Plasmati. The original templates use _XeLaTeX_ engine and _Fontin_ font.
More informations can be found here :
- [ Scribd ](http://fr.scribd.com/doc/16335667/Writing-your-Professional-CV-with-LaTeX)
- [ LaTeX Templates ](http://www.latextemplates.com/template/plasmati-graduate-cv)
- [ ShareLatex ](https://www.sharelatex.com/templates/cv-or-resume/professional-cv)
-I choose to move _Personal data_ on top of the page just before the professional title. I've also replaced default font by _[Source Sans Pro Font](https://github.com/adobe-fonts/source-sans-pro)_
-and included _Font Awesome_ items.
+I choose to move _Personal data_ on top of the page just before the professional title. I've also replaced default font by _[Source Sans Pro Font](https://github.com/adobe-fonts/source-sans-pro)_ and included _[Font Awesome](http://fontawesome.io/)_ icons.
-I've chosen to cut my resume in a couple of smaller files and to add some macro to make the main latex source code more readable.
+I've chosen to cut my resume in a couple of smaller files and to create a class file to make the main latex source code more readable.
```latex
% Define author's name
diff --git a/source-awesome-cv.cls b/awesome-source-cv.cls
index 730252c..a24624e 100755
--- a/source-awesome-cv.cls
+++ b/awesome-source-cv.cls
@@ -1,4 +1,4 @@
-\ProvidesClass{source-awesome-cv}[2016/09/20 v1.2 Source Awesome CV Class]
+\ProvidesClass{awesome-source-cv}[2016/09/20 v1.2 Awesome Source CV Class]
\LoadClass[11pt,a4paper]{article}
@@ -8,23 +8,31 @@
\newcommand{\symbolcolor}{\textcolor{#1}}
}
+\newcommand{\resetColors}[3] {
+ \renewcommand{\accentColor}{\color{#1}}
+ \renewcommand{\linkColor}{\color{#1}}
+ \renewcommand{\symbolcolor}{\textcolor{#1}}
+}
+
\setColors{Blue}{Blue}{Blue}
\DeclareOption{green}{
- \renewcommand{\accentColor}{\color{PineGreen}}
- \renewcommand{\linkColor}{\color{PineGreen}}
- \renewcommand{\symbolcolor}{\textcolor{PineGreen}}
+ \resetColors{PineGreen}{PineGreen}{PineGreen}
}
+
\DeclareOption{red}{
- \renewcommand{\accentColor}{\color{Red}}
- \renewcommand{\linkColor}{\color{Red}}
- \renewcommand{\symbolcolor}{\textcolor{Red}}
+ \resetColors{Red}{Red}{Red}
}
+
\DeclareOption{myBlue}{
\renewcommand{\accentColor}{\color{myBlue}}
\renewcommand{\linkColor}{\color{myBlue}}
\renewcommand{\symbolcolor}{\textcolor{myBlue}}
}
+
+\DeclareOption{localFont}{
+ \def\@local{local}
+}
\ProcessOptions
% Dependences
@@ -42,6 +50,7 @@
\RequirePackage{array}
\RequirePackage{enumitem}
\RequirePackage{longtable}
+\RequirePackage{xifthen}
\definecolor{myBlue}{HTML}{FF9B1C}
@@ -67,8 +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[BoldFont = Source Sans Pro Semibold, ItalicFont=Source Sans Pro Light Italic,SmallCapsFont = Source Sans Pro]{Source Sans Pro Light}
+%
+
+\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 50c5a31..213adb2 100755
--- a/cv.tex
+++ b/cv.tex
@@ -1,6 +1,5 @@
% !TEX TS-program = xelatex
-
-\documentclass{source-awesome-cv}
+\documentclass[localFont]{awesome-source-cv}
\name{Christophe}{ROGER}
\tagline{Chef de projet IT}
@@ -13,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
diff --git a/fonts/SourceSansPro-Black.otf b/fonts/SourceSansPro-Black.otf
new file mode 100755
index 0000000..0c25f3d
--- /dev/null
+++ b/fonts/SourceSansPro-Black.otf
Binary files differ
diff --git a/fonts/SourceSansPro-BlackIt.otf b/fonts/SourceSansPro-BlackIt.otf
new file mode 100755
index 0000000..da3504c
--- /dev/null
+++ b/fonts/SourceSansPro-BlackIt.otf
Binary files differ
diff --git a/fonts/SourceSansPro-Bold.otf b/fonts/SourceSansPro-Bold.otf
new file mode 100755
index 0000000..98dbee7
--- /dev/null
+++ b/fonts/SourceSansPro-Bold.otf
Binary files differ
diff --git a/fonts/SourceSansPro-BoldIt.otf b/fonts/SourceSansPro-BoldIt.otf
new file mode 100755
index 0000000..6600c86
--- /dev/null
+++ b/fonts/SourceSansPro-BoldIt.otf
Binary files differ
diff --git a/fonts/SourceSansPro-ExtraLight.otf b/fonts/SourceSansPro-ExtraLight.otf
new file mode 100755
index 0000000..f885ce7
--- /dev/null
+++ b/fonts/SourceSansPro-ExtraLight.otf
Binary files differ
diff --git a/fonts/SourceSansPro-ExtraLightIt.otf b/fonts/SourceSansPro-ExtraLightIt.otf
new file mode 100755
index 0000000..f932024
--- /dev/null
+++ b/fonts/SourceSansPro-ExtraLightIt.otf
Binary files differ
diff --git a/fonts/SourceSansPro-It.otf b/fonts/SourceSansPro-It.otf
new file mode 100755
index 0000000..2d627d9
--- /dev/null
+++ b/fonts/SourceSansPro-It.otf
Binary files differ
diff --git a/fonts/SourceSansPro-Light.otf b/fonts/SourceSansPro-Light.otf
new file mode 100755
index 0000000..159979f
--- /dev/null
+++ b/fonts/SourceSansPro-Light.otf
Binary files differ
diff --git a/fonts/SourceSansPro-LightIt.otf b/fonts/SourceSansPro-LightIt.otf
new file mode 100755
index 0000000..e3d49b5
--- /dev/null
+++ b/fonts/SourceSansPro-LightIt.otf
Binary files differ
diff --git a/fonts/SourceSansPro-Regular.otf b/fonts/SourceSansPro-Regular.otf
new file mode 100755
index 0000000..bdcfb27
--- /dev/null
+++ b/fonts/SourceSansPro-Regular.otf
Binary files differ
diff --git a/fonts/SourceSansPro-Semibold.otf b/fonts/SourceSansPro-Semibold.otf
new file mode 100755
index 0000000..fffdbaf
--- /dev/null
+++ b/fonts/SourceSansPro-Semibold.otf
Binary files differ
diff --git a/fonts/SourceSansPro-SemiboldIt.otf b/fonts/SourceSansPro-SemiboldIt.otf
new file mode 100755
index 0000000..e90515b
--- /dev/null
+++ b/fonts/SourceSansPro-SemiboldIt.otf
Binary files differ