forked from stratum0/dokumente
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstratum0doc.sty
83 lines (76 loc) · 1.92 KB
/
stratum0doc.sty
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%% stratum0doc.sty
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{stratum0doc}
%% Package options
\makeatletter
\DeclareOption{transcript}{%
\def\@sndsectionmark{TOP}%
\setcounter{section}{-1}% start with TOP 0 for more geekness
}
\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
}
\setcounter{section}{-1} % Hacker fangen ab 0 an zu zählen.
\makeatother
%% votes
%% Parameters: text, pros, contras, abstentions
\newcommand{\vote}[4]{%
\marginpar{\footnotesize #1:\\#2~pro, #3~con, #4~neutral}%
}
%% consensus without explicit vote
%% Parameters: text
\newcommand{\consensus}[1]{%
\marginpar{\footnotesize #1}%
}
%% no vote at all, disagreement
%% Parameters: text
\newcommand{\novote}{%
\marginpar{\footnotesize Kein Beschluss}%
}
%% postponed agenda items
%% Parameters: text
\newcommand{\postponed}{%
\marginpar{\footnotesize Beschluss vertagt}%
}
%% withdrawn agenda items
%% Parameters: text
\newcommand{\withdrawn}{%
\marginpar{\footnotesize TOP zurückgezogen}%
}
%% elected persons
%% Parameters: appointment, name, votes, max. possible votes
\newcommand{\elected}[4]{%
\marginpar{\footnotesize #1: #2 (#3/#4)}
}
\RequirePackage{fancyhdr}
\RequirePackage{lastpage}
%% bootstrapping
\makeatletter
\AtBeginDocument{%
\let\mytitle\@title%
\let\mydate\@date%
\myfancysetup{\mytitle}{\mydate}%
}
\makeatother