1

In the MWE

\documentclass{article}

\setlength\abovedisplayskip{0pt}
\setlength\belowdisplayskip{0pt}

\def\someText{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.}

\begin{document}

\someText
\[
1+1=2
\]
\someText

\end{document}

why is there such space around the equation 1+1=2? What am I missing?

enter image description here

1
  • 1
    You can print \the\abovedisplayskip to see if it has been changed and to what. Commented Jul 21, 2021 at 22:32

1 Answer 1

3

If you look in size10.clo, you find

\renewcommand\normalsize{%
   \@setfontsize\normalsize\@xpt\@xiipt
   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
   \belowdisplayskip \abovedisplayskip
   \let\@listi\@listI}
\normalsize

And LaTeX executes again \normalsize at begin document. If you want to change the values for the skips around displays, you need to patch \normalsize and the other font changing commands you need. The parameters are set for \small and \footnotesize.

3
  • Thanks! What's the aim of \abovedisplayskip if one can't simply set its value?!!
    – Colas
    Commented Jul 21, 2021 at 21:27
  • @Colas You do set it. But since you want it to have different values in different situations…
    – egreg
    Commented Jul 21, 2021 at 21:39
  • Thanks. I got it.
    – Colas
    Commented Jul 21, 2021 at 22:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .