\documentstyle[newcen,fixunder,functions,changebar,twoside,fancyheadings]{article}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{1.00in}
\setlength{\marginparsep}{0.05in}
\setlength{\marginparwidth}{1.25in}
\setlength{\textwidth}{5.5in}
\setlength{\topmargin}{-.5in}
\setlength{\textheight}{9in}
\setlength{\parskip}{.1in}
\setlength{\parindent}{2em}
\setlength{\footrulewidth}{0.4pt}
\setlength{\plainfootrulewidth}{0.4pt}
\setlength{\plainheadrulewidth}{0.4pt}
\makeindex
\newif\ifdraft
\drafttrue
%
% Far, far too inconvenient... it's still very draft-like anyway....
%   [tytso:19900921.0018EDT]
%
%\typein{Draft flag? (type \noexpand\draftfalse<CR> if not draft...)}
\ifdraft
\pagestyle{fancyplain}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\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}
\lfoot[]{{\bf DRAFT---DO NOT REDISTRIBUTE}}
\rfoot[{\bf DRAFT---DO NOT REDISTRIBUTE}]{}
\cfoot{\thepage}
\else\pagestyle{headings}\fi
\begin{document}
\thispagestyle{empty}
\begin{center}
{\Huge Kerberos V5 application programming library}
\ifdraft \\ {\Large DRAFT---\today}\fi
\end{center}
\section{libkrb5.a functions}
This section describes the functions provided in the \libname{libkrb5.a}
library.  The library is built from several pieces, mostly for convenience in
programming, maintenance, and porting.

\ifdraft\sloppy\fi

\subsection{Main functions}
\input{krb5.tex}

\subsection{Credentials cache functions}
\input{ccache.tex}

\subsection{Replay cache functions}
\input{rcache.tex}

\subsection{Key table functions}
\input{keytab.tex}

\section{Operating-system specific functions}
\input{libos.tex}

\section{Principal database functions}

\input{kdb.tex}

\section{Encryption system interface}
\input{encrypt.tex}

\section{Checksum interface}
\input{cksum.tex}

\section{CRC-32 checksum functions}
\input{crc-32.tex}

\appendix
\cleardoublepage
\input{\jobname.ind}
\end{document}
