Skip to content
Snippets Groups Projects
Commit 2203fd8a authored by rohieb's avatar rohieb
Browse files

LaTeX-Package: vertikale Abstände im Inhaltsverzeichnis angepasst,...

LaTeX-Package: vertikale Abstände im Inhaltsverzeichnis angepasst, Überschriften in einer aufwärtskompatiblen Weise redefiniert

Notiz: Der section-Counter muss nicht zweimal auf -1 gesetzt werden ;-)
parent e6b182ae
No related branches found
No related tags found
No related merge requests found
......@@ -3,14 +3,16 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{stratum0doc}
\RequirePackage{tocloft}
%% Package options
\makeatletter
\DeclareOption{transcript}{%
\def\@sndsectionmark{TOP}%
\setcounter{section}{-1}% start with TOP 0 for more geekness
\def\@sndsectionmark{TOP\ }%
}
\DeclareOption{legal}{
\def\@sndsectionmark{§\ }
}
\DeclareOption{legal}{\def\@sndsectionmark{§}}
\ExecuteOptions{transcript}
\ProcessOptions\relax
\makeatother
......@@ -33,8 +35,14 @@
\makeatletter
\renewcommand{\labelenumi}{(\arabic{enumi})}
\renewcommand{\labelitemi}{--}
\renewcommand{\thesection}{%
\@sndsectionmark\ \@arabic\c@section
% 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.
\makeatother
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment