From 29ef605bc131f5ec6b2c691a16ec71072fea8081 Mon Sep 17 00:00:00 2001 From: "Posquit0.BJ" Date: Sat, 3 Dec 2016 03:22:04 +0900 Subject: [PATCH] Remove gradient feature on section color & Add alignment feature on header --- awesome-cv.cls | 19 +++++++------------ examples/cv.tex | 4 +++- examples/resume.tex | 8 +++----- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index b2fc5ec..11e34db 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -10,7 +10,7 @@ % % Notes: % 1) This class file defines the structure and layout of the template file (cv.tex, resume.tex). -% 2) It has been written in such a way that under most circumstances you +% 2) It has been written in such a way that under most circumstances you % should not need to edit it. % % Class license: @@ -150,14 +150,10 @@ % Boolean value to switch section color highlighting \newbool{acvSectionColorHighlight} \setbool{acvSectionColorHighlight}{true} -\newbool{acvSectionColorHighlightGradient} -\setbool{acvSectionColorHighlightGradient}{true} % Awesome section color \def\@sectioncolor#1#2#3{% - \ifbool{acvSectionColorHighlightGradient} - {{\color{awesome}#1\color{awesome!80!black}#2\color{awesome!60!black}#3}}% - {\ifbool{acvSectionColorHighlight}{{\color{awesome}#1#2#3}}{#1#2#3}}% + \ifbool{acvSectionColorHighlight}{{\color{awesome}#1#2#3}}{#1#2#3}% } @@ -397,7 +393,7 @@ %------------------------------------------------------------------------------- % Define a header for CV % Usage: \makecvheader -\newcommand*{\makecvheader}{% +\newcommand*{\makecvheader}[1][C]{% \newlength{\headertextwidth} \newlength{\headerphotoidwidth} \ifthenelse{\isundefined{\@phid}}{ @@ -410,7 +406,7 @@ \ifthenelse{\isundefined{\@phishape}}{\def\@phishape{circle}}{} \ifthenelse{\isundefined{\@phiedge}}{\def\@phiedge{edge}}{} \begin{minipage}[c]{\headertextwidth} - \begin{center} + \ifthenelse{\equal{#1}{L}}{\raggedright}{\ifthenelse{\equal{#1}{R}}{\raggedleft}{\centering}} \headerfirstnamestyle{\@firstname}\headerlastnamestyle{{}\acvHeaderNameDelim\@lastname}% \\[\acvHeaderAfterNameSkip]% \ifthenelse{\isundefined{\@position}}{}{\headerpositionstyle{\@position\\[\acvHeaderAfterPositionSkip]}}% @@ -488,7 +484,6 @@ \ifthenelse{\isundefined{\@quote}}% {}% {\headerquotestyle{\@quote\\}\vspace{\acvHeaderAfterQuoteSkip}}% - \end{center}% \end{minipage}% \ifthenelse{\isundefined{\@phid}}{}{% \newlength{\phiddim}% @@ -520,7 +515,7 @@ \fancyfoot{} \fancyfoot[L]{\footerstyle{#1}} \fancyfoot[C]{\footerstyle{#2}} - \fancyfoot[R]{\footerstyle{#3}} + \fancyfoot[R]{\footerstyle{#3}} } % Define a section for CV @@ -587,7 +582,7 @@ \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}} \setlength\leftskip{0.2cm} \subentrytitlestyle{#2} & \ifthenelse{\equal{#1}{}} - {\subentrydatestyle{#3}}{} + {\subentrydatestyle{#3}}{} \ifthenelse{\equal{#1}{}} {} {\subentrypositionstyle{#1} & \subentrydatestyle{#3} \\} @@ -681,7 +676,7 @@ \ifthenelse{\isundefined{\@lettertitle}} {} {\lettertitlestyle{\@lettertitle} \\} - \lettertextstyle{\@letteropening} + \lettertextstyle{\@letteropening} } % Define a closing of the cover letter diff --git a/examples/cv.tex b/examples/cv.tex index 0c03c73..b403069 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -51,11 +51,12 @@ % PERSONAL INFORMATION % Comment any of the lines below if they are not required %------------------------------------------------------------------------------- +\photoid{./examples/profile.png} \name{Claud D.}{Park} \position{Software Engineer{\enskip\cdotp\enskip}Security Expert} \address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 404-180, Rep. of KOREA} -\mobile{(+82) 10-9030-1843} +\mobile{(+82) 10-9030-1843} \email{posquit0.bj@gmail.com} \homepage{www.posquit0.com} \github{posquit0} @@ -73,6 +74,7 @@ \begin{document} % Print the header with above personal informations +% Give optional argument to change alignment(C: center, L: left, R: right) \makecvheader % Print the footer with 3 arguments(,
, ) diff --git a/examples/resume.tex b/examples/resume.tex index 01fd1a3..60ebd41 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -43,10 +43,6 @@ % Set false if you don't want to highlight section with awesome color \setbool{acvSectionColorHighlight}{true} -% Set false if you don't want to have a gradient effect in the highlight section with awesome color -% If true, it implicitly ignores whether the acvSectionColorHighlight is true or not. -\setbool{acvSectionColorHighlightGradient}{true} - % If you would like to change the social information separator from a pipe (|) to something else \renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad} @@ -55,11 +51,12 @@ % PERSONAL INFORMATION % Comment any of the lines below if they are not required %------------------------------------------------------------------------------- +\photoid{./examples/profile.png} \name{Claud D.}{Park} \position{Software Engineer{\enskip\cdotp\enskip}Security Expert} \address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 404-180, Rep. of KOREA} -\mobile{(+82) 10-9030-1843} +\mobile{(+82) 10-9030-1843} \email{posquit0.bj@gmail.com} \homepage{www.posquit0.com} \github{posquit0} @@ -77,6 +74,7 @@ \begin{document} % Print the header with above personal informations +% Give optional argument to change alignment(C: center, L: left, R: right) \makecvheader % Print the footer with 3 arguments(,
, )