Skip to content

Empty Space if Role is not entered in cventry. #327

@micullen

Description

@micullen

I saw recently that a PR was merged to remove whitespace if position 5 is not entered. As showing the code below:

% 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{#2#3}
      {\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
      {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
      \entrypositionstyle{#1} & \entrydatestyle{#4}}
    \ifempty{#5}{}{\\\multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}}}
  \end{tabular*}%
}

However, I often don't enter a role, for Projects etc where I completed everything, and i am left with space in between the title and items as seen in the picture below.
image

This project picture above was done by the code below

\cventry
    {}% Role
    {Quantitative Techniques Research}
    % Event
    {Everywhere} % Location
    {Current} % Date(s)
    {
      \begin{cvitems} % Description(s)
        \item {Investigated different ways to process market data to optimise trading algorithms resulting in findings of a higher serial correlation.}
        \item{Researched a mathematical solution to Ornstein-Uhlenbeck as an abstraction of market oscillations for market-making techniques.}
      \end{cvitems}
    }

As you can see, Role is empty, yet still a whitespace. I have tried modifying the cventry code myself to remove the whitespace using a similar technique used by \ifempty{#5}{}{\\\multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}}}

but to no avail. Is this something that is possible to get around?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions