Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraneous space if position title empty #476

Open
Alessandro-Petitti opened this issue Jun 30, 2023 · 3 comments
Open

Extraneous space if position title empty #476

Alessandro-Petitti opened this issue Jun 30, 2023 · 3 comments

Comments

@Alessandro-Petitti
Copy link

Hi!!!
First of all thanks for this extremely valuable resource!
I'm willing to not fill a information: the Job position in the "experience" page.
I'd like to eliminate that record, but the file won't compile,
if I leave it with no info, it creates this awful space:
Screenshot 2023-06-30 alle 11 26 45 AM

Does anybody know how to solve the problem?

@github-actions
Copy link

👋 Welcome! Looks like this is your first issue.

Hey, thanks for your contribution! Please give us a bit of time to review it. 😄

@OJFord
Copy link
Collaborator

OJFord commented Jul 27, 2023

PR welcome to remove the space if no position title. 👍🏻

@OJFord OJFord changed the title Deleting records issue Extraneous space if position title empty Jul 27, 2023
@dcsim
Copy link
Contributor

dcsim commented Sep 21, 2023

I don't know if I'll get around to submitting a PR for this, but this adds support for empty position + date and empty position + location which should fulfill this request as I understand 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{#2#3}
      {\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
    \ifempty{#1#4}
      {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\}
    \ifempty{#1#3}
      {\entrytitlestyle{#2} & \entrydatestyle{#4} \\}
      {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
      \entrypositionstyle{#1} & \entrydatestyle{#4} \\}
    \ifstrempty{#5}
      {}
      {\multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} \\}
  \end{tabular*}%
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants