% use the thesis style iocode macros...

\def\actiontextcolor{}
\newenvironment{rvcolor}{\textGray\def\actiontextcolor{\textGray}}{\textBlack\def\actiontextcolor{\textBlack}}

\newcommand{\pretext}{Pre:}
\newcommand{\efftext}{Eff:}
\renewcommand{\pretext}{\textbf{pre}}
\renewcommand{\efftext}{\textbf{eff}}

\renewcommand{\ef}[2]{%
\begin{iotab}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
\protect\graybox{#1} \\
%\protect\colorbox{lightgray}{\makebox[\widthoflinefill-4\fboxsep-2\fboxrule][l]{#1}} \\
%\protect\ovalbox{\makebox[\widthoflinefill-2\fboxsep-2\fboxrule][l]{#1}}\\
%\protect\fbox{#1}\\
\efftext \+\+ \>\> #2 \-\-
\end{iotab}%
}

\renewcommand{\ef}[3][]{\def\choosearg{#1}%
\begin{iotab}       
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
\protect\graybox{\actiontextcolor#2} \\
\ifx\choosearg\empty
  \relax
\else
  {\choosearg} \\
\fi
\efftext \+\+ \>\> #3 \-\-%
\end{iotab}%
}

\renewcommand{\prcef}[3]{%
\begin{iotab}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
\protect\graybox{#1} \\
Pre: \+\+ \>\> #2 \-\- \\ 
Eff: \+\+ \>\> #3 \-\-
\end{iotab}%
}

\renewcommand{\prcef}[4][]{\def\choosearg{#1}%
\begin{iotab}
\protect\graybox{\actiontextcolor#2} \\
\ifx\choosearg\empty
  \relax
\else
  \choosearg \\
\fi
\pretext \+\+ \>\> #3 \-\- \\ 
\efftext \+\+ \>\> #4 \-\-
\end{iotab}%
}

\endinput

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "thesis"
%%% End: 
