Skip to content

Commit

Permalink
Make template less scattered.
Browse files Browse the repository at this point in the history
  • Loading branch information
jumper047 committed Oct 29, 2021
1 parent 89d241c commit 44aebe5
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -162,26 +162,27 @@
%-------------------------------------------------------------------------------
% Set the FontAwesome font to be up-to-date.
\newfontfamily\FA[Path=\@fontdir]{FontAwesome}

% Set font for header (default is Roboto)
\newfontfamily\headerfont[
Path=\@fontdir,
UprightFont=*-Regular,
ItalicFont=*-Italic,
ItalicFont=*-Regular,
BoldFont=*-Bold,
BoldItalicFont=*-BoldItalic,
]{Roboto}
BoldItalicFont=*-Bold,
]{FiraMono}

\newfontfamily\headerfontlight[
Path=\@fontdir,
UprightFont=*-Thin,
ItalicFont=*-ThinItalic,
UprightFont=*-Regular,
ItalicFont=*-Regular,
BoldFont=*-Medium,
BoldItalicFont=*-MediumItalic,
]{Roboto}
BoldItalicFont=*-Medium,
]{FiraMono}

\newcommand*{\footerfont}{\sourcesanspro}
\newcommand*{\bodyfont}{\sourcesanspro}
\newcommand*{\bodyfontlight}{\sourcesansprolight}
\newcommand*{\bodyfont}{\headerfont}
\newcommand*{\bodyfontlight}{\headerfontlight}
\newcommand*{\footerfont}{\bodyfont}

%-------------------------------------------------------------------------------
% Configuration for styles
Expand All @@ -190,10 +191,10 @@
% 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*{\headerpositionstyle}[1]{{\fontsize{10pt}{1em}\bodyfont\scshape\color{awesome} #1}}
\newcommand*{\headeraddressstyle}[1]{{\fontsize{8pt}{1em}\headerfont\color{lighttext} #1}}
\newcommand*{\headersocialstyle}[1]{{\fontsize{8pt}{1em}\headerfont\color{text} #1}}
\newcommand*{\headerquotestyle}[1]{{\fontsize{10pt}{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}}}
Expand All @@ -203,14 +204,14 @@
\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*{\entrylocationstyle}[1]{{\fontsize{10pt}{1em}\bodyfontlight\slshape\color{awesome} #1}}
\newcommand*{\descriptionstyle}[1]{{\fontsize{8pt}{1em}\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*{\subentrypositionstyle}[1]{{\fontsize{8pt}{1em}\bodyfont\scshape\color{graytext} #1}}
\newcommand*{\subentrydatestyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\slshape\color{graytext} #1}}
\newcommand*{\subentrylocationstyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\slshape\color{awesome} #1}}
\newcommand*{\subdescriptionstyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\upshape\color{text} #1}}

% For elements of honor
Expand Down
Binary file added fonts/FiraMono-Bold.ttf
Binary file not shown.
Binary file added fonts/FiraMono-Medium.ttf
Binary file not shown.
Binary file added fonts/FiraMono-Regular.ttf
Binary file not shown.
Binary file removed fonts/FontAwesome.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Bold.ttf
Binary file not shown.
Binary file removed fonts/Roboto-BoldItalic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Italic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Light.ttf
Binary file not shown.
Binary file removed fonts/Roboto-LightItalic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Medium.ttf
Binary file not shown.
Binary file removed fonts/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file removed fonts/Roboto-Thin.ttf
Binary file not shown.
Binary file removed fonts/Roboto-ThinItalic.ttf
Binary file not shown.

0 comments on commit 44aebe5

Please sign in to comment.