From aa961ff4aa5414b1ff8dca40a7050047042a9a51 Mon Sep 17 00:00:00 2001 From: Christophe Roger Date: Mon, 17 Oct 2016 06:07:45 +1100 Subject: New Skills environment New way to handle colors --- awesome-source-cv.cls | 58 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 24 deletions(-) (limited to 'awesome-source-cv.cls') diff --git a/awesome-source-cv.cls b/awesome-source-cv.cls index 4843cfd..1abf5b4 100755 --- a/awesome-source-cv.cls +++ b/awesome-source-cv.cls @@ -57,38 +57,25 @@ \RequirePackage{tikz} \RequirePackage{pgffor} -% Define default colors -\definecolor{accentcolor}{rgb}{0,0.2,0.6} -\definecolor{linkcolor}{rgb}{0,0.2,0.6} -\definecolor{symbolcolor}{rgb}{0,0.2,0.6} +% Define default accent colors +\definecolor{basecolor}{HTML}{000066} %BLUE -\ifundef{\@green} -{ - \ifundef{\@red} - { +\ifundef{\@green} { + \ifundef{\@red} { \ifundef{\@indigo} {} - { - \definecolor{accentcolor}{rgb}{0.2, 0.07, 0.48} - \definecolor{linkcolor}{rgb}{0.2, 0.07, 0.48} - \definecolor{symbolcolor}{rgb}{0.2, 0.07, 0.48} - } + { \definecolor{basecolor}{rgb}{0.2, 0.07, 0.48} } } - { - \definecolor{accentcolor}{rgb}{0.83, 0.0, 0.0} - \definecolor{linkcolor}{rgb}{0.83, 0.0, 0.0} - \definecolor{symbolcolor}{rgb}{0.83, 0.0, 0.0} - } -} -{ - \definecolor{accentcolor}{rgb}{0.0, 0.62, 0.38} - \definecolor{linkcolor}{rgb}{0.0, 0.62, 0.38} - \definecolor{symbolcolor}{rgb}{0.0, 0.62, 0.38} + { \definecolor{basecolor}{HTML}{b30000} } %RED } - +{ \definecolor{basecolor}{rgb}{0.0, 0.62, 0.38} } \definecolor{darkGrey}{HTML}{989898} +\colorlet{linkcolor}{basecolor} +\colorlet{accentcolor}{linkcolor!90} +\colorlet{symbolcolor}{linkcolor!85} + % Setup hyperref package, and colours for links %\definecolor{linkcolour}{rgb}{0,0.2,0.6} \hypersetup{breaklinks} @@ -157,6 +144,13 @@ \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{}{} \newcommand\user[2]{\color{accentcolor}{\LARGE #1 \textbf{#2}}\color{Black}} % Username @@ -233,6 +227,20 @@ % Resume part title definition \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace #1}{#1}}} +% Define the 'skills' environment +\newenvironment{skills}{% + \begin{longtable}{R{\leftcolumn}p{\rightcolumnlength}} +}{% + \end{longtable} +} + +% Render a skill in the skills environment +% Usage: +% \skill{}{} +\newcommand\skill[2]{ + \textsc{#1} & \foreach \x in {1,...,5}{{\color{accentcolor!80} \ifnumgreater{\x}{#2}{\faCircleO}{\faCircle}}\enspace } \\ + } + % Define the 'experiences' environment \newenvironment{experiences}{% \begin{longtable}{R{\leftcolumn}|p{\rightcolumnlength}} @@ -242,6 +250,7 @@ % Render an experience in the experiences environment % Usage: +% \experience % {} {}{<Enterprise>}{<Country>} % {<Start date} { % <Experience description (Could be a list)> @@ -257,6 +266,7 @@ % Render a consultant experience in the experiences environment % Usage: +% \consultantexperience % {<End date>} {<Consultant title>}{<Consulting Enterprise>}{<Country>} % {<Start date} {<Client title>}{<Client business unit>} % { -- cgit v1.2.3