0

I have the following MWE:

\documentclass{article}    
\usepackage{amsmath}

\begin{document}


This example solves a simple equation:   

\begin{equation}
x + 2 = 6 \nonumber
\end{equation}    

\begin{equation}
\Leftrightarrow \nonumber
\end{equation}    

\begin{equation}
x = 4
\end{equation}


It would nice if the spacing between the equations was reduced!

\end{document}

Which looks like this:

enter image description here

I would like to reduce the spacing before and after the equivalence sign. I tried these options but none of them seems to work. Help!

2
  • never leave a blank line before a display math environment or put one after another, Jul 5, 2017 at 11:38
  • cool I did not know that! thanks. can you give that as an answer so I can mark it correct for future reference?
    – user131526
    Jul 5, 2017 at 11:42

1 Answer 1

2

Since you are using the amsmath package, you should probably be using one of its grouping environment for this.

In this case, you want to display consecutive equations, centered with no special alignement. The gather environment does just that:

\begin{gather}
x + 2 = 6 \notag\\
\Leftrightarrow \notag\\
x = 4
\end{gather}

result

You must log in to answer this question.

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