From
titlesec manual:
Code: Select all
\titlecontents{<section>}[<left>]{<above>}
{<before with label>}{<before without label>}
{<filler and page>}[<after>]
- above is code for the global formatting of the entry. Vertical material is allowed. At this point the value of \thecontentslabel (see below) is known which enables you to take decisions depending on its value (with the help of the ifthen package). You may use the titlesec \filleft, \filright, \filcenter and \fillast commands.
- before with label is in horizontal mode and it will be used just before the entry title. As in \titleformat, the last command can take an argument with the title.
- before without label is like the above if there is, well, no label.
You specified custom formatting for
before with label (and
label in this case is the number before sectioning units), and it was passed to all numbered entries (i.e. chapter entires which are numbered), but left
before without label empty, so list of tables and list of figures, which aren't numbered, remained "plain". This means that, if you copy the content of the second pair of braces to the third pair too (but probably without horizontal space), you'll achieve similar result as the one I presented in my earlier post.