1

When I do this, there is a large space between the text and the equations. I was wondering if there was a way to solve this. I am using amsmath. Thanks a lot

\textbf{Solution}

\begin{center}
    \begin{equation*}
        (1+x)(1+y)\geqslant{4}
    \end{equation*}
\end{center}
Werner
  • 603,163
SFSH
  • 491

2 Answers2

6

The large space is due to the center environment, which adds vertical unneeded space and does nothing useful, since equation center its contents by default.

So, simply remove the center environment.

MWE

\documentclass{article}
\usepackage{amsmath,amssymb}

\begin{document}
\textbf{Solution}

\begin{equation*}
    (1+x)(1+y)\geqslant{4}
\end{equation*}
\end{document} 

Output

enter image description here

I would also suggest to remove the blank line before the equation environment, so to have the following result:

enter image description here

karlkoeller
  • 124,410
0

The equation environment (including equation*) already centres its contents, so there's no need for center. Additionally, center adds vertical space, as discussed in [When should we use \begin{center} instead of \centering?]When should we use \begin{center} instead of \centering?) Only use

\begin{equation*}
  <stuff>
\end{equation*}

If you need to adjust vertical spacing around sparse document elements, then you could consider adjusting certain skips as discussed in How can I decrease spaces between equations? However, that would not be necessary in this case...

Werner
  • 603,163