aboutsummaryrefslogtreecommitdiffstats
path: root/docs/report/styles/header.sty
blob: b86e98e484b1d71c2ee57eec08978622ae4d198c (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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{styles/header}[2021/09/29 Header style]

% ┌───────────────────────────────────┐   
% │                   Title: Subtitle │ ──┬─ [Header]
% │                            Author │ ──┘
% │ Title                             │ ──┬─ Title
% │ Subtitle                          │ ──┘
% │                                   │ 
% │ A Section                         │ ──┬─ Sections
% │ ...                               │   │
% │ 1.1 A Subsection                  │ ──┤
% │ ...                               │   │
% │ Another Section                   │ ──┤
% │ ...                               │   │
% │ 2.1 A Subsection                  │ ──┤
% │ ...                               │   │
% │ 2.2 Another Subsection            │ ──┘
% │ ...                               │ 
% │                                   │
% │                                   │
% └───────────────────────────────────┘

\pagestyle{myheadings}

\newsavebox{\headingbox}
\sbox{\headingbox}{%
    \begin{minipage}[b]{0.5\textwidth}
        \begin{flushright}
            \@title \\
            \@subtitle \\
            \@author \\
        \end{flushright}
    \end{minipage}}
\markright{\hfill\usebox{\headingbox}}