Document ClassesAdjusting the space after section headings in the book class

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
gkamel
Posts: 25
Joined: Thu Oct 30, 2008 1:53 pm

Adjusting the space after section headings in the book class

Post by gkamel »

Hello,

Does anyone know how to change the space after section headings in the book class? I am using a line spacing of 1.5, but this makes the space after section headings (and subsection headings etc) too large.

Many thanks.
George Kamel

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Adjusting the space after section headings in the book class

Post by localghost »

Unfortunately you don't say how you set your line spacing. If not done yet, you should have a look at the setspace package. The described issue then should disappear.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gkamel
Posts: 25
Joined: Thu Oct 30, 2008 1:53 pm

Re: Adjusting the space after section headings in the book class

Post by gkamel »

Thanks for the reply, Thorsten.

Actually, this is the package I am using already, and I just noticed that \setstretch does not affect the space after section headings as you mentioned. But I would like to change the spacing nonetheless, as it's to large for my liking.

Thanks a lot.
George Kamel
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Adjusting the space after section headings in the book class

Post by localghost »

In this case you should take a look at the titlesec package. It provides commands to settings for all heading levels.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
gkamel
Posts: 25
Joined: Thu Oct 30, 2008 1:53 pm

Adjusting the space after section headings in the book class

Post by gkamel »

Thank you very much, Thorsten; titlesec did the job..

Code: Select all

\titlespacing*{<cmd>}{<left sep>}{<before sep>}{<after sep>}[<right sep>]
Kind regards.
George Kamel
Post Reply