Skip to content

Commit

Permalink
Order \cventry, fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
rhagenson committed Oct 25, 2019
1 parent cb3ac31 commit 98a5c6b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -533,17 +533,20 @@
}{%
\end{center}
}

% Define an entry of cv information
% Usage: \cventry{<position>}{<title>}{<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*}%
}
Expand Down

0 comments on commit 98a5c6b

Please sign in to comment.