ab604 committed Aug 17, 2019 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 29 30 31 32 33 34 35 36 37 38 %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} \def\@evenhead{\protect\underline{\protect\makebox[\textwidth][l] {\rm\hfill\sl\leftmark}}} % 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