From 98a5c6bd872b169ef12455cd107872a110f62ce0 Mon Sep 17 00:00:00 2001 From: Ryan Hagenson Date: Fri, 25 Oct 2019 15:23:15 -0500 Subject: [PATCH] Order \cventry, fix #5 --- awesome-cv.cls | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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*}% }