add rules on fancy & plain foots & heads
authorJohn Kohl <jtkohl@mit.edu>
Wed, 5 Sep 1990 17:11:25 +0000 (17:11 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 5 Sep 1990 17:11:25 +0000 (17:11 +0000)
fix up headers/footers to include the page number

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1090 dc483132-0cff-0310-8789-dd5450dbe970

doc/api/library.tex
doc/implement/implement.tex

index 1263597b391b74854fae7b010c4c13074a362817..489f79bb767adc24f2a49c5057fb64495f9bae8e 100644 (file)
@@ -6,18 +6,23 @@
 \setlength{\parskip}{.1in}
 \setlength{\parindent}{2em}
 \setlength{\textwidth}{6.25in}
+\setlength{\footrulewidth}{0.4pt}
+\setlength{\plainfootrulewidth}{0.4pt}
+\setlength{\plainheadrulewidth}{0.4pt}
 \makeindex
 \newif\ifdraft
 \drafttrue
 \typein{Draft flag? (type \noexpand\draftfalse<CR> if not draft...)}
 \ifdraft
-\pagestyle{fancy}
+\pagestyle{fancyplain}
 \makeatletter
 \renewcommand{\sectionmark}[1]{\markboth {\uppercase{\ifnum \c@secnumdepth >\z@
     \thesection\hskip 1em\relax \fi #1}}{}}%
 \renewcommand{\subsectionmark}[1]{\markright {\ifnum \c@secnumdepth >\@ne
           \thesubsection\hskip 1em\relax \fi #1}}
 \makeatother
+\lhead[\thepage]{\fancyplain{}{\sl\rightmark}}
+\rhead[\fancyplain{}{\sl\rightmark}]{\thepage}
 \cfoot{{\bf DRAFT---DO NOT REDISTRIBUTE}}
 \else\pagestyle{headings}\fi
 \begin{document}
index 1263597b391b74854fae7b010c4c13074a362817..489f79bb767adc24f2a49c5057fb64495f9bae8e 100644 (file)
@@ -6,18 +6,23 @@
 \setlength{\parskip}{.1in}
 \setlength{\parindent}{2em}
 \setlength{\textwidth}{6.25in}
+\setlength{\footrulewidth}{0.4pt}
+\setlength{\plainfootrulewidth}{0.4pt}
+\setlength{\plainheadrulewidth}{0.4pt}
 \makeindex
 \newif\ifdraft
 \drafttrue
 \typein{Draft flag? (type \noexpand\draftfalse<CR> if not draft...)}
 \ifdraft
-\pagestyle{fancy}
+\pagestyle{fancyplain}
 \makeatletter
 \renewcommand{\sectionmark}[1]{\markboth {\uppercase{\ifnum \c@secnumdepth >\z@
     \thesection\hskip 1em\relax \fi #1}}{}}%
 \renewcommand{\subsectionmark}[1]{\markright {\ifnum \c@secnumdepth >\@ne
           \thesubsection\hskip 1em\relax \fi #1}}
 \makeatother
+\lhead[\thepage]{\fancyplain{}{\sl\rightmark}}
+\rhead[\fancyplain{}{\sl\rightmark}]{\thepage}
 \cfoot{{\bf DRAFT---DO NOT REDISTRIBUTE}}
 \else\pagestyle{headings}\fi
 \begin{document}