You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.5 KiB
TeX
98 lines
2.5 KiB
TeX
|
|
\ProvidesClass{resume}[2021/04/02 Resume class]
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
\LoadClass{article}
|
|
|
|
%%%%%%%%%%
|
|
% Colors %
|
|
%%%%%%%%%%
|
|
|
|
\RequirePackage{xcolor}
|
|
|
|
\definecolor{white}{RGB}{255,255,255}
|
|
|
|
\definecolor{darkgray}{HTML}{333333}
|
|
\definecolor{gray}{HTML}{4D4D4D}
|
|
\definecolor{lightgray}{HTML}{999999}
|
|
|
|
\definecolor{green}{HTML}{C2E15F}
|
|
\definecolor{orange}{HTML}{FDA333}
|
|
\definecolor{purple}{HTML}{D3A4F9}
|
|
\definecolor{red}{HTML}{FB4485}
|
|
\definecolor{blue}{HTML}{6CE0F1}
|
|
|
|
\colorlet{fillheader}{gray}
|
|
\colorlet{header}{white}
|
|
\colorlet{textcolor}{gray}
|
|
\colorlet{headercolor}{gray}
|
|
|
|
%%%%%%%%%
|
|
% Fonts %
|
|
%%%%%%%%%
|
|
|
|
\RequirePackage[quiet]{fontspec}
|
|
%\RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math}
|
|
|
|
%\newfontfamily\bodyfont[]{Helvetica Neue}
|
|
%\newfontfamily\bodyfont[]{Nimbus Sans}
|
|
\newfontfamily\bodyfont[]{Noto Sans Light}
|
|
%\newfontfamily\thinfont[]{Helvetica Neue UltraLight}
|
|
\newfontfamily\thinfont[]{Noto Sans Thin}
|
|
%\newfontfamily\headingfont[]{Helvetica Neue Condensed Bold}
|
|
|
|
\defaultfontfeatures{Mapping=tex-text}
|
|
%\setmainfont[Mapping=tex-text, Color=textcolor]{Helvetica Neue Light}
|
|
\setmainfont[Mapping=tex-text, Color=textcolor]{Nimbus Sans}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\RequirePackage{tikz}
|
|
\RequirePackage{parskip}
|
|
|
|
%\newcommand{\rolefont}{%
|
|
%\fontsize{14pt}{24pt}\selectfont%
|
|
%\thinfont%
|
|
%\color{white}%
|
|
%}
|
|
|
|
%\newcommand{\header}[3]{%
|
|
%\begin{tikzpicture}[remember picture,overlay]
|
|
%\node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=4cm] (box) at (current page.north){};
|
|
%\node [anchor=center] (name) at (box) {%
|
|
%\fontsize{40pt}{72pt}\color{header}%
|
|
%{\thinfont #1}{\bodyfont #2}
|
|
%};
|
|
%\node [anchor=north] at (name.south) {%
|
|
%\fontsize{14pt}{24pt}\color{header}%
|
|
%\thinfont #3%
|
|
%};
|
|
%\end{tikzpicture}
|
|
%\vspace{2.5cm}
|
|
%\vspace{-2\parskip}
|
|
%}
|
|
|
|
\newcommand{\name}[3]{%
|
|
\begin{tikzpicture}[remember picture,overlay]
|
|
\node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=4cm] (box) at (current page.north){};
|
|
\node [anchor=center] (name) at (box) {%
|
|
\fontsize{40pt}{72pt}\color{header}%
|
|
{\thinfont #1}{\bodyfont #2}
|
|
};
|
|
\node [anchor=north] at (name.south) {%
|
|
\fontsize{14pt}{24pt}\color{header}%
|
|
\thinfont #3%
|
|
};
|
|
\end{tikzpicture}
|
|
\vspace{2.5cm}
|
|
\vspace{-2\parskip}
|
|
}
|
|
%\node [anchor=center] (name) at (box) {%
|
|
%\fontsize{40pt}{72pt}\color{header}%
|
|
%\fontsize{40pt}{72pt}%
|
|
%{\thinfont #1}{\bodyfont #2}
|
|
%};
|
|
%#1 XXX #2
|
|
%}
|