%%
%% The LaTeX Companion, 3ed
%%
%% Example 2-3-14 on page I-73 in "Typesetting a contents list".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{135.0pt}
%StartShownPreambleCommands

%StopShownPreambleCommands

\begin{document}
\contentsline{section}{\numberline{10}A-Head}{3}{}%
\contentsline{subsection}{\numberline{10.1}B-Head}{3}{}%
\ldots % several more heading lines here (not shown)
\contentsline{subsection}{\numberline{10.9}B-Head}{7}{}%
\contentsline{subsection}{\numberline{10.10}B-Head}{8}{}%
\end{document}