# Tag Info

3

Try something like this in your preamble: \usepackage{titletoc,ulem} \titlecontents{chapter}[0em]{\smallskip\bfseries}%\vspace{1cm}% {\contentslabel[\uline{\chaptername~\thecontentslabel}]{0em}\hspace{5.6em}\uline}% {\renewcommand\thecontentslabel{\relax}\itshape\uline}%numberless% {\hfill\contentspage}[\medskip]%

1

You are using a KOMA-Script class. So here is a suggestion that needs an uptodate KOMA version (at least v. 3.21) but without tocloft. Note that the next lines of numbered chapter TOC entries are also not indented. The reserved horizontal space for their chapter numbers is 1.5em, but this value can be adjusted if needed. Code: \documentclass[DIV=11,...

1

If the float package is not used, listing 'hi-jacks' the \@starttoc command and 'pretends' to typeset the ToC -- since this is all done in a group, the real ToC is not affected by this. tocloft itself can't change such list of... that are not provided by the package itself or one of the standard classes. The following code changes the \l@lstlisting ...

1

Here is a suggestion using package tocbasic which is part of the KOMA-Script bundle. AFAIK it should supersede package tocstyle from the same author. Note that tocbasic/KOMA-Script version 3.21 or newer is needed. Code: \documentclass[12pt]{book} \usepackage{tocbasic}[2016/06/14]% needs KOMA version 3.21 or newer \DeclareTOCStyleEntry[ linefill=\quad, ...

Top 50 recent answers are included