mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-24 23:18:33 +00:00
Add optional argument to cvsection to support FontAwesome icons
This commit is contained in:
parent
c5385444d6
commit
a6b885ca90
1 changed files with 7 additions and 2 deletions
|
@ -182,6 +182,7 @@
|
|||
\newcommand*{\headerquotestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\itshape\color{darktext} #1}}
|
||||
\newcommand*{\footerstyle}[1]{{\fontsize{8pt}{1em}\footerfont\scshape\color{lighttext} #1}}
|
||||
\newcommand*{\sectionstyle}[1]{{\fontsize{16pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}}
|
||||
\newcommand*{\sectioniconstyle}[2]{{\fontsize{16pt}{1em}\bodyfont\bfseries\color{awesome}{#2} \color{text} \space \@sectioncolor #1}}
|
||||
\newcommand*{\subsectionstyle}[1]{{\fontsize{12pt}{1em}\bodyfont\scshape\textcolor{text}{#1}}}
|
||||
\newcommand*{\paragraphstyle}{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text}}
|
||||
|
||||
|
@ -626,9 +627,13 @@
|
|||
|
||||
% Define a section for CV
|
||||
% Usage: \cvsection{<section-title>}
|
||||
\newcommand{\cvsection}[1]{%
|
||||
\newcommand{\cvsection}[2][]{%
|
||||
\vspace{\acvSectionTopSkip}
|
||||
\sectionstyle{#1}
|
||||
\ifempty{#1}{
|
||||
\sectionstyle{#2}
|
||||
}{
|
||||
\sectioniconstyle{#2}{#1}
|
||||
}
|
||||
\phantomsection
|
||||
\color{sectiondivider}\vhrulefill{0.9pt}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue