<..latex,sty math del..>
\def\({\leavevmode\st:math}
\def\){\ed:math}
\NewConfigure{()}[2]{\def\st:math{#1}\def\ed:math{#2}}
\def\[{\st:Math}
\def\]{\ed:Math}
\NewConfigure{[]}[2]{\def\st:Math{#1}\def\ed:Math{#2}}
\Configure{()}{$}{$}
\Configure{[]}{$$}{$$}
-_-_-
<..amsmath.sty..>
\expandafter\def\csname [ \endcsname{\st:Math}
\expandafter\def\csname ] \endcsname{\ed:Math}
-_-_-
<..more latex math..>
<.latex,sty math del.>
\ifx \a:mth\:UnDef
\expandafter\pend:defIII\csname c:$:\endcsname{%
\ifx \a:mth\:UnDef <.protect (...) math.>\fi
<.fix for tabular.>}
\else
<.protect (...) math.>
<.fix for tabular.>%
\fi
\ifx \a:display\:UnDef
\expandafter\pend:defIII\csname c:$$:\endcsname{%
\ifx \a:display\:UnDef <.protect [...] math.>\fi}
\else
<.protect [...] math.>
\fi
-_-_-
<..protect (...) math..>
\pend:def\({\bgroup\let\a:mth=\empty
\let\b:mth=\empty \let\c:mth=\empty }%
\append:def\){\egroup}%
-_-_-
<..protect [...] math..>
\pend:def\[{\bgroup\let\a:display=\empty
\let\b:display=\empty \let\c:display=\empty }%
\append:def\]{\egroup}%
-_-_-