I have a set of equations where some are coupled with a brace and some text. I want all the equations aligned. Something like the following ASCII art:
S = LR
L = Ls | for s in {a, b}
Rs = sR /
I tried this:
\begin{align*}
S &= LR \\
\left.
\begin{gather*}
L &= L_s\\
R_s &= sR
\end{gather*}
\;\;\right\}\;\;\text{for } s \in \{a, b\}\\
\end{align*}
But it doesn't compile (because & is not expected inside a gather* environment). Is it possible to do this?

gather*withaligned. Remark: NO*. – nickpapior Apr 24 '12 at 12:48