Newer
Older
%% stratum0doc.sty
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{stratum0doc}
\RequirePackage{tocloft}
\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}{--}
% set table of contents number field to max width of section numbers
\settowidth{\cftsecnumwidth}{\@sndsectionmark 10 }
\settowidth{\cftsubsecnumwidth}{\@sndsectionmark 1.10 }
\let\theoldsection\thesection
\renewcommand*{\thesection}{%
\@sndsectionmark\theoldsection
\setcounter{section}{-1} % Hacker fangen ab 0 an zu zählen.
% paragraph skips and indents
\setlength{\parskip}{0.5em}
\setlength{\parindent}{0em}

rohieb
committed
\setlength{\cftbeforesecskip}{0.3\baselineskip}
% enlarge page margin, for following \vote etc. commands
\addtolength{\textwidth}{-14pt}
\addtolength{\marginparwidth}{13pt}
%% Parameters: text, pros, contras, abstentions
\newcommand{\vote}[4]{%
\marginpar{\footnotesize #1:\\#2~pro, #3~contra, #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}{%
}
%% 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