<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%  Seitenstil fuer Literarisches
\RequirePackage{ifthen}

\ifthenelse{\boolean{@twoside}}
  % zweiseitig
  {\newcommand{\ps@literature}{
   \let\@mkboth\markboth
   \renewcommand{\chaptermark}[1]
     {\markboth{\@chapapp~\thechapter%
        \hspace{1em}##1}{}}
   \renewcommand{\sectionmark}[1]
     {\markright{\thesection\hspace{1em}##1}}
   \renewcommand{\subsectionmark}[1]{}
   \renewcommand{\@oddfoot}{}
   \renewcommand{\@evenfoot}{}
   \renewcommand{\@oddhead}
     {\vbox{\hsize=\textwidth
      \hbox to \textwidth{\hfil%
        {\small\scshape\rightmark}\hfil\thepage}%
      \vskip3pt\hrule height1pt \vskip1pt \hrule}}
   \renewcommand{\@evenhead}
     {\vbox{\hsize=\textwidth
      \hbox to \textwidth{\thepage\hfil%
        \small\scshape\leftmark\hfil}%
      \vskip3pt\hrule height1pt \vskip1pt \hrule}}
   }
  }
  % einseitig
  {\newcommand{\ps@literature}{
   \let\@mkboth\markboth
   \renewcommand{\chaptermark}[1]{}
   \renewcommand{\sectionmark}[1]
     {\markright{\thesection\hspace{1em}##1}}
   \renewcommand{\subsectionmark}[1]{}
   \renewcommand{\@oddfoot}{}
   \renewcommand{\@evenfoot}{}
   \renewcommand{\@oddhead}
     {\vbox{\hsize=\textwidth
      \hbox to \textwidth{\hfil%
        {\small\scshape\rightmark}\hfil\thepage}%
      \vskip3pt\hrule height1pt \vskip1pt \hrule}}
   \renewcommand{\@evenhead}{}
   }
  }
</pre></body></html>