6

In my LaTeX template, I define the chapter and section TOC entry with the titletoc package:

\titlecontents{chapter}[0pt]{\vspace{.1\baselineskip}\bfseries}
    {\thecontentslabel\hspace{2.8mm}}{}
    {\hspace{.5em}\titlerule*[5pt]{$\cdot$}\contentspage}

But I don't know how to apply this to the listing environment.

I guess it would be:

\titlecontents{listing}[0pt]{\vspace{.1\baselineskip}\bfseries}
    {\thecontentslabel\hspace{2.8mm}}{}
    {\hspace{.5em}\titlerule*[5pt]{$\cdot$}\contentspage}

But I am wrong. Does anyone know how to do that? I need to ensure that the TOC entry style is consistent.

Marco Daniel
  • 95,681
pythonee
  • 2,567

0 Answers0