summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/biihead.sty
blob: bbb60f2570993aebbb28368f38251eb3b9aaa2ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%BIIHEAD.STY  If this is included after \documentstyle{report}, it adds
% an underlined heading style to the LaTeX report style.
% \pagestyle{biiheadings} will put underlined headings at the top
% of each page. The right page headings are the Chapter titles and
% the left page titles are supplied by \def\lefthead{text}.

% Ted Shapin, Dec. 17, 1986

\makeatletter
\def\ps@biiheadings{\let\@mkboth\markboth
\def\@oddhead{\protect\makebox[0pt][l]{\protect\underline
             {\protect\makebox[\textwidth][l]{\sl\rightmark\hfill\rm\thepage}}}}
\def\@oddfoot{}
\def\@evenhead{\protect\makebox[0pt][l]{\protect\underline
              {\protect\makebox[\textwidth][l]
              {\rm\thepage\hfill\sl\lefthead}}}}
\def\lefthead{}
\def\chaptermark##1{\markright {\uppercase{%
\@chapapp\ \thechapter.\ ##1}}}
\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}
\makeatother