%
% Copyright (C) 2008-2001 by Azzeddine LAZREK. All rights reserved.
%
% varsize.tex
% This file belongs to the CurExt package.
%


%
\newbox\amclbox
\newbox\amchbox
\newbox\amctbox
\newdimen\amwdt
\newread\amrf
\newbox\ambox
\newdimen\amsize
\newif\ifmore
\newwrite\amflparent
\newwrite\amflkashid
\newcount\amnbparent
\newcount\amnbkashid
\newcount\ampos
\newcount\amposinf
\newcount\ampossup
\newdimen\amvalinf
\newdimen\amvalsup
\newdimen\amvalf
\newcount\amposf

%
\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}

%
\AtBeginDocument{
 \ifundefined{annulation}
  \gdef\annulation{}
  \gdef\amarabmath{\amcompatibcurext}
  \gdef\arabmath{\amcompatibcurext}
 \fi
 \ifundefined{amrl} \gdef\amrl{} \fi
 \amdebutparent
 \amdebutkashid
}

%
\AtEndDocument{
 \amresteparent
 \amfinalparent
 \amrestekashid
 \amfinalkashid
}

%
{ \catcode`\#=12
\gdef\amdieze{# }
}
