From 76076d43aaea3d8fe8267448a86516015fd1c076 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 31 Mar 2026 23:05:23 +0200 Subject: [PATCH] feat: add publications layout macros and reduce header name size - reduce the header first-name and last-name font size from 32pt to 25pt - add dedicated publication text style macros for author, title, venue, and date - introduce a cvpublications environment based on a two-column tabular layout - add a cvpublication command to render publication entries consistently - keep the publications formatting localised to awesome-cv.cls without changing unrelated CV components --- awesome-cv.cls | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 8e68d92..b812936 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -195,8 +195,8 @@ %------------------------------------------------------------------------------- % Configure styles for each CV elements % For fundamental structures -\newcommand*{\headerfirstnamestyle}[1]{{\fontsize{32pt}{1em}\headerfontlight\color{graytext} #1}} -\newcommand*{\headerlastnamestyle}[1]{{\fontsize{32pt}{1em}\headerfont\bfseries\color{text} #1}} +\newcommand*{\headerfirstnamestyle}[1]{{\fontsize{25pt}{1em}\headerfontlight\color{graytext} #1}} +\newcommand*{\headerlastnamestyle}[1]{{\fontsize{25pt}{1em}\headerfont\bfseries\color{text} #1}} \newcommand*{\headerpositionstyle}[1]{{\fontsize{7.6pt}{1em}\bodyfont\scshape\color{awesome} #1}} \newcommand*{\headeraddressstyle}[1]{{\fontsize{8pt}{1em}\headerfont\itshape\color{lighttext} #1}} \newcommand*{\headersocialstyle}[1]{{\fontsize{6.8pt}{1em}\headerfont\color{text} #1}} @@ -815,6 +815,32 @@ \skilltypestyle{#1} & \leavevmode\skillsetstyle{#2} \\ } +% Mehdi -------------------------------------------------- + +% For elements of publications +\newcommand*{\publinamestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{darktext} #1}} +\newcommand*{\publititlestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\bfseries\color{darktext} #1}} +\newcommand*{\publipublistyle}[1]{{\fontsize{9pt}{1em}\bodyfont\itshape\color{darktext} #1}} +\newcommand*{\publidatestyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} + +% Define an environment for +\newenvironment{cvpublications}{% + \vspace{\acvSectionContentTopSkip} + \vspace{-2mm} + \begin{center} + \setlength\tabcolsep{0pt} + \setlength{\extrarowheight}{8pt} + % \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} C{15cm} L{\textwidth - 40.0cm} R{25cm}} +\begin{tabular*}{\textwidth}{L{\textwidth - 2cm} C{2cm}} +}{% + \end{tabular*} + \end{center} +} + +\newcommand*{\cvpublication}[4]{ + \publinamestyle{#1}, \publititlestyle{#2}, \publipublistyle{#3} & \publidatestyle{#4} \\ +} + % Define an environment for cvitems(for cventry) \newenvironment{cvitems}{% \vspace{-4.0mm}