\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{blub}[2002/07/11 chapter settings]
% - chapter settings ------------------------------------------------
% std chapter length
\newdimen\@cwidth \@cwidth=0.9\textwidth
\newdimen\@tmpcw
% set max chapter length
\def\chapterWidth#1{\@cwidth=#1\textwidth}
% chapter with special max length
% \schapter{len}{text}
\def\schapter#1#2{
\@tmpcw=\@cwidth
\chapterWidth{#1}
\chapter{#2}
\@cwidth=\@tmpcw
}
% redefinitions of \chapter ...
\ifx\@makechapterhead\undefined
\else
\def\@makechapterhead#1{
\vspace*{10pt}
{\parindent \z@ \raggedright
\LARGE\usefont{OT1}{phv}{b}{sc}
\thechapter
\hskip 10pt
\parbox[t]{\@cwidth}{#1}
\par\nobreak
\vskip 30pt
}}
\def\@makeschapterhead#1{
\vspace*{10pt}
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\LARGE\usefont{OT1}{phv}{b}{sc}
#1\par\nobreak
\vskip 30pt
}}
\fi
% redefinitions of \section ...
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\usefont{OT1}{phv}{b}{sc}}}
% redefinitions of \subsection ...
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\usefont{OT1}{phv}{b}{sc}}}
% redefinitions of \subsubsection ...
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\usefont{OT1}{phv}{b}{sc}}}
% redefinitions of \paragraph
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\usefont{OT1}{phv}{b}{sc}}}
% redefinitions of \subparagraph
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\normalsize\usefont{OT1}{phv}{b}{sc}}}