From 34c8d6494e4eccdf781e194d0f39c7b7f9089f87 Mon Sep 17 00:00:00 2001
From: Paul Jungeblut <paul.jungeblut@gmail.com>
Date: Sun, 19 Nov 2017 22:34:36 +0100
Subject: Removing space around sections and subsections.

---
 latexHeaders/layout.tex | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'latexHeaders/layout.tex')

diff --git a/latexHeaders/layout.tex b/latexHeaders/layout.tex
index b47f1b7..843798a 100644
--- a/latexHeaders/layout.tex
+++ b/latexHeaders/layout.tex
@@ -18,7 +18,12 @@
 
 % Shift the title up to waste less space.
 \usepackage{titling}
-\setlength{\droptitle}{-8em}
+\setlength{\droptitle}{-9em}
+
+% Reduce spaces around sections and subsections.
+\usepackage{titlesec}
+\titlespacing*{\section}{0pt}{0pt}{0pt}
+\titlespacing*{\subsection}{0pt}{0pt}{0pt}
 
 % Nice enumerations without wasting space above and below.
 \usepackage{enumitem}
-- 
cgit v1.2.3

