summaryrefslogtreecommitdiffstats
path: root/yaac-another-awesome-cv.cls
diff options
context:
space:
mode:
authorChristophe ROGER <darwiin@users.noreply.github.com>2018-03-26 23:11:15 +1100
committerChristophe ROGER <darwiin@users.noreply.github.com>2018-03-26 23:11:15 +1100
commit011f1c31b64789a8e13119ad46fac4cace74028b (patch)
tree64f18f750f551af0551ef625cfc270b60913bd3b /yaac-another-awesome-cv.cls
parente3abdaea90788caf4ec7012add3bc2d66828962e (diff)
downloadcv-011f1c31b64789a8e13119ad46fac4cace74028b.tar.gz
cv-011f1c31b64789a8e13119ad46fac4cace74028b.tar.bz2
cv-011f1c31b64789a8e13119ad46fac4cace74028b.tar.xz
cv-011f1c31b64789a8e13119ad46fac4cace74028b.zip
[EVO] Add new 'monochrome' option
[EVO] Add option 'showLinks' to show borders on link
Diffstat (limited to 'yaac-another-awesome-cv.cls')
-rwxr-xr-xyaac-another-awesome-cv.cls28
1 files changed, 25 insertions, 3 deletions
diff --git a/yaac-another-awesome-cv.cls b/yaac-another-awesome-cv.cls
index c40b399..32101f0 100755
--- a/yaac-another-awesome-cv.cls
+++ b/yaac-another-awesome-cv.cls
@@ -17,10 +17,12 @@
%
% This work consists of the files awesome-source-cv.cls
-\ProvidesClass{yaac-another-awesome-cv}[2017/12/26 v1.8.0 'YAAC: Another Awesome CV' Class]
+\ProvidesClass{yaac-another-awesome-cv}[2018/03/26 v1.9.0 'YAAC: Another Awesome CV' Class]
\LoadClass[a4paper]{article}
+\newif\if@showLinks \@showLinksfalse
+
\DeclareOption{green}{
\def\@green{green}
}
@@ -36,6 +38,10 @@
\def\@orange{orange}
}
+\DeclareOption{monochrome}{
+ \def\@monochrome{monochrome}
+}
+
\DeclareOption{localFont}{
\def\@local{local}
}
@@ -44,6 +50,8 @@
\def\@alternative{alternate}
}
+\DeclareOption{showLinks}{ \@showLinkstrue}
+
\ProcessOptions
% Dependences
@@ -73,7 +81,10 @@
\ifundef{\@green} {
\ifundef{\@red} {
\ifundef{\@indigo}{
- \ifundef{\@orange} {}
+ \ifundef{\@orange} {
+ \ifundef{\@monochrome} {}
+ { \definecolor{basecolor}{HTML}{000000}}
+ }
{ \definecolor{basecolor}{HTML}{e68a00} }
}
{ \definecolor{basecolor}{rgb}{0.2, 0.07, 0.48} }
@@ -90,7 +101,18 @@
% Setup hyperref package, and colours for links
%\definecolor{linkcolour}{rgb}{0,0.2,0.6}
-\hypersetup{breaklinks}
+
+\if@showLinks
+ \hypersetup{%
+ breaklinks
+ }%
+\else
+ \hypersetup{%
+ pdfborder = {0 0 0},
+ breaklinks
+ }%
+\fi
+
\pagestyle{empty} % non-numbered pages
%\font\fb=''[cmr10]'' % for use with \LaTeX command