diff --git a/awesome-cv.cls b/awesome-cv.cls index 83d0ef2..9caf5c3 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -533,17 +533,20 @@ }{% \end{center} } + % Define an entry of cv information % Usage: \cventry{}{}{<location>}{<date>}{<description>} +% This command formats with <position> above <title> on the left and <location> above <date> +% on the right with <description> below both \newcommand*{\cventry}[5]{% \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} \\} - {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\ - \entrypositionstyle{#1} & \entrydatestyle{#4} \\} + \ifempty{#1#3} + {\entrypositionstyle{#2} & \entrydatestyle{#4} \\} + {\entrytitlestyle{#1} & \entrylocationstyle{#3} \\ + \entrypositionstyle{#2} & \entrydatestyle{#4} \\} \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} \end{tabular*}% }