Newer
Older
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
40
41
42
43
44
45
46
47
48
%% stratum0doc.sty
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{stratum0doc}
%% Package options
\makeatletter
\DeclareOption{transcript}{\def\@sndsectionmark{TOP}}
\DeclareOption{legal}{\def\@sndsectionmark{§}}
\ExecuteOptions{transcript}
\ProcessOptions\relax
\makeatother
%% fancyhdr setup
\newcommand{\myfancysetup}[2]{%
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\sc #1}%
\fancyhead[R]{\sc #2}%
\fancyfoot[C]{Seite \thepage\ von \pageref{LastPage}}
\fancypagestyle{plain}{% for first page
\renewcommand{\headrulewidth}{0pt}%
\fancyhf{}%
\fancyfoot[C]{Seite \thepage\ von \pageref{LastPage}}%
}
}
%% list bullets, section prefix
\makeatletter
\renewcommand{\labelenumi}{(\arabic{enumi})}
\renewcommand{\labelitemi}{--}
\renewcommand{\thesection}{%
\@sndsectionmark\ \@arabic\c@section
}
\makeatother
\RequirePackage{fancyhdr}
\RequirePackage{lastpage}
%% bootstrapping
\makeatletter
\AtBeginDocument{%
\let\mytitle\@title%
\let\mydate\@date%
\myfancysetup{\mytitle}{\mydate}%
}
\makeatother