% global definitions and includes

\usepackage{times}
\usepackage{psfig}
\usepackage{epsfig}
\usepackage{alltt}
\usepackage{algorithm}
\usepackage{algorithmic}


\newcommand{\datastruct}[2][]
{\paragraph*{#1}
{\small
\begin{verbatim}
test
\end{verbatim}}
}


% some handy macros by Andrea Cilio
%aC 25.5.1996
\newenvironment{compactdescription}{
        \begin{list}{}{\itemsep -0.1cm}
        \renewcommand{\makelabel}[1]{\mbox{\bf ##1}}
        }
{\end{list}}

%aC 27.5.1996
%\newcounter{compactenum}
%\newenvironment{compactenumerate}{
%        \begin{list}{\arabic{compactenum}.}{
%                \usecounter{compactenum}
%                \itemsep -0.1cm
%                }
%	}        
%{\end{list}}

\newenvironment{compactenumerate}
	{\begin{enumerate}}
	{\end{enumerate}}



%ivo 21.3.01
\newcounter{ce}
\newenvironment{ce}{
        \begin{enumerate}{\arabic{ce}.}{
                \usecounter{ce}
                \itemsep -0.1cm
                }
        }
{\end{enumerate}}

%AC 9.6.1996
\newenvironment{pseudocode}{
%       \vspace*{-0.5e}
        \begin{small}
        \samepage
        \begin{tabbing}
        xxxxx\= xxxx\= xxxx\= xxxx\= xxxx\= xxxx\= xxxx\= xxxx\= xxxx\=
                xxxx\= xxxx\= xxxx\=\kill
        \+\kill
        }
{\end{tabbing}
 \end{small}}

\newlength{\Xa}
\newlength{\Xb}

\newenvironment{align}[1]
{
\settowidth{\Xa}{#1}
\settowidth{\Xb}{#1}
\addtolength{\Xb}{0.5 cm}
\addtolength{\Xa}{1.0 cm}
\begin{list}
{}
{ \leftmargin \Xa \labelwidth \Xb \labelsep 0.5 cm } 
\renewcommand{\makelabel}[1]{ \mbox{\bf ##1 }  \hfill }}
{\end{list}}


