2

How can I increase the space between the Section number and the Section-Title in the TOC? I am using the titletocpackage and my code currently looks like this:

 \contentsmargin[25pt]{0pt}

 \titlecontents{chapter}[\tocsep]
   {\addvspace{4pt}\small\bfseries\sffamily}
   {\hspace*{3pt}\contentslabel[\thecontentslabel]{\tocsep}}
   {}
   {\hfill\thecontentspage}
   []

 \titlecontents{section}[\tocsep]
   {\addvspace{2pt}\small\sffamily}
   {\hspace*{3pt}\contentslabel[\thecontentslabel]{\tocsep}}
   {}
   {\ \titlerule*[.5pc]{.}\ \thecontentspage}
   []

If the number of the section gets high, the number and the text are too close. How can I make it more look like this:

1.23 ~~~~ Title of the Section

than

1.23 Title of the Section?

I am unable to find the answer in the package-documentation...

Thank you

Kathiieee
  • 879

1 Answers1

2

You can increase the space reserved to typeset the number using the mandatory argument for \contentslabel; you are currently using

\contentslabel[\thecontentslabel]{\tocsep}

and I assume \tocsep is a previously defined length. Simply use a greater value; this might require adjusting some of the other lengths used in your current definition.

As a side note, there seems to be some problem with your definitions, but in the absence of a proper minimal working example, not much more can be done. Please in cases like this one, post always a MWE.

Gonzalo Medina
  • 505,128