From 1e60dd98d01b14bf39689b0e44336675f1d5a303 Mon Sep 17 00:00:00 2001 From: Christophe ROGER Date: Sun, 22 Apr 2018 23:12:03 +1100 Subject: [EVO] Add footer command [EVO] Add preview on the readm file --- README.md | 6 +++++- example/cv.tex | 6 ++++++ example/preview/cv1.jpeg | Bin 0 -> 249506 bytes example/preview/cv2.jpeg | Bin 0 -> 171548 bytes yaac-another-awesome-cv.cls | 31 ++++++++++++++++++++++++++----- 5 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 example/preview/cv1.jpeg create mode 100644 example/preview/cv2.jpeg diff --git a/README.md b/README.md index e8f3065..edd8cc2 100755 --- a/README.md +++ b/README.md @@ -19,6 +19,11 @@ More informations about the original Alessandro Plasmati template can be found h - [ LaTeX Templates ](http://www.latextemplates.com/template/plasmati-graduate-cv) - [ ShareLatex ](https://www.sharelatex.com/templates/cv-or-resume/professional-cv) +## Preview +| Page. 1 | Page. 2 | +|:---:|:---:| +| ![Résumé](example/preview/cv1.jpg) | ![Résumé](example/preview/cv2.jpg) | + ## How to use **YAAC: Another Awesome CV** latex class ### Use the **YAAC: Another Awesome CV** options @@ -232,7 +237,6 @@ Then you can list your references as follow: \begin{referees} ``` -Note that this template ## License diff --git a/example/cv.tex b/example/cv.tex index 0091851..f77cd2d 100755 --- a/example/cv.tex +++ b/example/cv.tex @@ -28,6 +28,11 @@ \makecvheader + \makecvfooter + {\textsc{\today}} % \selectlanguage{english}\today + {\textsc{Christophe Roger - CV}} + {\thepage} + \input{section_headline_archi} \input{section_competences} % Section compétence \input{section_experience_short} % Section expérience @@ -36,4 +41,5 @@ %\input{section_interets} % Section intérêts \input{section_references} % Section références + \end{document} \ No newline at end of file diff --git a/example/preview/cv1.jpeg b/example/preview/cv1.jpeg new file mode 100644 index 0000000..ee8deea Binary files /dev/null and b/example/preview/cv1.jpeg differ diff --git a/example/preview/cv2.jpeg b/example/preview/cv2.jpeg new file mode 100644 index 0000000..1e2a905 Binary files /dev/null and b/example/preview/cv2.jpeg differ diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls index 32101f0..dfd3690 100755 --- a/yaac-another-awesome-cv.cls +++ b/yaac-another-awesome-cv.cls @@ -17,7 +17,7 @@ % % This work consists of the files awesome-source-cv.cls -\ProvidesClass{yaac-another-awesome-cv}[2018/03/26 v1.9.0 'YAAC: Another Awesome CV' Class] +\ProvidesClass{yaac-another-awesome-cv}[2018/04/22 v1.9.1 'YAAC: Another Awesome CV' Class] \LoadClass[a4paper]{article} @@ -56,7 +56,7 @@ % Dependences %A Few Useful Packages -\RequirePackage[frenchb]{babel} +\RequirePackage[english,french]{babel} \RequirePackage[utf8]{luainputenc} \RequirePackage{fontspec} % for loading fonts \RequirePackage{url,parskip} % other packages for formatting @@ -72,6 +72,7 @@ \RequirePackage{etoolbox} \RequirePackage{tikz} \RequirePackage[skins]{tcolorbox} +\RequirePackage{fancyhdr} \DeclareUnicodeCharacter{00E9}{\'{e}} @@ -113,8 +114,15 @@ }% \fi +% Setup fancyhdr package +\fancyhf{} +\fancyhfoffset{0em} +% Remove head rule +\renewcommand{\headrulewidth}{0pt} +%\fancyfoot[C]{\thepage} +\pagestyle{fancy} -\pagestyle{empty} % non-numbered pages +%\pagestyle{empty} % non-numbered pages %\font\fb=''[cmr10]'' % for use with \LaTeX command % Setup CV sections @@ -245,6 +253,10 @@ } } +\newcommand\idphoto{ + \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth]; +} + % Define social entries to print in header \newcommand{\socialinfo}[1]{\def\@socialinfo{#1}} @@ -262,7 +274,7 @@ \end{minipage} \ifdef{\@photodiameter}{ \begin{minipage}{\@photodiameter} - \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth]; + \idphoto \end{minipage} }{} \resumetitle{\@tagline} @@ -279,13 +291,22 @@ \end{minipage} \ifdef{\@photodiameter}{ \begin{minipage}{\@photodiameter} - \tikz\path[fill overzoom image={\@photo}]circle[radius=0.5\linewidth]; + \idphoto \end{minipage} }{} \bigskip } } +% Define a footer for CV +% Usage: \makecvfooter{}{
}{} +\newcommand*{\makecvfooter}[3]{% + \fancyfoot{} + \fancyfoot[L]{#1} + \fancyfoot[C]{#2} + \fancyfoot[R]{#3} +} + % Resume part title definition \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace \textsc{#1}}{#1}}} -- cgit v1.2.3