I'm trying to typeset a system of linear equations which has multiple place to be aligned. Below is what I have achieved so far:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
[
\left{
\begin{alignedat}{5}
&x &+& &&y &=& &&0\
2&x &+& 3&&y &=& &&0
\end{alignedat}
\right.
]
\end{document}
As you can see from the above picture, the spacing seems to be a little bit strange (though I cannot tell exactly where is wrong). Is there some way to improve this result? (I'm using alignat in the MWE, but you may also use array or other methods if better result can be gained.)




systemepackage. – mickep Sep 17 '22 at 16:32