\ProvidesPackage{essential}[1993/01/10]
%-----------------------------------------------------------------------
% Preamble.
%-----------------------------------------------------------------------
% counters used for the sample file example
\newcounter{savesection}
\newcounter{savesubsection}


% The following stuff was inserted by Adrian F Clark <alien@essex.ac.uk>

\pagestyle{myheadings}
\markboth{\sc Essential \LaTeX}{\sc Essential \LaTeX}
\setcounter{tocdepth}{1}

% --- Macros for foreign words and abbreviations (allows them to be rendered
% --- in a different font simply by re-defining \foreign).

%\def\foreign#1{\emph{#1}}
%\def\etc{\foreign{etc.}}                        % etc.
%\def\eg{\foreign{e.g.~}\ignorespaces}           % e.g.
%\def\egc{\foreign{e.g.,~}\ignorespaces}         % e.g.,
%\def\ie{\foreign{i.e.~}\ignorespaces}           % i.e.
%\def\iec{\foreign{i.e.,~}\ignorespaces}         % i.e.,

% --- Modify \section's table-of-contents macro to insert leaders.


\def\dotfil{\cleaders\hbox{$\m@th \mkern4.5mu.\mkern4.5mu$}\hfil\kern\z@}

\def\l@section#1#2{\addpenalty{\@secpenalty}  % good place for page break
   \addvspace{1.0em plus 1pt}                 % space above toc entry
   \@tempdima 1.5em                           % width of section no. box
   \begingroup
     \parindent \z@ \rightskip \@pnumwidth
     \parfillskip -\@pnumwidth
     \bf \leavevmode                          %  to enter horizontal mode.
     #1\dotfil \hbox to\@pnumwidth{\hss #2}\par
   \endgroup}

% End of stuff inserted by Adrian F Clark.



% one or two other commands


\def\WW#1#2{#1{#2} &\tt\string#1\string{#2\string}}
\def\W#1#2{$#1{#2}$ &\tt\string#1\string{#2\string}}
\def\X#1{$#1$ &\tt\string#1}
\def\Y#1{$\big#1$ &\tt\string#1}
\def\Z#1{\tt\string#1}

\makeindex

% Put those floats where I want them!

\setcounter{totalnumber}{9}
\setcounter{topnumber}{9}
\setcounter{bottomnumber}{9}
\renewcommand{\textfraction}{.01}
\renewcommand{\topfraction}{.98}
\renewcommand{\bottomfraction}{.98}
\setlength{\textfloatsep}{3mm plus 1mm minus 1mm}
\setlength{\intextsep}{3mm plus 1mm minus 1mm}
\setlength{\floatsep}{3mm plus 1mm minus 1mm}

\endinput
