diff --git a/awesome-cv.cls b/awesome-cv.cls index a61b3b3..8fb0d16 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -365,7 +365,8 @@ %------------------------------------------------------------------------------- % Commands for extra %------------------------------------------------------------------------------- -% Define helper macros a user can change easily in header +%% Define helper macros a user can change easily +% Header \newcommand{\acvHeaderNameDelim}{\space} \newcommand{\acvHeaderAfterNameSkip}{.4mm} \newcommand{\acvHeaderAfterPositionSkip}{.4mm} @@ -375,6 +376,11 @@ \newcommand{\acvHeaderAfterSocialSkip}{6mm} \newcommand{\acvHeaderAfterQuoteSkip}{5mm} +% Others +\newcommand{\acvSectionTopSkip}{3mm} +\newcommand{\acvEntryTopSkip}{2.5mm} + + %------------------------------------------------------------------------------- % Commands for utilities %------------------------------------------------------------------------------- @@ -483,18 +489,17 @@ % Define a section for CV % Usage: \cvsection{} \newcommand{\cvsection}[1]{% - \par\addvspace{1.5ex} - \phantomsection{} + \vspace{\acvSectionTopSkip} \sectionstyle{#1} + \phantomsection \color{gray}\vhrulefill{0.9pt} - \par\nobreak\addvspace{1ex} } % Define a subsection for CV % Usage: \cvsubsection{} \newcommand{\cvsubsection}[1]{% - \phantomsection{} \subsectionstyle{#1} + \phantomsection } % Define a paragraph for CV @@ -515,6 +520,8 @@ % Define an entry of cv information % Usage: \cventry{}{}{<location>}{<date>}{<description>} \newcommand*{\cventry}[5]{% + \vspace{\acvEntryTopSkip} + \vspace{-2.0mm} \setlength\tabcolsep{0pt} \setlength{\extrarowheight}{0pt} \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}} @@ -522,8 +529,8 @@ {\entrypositionstyle{#1} & \entrydatestyle{#4} \\} {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\ \entrypositionstyle{#1} & \entrydatestyle{#4} \\} - \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} \\ - \end{tabular*} + \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} + \end{tabular*}% } % Define an environment for cvsubentry @@ -584,7 +591,7 @@ % Define an environment for cvitems(for cventry) \newenvironment{cvitems}{% - \vspace{-4mm} + \vspace{-4.0mm} \begin{justify} \begin{itemize}[leftmargin=2ex, nosep, noitemsep] \setlength{\parskip}{0pt} @@ -592,7 +599,7 @@ }{% \end{itemize} \end{justify} - \vspace{-2mm} + \vspace{-4.0mm} }