I saw on this web site two codes to get vertical alignment at the equals signs in consecutive systems of equations. One of them uses the systeme package and the \mathrlap command for the quantity on the right side of each equals sign. Another uses the array environment. It is more cumbersome, but I would like to be more familiar with this environment. Here is the code.
{\settowidth{\widestright}{${}=#1$}
\left\{
\begin{array} {@{}r@{}>{\raggedright\arraybackslash${}}p{\widestright}<{$}@{}}}
{\end{array}
\right.}
(It was implemented as part of a \newcommand in the preamble. I do not want it in the preamble. So, I know that I will not need the ${}=#1$.) I understand that the \settowidth command sets the value of a length command equal to the width of the text argument. I have not seen it used with \widestright except in this code. What does \settowidth{\widestright} instruct LaTeX to typeset? What is
>{\raggedright\arraybackslash${}}p{\widestright}<{$}
in the array environment instructing LaTeX to print? In particular, what are \arraybackslash, \widestright, and > and < instructing LaTeX to print? How do I implement it - or an appropriate modification of it - to get the alignment at the equals signs?
Here is the code for the systems of linear equations.
\documentclass[10pt]{amsart}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{mathtools,array}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\begin{document}
\begin{gather*}
\left\{
\begin{array}{@{}c@{}c@{}c@{}c@{}c}
-3x & {}-{} & 6y & {}={} & -15 \\
3x & {}+{} & 4y & {}={} & 6
\end{array}
\right.
, \\
\left\{
\begin{array}{@{}r@{}c@{}l}
-3x - 6y & {}={} & -15 \\
-2y & {}={} & -9
\end{array}
\right.
, \\
\left\{
\begin{array}{@{}r@{}c@{}l}
x + 2y & {}={} & 5 \\
y & {}={} & 9/2
\end{array}
\right.
, \\
\left\{
\begin{array}{@{}r@{}c@{}l}
x & {}={} & -4 \\
y & {}={} & 9/2
\end{array}
\right.
.
\end{gather*}
\end{document}

