69 lines
2.5 KiB
TeX
69 lines
2.5 KiB
TeX
% Colors
|
|
\definecolor{pagebackground}{HTML}{FFFFFF}
|
|
\definecolor{headercolor}{HTML}{2F374B}
|
|
\definecolor{sidebartitle}{HTML}{6c6c6d}
|
|
\definecolor{sidebartext}{HTML}{6c6c6d}
|
|
\definecolor{bodytitle}{HTML}{6c6c6d}
|
|
\definecolor{bodytext}{HTML}{6c6c6d}
|
|
\definecolor{bulletcolor}{HTML}{6c6c6d}
|
|
\definecolor{linkcolor}{HTML}{2F374B}
|
|
\definecolor{linecolor}{HTML}{ADA080}
|
|
\definecolor{name}{HTML}{ADA080}
|
|
\definecolor{jobtitle}{HTML}{ADA080}
|
|
\RequirePackage[pagecolor=pagebackground, nopagecolor=pagebackground]{pagecolor}
|
|
|
|
% Defining font styles
|
|
\newcommand{\sname}{\color{name}\fontsize{46pt}{46pt}\sffamily\addfontfeature{LetterSpace=3}\MakeUppercase}
|
|
\newcommand{\sjobtitle}{\color{jobtitle}\fontsize{22pt}{22pt}\sffamily\addfontfeature{LetterSpace=5}\MakeUppercase}
|
|
|
|
% Defining page styles
|
|
\pagestyle{fancy}
|
|
\fancyhf{}
|
|
\renewcommand{\headrulewidth}{0pt}
|
|
\renewcommand{\footrulewidth}{0pt}
|
|
\fancyhead[C]{%
|
|
\begin{tikzpicture}[remember picture,overlay]
|
|
\node [rectangle, fill=headercolor, anchor=north west, minimum width=\paperwidth+1cm, minimum height=6.5cm] at ($(current page.north west)+(-1cm,1cm)$) {};
|
|
\end{tikzpicture}
|
|
}
|
|
|
|
% Default text color
|
|
\AtBeginDocument{\colorlet{defaultcolor}{.}}
|
|
\color{bodytext}
|
|
|
|
% Layout for name, job title and sidebar
|
|
\newcommand{\makeprofile}{%
|
|
\vspace*{-1.5cm}
|
|
\begin{center}
|
|
{\setstretch{3}
|
|
\begin{adjustbox}{minipage=[c][2.5cm]{.9\textwidth}}
|
|
\centering
|
|
{\sname\name}
|
|
\end{adjustbox}}
|
|
|
|
{\setstretch{1.8}
|
|
\begin{adjustbox}{minipage=[c][1.5cm]{.9\textwidth}}
|
|
\centering
|
|
{\sjobtitle\jobtitle}
|
|
\end{adjustbox}}
|
|
\end{center}
|
|
\bigskip
|
|
}
|
|
|
|
\newcommand{\makecontact}{%
|
|
\begin{tikzpicture}[ampersand replacement=\&]
|
|
\node [rectangle, anchor=north, text width=\textwidth, minimum width=\textwidth, inner ysep=10pt, inner xsep=0pt, minimum height=1.5cm] (contact) at ($(current page.north)-(0cm,5.5cm)$) {%
|
|
\begin{tabularx}{\textwidth}{CCC}%
|
|
\ifthenelse{\equal{\location}{}}{}{\locicon\ \location } &
|
|
\ifthenelse{\equal{\phone}{}}{}{\phoneicon\ \phone } &
|
|
\ifthenelse{\equal{\mail}{}}{}{\mailicon\ \href{mailto:\mail}{\mail} } \\
|
|
\end{tabularx}
|
|
};
|
|
\draw[line width=1pt, draw=linecolor] ($(contact.south west)$) -- ($(contact.south east)$);
|
|
\end{tikzpicture}
|
|
\vspace{2\bigskipamount}
|
|
}
|
|
|
|
% Margins
|
|
\RequirePackage[left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm, footskip=0.5cm, headheight=0.5cm]{geometry}
|