52.6 Tables Of Contents

<..ams art, proc..>
 \def\tableofcontents{%
    \ifx\contentsname\empty \else
       \ifx\contentsname\:UnDef \else
 %         \Configure{toToc}{}{section}%
          <.protect from TocAt.>\section*{\contentsname}%
          <.end protect from TocAt.>%
 %         \Configure{toToc}{?}{section}%
    \fi\fi
    \:tableofcontents}
 -_-_-

<..ams book..>+
 \def\tableofcontents{%
    \ifx\contentsname\empty \else
 %      \Configure{toToc}{}{likechapter}%
       <.protect from TocAt.>\chapter*{\contentsname}%
       <.end protect from TocAt.>%
 %      \Configure{toToc}{?}{likechapter}%
    \fi
    \:tableofcontents}
 -_-_-

<..tocs of amsart.cls..>
 <.latex et al tocs.>
 \edef\:TOC{%
    \noexpand\ifx [\noexpand\:temp
       \noexpand\expandafter\noexpand\:TableOfContents
    \noexpand\else
       \noexpand\Auto:ent{<.entries for tocs of amsart.cls.>}\noexpand\fi}
 -_-_-

<..entries for tocs of amsart.cls..>
 \ifnum \c@tocdepth >\m@ne part,\fi
 \ifnum \c@tocdepth >\z@  section,\fi
 \ifnum \c@tocdepth >1    subsection,\fi
 \ifnum \c@tocdepth >2 subsubsection,\fi
 \ifnum \c@tocdepth >3 paragraph,\fi
 \ifnum \c@tocdepth >4 subparagraph,\fi
 UnDFexyz
 -_-_-