Blob Blame History Raw
% ##############################################################################
% ### Header and Footer Page
% ##############################################################################

\pagestyle{fancyplain}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\renewcommand{\plainheadrulewidth}{0.5pt}
\renewcommand{\plainfootrulewidth}{0.5pt}
\setcounter{page}{1}

\def\releasebox{%
  \ifthenelse{\equal{\DBKreleaseinfo}{}}{}%
  {\framebox{\textsc{\textsf{\DBKreleaseinfo}}}}%
}

% Define front/main/back matter if not available
\@ifundefined{frontmatter}{
  \def\frontmatter{\cleardoublepage\pagenumbering{roman}
                   \lhead[]{\DBKtitle}
                   \chead[]{\releasebox}
                   \rhead[]{\textsf{\thepage{}}}}
}{}
\@ifundefined{mainmatter}{
  \def\mainmatter{\cleardoublepage\pagenumbering{arabic}
                  \lhead[]{\DBKtitle}
                  \chead[]{\releasebox}
                  \rhead[]{\textsf{\thepage{} / \getpagerefnumber{LastPage}}}}
}{}
\@ifundefined{backmatter}{
  \def\backmatter{\if@openright\cleardoublepage\else\clearpage\fi}
}{}


% Fancy header/footer for the first page

\lfoot[]{\@ifundefined{DBKpublisher}{}{\DBKpublisher}}
\rfoot[]{}
\cfoot[]{}

% Fancy header/footer for the front matter

% Fancy header/footer for the doc body