uhead.sty 1.24 KB
Newer Older
ab604's avatar
ab604 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%UHEAD.STY  If this is included after \documentstyle{report}, it adds
% an underlined heading style to the LaTeX report style.
% \pagestyle{uheadings} 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\chapapp2{Chapter}

\def\appendix{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\chapapp2{Appendix}
 \def\@chapapp{Appendix}
 \def\thechapter{\Alph{chapter}}}

\def\ps@uheadings{\let\@mkboth\markboth
% modifications
% Commented out the oddhead and copied evenhead to remove section heads
% A. Bailey Dec. 9th 2012
%\def\@oddhead{\protect\underline{\protect\makebox[\textwidth][l]
%		{\sl\rightmark\hfill\rm\thepage}}}
\def\@oddhead{\protect\underline{\protect\makebox[\textwidth][l]
		{\rm\hfill\sl\leftmark}}}
%\def\@oddfoot{\thepage}
%\def\@evenfoot{\thepage}
mk11g11's avatar
mk11g11 committed
29
30
% \def\@evenhead{\protect\underline{\protect\makebox[\textwidth][l]
% 		{\rm\hfill\sl\leftmark}}}
ab604's avatar
ab604 committed
31
32
33
34
35
36
37
38
% end of modifications
\def\chaptermark##1{\markboth {\ifnum \c@secnumdepth >\m@ne
 \chapapp2\ \thechapter. \ \fi ##1}{}}%
\def\sectionmark##1{\markright {\ifnum \c@secnumdepth >\z@
   \thesection. \ \fi ##1}}}
\makeatother