From 55eb91b49ee5b204f8dff9df5c446fc0c6edbca5 Mon Sep 17 00:00:00 2001
From: Christophe Roger <darwiinc@live.fr>
Date: Sun, 23 Oct 2016 13:35:34 +1100
Subject: Awesome Source CV Style 1.4 New command photo to add photo to your
 resume

---
 awesome-source-cv.cls | 48 +++++++++++++++++++++++++++++++-----------------
 1 file changed, 31 insertions(+), 17 deletions(-)

(limited to 'awesome-source-cv.cls')

diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls
index e5a7e98..93710df 100755
--- a/awesome-source-cv.cls
+++ b/awesome-source-cv.cls
@@ -1,7 +1,7 @@
 %% Copyright 2016 Christophe Roger
 %
 % Author: 
-%Christophe Roger
+% Christophe Roger
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3c
@@ -17,9 +17,9 @@
 %
 % This work consists of the files awesome-source-cv.cls 
 
-\ProvidesClass{awesome-source-cv}[2016/10/14 v1.3 Awesome Source CV Class]
+\ProvidesClass{awesome-source-cv}[2016/10/23 v1.4 Awesome Source CV Class]
 
-\LoadClass[11pt,a4paper]{article}
+\LoadClass[a4paper]{article}
 
 \DeclareOption{green}{
   \def\@green{green}
@@ -39,6 +39,7 @@
 \DeclareOption{localFont}{
   \def\@local{local}
 }
+
 \ProcessOptions
 
 % Dependences
@@ -59,6 +60,7 @@
 \RequirePackage{etoolbox}
 \RequirePackage{tikz}
 \RequirePackage{pgffor}
+\RequirePackage[skins]{tcolorbox}
 
 % Define default accent colors
 \definecolor{basecolor}{HTML}{000066}       %BLUE
@@ -144,18 +146,12 @@
 \newcommand\link[2]{\color{linkcolor}\href{#1}{#2}\color{Black} }
 \newcommand\important[1]{\textbf #1}
 
-% Create tag
+% Create a tag
+% Usage: \cvtag{<tag label>}
 \newcommand{\cvtag}[1]{%
   \tikz[baseline]\node[anchor=base,draw=darkGrey!70,rounded corners=0.5ex,inner xsep=1ex,inner ysep =0.55ex,text height=1.3ex,text depth=.25ex]{#1};
 }
 
-% Create skill level
-%\newcommand{\cvskill}[2]{%
-%\textcolor{accentcolor}{\textbf{#1}}\hfill
-%\foreach \x in {1,...,5}{%
-%  \space{\color{accentcolor} \ifnumgreater{\x}{#2}{\faCircleThin}{\faCircle}}}\par%
-%}
-
 % Render author's name
 % Usage: \user{<firstanme>}{<lastname>}
 \newcommand\user[2]{\color{accentcolor}{\LARGE #1 \textbf{#2}}\color{Black}}      % Username
@@ -183,6 +179,10 @@
 % Usage: \tagline{<tag line>}
 \newcommand*{\tagline}[1]{\def\@tagline{#1}}
 
+% Define author's photo
+% Usage \photo{<diameter>}{<photo>}
+\newcommand{\photo}[2]{\def\@photo{#2}\def\@photodiameter{#1}}
+
 % Render author's address
 % Usage: \address{<address>}
 \newcommand*{\address}[1]{\socialtext{\locationSymbol}{#1}}
@@ -211,6 +211,7 @@
 % Usage: \smartphone{<mobile phone number>}
 \newcommand*\smartphone[1]{\socialtext{\mobileSymbol}{#1}}    
 
+% Render author's tagline
 \newcommand\resumetitle[1]{
 	\par{
 		\bigskip\center{\Large \color{accentcolor}\textsc{#1}\color{Black}}\par
@@ -223,25 +224,39 @@
 
 % Render CV header
 % Needs \@firstname, \@lastname and \@tagline to be defined
-\newcommand{\makecvheader}{
+\newcommand*{\makecvheader}{
+  \ifundef{\@photodiameter}{
+    \begin{minipage}{\linewidth}
+  }{
+    \begin{minipage}{\dimexpr\linewidth-\@photodiameter-2em}
+  }
   \user{\@firstname}{\@lastname}\\
   \small{\@socialinfo}
+  \end{minipage}
+  \ifdef{\@photodiameter}{
+    \begin{minipage}{\@photodiameter}
+      \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth];
+    \end{minipage}
+  }{}
   \resumetitle{\@tagline}
 }
 
 % Resume part title definition
 \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace #1}{#1}}}
 
+% Define a new column type for the scholarship environment
 \newcolumntype{D}{>{\raggedleft}p{\leftcolumn}}
 
-% Define the 'scolarship' environment
-\newenvironment{scolarship}{%
+% Define the 'scholarship' environment
+\newenvironment{scholarship}{%
   \begin{tabular}{D p{\rightcolumnlength}}
 }{%
   \end{tabular}
 }
 
-\newcommand\scolarshipentry[2]{
+% Render a scholarshipentry in the scolarship environment
+% Usage: \scholarshipentry{<date>}{<description>}
+\newcommand\scholarshipentry[2]{
   #1    &  #2 \\
 }
 
@@ -253,8 +268,7 @@
 }
 
 % Render a skill in the skills environment
-% Usage: 
-% \skill{<skill>}{<level>}
+% Usage: \skill{<skill>}{<level>}
 \newcommand\skill[2]{
   \textsc{#1}    & \foreach \x in {1,...,5}{{\color{accentcolor!80} \ifnumgreater{\x}{#2}{\faCircleO}{\faCircle}}\enspace } \\
 }
-- 
cgit v1.2.3


From c9a2dee89b0dc1a62a727be90fd9aa8769c69917 Mon Sep 17 00:00:00 2001
From: Christophe Roger <darwiinc@live.fr>
Date: Tue, 25 Oct 2016 22:51:21 +1100
Subject: Updated README.md Cleaner cls file

---
 awesome-source-cv.cls | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

(limited to 'awesome-source-cv.cls')

diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls
index 93710df..3d08849 100755
--- a/awesome-source-cv.cls
+++ b/awesome-source-cv.cls
@@ -125,9 +125,6 @@
 }
 
 %New length definition
-\newlength{\datebox}
-\settowidth{\datebox}{Décembre 2009}
-
 \newlength{\rightcolumnlength}
 \setlength{\rightcolumnlength}{14.8cm}
 
@@ -245,11 +242,11 @@
 \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace #1}{#1}}}
 
 % Define a new column type for the scholarship environment
-\newcolumntype{D}{>{\raggedleft}p{\leftcolumn}}
+\newcolumntype{Y}{>{\raggedleft}p{\leftcolumn}}
 
 % Define the 'scholarship' environment
 \newenvironment{scholarship}{%
-  \begin{tabular}{D p{\rightcolumnlength}}
+  \begin{tabular}{Y p{\rightcolumnlength}}
 }{%
   \end{tabular}
 }
@@ -273,9 +270,11 @@
   \textsc{#1}    & \foreach \x in {1,...,5}{{\color{accentcolor!80} \ifnumgreater{\x}{#2}{\faCircleO}{\faCircle}}\enspace } \\
 }
 
+\newcolumntype{E}{>{\raggedright\arraybackslash}p{\rightcolumnlength}}
+
 % Define the 'experiences' environment
 \newenvironment{experiences}{%
-  \begin{longtable}{R{\leftcolumn}|p{\rightcolumnlength}}
+  \begin{longtable}{R{\leftcolumn}|E}
 }{%
   \end{longtable}
 }
@@ -311,7 +310,7 @@
   				       & 	\begin{minipage}[t]{\rightcolumnlength}
   						        #8
                    	\end{minipage}										\\
-                 & \footnotesize{\foreach \n in {#9}{\cvtag{\n}} } 	\\
+                 & \footnotesize{\foreach \n in {#9}{\cvtag{\n}}} 	\\
   }
 
 \newcommand\emptySeparator{\multicolumn{2}{c}{}\\}
-- 
cgit v1.2.3


From f9bed6756070b4d4635882106c4512c0ade7b28f Mon Sep 17 00:00:00 2001
From: Christophe Roger <darwiinc@live.fr>
Date: Sat, 5 Nov 2016 19:57:17 +1100
Subject: Updated version of awesome-source-cv.cls v1.5 with optional header
 layout

---
 awesome-source-cv.cls | 75 ++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 51 insertions(+), 24 deletions(-)

(limited to 'awesome-source-cv.cls')

diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls
index 3d08849..9553482 100755
--- a/awesome-source-cv.cls
+++ b/awesome-source-cv.cls
@@ -17,7 +17,7 @@
 %
 % This work consists of the files awesome-source-cv.cls 
 
-\ProvidesClass{awesome-source-cv}[2016/10/23 v1.4 Awesome Source CV Class]
+\ProvidesClass{awesome-source-cv}[2016/11/05 v1.5 Awesome Source CV Class]
 
 \LoadClass[a4paper]{article}
 
@@ -40,6 +40,10 @@
   \def\@local{local}
 }
 
+\DeclareOption{alternative}{
+  \def\@alternative{alternate}
+}
+
 \ProcessOptions
 
 % Dependences
@@ -59,7 +63,7 @@
 \RequirePackage{longtable} 	
 \RequirePackage{etoolbox}
 \RequirePackage{tikz}
-\RequirePackage{pgffor}
+%\RequirePackage{pgffor}
 \RequirePackage[skins]{tcolorbox}
 
 % Define default accent colors
@@ -151,7 +155,7 @@
 
 % Render author's name
 % Usage: \user{<firstanme>}{<lastname>}
-\newcommand\user[2]{\color{accentcolor}{\LARGE #1 \textbf{#2}}\color{Black}}      % Username
+\newcommand\user[2]{\color{accentcolor}{\LARGE #1 \textbf{#2}}\color{Black}}
 
 % Render a text with its symbol
 % Usage; \socialtext{<icon>}{<label>}
@@ -210,10 +214,14 @@
 
 % Render author's tagline
 \newcommand\resumetitle[1]{
-	\par{
-		\bigskip\center{\Large \color{accentcolor}\textsc{#1}\color{Black}}\par
-	}
-	\bigskip
+  \ifundef{\@alternative}{
+	 \par{
+	 	 \bigskip\center{\Large \color{accentcolor}\textsc{#1}\color{Black}}\par
+	 }
+	 \bigskip
+  }{
+    \color{accentcolor}\textsc{\large{#1}}\color{black}
+  }
 }
 
 % Define social entries to print in header
@@ -222,20 +230,39 @@
 % Render CV header
 % Needs \@firstname, \@lastname and \@tagline to be defined
 \newcommand*{\makecvheader}{
-  \ifundef{\@photodiameter}{
-    \begin{minipage}{\linewidth}
+  \ifundef{\@alternative}{
+    \ifundef{\@photodiameter}{
+      \begin{minipage}{\linewidth}
+    }{
+      \begin{minipage}{\dimexpr\linewidth-\@photodiameter-2em}
+    }
+    \color{accentcolor}\user{\@firstname}{\@lastname}\color{black}\\
+    \small{\@socialinfo}
+    \end{minipage}
+    \ifdef{\@photodiameter}{
+      \begin{minipage}{\@photodiameter}
+        \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth];
+      \end{minipage}
+    }{}
+    \resumetitle{\@tagline}
   }{
-    \begin{minipage}{\dimexpr\linewidth-\@photodiameter-2em}
-  }
-  \user{\@firstname}{\@lastname}\\
-  \small{\@socialinfo}
-  \end{minipage}
-  \ifdef{\@photodiameter}{
-    \begin{minipage}{\@photodiameter}
-      \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth];
+    \ifundef{\@photodiameter}{
+      \begin{minipage}{\linewidth}
+    }{
+      \begin{minipage}{\dimexpr\linewidth-\@photodiameter-2em}
+    }
+    \user{\@firstname}{\@lastname}\\
+    \resumetitle{\@tagline}
+    \smallskip\\
+    \small{\@socialinfo}
     \end{minipage}
-  }{}
-  \resumetitle{\@tagline}
+    \ifdef{\@photodiameter}{
+      \begin{minipage}{\@photodiameter}
+        \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth];
+      \end{minipage}
+    }{}
+    \bigskip
+  }
 }
 
 % Resume part title definition
@@ -288,10 +315,10 @@
 %                    }
 %                    {<Technology list>}
 \newcommand\experience[7]{
-  \textsc{#1}    & \textsc{#2, #3, #4}   								\\
+  \textsc{#1}    & \textsc{#2, #3, #4}   								\\*
   \textsc{#5}    & \begin{minipage}[t]{\rightcolumnlength}
   					         #6
-                   \end{minipage}										\\
+                   \end{minipage}										\\*
                  & \footnotesize{\foreach \n in {#7}{\cvtag{\n}}} 	\\
   }
 
@@ -305,11 +332,11 @@
 %                    }
 %                    {<Technology list>}
 \newcommand\consultantexperience[9]{
-  \textsc{#1}    & \textsc{#2, #3, #4}   								\\
-  \textsc{#5}    & \emph{#6} pour #7                       				\\
+  \textsc{#1}    & \textsc{#2, #3, #4}   								\\*
+  \textsc{#5}    & \emph{#6} pour #7                       				\\*
   				       & 	\begin{minipage}[t]{\rightcolumnlength}
   						        #8
-                   	\end{minipage}										\\
+                   	\end{minipage}										\\*
                  & \footnotesize{\foreach \n in {#9}{\cvtag{\n}}} 	\\
   }
 
-- 
cgit v1.2.3

