%
%	stuff to change the spacing between paragraphs
%
%\setlength{\parskip}{0.2in} \setlength{\parindent}{0in}
% fullpage.sty
\marginparwidth 0pt \oddsidemargin 0pt \evensidemargin 0pt \marginparsep 0pt
%\topmargin 0pt \textwidth 6.5in \textheight 8.5 in 
% alltt.sty
% ALLTT DOCUMENT-STYLE OPTION - released 17 December 1987
%    for LaTeX version 2.09
% Copyright (C) 1987 by Leslie Lamport

% Defines the `alltt' environment, which is like the `verbatim'
% environment except that `\', `\{', and `\}' have their usual meanings.
% Thus, other commands and environemnts can appear within an `alltt'
% environment.  Here are some things you may want to do in an `alltt'
% environment:
% 
% * Change fonts--e.g., by typing `{\em empasized text\/}'.
% 
% * Insert text from a file foo.tex by typing `input{foo}'.  Beware that
%   each <return> stars a new line, so if foo.tex ends with a <return>
%   you can wind up with an extra blank line if you're not careful.
% 
% * Insert a math formula.  Note that `$' just produces a dollar sign,
%   so you'll have to type `\(...\)' or `\[...\]'.  Also, `^' and `_'
%   just produce their characters; use `\sp' or `\sb' for super- and
%   subscripts, as in `\(x\sp{2}\)'.

\def\docspecials{\do\ \do\$\do\&%
  \do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~}

\def\alltt{\trivlist \item[]\if@minipage\else\vskip\parskip\fi
\leftskip\@totalleftmargin\rightskip\z@
\parindent\z@\parfillskip\@flushglue\parskip\z@
\@tempswafalse \def\par{\if@tempswa\hbox{}\fi\@tempswatrue\@@par}
\obeylines \tt \catcode``=13 \@noligs \let\do\@makeother \docspecials
 \frenchspacing\@vobeyspaces}

\let\endalltt=\endtrivlist
%
%	skg.sty (steve's stuff)
%
% skg -- The styles I always include for normal documents.
\newenvironment{simplist}{\begin{list}{}{\setlength{\leftmargin}{\parindent}
   \setlength{\rightmargin}{0in}}}{\end{list}}
\newenvironment{imize}{\begin{itemize} \itemsep = -0.05in}{\end{itemize}}
\newenvironment{erate}{\begin{enumerate} \itemsep = -0.05in}{\end{enumerate}}
\newenvironment{dscpt}{\begin{description}\itemsep= -0.05in}{\end{description}}
\newenvironment{slist}{\begin{simplist} \itemsep = -0.05in}{\end{simplist}}

\newcommand{\pageline}{\rule{\textwidth}{.01in}}
%\newcommand{\pic}[1]{\input{#1} \begin{center} \mbox{\box\graph} \end{center}
%   \vspace*{0.1in}}
%\newcommand{\pic}[1]{\input{#1}\hfill\mbox{\box\graph}\hfill\vspace*{0.1in}}
\newcommand{\picfig}[2]{\begin{figure}[tp] \centering
   \begin{minipage}{.9\textwidth} \pageline \vspace*{-0.2in} \pic{#1} \pageline
   \caption{#2} \label{fig:#1} \end{minipage} \end{figure}}

% \makeatother    -- unneeded

%\newenvironment{note}[1]{\begin{quote} NOTE {\em #1}: }{\end{quote}}
%
%	draft stuff
%
%\newcount\timehh\newcount\timemm \timehh=\time \divide\timehh by 60
%\timemm=\time \count255=\timehh\multiply\count255 by -60 \advance\timemm by
%\count255 \markboth 
%{\hspace*{\fill}{\protect\small\bf DRAFT}
% \hspace*{\fill} \protect\makebox[0pt][r]{\protect\small\sl\today\ }}
%%\ifnum\timehh<10 0\fi\number\timehh\,:\,\ifnum\timemm<10 0\fi\number\timemm}}
%{\protect\makebox[0pt][l]{\protect\small\sl\today\ } 
%\hspace*{\fill}
%{\protect\small\bf DRAFT} \hspace*{\fill}} \pagestyle{myheadings} 
%%-- \ifnum\timehh<10
%%0\fi\number\timehh\,:\,\ifnum\timemm<10 0\fi\number\timemm} 



%
%thesis related stuff
%
\def\appendixinit{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\@chapapp{APPENDIX}
 \def\@chaptoc{APPENDIX}
 \def\thechapter{\Alph{chapter}}}
\def\bchapter#1{\addcontentsline{toc}{chapter}{#1}\chapter*{#1}}

%
% my new environments
%
%\newenvironment{dscpt}{\begin{description}\itemsep= -0.05in}{\end{description}}
\newcounter{romanctr}
\newenvironment{romanlist}
        {\begin{list}
        {\Roman{romanctr}}
        {\usecounter{romanctr} 
         \setlength{\rightmargin}{\leftmargin}}
        }
{\end{list}}
\newenvironment{cvlist}{\begin{list}{}{
	\renewcommand{\makelabel}[1]{##1\hfil}
	\setlength{\labelwidth}{6.5em}
        \setlength{\labelsep}{0.5em}
	\setlength{\leftmargin}{7em}
  }}{\end{list}}

\def\program{\par\singlesp@cing\@program\frenchspacing\@vobeyspaces \@xprogram}
\let\endprogram=\endtrivlist

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% USAGE: \begin{bfigure}{pos}{wid} text \end{bfigure}
%    pos    the usual figure placement arg: eg. htbp (p.176,latex)
%    wid    the width of the figure, in some units: eg. 5in
%    text   the contents of the figure, including picture/caption/label/etc
%*%  Should steal code from LaTeX to make the interface the same (e.g.
%*%  with `htbp' in braces [] instead of an argument)
\newenvironment{bfigure}[2]{
    \begin{figure}[#1]
\centering
\begin{bbox}{#2}
    }{
\end{bbox}
    \end{figure}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BBOX environment
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newenvironment{bbox}[1]{
    \begin{tabular}{|p{#1}|} \hline
}{\\ \hline
    \end{tabular}
}
\newcommand{\spa}{\hspace{1ex}}
\newcommand{\spb}{\hspace{2ex}}

