Skip to content

Commit

Permalink
Merge branch 'master' into local-github
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Christophe Roger committed Sep 29, 2016
2 parents 0eb225f + 3273db2 commit 8e29062
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 23 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
39 changes: 30 additions & 9 deletions source-awesome-cv.cls → awesome-source-cv.cls
Original file line number Diff line number Diff line change
@@ -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}

Expand All @@ -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
Expand All @@ -42,6 +50,7 @@
\RequirePackage{array}
\RequirePackage{enumitem}
\RequirePackage{longtable}
\RequirePackage{xifthen}

\definecolor{myBlue}{HTML}{FF9B1C}

Expand All @@ -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}
Expand Down
17 changes: 8 additions & 9 deletions cv.tex
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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}
Binary file added fonts/SourceSansPro-Black.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-BlackIt.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-Bold.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-BoldIt.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-ExtraLight.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-ExtraLightIt.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-It.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-Light.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-LightIt.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-Regular.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-Semibold.otf
Binary file not shown.
Binary file added fonts/SourceSansPro-SemiboldIt.otf
Binary file not shown.

0 comments on commit 8e29062

Please sign in to comment.