From dafa2cae54909dcd8194b7cb0586a9d426abdcbd Mon Sep 17 00:00:00 2001 From: jdalrymple Date: Mon, 10 Apr 2017 13:57:50 -0400 Subject: [PATCH 1/3] Update awesome-cv.cls Adding honor description options --- awesome-cv.cls | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index d1c1074..c6b7dee 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -215,6 +215,7 @@ % For elements of honor \newcommand*{\honortitlestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}} +\newcommand*{\honordescriptionstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{graytext} #1}} \newcommand*{\honorpositionstyle}[1]{{\fontsize{9pt}{1em}\bodyfont\bfseries\color{darktext} #1}} \newcommand*{\honordatestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}} \newcommand*{\honorlocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} @@ -614,9 +615,10 @@ \end{center} } % Define a line of cv information(honor, award or something else) -% Usage: \cvhonor{}{}{<location>}{<date>} -\newcommand*{\cvhonor}[4]{% - \honordatestyle{#4} & \honorpositionstyle{#1}, \honortitlestyle{#2} & \honorlocationstyle{#3} \\ +% Usage: \cvhonor{<position>}{<title>}{<description>}{<location>}{<date>} +\newcommand*{\cvhonor}[5]{% + \honordatestyle{#5} & \honorpositionstyle{#1}, \honortitlestyle{#2} & \honorlocationstyle{#4} && \honordescriptionstyle{#3} + \\ } % Define an environment for cvskill From 9f1a8635ca525e69f4573f52e88b8cbbcc638162 Mon Sep 17 00:00:00 2001 From: jdalrymple <jdalrymple@users.noreply.github.com> Date: Mon, 10 Apr 2017 14:10:04 -0400 Subject: [PATCH 2/3] Update awesome-cv.cls Fixing alignment --- awesome-cv.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index c6b7dee..f720361 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -617,7 +617,7 @@ % Define a line of cv information(honor, award or something else) % Usage: \cvhonor{<position>}{<title>}{<description>}{<location>}{<date>} \newcommand*{\cvhonor}[5]{% - \honordatestyle{#5} & \honorpositionstyle{#1}, \honortitlestyle{#2} & \honorlocationstyle{#4} && \honordescriptionstyle{#3} + \honordatestyle{#5} & \honorpositionstyle{#1}, \honortitlestyle{#2} & \honorlocationstyle{#4} \cr & \honordescriptionstyle{#3} \\ } From 7ababeb422913f9f8c4e57ef8da42e8fc63dac85 Mon Sep 17 00:00:00 2001 From: jdalrymple <jdalrymple@users.noreply.github.com> Date: Mon, 10 Apr 2017 16:18:02 -0400 Subject: [PATCH 3/3] Making the description an optional argument --- awesome-cv.cls | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index f720361..ef2e69d 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -614,11 +614,11 @@ \end{tabular*} \end{center} } + % Define a line of cv information(honor, award or something else) -% Usage: \cvhonor{<position>}{<title>}{<description>}{<location>}{<date>} -\newcommand*{\cvhonor}[5]{% - \honordatestyle{#5} & \honorpositionstyle{#1}, \honortitlestyle{#2} & \honorlocationstyle{#4} \cr & \honordescriptionstyle{#3} - \\ +% Usage: \cvhonor[<description>]{<position>}{<title>}{<location>}{<date>} +\newcommand*{\cvhonor}[5][]{ + \honordatestyle{#5} & \honorpositionstyle{#2}, \honortitlestyle{#3} & \honorlocationstyle{#4} \cr & \honordescriptionstyle{#1}\\ } % Define an environment for cvskill