summaryrefslogtreecommitdiff
path: root/cover.tex
blob: bf8c3bf1fdc52e32851d6cdcc0c0b9c5f37c80a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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