# Remove space below section in memoir

I'm growing tired of the extra space below \section and \subsection in the memoir class - it's way too big.

How can I remove it - like one use \vspace{-20pt}\$. This must be done for all \section and \subsection.

What I have right now:

\documentclass[12]{memoir}

%\usepackage[danish]{babel}
\usepackage[bf, small, raggedright, compact]{titlesec}
\usepackage{lipsum}

\begin{document}
\chapter{Chapter title}


I've not used memoir but a cursory glance at texdoc memoir suggests \setafterSskip{ skip } is what you want with S being sec or subsec and skip being whatever length you want. –  David Carlisle Dec 4 '13 at 13:48
Just remember to set it to say 1sp, since anything non-negative makes it an inline section title. 1sp is very very small, but not equal to zero. –  daleif Dec 4 '13 at 14:15
Okay, it appears that this is not what I need cause absolutely NOTHING happens... I think I need to make \linespread{1} after each \section and \subsection and back to 1.5 when the text starts. Should I do a redefine of the \section or can I fix it in another way? –  Limro Dec 4 '13 at 14:26
Your example minus titlesec plus \linespread{1.5} \setaftersecskip{1sp} seems fine by me in that there is no extra space below the \section it is the same as between lines of text. Remember that titlesec overwrites the memoir interface. –  daleif Dec 4 '13 at 14:46