31.7 Options 1, 2, 3 for LaTeX

\:tempa is everywhere, so we use it to conditionally call to \tableofcontents throug attachments points when tex4ht any of the options is on.

<..latex options 1, 2, 3..>
 \NewConfigure{tableofcontents*}[1]{%
    \def\:tempa{#1}\ifx\empty\:tempa
       \ifx \au:StartSec\:UnDef \else \gdef\:StartSec{\au:StartSec}\fi
    \else
       \edef\auto:toc{#1}%
          \ifx \au:StartSec\:UnDef
             \let\au:StartSec=\:StartSec
             \def\:StartSec{\:tableofcontents
                \global\let\auto:toc=\:UnDef \:StartSec}%
             \pend:def\:tableofcontents{\gdef\:StartSec{\au:StartSec}}%
    \fi  \fi
 }
 -_-_-