# Boxing 4 equations with a thin gap

Currently i have.

\begin{equation*}
\boxed{
\begin{split}
EQUATION1 \\

\\
EQUATION2 \\
\\
EQUATION3  \\
\\
EQUATION4
}
\end{equation*}


However the gap inbetween looks ridiculous and would like a smaller one, is this possible?

By putting extra newlines (\\) it is expected to get extra vertical spaces between the equations. Simply remove the extra \\ and complete as this example:

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}

\begin{equation*}
\boxed{
\begin{split}
y = x^2 + x -2 \\[-.1cm] % adjust the value as you wish
y = x^2 + x -2 \\[-.1cm]
y = x^2 + x -2  \\[-.1cm]
y = x^2 + x -2
\end{split}
}
\end{equation*}
\end{document}


The output then is:

• But is it possible to have a smaller gap. I want a gap just maybe half a line or so. Simply because exponents and subscripts are a little close otherwise. – iluvLatex Nov 22 '14 at 17:20
• Sure, this is possible by controlling the option of newlines. See my updated answer. – AboAmmar Nov 22 '14 at 17:24