%%
%% Der LaTeX-Begleiter, zweite Auflage (September 2005)
%%
%% Beispiel 4-4-6 von Seite 235.
%%
%% Copyright (C) 2005 Frank Mittelbach, Michel Goossens,
%%    Johannes Braams, David Carlisle, and Chris Rowley
%%
%% Uebersetzung: Copyright (C) 2005 Claudia Krysztofiak,
%%    Rebecca Stiels und Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%

\documentclass{lb2exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{118.46352pt}
\setlength\textheight{8\baselineskip}
\addtolength\headsep{-12pt}   % f�r das Buch verk�rzt
\addtolength\textwidth{-30pt} % Kopfzeile im Beispiel kompensieren
\newcommand\sample{ Text f�r unsere Seite,
 der immer und immer wieder verwendet wird.}
\sloppy % da diese Beispiele so kurz sind

\StartShownPreambleCommands
\usepackage{color,fancyhdr}
\pagestyle{fancy} \fancyhf{}
\fancyheadoffset[RO,LE]{30pt}
\fancyhead[RO,LE]{OBJEKT}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\leftmark}
\fancyfoot[C]{\thepage}
\renewcommand\headrule
{{\color{blue}%
  \hrule height 2pt
         width\headwidth
  \vspace{1pt}%
  \hrule height 1pt
         width\headwidth
  \vspace{-4pt}}}
\StopShownPreambleCommands
\begin{document}
% \sample definiert wie zuvor
\section{A-Titel}
\subsection{B-Titel}
\sample \sample
\end{document}