Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
Please provide us with a minimal working example (MWE) so we can better help you. The ToC depends on the document class and perhaps other packages that you might be loading. –  Werner Sep 1 at 5:26

1 Answer 1

up vote 3 down vote accepted

With the default report and book document classes, use etoolbox to patch \l@chapter and remove the use of \bfseries:

enter image description here

\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:

enter image description here

\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:

enter image description here

\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:

enter image description here

\documentclass{scrreprt}
\setkomafont{chapterentry}{}
\setkomafont{chapterentrypagenumber}{}
\begin{document}
\tableofcontents
\chapter{A chapter}
\section{A section}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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