%****************************************************************************
% This package is required for processing LaTeX files created by EXP.
% File name: exptex.sty
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{exptex}[1995/09/15 v1.00 EXP to AMS-LaTeX package]
\RequirePackage{amsmath}[1995/02/23]
\RequirePackage{amssymb}[1995/02/01]
\RequirePackage{amsthm}[1995/02/01]
\RequirePackage{array}[1994/06/01]

%****************************************************************************
% new operator names

\DeclareMathOperator{\expectation}{E}
\DeclareMathOperator{\Var}{Var}

%****************************************************************************
% macros for variations on standard LaTeX and AMS-LaTeX macros

\def\HruleFill#1#2{\leavevmode\leaders\hrule height #1 depth #2\hfill\kern\z@}
\def\HruleNoDraw#1#2#3{\leavevmode{\setbox0=\hbox{}\wd0=#1\ht0=#2\dp0=#3\box0}}
\def\ensurem@th#1{\ifmmode{#1}\else$\m@th #1$\fi}
\def\Mod{\mathord{\operator@font mod}}
\def\Stack{\genfrac{}{}{0pt}{}}
\def\vcentertext#1{\ensurem@th{\vcenter{\hbox{#1}}}}
\def\margintext#1{\leavevmode\marginpar[\hfill\hspace{0pt}#1]{\hspace{0pt}#1}}
\def\textoverset#1#2{\ensurem@th{
        \mathchoice{\overset{\displaystyle     \text{#1}}{\text{#2}}}
                   {\overset{\textstyle        \text{#1}}{\text{#2}}}
                   {\overset{\scriptstyle      \text{#1}}{\text{#2}}}
                   {\overset{\scriptscriptstyle\text{#1}}{\text{#2}}}
        }}
\def\textunderset#1#2{\ensurem@th{
        \mathchoice{\underset{\displaystyle     \text{#1}}{\text{#2}}}
                   {\underset{\textstyle        \text{#1}}{\text{#2}}}
                   {\underset{\scriptstyle      \text{#1}}{\text{#2}}}
                   {\underset{\scriptscriptstyle\text{#1}}{\text{#2}}}
        }}

%****************************************************************************
% macros for supporting EXP-specific constructs

\def\lcrline#1#2#3{\noindent\hbox to 0pt{#1\hss}\hfill{#2}\hfill\hbox to 0pt{\hss #3}}
\def\lhs#1{\hbox to 0pt{$\m@th\displaystyle\hss #1$}}
\def\prespsb#1#2{{\mathchoice{\textstyle\Stack{\hfill #1}{\hfill #2}}
                             {          \Stack{\hfill #1}{\hfill #2}}
                             {          \Stack{\hfill #1}{\hfill #2}}
                             {          \Stack{\hfill #1}{\hfill #2}}
        }}
\def\postspsb#1#2{{\mathchoice{\textstyle\Stack{#1\hfill}{#2\hfill}}
                              {          \Stack{#1\hfill}{#2\hfill}}
                              {          \Stack{#1\hfill}{#2\hfill}}
                              {          \Stack{#1\hfill}{#2\hfill}}
        }}
\def\@overlaybox#1#2{{
        \setbox0=\hbox{$\m@th #2$}
        \setbox1=\hbox{$\m@th #1$}
        \dimen0=\wd0
        \dimen1=\wd1
        \divide\dimen0 by 2
        \divide\dimen1 by 2
        \advance\dimen0 by \dimen1
        \dimen2=\ht0
        \dimen3=\ht1
        \advance\dimen2 by -\dp0
        \advance\dimen3 by -\dp1
        \divide\dimen2 by 2
        \divide\dimen3 by 2
        \advance\dimen2 by -\dimen3
        \hbox to \wd0{\box0\kern-\dimen0\raise\dimen2\box1\hss}
        }}
\def\overlaybox#1#2{\math@atom{#2}{\@overlaybox{#1}{#2}}}

%****************************************************************************
% macros and column-type definitions for converted tables

\def\@BeginMinCellSize{\bgroup\setbox0=\hbox\bgroup}
\def\@EndMinCellSizeL#1#2#3{\egroup\ifdim\wd0<#1\wd0=#1\fi\ifdim\ht0<#2\ht0=#2\fi\ifdim\dp0<#3\dp0=#3\fi\box0\egroup}
\def\@EndMinCellSizeC#1#2#3{\egroup\ifdim\wd0<#1\setbox0=\hbox to #1{\hfill\unhbox0\hfill}\fi\ifdim\ht0<#2\ht0=#2\fi\ifdim\dp0<#3\dp0=#3\fi\box0\egroup}
\def\@EndMinCellSizeR#1#2#3{\egroup\ifdim\wd0<#1\setbox0=\hbox to #1{\hfill\unhbox0}\fi\ifdim\ht0<#2\ht0=#2\fi\ifdim\dp0<#3\dp0=#3\fi\box0\egroup}

\newcolumntype{L}[3]{>{\@BeginMinCellSize}l<{\@EndMinCellSizeL{#1}{#2}{#3}}}
\newcolumntype{C}[3]{>{\@BeginMinCellSize}c<{\@EndMinCellSizeC{#1}{#2}{#3}}}
\newcolumntype{R}[3]{>{\@BeginMinCellSize}r<{\@EndMinCellSizeR{#1}{#2}{#3}}}

\def\CAlign#1#2{{\setbox0=\hbox{#1}\setbox1=\hbox{#2}\ifdim\wd0>\wd1\wd1=\wd0\else\setbox0=\hbox to\wd1{\hfill\unhbox0}\fi\box0\box1}}

%****************************************************************************
% macros for tabs

\def\LTab#1{\>#1}
\def\CTab#1{\>\hbox to 0pt{\hss #1\hss}}
\def\RTab#1{\>\hbox to 0pt{\hss #1}}

%****************************************************************************
% macros used in conjunction with \includegraphics

% \GraphicOutCrop macro
% #1 = left out-cropping measurement
% #2 = right out-cropping measurement
% #3 = top out-cropping measurement
% #4 = bottom out-cropping measurement
% #5 = \includegraphics*[...][...]{...}
\def\GraphicOutCrop#1#2#3#4#5{{\setbox0=\hbox{\hskip #1{#5}\hskip #2}\dimen0=\ht0\advance\dimen0 by #3\ht0=\dimen0\hbox{\raise #4\box0}}}

% \GraphicBorder macro
% #1 = thickness of border
% #2 = box to border
\def\GraphicBorder#1#2{{\setlength{\fboxsep}{0pt}\setlength{\fboxrule}{#1}\fbox{#2}}}

%****************************************************************************
% definitions for certain Windows ANSI characters

\def\textbackslash{\texttt{\char92}}
\def\nbhyphen{\nobreakdash-}
\def\onequarter{\ensurem@th{^1\kern-.25em/\!_4}}
\def\onehalf{\ensurem@th{^1\kern-.25em/\!_2}}
\def\threequarters{\ensurem@th{^3\kern-.25em/\!_4}}
\def\cents{\textrm{\rlap/c}}
\def\florin{}
\def\currency{}
\def\perthousand{}
\def\trademark{}
\def\feminine{}
\def\masculine{}
\def\basequote{}
\def\dbasequote{}
\def\lguillemet{}
\def\rguillemet{}
\def\lguillemets{}
\def\rguillemets{}
\def\Eth{}
\def\thorn{}
\def\Thorn{}

%****************************************************************************
% definitions for certain EXP symbols

\def\sqbullet{\rule[.1ex]{.8ex}{.8ex}}
\def\spacesign{\texttt{\char32}}
\def\EXP{\textrm{EXP}}
\def\lddots{{\mathinner{\mkern1mu\raise1pt
            \vbox{\kern7pt\hbox{.}}\mkern2mu
            \raise4pt\hbox{.}\mkern2mu\raise7pt\hbox{.}\mkern1mu}}}
\def\larrow{{\hspace{-.8pt}\ensurem@th{\blacktriangleleft}\!\vcenter{\hrule width4pt height.4pt depth0pt}}}
\def\rarrow{{\vcenter{\hrule width4pt height.4pt depth0pt}\!\ensurem@th{\blacktriangleright}\hspace{-.8pt}}}
\def\extarrow{{\vcenter{\hrule width6pt height.4pt depth0pt}}}
\def\ltarrow{{\hspace{-.8pt}\ensurem@th{\blacktriangleleft}\!\vcenter{\hrule width4pt height1.6pt depth0pt}}}
\def\rtarrow{{\vcenter{\hrule width4pt height1.6pt depth0pt}\!\ensurem@th{\blacktriangleright}\hspace{-.8pt}}}
\def\exttarrow{{\vcenter{\hrule width6pt height1.6pt depth0pt}}}
\def\nlbullet{{\hspace{-.45pt}\mathchar"020F\hspace{-.45pt}}}
\def\nlcircle{{\hspace{-.45pt}\mathchar"020E\hspace{-.45pt}}}
\def\creturn{}
\def\hazardous{}
\def\pgram{}
\def\mcAbox{}
\def\mcBbox{}
\def\mcCbox{}
\def\mcDbox{}
\def\mcEbox{}
\def\mcFbox{}
\def\mcTbox{}
\def\mcbox{}
\def\mcanswer{}

%****************************************************************************
% empty definitions for Cyrillic macros
% comment-out these definitions if you are using a Cyrillic package

\def\cyr{}
\def\Cdprime{}
\def\Cprime{}
\def\cdprime{}
\def\cprime{}

\endinput
% end of file 'exptex.sty'
