Consider the following example:
\documentclass{article}
\usepackage{amsmath}
\usepackage{tabstackengine}
\stackMath
\setstacktabbedgap{0.5em}
\setstackTAB{ }
\makeatletter
\robustify{\@normalcr} %globally robust
%avoids error but wrong output:
%\def\@parboxrestore{\@arrayparboxrestore\def\\{\protect\@normalcr}}
\makeatother
\usepackage{environ}
\begin{document}
\NewEnviron{LGS}{
\begin{equation*}
\tabbedCenterstack[r]{
\BODY
}
\end{equation*}
}
\begin{LGS}
-2x + y + 3z = 10 + x \\
x + y + z = 6 + 2z\\
3 + 3y + 2z = y - 3z
\end{LGS}
\end{document}
It's output is one line, i.e. the \\ symbols are ignored:
How can I make this work?


amsmathfor this. Why aren't you doing it that way? – cfr Aug 31 '16 at 23:56