| 1 |
% ############################################################################## |
| 2 |
% ### Header and Footer Page |
| 3 |
% ############################################################################## |
| 4 |
|
| 5 |
\pagestyle{fancyplain} |
| 6 |
\renewcommand{\headrulewidth}{0.5pt} |
| 7 |
\renewcommand{\footrulewidth}{0.5pt} |
| 8 |
\renewcommand{\plainheadrulewidth}{0.5pt} |
| 9 |
\renewcommand{\plainfootrulewidth}{0.5pt} |
| 10 |
\setcounter{page}{1} |
| 11 |
|
| 12 |
\def\releasebox{% |
| 13 |
\ifthenelse{\equal{\DBKreleaseinfo}{}}{}% |
| 14 |
{\framebox{\textsc{\textsf{\DBKreleaseinfo}}}}% |
| 15 |
} |
| 16 |
|
| 17 |
% Define front/main/back matter if not available |
| 18 |
\@ifundefined{frontmatter}{ |
| 19 |
\def\frontmatter{\thispagestyle{empty}\cleardoublepage\pagenumbering{roman} |
| 20 |
\lhead[]{\DBKtitle} |
| 21 |
\chead[]{\releasebox} |
| 22 |
\rhead[]{\textsf{\thepage{}}}} |
| 23 |
}{} |
| 24 |
\@ifundefined{mainmatter}{ |
| 25 |
\def\mainmatter{\cleardoublepage\pagenumbering{arabic} |
| 26 |
\lhead[]{\DBKtitle} |
| 27 |
\chead[]{\releasebox} |
| 28 |
\rhead[]{\textsf{\thepage{} / \getpagerefnumber{LastPage}}}} |
| 29 |
}{} |
| 30 |
\@ifundefined{backmatter}{ |
| 31 |
\def\backmatter{\if@openright\cleardoublepage\else\clearpage\fi} |
| 32 |
}{} |
| 33 |
|
| 34 |
|
| 35 |
% Fancy header/footer for the first page |
| 36 |
|
| 37 |
\lfoot[]{\@ifundefined{DBKpublisher}{}{\DBKpublisher}} |
| 38 |
\rfoot[]{} |
| 39 |
\cfoot[]{} |
| 40 |
|
| 41 |
% Fancy header/footer for the front matter |
| 42 |
|
| 43 |
% Fancy header/footer for the doc body |
| 44 |
|