0

I want to take the bold section and subsection of the TOC. I use the class custom abtntex. I use \tableofcontents* My summary:

enter image description here

As I want:

enter image description here

https://www.overleaf.com/17776192vgbyvhnzxvkn (example code)

8
  • 1
    Welcome to TeX.SX! There are thousands of ways to make sections bold in the table of contents, so we can't know how to remove it without seeing the code that produces it. Please post a minimal working example (MWE) of your document. Commented Jul 11, 2018 at 22:12
  • The first image looks much better and is much easier to read. Why do you want it all squished like that?
    – cfr
    Commented Jul 11, 2018 at 23:04
  • I just want to take the bold section and subsection
    – Davi Luis
    Commented Jul 12, 2018 at 1:12
  • link example of code
    – Davi Luis
    Commented Jul 12, 2018 at 1:22
  • @cfr, he wants it all squished because it looks like word.
    – user9424
    Commented Jul 21, 2018 at 0:35

1 Answer 1

0

I put in overleaf check it:

or use the below coding in your file:

\makeatletter

\def\@secdottedtocline#1#2#3#4#5{%
  \renewcommand\@dotsep{1}
  \ifnum #1>\c@tocdepth \else
    \vskip \z@
    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
     \parindent #2\relax\@afterindenttrue
     \interlinepenalty\@M
     \normalfont\leavevmode
     \@tempdima #3\relax
     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
     {#4}\nobreak
     \leaders\hbox{}\hfill
     \nobreak
     \hb@xt@\@pnumwidth{\hfil\normalfont#5}%
     \par}%
  \fi}



\renewcommand*\l@section{\@secdottedtocline{2}{60pt}{22pt}}
\renewcommand*\l@subsection{\@secdottedtocline{2}{60pt}{22pt}}
\makeatother 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .