Order \cventry, fix #5

This commit is contained in:
Ryan Hagenson 2019-10-25 15:23:15 -05:00
parent cb3ac31c1e
commit 98a5c6bd87

View file

@ -533,17 +533,20 @@
}{% }{%
\end{center} \end{center}
} }
% Define an entry of cv information % Define an entry of cv information
% Usage: \cventry{<position>}{<title>}{<location>}{<date>}{<description>} % 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]{% \newcommand*{\cventry}[5]{%
\vspace{-2.0mm} \vspace{-2.0mm}
\setlength\tabcolsep{0pt} \setlength\tabcolsep{0pt}
\setlength{\extrarowheight}{0pt} \setlength{\extrarowheight}{0pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}} \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
\ifempty{#2#3} \ifempty{#1#3}
{\entrypositionstyle{#1} & \entrydatestyle{#4} \\} {\entrypositionstyle{#2} & \entrydatestyle{#4} \\}
{\entrytitlestyle{#2} & \entrylocationstyle{#3} \\ {\entrytitlestyle{#1} & \entrylocationstyle{#3} \\
\entrypositionstyle{#1} & \entrydatestyle{#4} \\} \entrypositionstyle{#2} & \entrydatestyle{#4} \\}
\multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}}
\end{tabular*}% \end{tabular*}%
} }