diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-12-05 20:04:16 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-12-05 20:04:16 -0600 |
commit | c74ec211065d0bb98a3e9c80dfe7673c40417d48 (patch) | |
tree | 4c897a3885d63ca81b6f65a556db2b449e39b211 /docs/report/styles/header.sty | |
parent | f005c0c5a1d559ca19aad455792a74aeb2c6df80 (diff) | |
parent | 0fcc18e191ede94347e740a8cbda087c367f3427 (diff) |
Diffstat (limited to 'docs/report/styles/header.sty')
-rw-r--r-- | docs/report/styles/header.sty | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/report/styles/header.sty b/docs/report/styles/header.sty new file mode 100644 index 0000000..b86e98e --- /dev/null +++ b/docs/report/styles/header.sty @@ -0,0 +1,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}} |