For the record,align*environments would work if it's packed into a \parbox or minipage. However, one needs to specify the width in that case, and that align* would center the contents. align* is not suitable for this. Better use an inline math block building environment with alignment, such as aligned within $ .... $ or \( ... \).