blob: 460735677ebc4873e49930d3ebb5f632d336d4a2 (
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
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{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}}
|