posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
22.73k stars 4.75k forks source link

In cventry, have organization and date in the same line #323

Closed umerf52 closed 4 years ago

umerf52 commented 4 years ago

Hello.
I'm trying to use the template but facing a minor issue. For for certain cventry, I want to leave the position and location blank but it rather looks ugly. See below: image How do I make organization and date appear in the same line, if job title and location are left empty?

sabdulm commented 4 years ago

Change the definition for cventry in line 598 of the awesome-cv.cls of the to the one below. Commented the old def, with new ones according to your needs above it.

% Define an entry of cv information % Usage: \cventry{<position>}{<title>}{<location>}{<date>}{<description>} \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{#1#3} added this {\entrytitlestyle{#2} & \entrydatestyle{#4} \\} added this {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\ added this \entrypositionstyle{#1} & \entrydatestyle{#4} \\} added this % \ifempty{#2#3} commented this % {\entrypositionstyle{#1} & \entrydatestyle{#4} \\} commented this % {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\ commented this % \entrypositionstyle{#1} & \entrydatestyle{#4} \\} commented this \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} \end{tabular*}% }

Hope that was what you meant by your issue

Edit: here is a picture of what you may want? WhatsApp Image 2020-03-14 at 8 21 58 PM

umerf52 commented 4 years ago

Thanks! Exactly what I was looking for!