How do I modify the distance between the end of a section and the header of the next section in a Latex document?
You can configure the style of section headings, including spacing, using the titlesec
package. There's a 'compact' option for simple reduction of space, or you can specify specific values using the more advanced options (see the documentation on the linked page for the gory details).