1

I am writing my thesis using the standard report class. I want the TOC to have bold font for the chapters and the section but not for subsection. I use the following in the preamble

\usepackage{tocloft}
\renewcommand\cftsecfont{\fontsize{14}{16}\selectfont}
\setlength{\cftbeforesecskip}{-12pt}
\renewcommand\cftsubsecfont{\fontsize{10}{12}\selectfont}
\setlength{\cftbeforesubsecskip}{-12pt}
\renewcommand\cftsubsubsecfont{\fontsize{10}{12}\selectfont}
\setlength{\cftbeforesubsubsecskip}{-12pt}

and have attached the output of this below. enter image description here

How to unbold the section and the subsection headings ?

I do not get the desired output if I used the following command

\renewcommand{\cftsecfont}{\normalfont}
3
  • The command for normal font increase the size to the default size and unbolds it but I do not want the default size.
    – Curious
    Jun 17 '16 at 18:58
  • It looks like the sort of customization you are looking for may be offered by the koma-script document classes. I advise trying koma-script report first, and looking up the customization options in the koma-script manual.
    – G.M.
    Jun 17 '16 at 20:07
  • It can also be done with the titletoc package, which comes with titlesec.
    – Bernard
    Jun 17 '16 at 21:08
1

Try

\renewcommand{\cftsecfont}{\fontseries{md}\fontsize{14}{16}\selectfont}
\renewcommand{\cftsubsecfont}{\fontseries{md}\fontsize{10}{12}\selectfont}

If you want the corresponding page numbers to have the same font size (or another size), use

\renewcommand{\cftsecpagefont}{\fontsize{14}{16}\selectfont}
\renewcommand{\cftsubsecpagefont}{\fontsize{10}{12}\selectfont}
9
  • Hi, that removed the bold but again it increased the font size. I want to keep the size but remove the bold.
    – Curious
    Jun 17 '16 at 22:13
  • What is the base size font of your document?
    – Bernard
    Jun 17 '16 at 22:17
  • I am using non-Tex font and using Times New Roman with 12 as the base size
    – Curious
    Jun 17 '16 at 22:18
  • Not a fine choice in my opinion (I mean – Times). Try my modified code.
    – Bernard
    Jun 17 '16 at 22:24
  • It's there in my thesis guideline so I will have to stick to that.
    – Curious
    Jun 17 '16 at 22:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.