change operating system to separate section; add some fixes for fancy
authorJohn Kohl <jtkohl@mit.edu>
Wed, 5 Sep 1990 14:08:32 +0000 (14:08 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 5 Sep 1990 14:08:32 +0000 (14:08 +0000)
headings

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

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

index 7f6c7d300bb3c75dc53648100017ed83df637522..1263597b391b74854fae7b010c4c13074a362817 100644 (file)
 \typein{Draft flag? (type \noexpand\draftfalse<CR> if not draft...)}
 \ifdraft
 \pagestyle{fancy}
-\lhead[\fancyplain{}\thepage]{\fancyplain{}{\sl \leftmark}}
-\rhead[\fancyplain{}{\sl \leftmark}]{\fancyplain{}\thepage}
+\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
 \cfoot{{\bf DRAFT---DO NOT REDISTRIBUTE}}
 \else\pagestyle{headings}\fi
 \begin{document}
@@ -41,7 +45,7 @@ programming, maintenance, and porting.
 \subsection{Key table functions}
 \input{keytab.tex}
 
-\subsection{Operating-system specific functions}
+\section{Operating-system specific functions}
 \input{libos.tex}
 
 \section{Principal database functions}
index 7f6c7d300bb3c75dc53648100017ed83df637522..1263597b391b74854fae7b010c4c13074a362817 100644 (file)
 \typein{Draft flag? (type \noexpand\draftfalse<CR> if not draft...)}
 \ifdraft
 \pagestyle{fancy}
-\lhead[\fancyplain{}\thepage]{\fancyplain{}{\sl \leftmark}}
-\rhead[\fancyplain{}{\sl \leftmark}]{\fancyplain{}\thepage}
+\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
 \cfoot{{\bf DRAFT---DO NOT REDISTRIBUTE}}
 \else\pagestyle{headings}\fi
 \begin{document}
@@ -41,7 +45,7 @@ programming, maintenance, and porting.
 \subsection{Key table functions}
 \input{keytab.tex}
 
-\subsection{Operating-system specific functions}
+\section{Operating-system specific functions}
 \input{libos.tex}
 
 \section{Principal database functions}