Problem:

How do I make chapter titles bold in the below MWE?

Minimal working example:

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[titles]{tocloft}

\begin{document}

\renewcommand{\cftchapfont}{\normalfont}
\renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\cftdotsep}{1}

% Organisational level that receives a numbers
\setcounter{secnumdepth}{2}

% Levels are: 0 - chapter, 1 - section, 2 - subsection, 3 - subsubsection
\setcounter{tocdepth}{2}

\tableofcontents

% Creates a chapter, section and subsection
\chapter{Chapter 1}
\section{Section 1}
\subsection{Subsection 1}

% Creates a chapter, section and subsection
\chapter{Chapter 2}
\section{Section 2}
\subsection{Subsection 2}

\end{document}


This changes the chapter titles, leaders and page numbers to bold since it would be unusual to want the titles in bold but not the accompaniments. However, if you just want the titles in bold for whatever reason, simply revert the other 2 lines to your original code. The comments explain which line changes which thing.

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[titles]{tocloft}
\renewcommand{\cftchapfont}{\normalfont\bfseries}% titles in bold
\renewcommand{\cftchappagefont}{\normalfont\bfseries}% page numbers in bold
\renewcommand{\cftdotsep}{1}
\begin{document}

\setcounter{secnumdepth}{2}

\setcounter{tocdepth}{2}

\tableofcontents

\chapter{Chapter 1}
\section{Section 1}
\subsection{Subsection 1}

\chapter{Chapter 2}
\section{Section 2}
\subsection{Subsection 2}

\end{document}


# EDIT

As Mico points out, if this is all there is to it, just removing the lines setting the font to \normalfont will reinstate the default formatting, and you just need to and the dot fill:

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[titles]{tocloft}
\renewcommand{\cftdotsep}{1}
\begin{document}

\setcounter{secnumdepth}{2}

\setcounter{tocdepth}{2}

\tableofcontents

\chapter{Chapter 1}
\section{Section 1}
\subsection{Subsection 1}

\chapter{Chapter 2}
\section{Section 2}
\subsection{Subsection 2}

\end{document}

• @Mico Well, it depends what else is going on in the real file, of course. If this is all there is, you're right. I was assuming there was some reason to have these commands in the first place and, hence, that merely removing them wasn't a solution. – cfr Feb 7 '15 at 23:08
• @Mico Edited. Maybe they got added by the OP as part of trying to add the dot leaders? – cfr Feb 7 '15 at 23:14