1

I need to only have bfseries on the numbers that indicate the section and not the subsection, like this:

enter image description here

I have tried the following commands, but still, I cant get it:

\renewcommand{\mtcfont}{\small}

\renewcommand{\mtcSfont}{\small}
\renewcommand{\mtcSSfont}{\small}
\renewcommand{\mtcSSSfont}{\small}

mwe:

\documentclass{book}

\usepackage{minitoc}

\begin{document}

\dominitoc% Initialization
\tableofcontents

\chapter{bla}
\minitoc% Creating an actual minitoc

\section{blubb}

\section{foo}

\end{document}

enter image description here

NaveganTeX
  • 2,630

1 Answers1

2

With the help of the tocloft package you can control the style of every single element of the table of contents. To make the chapter headings non bold but keep the corrensponding page numbers bold, we can redefine \cftchapfont as shown in the following example:

\documentclass{book}

\usepackage{tocloft} 
\renewcommand{\cftchapfont}{\normalfont} % non bold chapter header

\usepackage{minitoc}

\begin{document}

\dominitoc% Initialization
\tableofcontents

\chapter{bla}
\minitoc% Creating an actual minitoc

\section{blubb}

\section{foo}

\end{document}
leandriis
  • 62,593
  • Is it actually the size of the font of the Tex document? I mean, I am working with a book class 11pt a4paper. By doing what you did I think the size of the font i.e. \normalfont is smaller than those 11pt. – NaveganTeX Nov 05 '19 at 07:28
  • @NaveganTeX: To be honest, I don't see any difference. Could you please upload a screenshot showing the difference in font sizes? – leandriis Nov 05 '19 at 08:13