I want to change the spacing around a section heading so that there is less of a gap between it and the paragraph that follows.
I found the following commands
But that produces the error
Package titlesec Error: Entered in horizontal mode.. Googling has not found any useful answers for that.
Is there another way to change the spacing around headings or is there an easy fix for that error?
Im using fancyhdr and sectsty if that makes a difference.