[Tex/LaTex] tableofcontents unbold

boldformattingtable of contentstocloft

enter image description here

I hope default condition – unbold – all words and numbers.

\usepackage{tocloft}
\recommand{secfont}{nomarl}

Best Answer

Update the following macros to not have \bfseries in them: \cfttoctitlefont, \cftsecfont, and \cftsecpagefont:

enter image description here

\documentclass{article}

\usepackage{tocloft}

\renewcommand{\cfttoctitlefont}{\normalfont\Large}% Remove \bfseries from ToC title
\renewcommand{\cftsecfont}{}% Remove \bfseries from section titles in ToC
\renewcommand{\cftsecpagefont}{}% Remove \bfseries from section titles' page in ToC

\begin{document}

\tableofcontents

\clearpage

\section{Problem 1}

\section{Problem 2}

\section{Problem 3}

\end{document}

Another quick-fix would be to set \bfseries to be equivalent to \mdseries (or nothing) within a group that has a limit scope around the ToC only:

{\let\bfseries\mdseries% ...or \let\bfseries\relax
\tableofcontents
}

But this may affect content within the headers/footers as well.

Related Question