What is prety what is hacky what is the difference?
Fact is (not sure), nobody has predefined it so far. You need to know the length of the longest element (like for a decent description environment), and get this length over to the part, where you need it. You could calculate the width of the actual content, substract tht from the longest content and just add the space that you need. But who does that, if you can have something with zero width?
Following a similar solution. The mechanism is cleaner (safer) from a UX point of view, but it is really doing pretty much the same.
Code: Select all
\documentclass[12pt,letterpaper,twoside]{book}
\usepackage{lmodern}
\usepackage{mathtools}
\newlength{\casealign}
\newcommand{\printLongest}[1]{\settowidth{\global\casealign}{$#1$}#1}
\newcommand{\continueToAlign}[1]{\mathrlap{#1}\hspace{\casealign}}
\begin{document}
\begin{align}
a(t) &=
\begin{cases}
\, a_0 \: e^{\lambda \, t}, &\text{if $x < 0$.} \\[12pt]
\, \alpha \, t^p, &\text{if $x > 0$.} \\
\printLongest{\alpha\beta \sum\lim \mathrm{This is not math},} & \text{if friday}
\end{cases}
\intertext{Bla bla bla bla bla :}
H(t) &=
\begin{cases}
\continueToAlign{\, \lambda, }
&\text{if $x < 0$.} \\[12pt]
\, \displaystyle{\frac{p}{t}}, &\text{if $x > 0$.}\\
\end{cases}
\end{align}
\end{document}
Disclaimer: If the stuff is larger at the bottom, you are screwed.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.