First, I'm really bad at Latex and only interacting with it to format some things for a bookdown project. I was trying to change the afterskip for chapter, section and subsection and the only thing that worked for me was this thread that I rewrote with some trial and error like this:
\makeatletter
\renewcommand\chapter{\@startsection {chapter}{0}{\z@}%
{5ex \@plus -1ex \@minus -.2ex}% <beforeskip>
{1ex \@plus.2ex}% <afterskip>
{\normalfont\Huge\bfseries\SS@chapnumfont}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-5ex \@plus -1ex \@minus -.2ex}% <beforeskip>
{1ex \@plus.60ex}% <afterskip>
{\normalfont\Large\bfseries\SS@sectfont}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-4ex\@plus -1ex \@minus -.2ex}% <beforeskip>
{1ex \@plus .2ex}% <afterskip>
{\normalfont\large\bfseries\SS@subsectfont}}
\makeatother
The afterskip is fine but now other behaviour of chapter is gone, like a new page before every new chapter. Where can I find how it is defined? Tried to download the sectsty package but didn't understand anything really. Or is there an easier way to set afterskip without loosing other behaviours?
\chapterusually is not defined using\@startsection. Maybe you should consider to either use a package liketitlesecto change the chapters, section etc. or use a class likememoirorscrbookthat provides configuration of such commands. Please also read the manuals of the packages. – cabohah Sep 01 '23 at 12:34