Add comma after position if title is not empty

Make comma conditional that are used after position in cvhonor.
Use it if the title is not empty.
This commit is contained in:
randomnoise 2023-07-27 12:03:31 +03:00 committed by Oliver Ford
parent 72a350157a
commit 4b55638cc3

View file

@ -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}\ifempty{#2}{}{,} \honortitlestyle{#2} & \honorlocationstyle{#3} \\
}
% Define an environment for cvskill