\ProvidesPackage{papermacs}[1998/6/12 - DPW and TRS]
%\usepackage{d-bends}

%-------------------------------------------
%         Some topmatter commands
%-------------------------------------------

\newcommand{\subjclass}[1]{
\makeatletter
\renewcommand{\@makefnmark}{\relax}
\footnotetext{1991 \textit{Mathematics Subject Classification.} {#1}}
\makeatother}

\newcommand{\keywords}[1]{
\makeatletter
\renewcommand{\@makefnmark}{\relax}
\footnotetext{\textit{Key Words and Phrases.} {#1}}
\makeatother}

\newcommand{\dedication}[1]{
\begin{center}
  \small\textit{#1}
\end{center}}

\newcommand{\evenhead}[1]{
\makeatletter
\renewcommand{\@evenhead}
{\textrm{\thepage}\hfil \textsc{#1}\hfil}
\makeatother}

\newcommand{\oddhead}[1]{
\makeatletter
\renewcommand{\@oddhead}
{\hfil\footnotesize\uppercase{#1}
  \hfil\textrm{\thepage}}
\makeatother}

%-------------------------------------------
%         End topmatter commands
%-------------------------------------------

%-------------------------------------------
%         Some trailingmatter commands
%-------------------------------------------

\newcommand{\address}[1]
{\noindent\footnotesize\textsc{#1}\smallskip}

\newcommand{\email}[1]
{\noindent\footnotesize\textit{E-mail address:\quad}\texttt{#1}\smallskip}

\newcommand{\URL}[1]
{\noindent\footnotesize\textit{URL:\quad}\texttt{#1}\smallskip}

%-------------------------------------------
%         End trailingmatter commands
%-------------------------------------------


%-----------------------------------------------------
%       Standard theoremlike environments.
%       Stolen directly from AMSLaTeX sample
%-----------------------------------------------------
%% \theoremstyle{plain} %% This is the default
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{defn}[thm]{Definition}
\newtheorem{definition}[thm]{Definition}
\newtheorem{remark}[thm]{Remark}
\newtheorem{ex}[thm]{Example}
\newtheorem{example}[thm]{Example}

%--------------------------------------------------
%       Save a little typing
%--------------------------------------------------
\newcommand{\thmref}[1]{Theorem~\ref{#1}}
\newcommand{\secref}[1]{Section~\ref{#1}}
\newcommand{\lemref}[1]{Lemma~\ref{#1}}
\newcommand{\propref}[1]{Prop\-o\-si\-tion~\ref{#1}}
\newcommand{\corref}[1]{Cor\-ol\-lary~\ref{#1}}
\newcommand{\figref}[1]{Fig\-ure~\ref{#1}}

%-----------------------------------------------------
%      Corresponding environments for unnumbered theorems
%      propositions, etc.
%-----------------------------------------------------

\newtheorem*{nnthm}{Theorem}
\newtheorem*{thm*}{Theorem}
\newtheorem*{nncor}{Corollary}
\newtheorem*{nnlem}{Lemma}
\newtheorem*{nnlemma}{Lemma}
\newtheorem*{lemma*}{Lemma}
\newtheorem*{nnprop}{Proposition}
\newtheorem*{prop*}{Proposition}
\newtheorem*{nndefn}{Definition}
\newtheorem*{definition*}{Definition}
\newtheorem*{nnremark}{Remark}
\newtheorem*{remark*}{Remark}
\newtheorem*{nnex}{Example}
\newtheorem*{example*}{Example}

\newif\ifdraftremarks
\draftremarksfalse
\newcounter{draftremarkctr}
\newtheorem{draftremark}[draftremarkctr]{\db Draft Remark}
\newcommand{\dr}[1]
{\ifdraftremarks\bigbreak\hfill
\begin{minipage}[b]{\linewidth}
\begin{draftremark}
#1
\end{draftremark}
\end{minipage}
\bigbreak
\fi}




%---------------------------------------------------
%       Number equations within sections
%--------------------------------------------------
\numberwithin{equation}{section}




%-------------------------------------------------------
%  Options
%-------------------------------------------------------
%
\newif\ifdraft
\draftfalse
\DeclareOption{draft}{\drafttrue}

%--------------------------------------------------------
%  Fix the silly way \big works when
%  12pt is used
%--------------------------------------------------------
\DeclareOption{cmex12}{%
\DeclareFontShape{OMX}{cmex}{m}{n}{
%   <-> sfixed * cmex10 
 <-> cmex10 
   }{}
}

%-------------------------------------------------------
%  For date and time of day
%-------------------------------------------------------
\newcount\hours
\newcount\minutes       %   For computing the time of day on
\def\timeofday{         %   Must be computed when called if preloaded
\hours=\time
\minutes=\hours
\divide\hours by60
\multiply\hours by60
\advance\minutes by-\hours
\divide\hours by60
\ifnum\hours>9\else0\fi\the\hours:\ifnum\minutes>9\else
0\fi\the\minutes}
\def\predate{\date{\the\day\ \ifcase\month\or
%
  January\or February\or March\or April\or May\or June\or July\or
        August\or September\or October\or November\or
           December\fi\ \the\year\ --- \timeofday\ --- Preliminary
                  Version}}





\ProcessOptions
\ifdraft\RequirePackage{mydraft}\fi




