I would like to know if there's some code I can enter in order to find what is the vertical space (in cm or pt) that LaTeX is leaving before and after a theorem.

I'm using



\usepackage{amsfonts, amsthm, amsmath, amssymb}
  • 1
    Do you use a theorem package such as amsthm and/or ntheorem? – Mico May 9 '14 at 13:59
  • Sorry, I forgot to include that information. I'll edit the question. – User X May 9 '14 at 14:00
  • 1
    By default, amsthm uses \topsep, that is, the same spacing used around list environments. – egreg May 9 '14 at 14:02
  • And how can I use \topsep? Basically, I want to be able to manually add a vertical space that is the same as the vertical space before and after a theorem. – User X May 9 '14 at 14:06
  • 3
    \vspace{\topsep}? – egreg May 9 '14 at 14:07

Preposterous example via repeating materaial from Non italic text in theorems, definitions, examples


\newtheoremstyle{crampedthm}% <name>
{\topsep}% <Space above>
{-3pt}% <Space below>
{\itshape}% <Body font>
{3cm}% <Indent amount>
{\bfseries\itshape}% <Theorem head font>
{:}% <Punctuation after theorem head>
{.5em}% <Space after theorem headi>
{}% <Theorem head spec (can be left empty, meaning `normal')>

\newtheorem{cthm}{Tight Theorem}

Roses are red $\iff$ sky is blue such that it is self-evident that this 
theorem is true.

enter image description here


Here's a list of common length macros from Wikibooks. But as I see from the comments, you already know that \topsep is the length macro you need. If you want to know the length of a length macro, all you have to do is place


In your document, which will output the length in pt. Personally, I prefer having metric distances, so I usually just place the pt length into Wolfram-alpha to get an exact conversion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.