I have two pieces of TeX-code producing almost the same (except numbering) results. Both outputs are desired. However, they contain an ugly thorn \hspace*{-7mm}
. I need this command as I am trying to get proper alignment for \Big[
and +\sum
from the one hand and for a_i
and +b_i
from another. How can I achieve that output without using that \hspace*{-7mm}
?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat}{3}
G&&{}=&\Big[ && \hspace*{-7mm} a_i \nonumber\\
&&&&&\hspace*{-7mm} + b_i \Big]\nonumber\\
&&&+\sum_{i}&&c_i
\end{alignat}
\begin{equation}
\begin{alignedat}{3}
G&&{}=&\Big[ &&\hspace*{-7mm} a_i\\
&&&&&\hspace*{-7mm}+ b_i \Big]\\
&&&+\sum_{i}&&c_i
\end{alignedat}
\end{equation}
\end{document}