How can I edit the table of contents?

enter image description here

I get I want to add the word 'Chapter' before the number 1 where it is written chapter name. I want also to add a point line in front of the chapter name like in the section line. I try to use this:

\documentclass[12pt] \usepackage[utf8] \usepackage \usepackage[english] \usepackage \addto\captionsenglish> \titlecontents[5.3em] > <\contentslabel[\textbf<\chaptername~\thecontentslabel>]> <\hspace*<-5.3em>> \contentspage>[\smallskip] \titlecontents[5.3em]  <\hspace*<-5.3em>> <\hfill\contentspage>\titlecontents[6.92em]  <\hspace*<-6.92em>> <\hfill\contentspage>\begin \tableofcontents \newpage \chapter* \addcontentsline \chapter \section \section \subsection \end

enter image description here

But I have this: I have problem with the dotted line and I want that tha chapter nae be bold !

asked Jun 24, 2017 at 13:34

169 2 2 gold badges 2 2 silver badges 12 12 bronze badges

I think we have a lot of questions on this here, please have a look first

Commented Jun 24, 2017 at 13:37

Commented Jun 24, 2017 at 13:39

1 Answer 1

Here is how to do it with titletoc . Note you'll have to redo the formatting of lower level sectioning titles (mainly the horizontal spacing) to make the layout consistent. The lengths may have to be adjusted depending on the document font, the font size, &c.

 \documentclass[12pt] \usepackage[utf8] \usepackage %\usepackage \usepackage[english] \usepackage[showframe] \usepackage \usepackage \addto\captionsenglish< \renewcommand*\contentsname>> \titlecontents [5.5em] %5.3 <\contentslabel[\bfseries\textsc<\chaptername>~\thecontentslabel]\textbf>%\thecontentslabel <\hspace*<-5.5em>\textbf>% unnumbered chapters \contentspage>[\smallskip]% % \titlecontents [5.5em] % i %\thecontentslabel <\hspace*<-5.5em>> \contentspage>%] \titlecontents [7.12em] % %\thecontentslabel <\hspace*<7.12em>> \contentspage> \begin \tableofcontents \newpage \chapter* \addcontentsline \chapter \section \section \subsection \lipsum[1] \chapter \lipsum[2-5] \chapter \lipsum[6] \chapter \end