There are several post on multiple alignments, but I cant find a solution regarding my problem.
%%%%% Dokumentenklasse mit verschiedenen Attributen
\documentclass[a4paper, abstracton, bibtotocnumbered,liststotoc,12pt]{scrartcl}
%%%%% Betriebssystemabhängige Eingabedekodierung
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc} %% für Windows
\usepackage[ngerman]{babel}
\usepackage{amsthm}
\usepackage{mathtools}
\newcommand{\matr}[1]{\mathbf{#1}}
\newcommand{\X}{\matr{X}} %Matrix von X
\newcommand{\y}{\matr{y}} %y als voller Vektor
\newcommand{\Xt}{\X^\mathbf{T}} %Matrix von X
\newcommand{\x}{\matr{x}}%Regressor von X
\newcommand{\xt}{\x^\mathbf{T}}%Regressor von X
\newcommand{\betahat}{\hat{\beta}} %betahat
\begin{document}
\begin{flalign*}
\Xt\y-\Xt\X\betahat &= \lambda s\\
\Leftrightarrow \underbrace{\Xt \y}_{p \times 1} &= \underbrace{\vphantom{ \Xt \y } \lambda s}_{p \times 1}, \quad s \in [-1,1]^{p} \\
\intertext{\textnormal{Das $j$-te Element entspricht}}
\xt_{j}\y &= \lambda s_j, \quad \quad s_j \in [-1,1] \Leftrightarrow \lambda s_j \in [-\lambda, \lambda] \\
\Leftrightarrow |\xt_{j}\y| &\leq \lambda, \quad \forall j \in \{1,...,p\}
\end{flalign*}
\end{document}
I am using the following code and I want to multiple align the staments that are following after the comma and \quad. I tried to multilpe align them with && but the space between the equations and the other arguments will be far too large. I roughly want the same space as produced by quad but with an alignment of the arguments.




\Leftrightarrow) at the beginning of each line. Whether that is because people think it is a bad idea in general or whether they just can't get it done sensibly in LaTeX is probably open for interpretation. – moewe Aug 15 '18 at 11:17alignatis for you:\begin{alignat*}{2} \Xt\y-\Xt\X\betahat &= \lambda s\\ \Leftrightarrow \underbrace{\Xt \y}_{p \times 1} &= \underbrace{\vphantom{ \Xt \y } \lambda s}_{p \times 1}, &&\quad s \in [-1,1]^{p} \\ \intertext{\textnormal{Das $j$-te Element entspricht}} \xt_{j}\y &= \lambda s_j, &&\quad s_j \in [-1,1] \Leftrightarrow \lambda s_j \in [-\lambda, \lambda] \\ \Leftrightarrow |\xt_{j}\y| &\leq \lambda, &&\quad \forall j \in \{1,...,p\} \end{alignat*}– moewe Aug 15 '18 at 11:18