From f1abbdd64c18775e1a8858c6cbc592bbdb259494 Mon Sep 17 00:00:00 2001
From: Alessandro Iezzi <aiezzi@alessandroiezzi.it>
Date: Mon, 23 Jan 2023 18:10:47 +0100
Subject: Initial commit

---
 cover.tex | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 cover.tex

(limited to 'cover.tex')

diff --git a/cover.tex b/cover.tex
new file mode 100644
index 0000000..bf8c3bf
--- /dev/null
+++ b/cover.tex
@@ -0,0 +1,39 @@
+% This part depends on your actual environment, Here I am using KOMA script
+\makeatletter
+\renewcommand{\maketitle}{%
+    \begin{tikzpicture}[remember picture, overlay]
+        % Gray boundary
+        \node (left) at (current page.west)
+              [rectangle, fill=gray, inner sep=0pt, anchor = west,
+               minimum width=4cm, minimum height=1\paperheight]{};
+        % Red boundary
+        \node (bottom) at (current page.south)
+              [rectangle, fill=BrickRed, inner sep=0 pt, anchor=south,
+               minimum width=1\paperwidth, minimum height=0.5cm]{};
+
+        % Some additional stuff:
+        \node [yshift=\paperheight/3] (middle) at (current page.south)
+              [rectangle, fill=Green, inner sep=0pt, anchor=north west,
+               minimum height=3cm, minimum width=0.25\paperwidth]{};
+        \node [yshift=\paperheight/3] (middle) at (current page.south)
+              [rectangle, fill=BrickRed, inner sep=0pt, anchor=north east,
+               minimum height=3cm, minimum width=0.25\paperwidth]{};
+        \node [yshift=\paperheight/3] (middle) at (current page.south)
+              [rectangle, fill=Goldenrod, inner sep=0pt, anchor=south west,
+               minimum height=3cm, minimum width=0.25\paperwidth]{};
+        \node [yshift=\paperheight/3] (middle) at (current page.south)
+              [rectangle, fill=RoyalBlue, inner sep=0pt, anchor=south east,
+               minimum height=3cm, minimum width=0.25\paperwidth]{};
+    \end{tikzpicture}
+    \thispagestyle{empty}
+    \parindent0pt
+
+    \begin{addmargin}{4em}
+        \vspace{4cm}
+        {\huge\usekomafont{title} \@title}
+
+        \vspace{2cm}
+        {\usekomafont{disposition}\Large \@author}
+    \end{addmargin}
+}
+\makeatother
\ No newline at end of file
-- 
cgit v1.2.3

