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}
3
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. May 8, 2015 at 4:41
  • Too many complications. {\bf Solution} $$(1+x)(1+y)\geqslant 4$$.
    – wipet
    May 8, 2015 at 6:37
  • 2
    @wipet as you know that is the wrong markup for latex, why do you suggest it? May 8, 2015 at 9:11

2 Answers 2

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

2
  • 1
    but not just that, you shouldn't have a blank line before display math either May 8, 2015 at 9:12
  • Right @David, I'll add it in the answer May 8, 2015 at 9:31
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...

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.