Two pagestyles for underlining headers
Rainer Schöpf · 1997
This package implements two new pagestyles underline and myunderline that are similar to the standard headings and myheadings pagestyles but provide a horizontal line just below the head line. The purpose of this package file is to provide a way to underline a running head. This is done by redefining the \@evenhead and \@oddhead macros. To understand this you must know that whenever a given pagestyle (say ‘xxx’) is selected by a \pagestyle{xxx} command the macro \ps@xxx is executed. Therefore we define a macro \ps@underline which is called when you say \pagestyle{underline}. To provide for a rule with user-defined headings we also define the pagestyle ‘myunderline’ , i.e. the macro \ps@myunderline.