-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Description
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.
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
yxcho and shreoshi-roy
Metadata
Metadata
Assignees
Labels
No labels