Skip to content

Commit

Permalink
Added highlights section to \cventry
Browse files Browse the repository at this point in the history
  • Loading branch information
gr211 committed Jul 14, 2024
1 parent 89a089e commit be2f20e
Show file tree
Hide file tree
Showing 10 changed files with 371 additions and 1,124 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
*.DS_Store

*.pdf
.idea

15 changes: 10 additions & 5 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
\definecolor{awesome-nephritis}{HTML}{27AE60}
\definecolor{awesome-concrete}{HTML}{95A5A6}
\definecolor{awesome-darknight}{HTML}{131A28}
\definecolor{highlight}{rgb}{0.5,0.5,0.5} % for cv entry highlights
\colorlet{awesome}{awesome-red}

% Boolean value to switch section color highlighting
Expand Down Expand Up @@ -208,6 +209,7 @@
% For elements of skill
\newcommand*{\skilltypestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
\newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}}
\newcommand*{\highlight}[1]{{\fontsize{8pt}{1em}\textcolor{highlight}{\textit{#1}}}}

% For elements of the cover letter
\newcommand*{\lettersectionstyle}[1]{{\fontsize{14pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}}
Expand Down Expand Up @@ -661,18 +663,21 @@
}
% Define an entry of cv information
% Usage: \cventry{<position>}{<title>}{<location>}{<date>}{<description>}
\newcommand*{\cventry}[5]{%
\newcommand*{\cventry}[6]{%
\vspace{-2.0mm}
\setlength\tabcolsep{0pt}
\setlength{\extrarowheight}{0pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
\ifempty{#2#3}
{\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
{\entrypositionstyle{#1} & \entrydatestyle{#4}}
{\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
\ifstrempty{#5}
\entrypositionstyle{#1} & \entrydatestyle{#4}}
\ifempty{#5}
{}
{\multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} \\}
{\\\multicolumn{2}{L{\textwidth}}{\highlight{#5}}}
\ifempty{#6}
{}
{\\\multicolumn{2}{L{\textwidth}}{\descriptionstyle{#6}}}
\end{tabular*}%
}

Expand Down
Loading

0 comments on commit be2f20e

Please sign in to comment.