Text FormattingFont Style in \tableofcontents

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Font Style in \tableofcontents

Post by QwareeqMathematics »

Hi all ;

How do I change the regular font style in section name to bold style ? of \tableofcontents

For Example :

Code: Select all

I Preliminaries  .......Bold (Ok)
I.1 Definitions  .......Regular ( I need to change it )
I.1.1 Important Definitions ........Regular ( I don't need to change it now , but I'm curious how to change it , since may be I will need it later)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Font Style in \tableofcontents

Post by gmedina »

Hi,

you could use the tocloft package. In the preamble, add something like the following:

Code: Select all

\usepackage{tocloft}
\renewcommand\cftsecfont{\bfseries}
Refer to the package documentation to learn all the features it offers to customise the Toc, Lof and LoT.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Re: Font Style in \tableofcontents

Post by QwareeqMathematics »

Really nice ;)

Thx
Post Reply