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.
tocandlistingsWhat do you want to achieve? Please provide a minimal working example? – Marco Daniel Aug 04 '12 at 16:55\contentsuse{lstlisting}{lol}and then\titlecontents{lstlisting}...should work. – Leo Liu Mar 15 '13 at 17:16