64 lines
2.3 KiB
TeX
64 lines
2.3 KiB
TeX
% Colors
|
|
\definecolor{pagebackground}{HTML}{FFFFFF}
|
|
\definecolor{sidebarbackground}{HTML}{ECEAEA}
|
|
\definecolor{sidebartitle}{HTML}{564E4E}
|
|
\definecolor{sidebartext}{HTML}{564E4E}
|
|
\definecolor{bodytitle}{HTML}{564E4E}
|
|
\definecolor{bodytext}{HTML}{564E4E}
|
|
\definecolor{bulletcolor}{HTML}{564E4E}
|
|
\definecolor{linkcolor}{HTML}{3E78B2}
|
|
\definecolor{linecolor}{HTML}{564E4E}
|
|
\definecolor{name}{HTML}{564E4E}
|
|
\definecolor{jobtitle}{HTML}{564E4E}
|
|
\RequirePackage[pagecolor=pagebackground, nopagecolor=pagebackground]{pagecolor}
|
|
|
|
% Defining font styles
|
|
\newcommand{\sname}{\color{name}\fontsize{40pt}{40pt}\sffamily\addfontfeature{LetterSpace=3}\MakeUppercase}
|
|
\newcommand{\sjobtitle}{\color{jobtitle}\fontsize{20pt}{20pt}\sffamily\addfontfeature{LetterSpace=5}\MakeUppercase}
|
|
|
|
% Defining page styles
|
|
\pagestyle{fancy}
|
|
\fancyhf{}
|
|
\renewcommand{\headrulewidth}{0pt}
|
|
\renewcommand{\footrulewidth}{0pt}
|
|
|
|
% 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}
|
|
}
|
|
|
|
\newcommand{\makecontact}{%
|
|
\begin{tikzpicture}[ampersand replacement=\&]
|
|
\node [rectangle, anchor=north, fill=sidebarbackground, inner ysep=10pt, inner xsep=0pt, minimum height=1.5cm] (contact) at ($(current page.north)-(0cm,6cm)$) {%
|
|
\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.north west)$) -- ($(contact.north east)$);
|
|
\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}
|