27.2 Default Choice of Entries for TOC’s

<..entries for latex tocs..>
 \ifnum \c@tocdepth >-2 part,\fi
 \expandafter\ifx \csname @chapter\endcsname\relax
    \ifnum \c@tocdepth >\z@  section,\fi
 \else
    \ifnum \c@tocdepth >\m@ne chapter,appendix,\fi
    \ifnum \z@>\c@tocdepth\else section,\fi
    \ifnum 1>\c@tocdepth \else subsection,\fi
 \fi
 \ifnum 2>\c@tocdepth \else subsection,\fi
 \ifnum 3>\c@tocdepth \else subsubsection,\fi
 \ifnum 4>\c@tocdepth \else paragraph,\fi
 \ifnum 5>\c@tocdepth \else subparagraph,\fi
 UnDFexyz-_-_-

The paper output looks like this: 
The paper output looks like this: 
 
  5  Miscellaneous 
     5.1  Changing ... 
     ... 
     5.5  Timer quirks 
  References 
 
The MSIE and Netscape output looks like this: 
 
  5 Miscellaneous 
    5.1 Changing ... 
    ... 
    5.5 Timer quirks 
    References 
    About this document 

<..html latex tocs..>+
 \def\:tocs{\noexpand\:tableofcontents}
 -_-_-