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

\cvhonor: Omit comma if honortitle is empty #427

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gtm-nayan
Copy link

Needed this for my own, figured someone else might want it as well

It's the first way I thought of, feel free to push directly to the branch if there's a better way to do it

@github-actions github-actions bot added the size/XS Extra Small size issue or PR. label Apr 29, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

👋 Welcome! Looks like this is your first pull request.

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

@@ -692,7 +692,7 @@
% Define a line of cv information(honor, award or something else)
% Usage: \cvhonor{<position>}{<title>}{<location>}{<date>}
\newcommand*{\cvhonor}[4]{%
\honordatestyle{#4} & \honorpositionstyle{#1}, \honortitlestyle{#2} & \honorlocationstyle{#3} \\
\honordatestyle{#4} & \honorpositionstyle{#1}\ifthenelse{\equal{#2}{}}{}{,} \honortitlestyle{#2} & \honorlocationstyle{#3} \\
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
\honordatestyle{#4} & \honorpositionstyle{#1}\ifthenelse{\equal{#2}{}}{}{,} \honortitlestyle{#2} & \honorlocationstyle{#3} \\
\honordatestyle{#4} & \honorpositionstyle{#1}\ifempty{#2}{}{,} \honortitlestyle{#2} & \honorlocationstyle{#3} \\

is clearer I think?

Do we need similar for #3 spacing if that's empty?

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.

None yet

2 participants