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

71 lines
2.3 KiB
TeX

% Colors
\definecolor{pagebackground}{HTML}{FFFFFF}
\definecolor{headercolor}{HTML}{353839}
\definecolor{sidebartitle}{HTML}{353839}
\definecolor{bodytitle}{HTML}{353839}
\definecolor{sidebartext}{HTML}{353839}
\definecolor{altconttext}{HTML}{FFFFFF}
\definecolor{bodytext}{HTML}{353839}
\definecolor{bulletcolor}{HTML}{353839}
\definecolor{linkcolor}{HTML}{FFFFFF}
\definecolor{linecolor}{HTML}{E1A95F}
\definecolor{name}{HTML}{FFFFFF}
\definecolor{jobtitle}{HTML}{FFFFFF}
\RequirePackage[pagecolor=pagebackground, nopagecolor=pagebackground]{pagecolor}
% Defining font styles
\newcommand{\sname}{\color{name}\fontsize{26pt}{26pt}\sffamily\addfontfeature{LetterSpace=3}\MakeUppercase}
\newcommand{\sjobtitle}{\color{jobtitle}\fontsize{16pt}{16pt}\sffamily\addfontfeature{LetterSpace=5}}
% Defining page style
\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 and job title
\newcommand{\makeprofile}{%
\vspace*{-1.5cm}
\begin{center}
{\setstretch{3}
\begin{adjustbox}{minipage=[c][1.5cm]{.8\textwidth}, cfbox=linecolor 1.5pt}
\centering
{\sname\name}
\end{adjustbox}}
{\setstretch{1.8}
\begin{adjustbox}{minipage=[c][0.5cm]{.9\textwidth}}
\centering
{\sjobtitle\jobtitle}
\end{adjustbox}}
\vspace{1\bigskipamount}
\end{center}
}
\newcommand{\makecontact}{%
\renewcommand{\arraystretch}{1.3}
\begin{center}
{\color{altconttext}
\begin{tabularx}{\textwidth}{CCC}
\ifthenelse{\equal{\location}{}}{}{\locicon\quad \location} &
\ifthenelse{\equal{\phone}{}}{}{\phoneicon\quad \phone} &
\ifthenelse{\equal{\mail}{}}{}{\mailicon\quad \href{mailto:\mail}{\mail}} \\
\end{tabularx}
}
\end{center}
\vspace{4\bigskipamount}
}
% Margins
\RequirePackage[left=1.5cm, right=1.5cm, top=1.5cm, bottom=1.5cm, footskip=0.5cm, headheight=0.5cm]{geometry}