%%
%% The LaTeX Companion, 3ed
%%
%% Example 2-3-8 on page I-65 in "A few design examples".
%%
%% 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{tlc3exareport}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{243.0pt}
%StartShownPreambleCommands
\usepackage{titletoc}
\titlecontents{chapter}[2pc]
  {\addvspace{5pt}}
  {\large\bfseries
   \contentslabel[\hfill
     \thecontentspage]{2pc}\dotfill
   }{}{}
  [\addvspace{2pt}]
\titlecontents{section}[2pc]{}
  {\contentslabel[\hfill
        \thecontentspage]{2pc}%
   \enspace --\enspace }{}{}
\setcounter{tocdepth}{1}
%StopShownPreambleCommands

\begin{document}
\input{partial.toc}
\end{document}
