I require chapter names unbold in Table of Contents. Please guide me how I unbold the heading of chapter names only in Table of Contents.
1 Answer
With the default report
and book
document classes, use etoolbox
to patch \l@chapter
and remove the use of \bfseries
:
\documentclass{report}
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
\patchcmd{\l@chapter}{\bfseries}{}{}{}% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\makeatother
\begin{document}
\tableofcontents
\chapter{A chapter}
\section{A section}
\end{document}
With tocloft
you need only redefine \cftchapfont
and \cftchappagefont
to some that doesn't include \bfseries
:
\documentclass{report}
\usepackage{tocloft}% http://ctan.org/pkg/tocloft
\renewcommand{\cftchapfont}{}
\renewcommand{\cftchappagefont}{}
\begin{document}
\tableofcontents
\chapter{A chapter}
\section{A section}
\end{document}
memoir
provides similar functionality to that of tocloft
:
\documentclass{memoir}% http://ctan.org/pkg/memoir
\renewcommand{\cftchapterfont}{}
\renewcommand{\cftchapterpagefont}{}
\begin{document}
\tableofcontents
\chapter{A chapter}
\section{A section}
\end{document}
Using KOMA-script, you can \setkomafont
for chapterentry
and chapterentrypagenumber
accordingly:
\documentclass{scrreprt}
\setkomafont{chapterentry}{}
\setkomafont{chapterentrypagenumber}{}
\begin{document}
\tableofcontents
\chapter{A chapter}
\section{A section}
\end{document}