General ⇒ changing fontsize of chapter or section
changing fontsize of chapter or section
I am a new user in this forum. I want to know that how can I change font size of a chapter of section. I've tried \section{\fontsize{22}{30} Section title}. But there is two problems:
1. The font size of this section in table of contents changed.
2. The font size of section numeral did not change.
Please help
Thank you
=============
Saleh Al - Mamun
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
changing fontsize of chapter or section
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
changing fontsize of chapter or section
welcome to the LaTeX Community Forum!
You did not mention the document class you are using. Some document classes like KOMA classes and the memoir class provide specific commands for changing the fonts of chapter and section names. If you use a standard LaTeX class like report or book then the titlesec package mentioned by Thorsten should be easier than to redefine the class macros, although there is some documentation to read.
Without titlesec you could redefine \section with \@startsection, here is a short description with example: how to change the appearance of the entire section.
By the way, when I use \fontsize I write \selectfont after it. And in general for different settings of chapter or section titles in document and table of contents you could use the optional parameter for \chapter or \section like \section[toc entry]{title} (see sectioning).
Stefan