add option for fancy header
This commit is contained in:
parent
d2e6cc5fc7
commit
50e7b965d1
1 changed files with 25 additions and 0 deletions
|
@ -32,6 +32,10 @@
|
|||
\newif\ifenglish\englishtrue
|
||||
\DeclareOption{german}{\englishfalse}
|
||||
\DeclareOption{english}{\englishtrue}
|
||||
|
||||
\newif\iffancyhead\fancyheadfalse
|
||||
\DeclareOption{fancyhead}{\fancyheadtrue}
|
||||
|
||||
\DeclareOption*{\PackageWarning{mkessler-lectures}{Unknown '\CurrentOption'}}
|
||||
\ProcessOptions\relax
|
||||
|
||||
|
@ -79,3 +83,24 @@
|
|||
\thispagestyle{plain}
|
||||
\listoflecture
|
||||
}
|
||||
|
||||
|
||||
\iffancyhead
|
||||
\RequirePackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
|
||||
% LE: left even
|
||||
% RO: right odd
|
||||
% CE, CO: center even, center odd
|
||||
|
||||
\fancyhead[RO,LE]{\@lecture} % Right odd, Left even
|
||||
\fancyhead[RE,LO]{} % Right even, Left odd
|
||||
|
||||
%%No fancy headers in the appendix (as there is no lecture)
|
||||
\let\mkesslerlecturesoldappendix\appendix
|
||||
\renewcommand\appendix{
|
||||
\mkesslerlecturesoldappendix
|
||||
\fancyhead[RO,LE]{}
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
}
|
||||
\fi
|
||||
|
|
Loading…
Reference in a new issue