# Setting vertical space for displayed formula [duplicate]

Possible Duplicate:
How to globally change the spacing around equations?

In a paragraph such as:

start text $...$ end text


How do you adjust the vertical gap between the text and the formula?

I've tried:

\setlength{\belowdisplayskip}{-5mm}
\setlength{\abovedisplayskip}{-5mm}
\setlength{\belowdisplayshortskip}{-5mm}
\setlength{\abovedisplayshortskip}{-5mm}


But this doesn't appear to do anything.

With many thanks.

• Try with \AtBeginDocument{\setlength{\belowdisplayskip}{-5mm} \setlength{\abovedisplayskip}{-5mm} \setlength{\belowdisplayshortskip}{-5mm} \setlength{\abovedisplayshortskip}{-5mm}}. I would use rubber lengths. – Gonzalo Medina Dec 17 '12 at 16:16
• Negative values? – egreg Dec 17 '12 at 16:24
• Wouldn't you want \addtolength instead of \setlength? – Manuel Dec 17 '12 at 16:26
• – Stefan Kottwitz Dec 17 '12 at 16:32