From 450f27d992fe966b1b9b3024a69bf9ea9e5be03f Mon Sep 17 00:00:00 2001 From: Gabriel Cuendet Date: Mon, 22 May 2017 11:53:54 +0200 Subject: [PATCH] CHG hardcoded sizes to corresponding latex command sizes, correspondences can be found here: http://www.sascha-frank.com/latex-font-size.html --- awesome-cv.cls | 77 ++++++++++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index d1c1074..4b64244 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -88,6 +88,15 @@ pdfsubject={}, pdfkeywords={} } +% Needed to use HUGE +\RequirePackage{moresize} +% Needed to deal with publications DOI +\RequirePackage{doi} +% Needed to have the total number of pages in the footer +\RequirePackage{lastpage} + +\providecommand\BibTeX{{B\kern-.05em{\sc i\kern-.025em b}\kern-.08em \TeX}} +\providecommand\Matlab{\textsc{Matlab}} %------------------------------------------------------------------------------- @@ -188,50 +197,50 @@ %------------------------------------------------------------------------------- % 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*{\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}} -\newcommand*{\headerquotestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\itshape\color{darktext} #1}} -\newcommand*{\footerstyle}[1]{{\fontsize{8pt}{1em}\footerfont\scshape\color{lighttext} #1}} -\newcommand*{\sectionstyle}[1]{{\fontsize{16pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}} -\newcommand*{\subsectionstyle}[1]{{\fontsize{12pt}{1em}\bodyfont\scshape\textcolor{text}{#1}}} -\newcommand*{\paragraphstyle}{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text}} +\newcommand*{\headerfirstnamestyle}[1]{{\HUGE\headerfontlight\color{graytext} #1}} +\newcommand*{\headerlastnamestyle}[1]{{\HUGE\headerfont\bfseries\color{text} #1}} +\newcommand*{\headerpositionstyle}[1]{{\scriptsize\bodyfont\scshape\color{awesome} #1}} +\newcommand*{\headeraddressstyle}[1]{{\scriptsize\headerfont\itshape\color{lighttext} #1}} +\newcommand*{\headersocialstyle}[1]{{\tiny\headerfont\color{text} #1}} +\newcommand*{\headerquotestyle}[1]{{\footnotesize\bodyfont\itshape\color{darktext} #1}} +\newcommand*{\footerstyle}[1]{{\scriptsize\footerfont\scshape\color{lighttext} #1}} +\newcommand*{\sectionstyle}[1]{{\LARGE\bodyfont\bfseries\color{text}\@sectioncolor #1}} +\newcommand*{\subsectionstyle}[1]{{\large\bodyfont\scshape\textcolor{text}{#1}}} +\newcommand*{\paragraphstyle}{\footnotesize\bodyfontlight\upshape\color{text}} % For elements of entry -\newcommand*{\entrytitlestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}} -\newcommand*{\entrypositionstyle}[1]{{\fontsize{8pt}{1em}\bodyfont\scshape\color{graytext} #1}} -\newcommand*{\entrydatestyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} -\newcommand*{\entrylocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} -\newcommand*{\descriptionstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text} #1}} +\newcommand*{\entrytitlestyle}[1]{{\small\bodyfont\bfseries\color{darktext} #1}} +\newcommand*{\entrypositionstyle}[1]{{\scriptsize\bodyfont\scshape\color{graytext} #1}} +\newcommand*{\entrydatestyle}[1]{{\scriptsize\bodyfontlight\slshape\color{graytext} #1}} +\newcommand*{\entrylocationstyle}[1]{{\footnotesize\bodyfontlight\slshape\color{awesome} #1}} +\newcommand*{\descriptionstyle}[1]{{\footnotesize\bodyfontlight\upshape\color{text} #1}} % For elements of subentry -\newcommand*{\subentrytitlestyle}[1]{{\fontsize{8pt}{1em}\bodyfont\mdseries\color{graytext} #1}} -\newcommand*{\subentrypositionstyle}[1]{{\fontsize{7pt}{1em}\bodyfont\scshape\color{graytext} #1}} -\newcommand*{\subentrydatestyle}[1]{{\fontsize{7pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} -\newcommand*{\subentrylocationstyle}[1]{{\fontsize{7pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} -\newcommand*{\subdescriptionstyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\upshape\color{text} #1}} +\newcommand*{\subentrytitlestyle}[1]{{\scriptsize\bodyfont\mdseries\color{graytext} #1}} +\newcommand*{\subentrypositionstyle}[1]{{\tiny\bodyfont\scshape\color{graytext} #1}} +\newcommand*{\subentrydatestyle}[1]{{\tiny\bodyfontlight\slshape\color{graytext} #1}} +\newcommand*{\subentrylocationstyle}[1]{{\tiny\bodyfontlight\slshape\color{awesome} #1}} +\newcommand*{\subdescriptionstyle}[1]{{\scriptsize\bodyfontlight\upshape\color{text} #1}} % For elements of honor -\newcommand*{\honortitlestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\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}} +\newcommand*{\honortitlestyle}[1]{{\footnotesize\bodyfont\color{graytext} #1}} +\newcommand*{\honorpositionstyle}[1]{{\footnotesize\bodyfont\bfseries\color{darktext} #1}} +\newcommand*{\honordatestyle}[1]{{\footnotesize\bodyfont\color{graytext} #1}} +\newcommand*{\honorlocationstyle}[1]{{\footnotesize\bodyfontlight\slshape\color{awesome} #1}} % For elements of skill -\newcommand*{\skilltypestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}} -\newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}} +\newcommand*{\skilltypestyle}[1]{{\small\bodyfont\bfseries\color{darktext} #1}} +\newcommand*{\skillsetstyle}[1]{{\footnotesize\bodyfontlight\color{text} #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}} -\newcommand*{\recipienttitlestyle}[1]{{\fontsize{11pt}{1em}\bodyfont\bfseries\color{darktext} #1}} -\newcommand*{\lettertitlestyle}[1]{{\fontsize{10pt}{1em}\bodyfontlight\bfseries\color{darktext} \underline{#1}}} -\newcommand*{\letterdatestyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} -\newcommand*{\lettertextstyle}{\fontsize{10pt}{1.4em}\bodyfontlight\upshape\color{graytext}} -\newcommand*{\letternamestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}} -\newcommand*{\letterenclosurestyle}[1]{{\fontsize{10pt}{1em}\bodyfontlight\slshape\color{lighttext} #1}} +\newcommand*{\lettersectionstyle}[1]{{\Large\bodyfont\bfseries\color{text}\@sectioncolor #1}} +\newcommand*{\recipientaddressstyle}[1]{{\footnotesize\bodyfont\scshape\color{graytext} #1}} +\newcommand*{\recipienttitlestyle}[1]{{\normalsize\bodyfont\bfseries\color{darktext} #1}} +\newcommand*{\lettertitlestyle}[1]{{\small\bodyfontlight\bfseries\color{darktext} \underline{#1}}} +\newcommand*{\letterdatestyle}[1]{{\footnotesize\bodyfontlight\slshape\color{graytext} #1}} +\newcommand*{\lettertextstyle}{\small\bodyfontlight\upshape\color{graytext}} +\newcommand*{\letternamestyle}[1]{{\small\bodyfont\bfseries\color{darktext} #1}} +\newcommand*{\letterenclosurestyle}[1]{{\small\bodyfontlight\slshape\color{lighttext} #1}} %-------------------------------------------------------------------------------