|
68 | 68 | \RequirePackage{setspace} |
69 | 69 | % Needed to manage fonts |
70 | 70 | \RequirePackage[quiet]{fontspec} |
| 71 | +\usepackage{xfp} |
| 72 | +\providecommand\ACVscale{1} |
| 73 | +\renewcommand\ACVscale{1.000000} |
71 | 74 | % To support LaTeX quoting style |
72 | 75 | \defaultfontfeatures{Ligatures=TeX} |
73 | 76 | % Needed to manage math fonts |
|
191 | 194 | %------------------------------------------------------------------------------- |
192 | 195 | % Configure styles for each CV elements |
193 | 196 | % For fundamental structures |
194 | | -\newcommand*{\headerfirstnamestyle}[1]{{\fontsize{32pt}{1em}\headerfontlight\color{graytext} #1}} |
195 | | -\newcommand*{\headerlastnamestyle}[1]{{\fontsize{32pt}{1em}\headerfont\bfseries\color{text} #1}} |
196 | | -\newcommand*{\headerpositionstyle}[1]{{\fontsize{7.6pt}{1em}\bodyfont\scshape\color{awesome} #1}} |
197 | | -\newcommand*{\headeraddressstyle}[1]{{\fontsize{8pt}{1em}\headerfont\itshape\color{lighttext} #1}} |
198 | | -\newcommand*{\headersocialstyle}[1]{{\fontsize{6.8pt}{1em}\headerfont\color{text} #1}} |
199 | | -\newcommand*{\headerquotestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\itshape\color{darktext} #1}} |
200 | | -\newcommand*{\footerstyle}[1]{{\fontsize{8pt}{1em}\footerfont\scshape\color{lighttext} #1}} |
201 | | -\newcommand*{\sectionstyle}[1]{{\fontsize{16pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}} |
202 | | -\newcommand*{\subsectionstyle}[1]{{\fontsize{12pt}{1em}\bodyfont\scshape\textcolor{text}{#1}}} |
203 | | -\newcommand*{\paragraphstyle}{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text}} |
| 197 | +\newcommand*{\headerfirstnamestyle}[1]{{\fontsize{\fpeval{32*\ACVscale}pt}{1em}\headerfontlight\color{graytext} #1}} |
| 198 | +\newcommand*{\headerlastnamestyle}[1]{{\fontsize{\fpeval{32*\ACVscale}pt}{1em}\headerfont\bfseries\color{text} #1}} |
| 199 | +\newcommand*{\headerpositionstyle}[1]{{\fontsize{\fpeval{7.6*\ACVscale}pt}{1em}\bodyfont\scshape\color{awesome} #1}} |
| 200 | +\newcommand*{\headeraddressstyle}[1]{{\fontsize{\fpeval{8*\ACVscale}pt}{1em}\headerfont\itshape\color{lighttext} #1}} |
| 201 | +\newcommand*{\headersocialstyle}[1]{{\fontsize{\fpeval{6.8*\ACVscale}pt}{1em}\headerfont\color{text} #1}} |
| 202 | +\newcommand*{\headerquotestyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfont\itshape\color{darktext} #1}} |
| 203 | +\newcommand*{\footerstyle}[1]{{\fontsize{\fpeval{8*\ACVscale}pt}{1em}\footerfont\scshape\color{lighttext} #1}} |
| 204 | +\newcommand*{\sectionstyle}[1]{{\fontsize{\fpeval{16*\ACVscale}pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}} |
| 205 | +\newcommand*{\subsectionstyle}[1]{{\fontsize{\fpeval{12*\ACVscale}pt}{1em}\bodyfont\scshape\textcolor{text}{#1}}} |
| 206 | +\newcommand*{\paragraphstyle}{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfontlight\upshape\color{text}} |
204 | 207 |
|
205 | 208 | % For elements of entry |
206 | | -\newcommand*{\entrytitlestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
207 | | -\newcommand*{\entrypositionstyle}[1]{{\fontsize{8pt}{1em}\bodyfont\scshape\color{graytext} #1}} |
208 | | -\newcommand*{\entrydatestyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} |
209 | | -\newcommand*{\entrylocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} |
210 | | -\newcommand*{\descriptionstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text} #1}} |
| 209 | +\newcommand*{\entrytitlestyle}[1]{{\fontsize{\fpeval{10*\ACVscale}pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
| 210 | +\newcommand*{\entrypositionstyle}[1]{{\fontsize{\fpeval{8*\ACVscale}pt}{1em}\bodyfont\scshape\color{graytext} #1}} |
| 211 | +\newcommand*{\entrydatestyle}[1]{{\fontsize{\fpeval{8*\ACVscale}pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} |
| 212 | +\newcommand*{\entrylocationstyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} |
| 213 | +\newcommand*{\descriptionstyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfontlight\upshape\color{text} #1}} |
211 | 214 |
|
212 | 215 | % For elements of subentry |
213 | | -\newcommand*{\subentrytitlestyle}[1]{{\fontsize{8pt}{1em}\bodyfont\mdseries\color{graytext} #1}} |
214 | | -\newcommand*{\subentrypositionstyle}[1]{{\fontsize{7pt}{1em}\bodyfont\scshape\color{graytext} #1}} |
215 | | -\newcommand*{\subentrydatestyle}[1]{{\fontsize{7pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} |
216 | | -\newcommand*{\subentrylocationstyle}[1]{{\fontsize{7pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} |
217 | | -\newcommand*{\subdescriptionstyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\upshape\color{text} #1}} |
| 216 | +\newcommand*{\subentrytitlestyle}[1]{{\fontsize{\fpeval{8*\ACVscale}pt}{1em}\bodyfont\mdseries\color{graytext} #1}} |
| 217 | +\newcommand*{\subentrypositionstyle}[1]{{\fontsize{\fpeval{7*\ACVscale}pt}{1em}\bodyfont\scshape\color{graytext} #1}} |
| 218 | +\newcommand*{\subentrydatestyle}[1]{{\fontsize{\fpeval{7*\ACVscale}pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} |
| 219 | +\newcommand*{\subentrylocationstyle}[1]{{\fontsize{\fpeval{7*\ACVscale}pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} |
| 220 | +\newcommand*{\subdescriptionstyle}[1]{{\fontsize{\fpeval{8*\ACVscale}pt}{1em}\bodyfontlight\upshape\color{text} #1}} |
218 | 221 |
|
219 | 222 | % For elements of honor |
220 | | -\newcommand*{\honortitlestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}} |
221 | | -\newcommand*{\honorpositionstyle}[1]{{\fontsize{9pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
222 | | -\newcommand*{\honordatestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}} |
223 | | -\newcommand*{\honorlocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} |
| 223 | +\newcommand*{\honortitlestyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfont\color{graytext} #1}} |
| 224 | +\newcommand*{\honorpositionstyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
| 225 | +\newcommand*{\honordatestyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfont\color{graytext} #1}} |
| 226 | +\newcommand*{\honorlocationstyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfontlight\slshape\color{awesome} #1}} |
224 | 227 |
|
225 | 228 | % For elements of skill |
226 | | -\newcommand*{\skilltypestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
227 | | -\newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}} |
| 229 | +\newcommand*{\skilltypestyle}[1]{{\fontsize{\fpeval{10*\ACVscale}pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
| 230 | +\newcommand*{\skillsetstyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfontlight\color{text} #1}} |
228 | 231 |
|
229 | 232 | % For elements of the cover letter |
230 | | -\newcommand*{\lettersectionstyle}[1]{{\fontsize{14pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}} |
231 | | -\newcommand*{\recipientaddressstyle}[1]{{\fontsize{9pt}{1em}\bodyfont\scshape\color{graytext} #1}} |
232 | | -\newcommand*{\recipienttitlestyle}[1]{{\fontsize{11pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
233 | | -\newcommand*{\lettertitlestyle}[1]{{\fontsize{10pt}{1em}\bodyfontlight\bfseries\color{darktext} \underline{#1}}} |
234 | | -\newcommand*{\letterdatestyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} |
235 | | -\newcommand*{\lettertextstyle}{\fontsize{10pt}{1.4em}\bodyfontlight\upshape\color{graytext}} |
236 | | -\newcommand*{\letternamestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
237 | | -\newcommand*{\letterenclosurestyle}[1]{{\fontsize{10pt}{1em}\bodyfontlight\slshape\color{lighttext} #1}} |
| 233 | +\newcommand*{\lettersectionstyle}[1]{{\fontsize{\fpeval{14*\ACVscale}pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}} |
| 234 | +\newcommand*{\recipientaddressstyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfont\scshape\color{graytext} #1}} |
| 235 | +\newcommand*{\recipienttitlestyle}[1]{{\fontsize{\fpeval{11*\ACVscale}pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
| 236 | +\newcommand*{\lettertitlestyle}[1]{{\fontsize{\fpeval{10*\ACVscale}pt}{1em}\bodyfontlight\bfseries\color{darktext} \underline{#1}}} |
| 237 | +\newcommand*{\letterdatestyle}[1]{{\fontsize{\fpeval{9*\ACVscale}pt}{1em}\bodyfontlight\slshape\color{graytext} #1}} |
| 238 | +\newcommand*{\lettertextstyle}{\fontsize{\fpeval{10*\ACVscale}pt}{1.4em}\bodyfontlight\upshape\color{graytext}} |
| 239 | +\newcommand*{\letternamestyle}[1]{{\fontsize{\fpeval{10*\ACVscale}pt}{1em}\bodyfont\bfseries\color{darktext} #1}} |
| 240 | +\newcommand*{\letterenclosurestyle}[1]{{\fontsize{\fpeval{10*\ACVscale}pt}{1em}\bodyfontlight\slshape\color{lighttext} #1}} |
238 | 241 |
|
239 | 242 |
|
240 | 243 | %------------------------------------------------------------------------------- |
|
0 commit comments