add headline + footer

This commit is contained in:
Benjamin Kellermann 2013-07-19 21:13:23 +02:00
parent b740636a66
commit beeb2852c6
1 changed files with 16 additions and 1 deletions

View File

@ -28,6 +28,14 @@
DIV=15,
%headheight=36px
]{scrartcl}
\RequirePackage{xkeyval}
\newcommand{\@volume}{}
\DeclareOptionX{volume}{\renewcommand{\@volume}{#1}}%
\newcommand{\@year}{}
\DeclareOptionX{year}{\renewcommand{\@year}{#1}}%
\ProcessOptionsX
\RequirePackage{ifxetex}
\ifxetex
\RequirePackage{fontspec}
@ -39,6 +47,14 @@
\fi
\RequirePackage{scrpage2}
\pagestyle{scrheadings}
\setheadsepline{0.5pt}
\ifoot[]{Datenschleuder. \@volume / \@year}
\ofoot[]{\thepage}
\setfootsepline{0.5pt}
%FIXME: use abstract environment in prior of nasty DSabstract command
\renewenvironment{abstract}{%
\begin{center}
@ -65,7 +81,6 @@
\normalsize
}
\RequirePackage{xkeyval}
\define@key{DSarticleKeys}{title}{\renewcommand{\@title}{#1}}%
\define@key{DSarticleKeys}{author}{\author{#1}}
\define@key{DSarticleKeys}{DSabstract}{\renewcommand{\@DSabstract}{#1}}