Title page ok

This commit is contained in:
jostein 2026-03-27 11:14:43 +01:00
parent 9cee929317
commit e3e4f46cf1

View file

@ -36,6 +36,7 @@
\usepackage{xcolor} \usepackage{xcolor}
\definecolor{accent}{HTML}{2C3E50} \definecolor{accent}{HTML}{2C3E50}
\definecolor{muted}{HTML}{7F8C8D} \definecolor{muted}{HTML}{7F8C8D}
\definecolor{vertbar}{HTML}{297ab3}
%% ── Hyperlinks ──────────────────────────────────────────────────────────────── %% ── Hyperlinks ────────────────────────────────────────────────────────────────
\usepackage[ \usepackage[
@ -139,6 +140,7 @@ $endif$
\setkeys{Gin}{width=\maxwidth, keepaspectratio} \setkeys{Gin}{width=\maxwidth, keepaspectratio}
\usepackage{etoolbox} \usepackage{etoolbox}
\usepackage{tikz}
%% ── Code listings ───────────────────────────────────────────────────────────── %% ── Code listings ─────────────────────────────────────────────────────────────
\usepackage{fancyvrb} \usepackage{fancyvrb}
@ -177,12 +179,17 @@ $endif$
%% ── Title page ──────────────────────────────────────────────────────────────── %% ── Title page ────────────────────────────────────────────────────────────────
\begin{titlepage} \begin{titlepage}
\thispagestyle{empty} \thispagestyle{empty}
\centering %% ── Full-height left vertical bar ─────────────────────────────────────────
\begin{tikzpicture}[remember picture, overlay]
\fill[vertbar] (current page.north west)
rectangle ++(1.27cm, -29.70cm);
\end{tikzpicture}
\raggedright
\vspace*{4cm} \vspace*{4cm}
{\Huge\bfseries\color{accent} $title$ \par} {\Huge\bfseries\color{accent} $title$ \par}
\vspace{0.5cm} \vspace{0.5cm}
\textcolor{muted}{\rule{0.4\textwidth}{0.4pt}} {\color{vertbar}\rule{3.31cm}{0.2cm}}
\vspace{1cm} \vspace{1cm}
$if(subtitle)$ $if(subtitle)$
@ -203,7 +210,7 @@ $endif$
$if(description)$ $if(description)$
\begin{minipage}{0.7\textwidth} \begin{minipage}{0.7\textwidth}
\centering\small\textcolor{muted}{$description$} \raggedright\small\textcolor{muted}{$description$}
\end{minipage} \end{minipage}
$endif$ $endif$