I'm trying to align the if
's in the following MWE, but also keep the (n times)
alignment intact. Applying the mechanism from Multiple = alignment and from Aligning conditions in cases environment, I still could not get it to work.
\documentclass[12pt,a4paper]{article}
\usepackage[fleqn]{amsmath}
\begin{document}
\begin{equation*}
ns =
\begin{cases}
\quad s + s + ... + s & \text{ (n times) if } n > 0 \\
\quad\quad\quad 0 & \text{ if } n = 0 \\
\quad (-s) + (-s) + ...+ (-s) & \text{ (n times) if } n < 0
\end{cases}
\end{equation*}
\end{document}
Incidentally is there a way to remove the hideous \quad
's ? (Does one question per question apply here?:)