summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Roger <darwiinc@live.fr>2016-10-17 06:07:45 +1100
committerChristophe Roger <darwiinc@live.fr>2016-10-17 06:07:45 +1100
commitaa961ff4aa5414b1ff8dca40a7050047042a9a51 (patch)
tree9c1b7f3494e7754b31762e2cb7282831eef2a48e
parentaba5f7f0b9d5b7c05a4d34903b1074f7c4f09bee (diff)
downloadcv-aa961ff4aa5414b1ff8dca40a7050047042a9a51.tar.gz
cv-aa961ff4aa5414b1ff8dca40a7050047042a9a51.tar.bz2
cv-aa961ff4aa5414b1ff8dca40a7050047042a9a51.tar.xz
cv-aa961ff4aa5414b1ff8dca40a7050047042a9a51.zip
New Skills environment
New way to handle colors
-rwxr-xr-xawesome-source-cv.cls58
-rwxr-xr-xsection_langues.tex8
2 files changed, 38 insertions, 28 deletions
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{<firstanme>}{<lastname>}
\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{<skill>}{<level>}
+\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
% {<End date>} {<Title>}{<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>}
% {
diff --git a/section_langues.tex b/section_langues.tex
index 213ce9f..01ac4e2 100755
--- a/section_langues.tex
+++ b/section_langues.tex
@@ -11,7 +11,7 @@
%Section: Languages
\sectionTitle{Langues}{\faLanguage}
-\begin{tabular}{>{\small}r>{\small}l}
- \parbox{\datebox}{\raggedleft\textsc{Français:}}&Langue maternelle\\
-\textsc{Anglais:}&Maîtrise de l'anglais technique\\
-\end{tabular} \ No newline at end of file
+\begin{skills}
+ \skill{Français}{5}
+ \skill{Anglais}{4}
+\end{skills} \ No newline at end of file