Create a new environment containing nested environments

I have a problem in latex with an interval between equations. The document should be double, but if the equations are double-spaced, there is too much vertical space, especially in matrices and vectors. I found a solution using setpace:

\begin{spacing}{1}
    \begin{align}
         equation
    \end{align}\\[12pt]
\end{spacing}

Where do I need to use \\[12pt]to adjust the interval, because without it the equation sits right on top of the following text. To simplify things, I wanted to create a new environment using:

\newenvironment{myalign}%
    {\begin{spacing}{1}\begin{align}}%
    {\end{align}\\[12pt]\end{spacing}}

However, I keep getting the error: '\ begin {align} ends \ begin {myalign} or similar. I found another post that explains why I am getting this error, but it is not clear to me how to solve the problem.

Any help is greatly appreciated.

+3
source share
1

\begin{align} \end{align} \align \endalign .

+3

All Articles