2026-06-17 10:40:40 +02:00

65 lines
2.5 KiB
TeX

% Colors
\definecolor{pagebackground}{HTML}{FFFFFF}
\definecolor{sidebarbackground}{HTML}{24272B}
\definecolor{sidebartitle}{HTML}{FFFFFF}
\definecolor{sidebartext}{HTML}{FFFFFF}
\definecolor{bodytitle}{HTML}{24272B}
\definecolor{bodytext}{HTML}{6c6c6d}
\definecolor{bulletcolor}{HTML}{24272B}
\definecolor{linecolor}{HTML}{24272B}
\definecolor{linkcolor}{HTML}{3E78B2}
\definecolor{name}{HTML}{24272B}
\definecolor{jobtitle}{HTML}{6c6c6d}
\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}
\fancyhead[C]{%
\begin{tikzpicture}[remember picture,overlay]
\node [rectangle, fill=sidebarbackground, anchor=north west, minimum width=4cm, minimum height=\paperheight+2cm] 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}
{\setstretch{3}
\begin{adjustbox}{minipage=[c][2.5cm]{.9\textwidth}}
{\sname\name}
\end{adjustbox}}
{\setstretch{1.8}
\begin{adjustbox}{minipage=[c][1.5cm]{.9\textwidth}}
{\sjobtitle\jobtitle}
\end{adjustbox}}
}
\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)-(6.5cm,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=4cm, right=1.5cm, top=1.5cm, bottom=1.5cm, footskip=0.5cm, headheight=0.5cm]{geometry}