summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Roger <darwiinc@live.fr>2016-11-09 06:03:20 +1100
committerChristophe Roger <darwiinc@live.fr>2016-11-09 06:03:20 +1100
commit06493fe0281cca308cf9b243ab002cc6773c7367 (patch)
treea434d81e641e63bdbdf09bc001f0bfbb0a5357bc
parentc6823b0a70b5c6cabdd3213b6c18ebf4e73131a4 (diff)
parent59124741a72fbef06ce1c2c28dca186957c6b322 (diff)
downloadcv-06493fe0281cca308cf9b243ab002cc6773c7367.tar.gz
cv-06493fe0281cca308cf9b243ab002cc6773c7367.tar.bz2
cv-06493fe0281cca308cf9b243ab002cc6773c7367.tar.xz
cv-06493fe0281cca308cf9b243ab002cc6773c7367.zip
Merge branch 'master' into local-github
* master: Updated README.md with informations on how to use documentclass options Updated version of awesome-source-cv.cls v1.5 with optional header layout
-rwxr-xr-xREADME.md19
-rwxr-xr-xawesome-source-cv.cls75
-rwxr-xr-xcv.tex2
3 files changed, 71 insertions, 25 deletions
diff --git a/README.md b/README.md
index b0f6918..a416bfe 100755
--- a/README.md
+++ b/README.md
@@ -21,6 +21,25 @@ You can edit online **Awesome Source Latex CV** on [Overleaf](https://www.overle
## How to use **Awesome Source CV** latex class
+### Use the **Awesome Source CV** options
+
+When declaring the `\documentclass` you can use some option(s) to customize your CV rendering.
+
+```latex
+% Used with no option, the template will use the 'traditional'
+% header formatting your system fonts and the default color scheme
+\documentclass{awesome-source-cv}
+
+% Used with localFont option the template will use the 'traditional'
+% header formatting, fonts included in the fonts directory and the default color scheme
+\documentclass[localFont]{awesome-source-cv}
+
+% Used with localFont option, the template will use the 'alternative'
+% header formatting, your system fonts and the default color scheme
+\documentclass[alternative]{awesome-source-cv}
+
+```
+
### Construct the header
Outside of the `\socialinfo` wrapper you have to define the mandatory parameters `\name` and `\tagline`.
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}}} \\
}
diff --git a/cv.tex b/cv.tex
index 3d49177..c0981b1 100755
--- a/cv.tex
+++ b/cv.tex
@@ -10,7 +10,7 @@
% Template license:
% CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
-\documentclass[localFont]{awesome-source-cv}
+\documentclass[localFont,alternative]{awesome-source-cv}
\name{Christophe}{ROGER}
\tagline{Chef de projet IT}