From a7673f6cf45243dd0c2cfc60c5493aebd8c0806d Mon Sep 17 00:00:00 2001 From: Kirk North Date: Fri, 29 Jul 2016 17:21:14 -0400 Subject: [PATCH 1/2] ENH: add `cvtalks` environment I've added a `cvtalks` environment and associated \cvtalk entry, which takes as parameters \cvtalk{}{}{<location>}{<date>}. It borrows from the `cvhonors` environment, however it's two rows instead of one. I find that this is a better way of including presentations, speaking engagements, etc. than using the \cventries environment which @posquit0 does in his example CV. --- awesome-cv.cls | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/awesome-cv.cls b/awesome-cv.cls index d76bbaa..8f992f1 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -249,6 +249,12 @@ \newcommand*{\skilltypestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}} \newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}} +% For elements of talks, presentations, speaking engagements +\newcommand*{\talkvenuestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\bfseries\color{darktext} #1}} +\newcommand*{\talktitlestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}} +\newcommand*{\talkdatestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}} +\newcommand*{\talklocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} + % For elements of the cover letter \newcommand*{\lettersectionstyle}[1]{{\fontsize{14pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}} \newcommand*{\recipientaddressstyle}[1]{{\fontsize{9pt}{1em}\bodyfont\scshape\color{graytext} #1}} @@ -619,6 +625,24 @@ \vspace{-4.0mm} } +% Define an environment for cvtalks +\newenvironment{cvtalks}{ + \begin{center} + \setlength\tabcolsep{0pt} + \setlength{\extrarowheight}{0pt} + \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} C{2.5cm} L{12.0cm} R{2.5cm}} +}{ + \end{tabular*} + \end{center} +} +% Define an entry for cvtalks (talk, presentation, speaking engagement) +% Usage: \cvtalk{<venue>}{<title>}{<location>}{<date>} +\newcommand*{\cvtalk}[4]{ + \talkdatestyle{#4} & \talkvenuestyle{#1} & \talklocationstyle{#3} \\ + & \talktitlestyle{#2} & \\ + \\ +} + %------------------------------------------------------------------------------- % Commands for elements of Cover Letter From a9d01fb8c25a6b2327f089350f3d12f95a91cfbb Mon Sep 17 00:00:00 2001 From: Kirk North <kirk.w.north@gmail.com> Date: Mon, 1 Aug 2016 17:24:09 -0400 Subject: [PATCH 2/2] Minor fix to cvtalks and \cvtalk Adding 0.2 pt extra row length and removing the additional newline in the cvtalk table. These changes are required in order to reproduce the image I attached in commit a7673f6. --- awesome-cv.cls | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 8f992f1..1f438b1 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -629,7 +629,7 @@ \newenvironment{cvtalks}{ \begin{center} \setlength\tabcolsep{0pt} - \setlength{\extrarowheight}{0pt} + \setlength{\extrarowheight}{0.2pt} \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} C{2.5cm} L{12.0cm} R{2.5cm}} }{ \end{tabular*} @@ -639,8 +639,7 @@ % Usage: \cvtalk{<venue>}{<title>}{<location>}{<date>} \newcommand*{\cvtalk}[4]{ \talkdatestyle{#4} & \talkvenuestyle{#1} & \talklocationstyle{#3} \\ - & \talktitlestyle{#2} & \\ - \\ + & \talktitlestyle{#2} & \\ }