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

Allow for empty cventry arguments #531

Closed
wants to merge 1 commit into from

Conversation

dcsim
Copy link
Contributor

@dcsim dcsim commented Jun 28, 2024

Adds support for empty position + date and empty position + location which should resolve issue #476, #327, #249, #247, #155 and addresses the issues addressed in unmerged (and conflicted) #428.

Screenshot 2024-06-28 at 6 44 50 PM

Edit: And possible bug from #499 couldn't be reproduced, so resolves that too?

Screenshot 2024-06-28 at 7 06 01 PM

@github-actions github-actions bot added the size/XS Extra Small size issue or PR. label Jun 28, 2024
Comment on lines +671 to 675
\ifempty{#1#4}
{\entrytitlestyle{#2} & \entrylocationstyle{#3} \\}
\ifempty{#1#3}
{\entrytitlestyle{#2} & \entrydatestyle{#4} \\}
{\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If 1 & 4 (position & date) are empty, doesn't this mean we show double 2 (title) regardless of 3 or anything else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't show 2 twice but should throw lots of errors and possibly fail to build in some situations, like if only 2 is not empty. Also doesn't fix the issue with \ifempty where when the "if" conditions are not satisfied the "else" doesn't print as expected because missing args.

If we want something user-proof this is a half measure and not much better than what's there already. Probably worse in certain cases too. 5 args with 2 states is...quite a few combinations to account for and this probably isn't the place or way to handle it in the .cls file.

@dcsim dcsim closed this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Extra Small size issue or PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants