% -*- Mode: LaTeX;  -*-
% File: config.sty
% Author: Mike Bolotski (misha@ai.mit.edu)
% Copyright (C) Mike Bolotski, 1991
%*-------------------------------------------------------------------------
%* HISTORY:
%* Last edited: Sep  6 00:11 1996 (misha)
%* Created: Fri Nov 29 14:00:58 1991 (misha)
%*-------------------------------------------------------------------------


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\textheight 8.5in
%\textwidth 6.5in
% \oddsidemargin -0.25in
% \evensidemargin \evensidemargin
\topmargin -0.5in
\itemsep -0.5ex

%% Frob Figures
%\textfraction 0.2
% \topfraction 0.75
% \bottomfraction 0.75
%%


% change paragraph indentation/skipping
\input{parskip.sty}
\input{epsf.sty}


% Tighten up itemize environment.
\renewenvironment{itemize}%
{\begin{list}{$\bullet$}{%
    \setlength{\topsep}{0in}
    \setlength{\partopsep}{0in}
    \setlength{\itemsep}{0.5ex}
    \setlength{\parsep}{0in}
    \setlength{\leftmargin}{1.5em}
    \setlength{\rightmargin}{0in}
    \setlength{\itemindent}{0in}
}
}%
{ \end{list} }

%%% Latex2e conversion

\def\emph#1{{\em #1}}
\def\texttt#1{{\tt #1}}
\def\textbf#1{{\bf #1}}



\input{abbrev.sty}
\input{boxit.sty}

\def\mm{$mm^2$}
\def\uu{$\mu^2$}

%% uniform Silt code  representation

\newenvironment{siltcode}{\singlespace\footnotesize\Beginboxit\verbatim}{%
\endverbatim\Endboxit\endsinglespace}

%%% Maple stuff


%% Big Change: reorder parameters
%% filename label short-caption long-caption
\def\mypsfig#1#2#3#4{
\begin{Figure}{#2}{#3}{#4}
\leavevmode
\epsffile{\mypsdirectory#1}
\end{Figure}
}

%\def\mypsfigh#1#2#3#4{
%\begin{figure*}[h]
%\centering \leavevmode
%\epsffile{\mypsdirectory#1}
%\caption[#2]{#4}
%\rule[1ex]{\hsize}{.25mm}
%\label{fig:#3}
%\end{figure*}
%}

 
\def\mypsfigx#1#2#3#4#5{
\epsfxsize#1
\mypsfig{#2}{#3}{#4}{#5}
}

\def\mypsfigy#1#2#3#4#5{
\epsfysize#1
\mypsfig{#2}{#3}{#4}{#5}
}

%% Let's use better tabular environments
%\input{newarray}
%\newcolumn[1]{T}{>{\tt}#1}


%%% Tell LaTeX about English
\hyphenation{wide-spread}
\hyphenation{pa-ra-digm}
\hyphenation{assign-ment}
\hyphenation{algo-rhy-thm}
\hyphenation{algo-rhy-thms}

%%% Standardize my tables and such.

\def\fig#1{Figure~\ref{fig:#1}}
\def\tab#1{Table~\ref{tab:#1}}
\def\sec#1{Section~\ref{sec:#1}}
\def\chap#1{Chapter~\ref{chap:#1}}
\def\app#1{Appendix~\ref{chap:#1}}
\def\eq#1{Equation~\ref{eq:#1}}

\def\figlabel#1{\label{fig:#1}}
\def\tablabel#1{\label{tab:#1}}
\def\eqlabel#1{\label{eq:#1}}
\def\seclabel#1{\label{sec:#1}}
\def\chaplabel#1{\label{chap:#1}}

% refname shortcaption longcaption
\newenvironment{Figure}[3]{%
\def\foo{#2}
\def\bar{#1}
\def\baz{#3}
\begin{figure}[tbhp]
\begin{center}
\rule[1ex]{\hsize}{0.25mm}
\vspace{1ex}
}{%
\caption[\foo]{\label{fig:\bar}\baz}
\vspace{1ex}
\rule[1ex]{\hsize}{.25mm}
\end{center}
\end{figure}
}



% refname shortcaption longcaption
\newenvironment{Table}[3]{%
\def\foo{#2}
\def\bar{#1}
\def\baz{#3}
\begin{table}[tbhp]
\begin{center}
}{%
\caption[\foo]{\label{tab:\bar}\baz}
\vspace{1ex}
\rule[1ex]{\hsize}{.25mm}
\end{center}
\end{table}
}



%%% Float Hackage

\setcounter{totalnumber}{2}             % two figure per page
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}            % one at the bottom
\renewcommand{\topfraction}{.8}        % entire page cannot be floats
\renewcommand{\bottomfraction}{1.0}    % ditto bottom
\renewcommand{\textfraction}{0.10}     % 10% must be text
\renewcommand{\floatpagefraction}{0.80}% 80% of page must be float

%% \textfloatsep 5pt plus 2pt minus 4 pt 
%% \floatsep 5pt plus 2pt minus 4 pt 
%% \intextsep 5pt plus 3pt minus 4 pt 



\def\mesh{mesh}
\def\Mesh{Mesh}


