\documentclass{standalone}
\usepackage{mathtools}
\begin{document}
\begin{math}
\varepsilon\coloneqq\frac{E_0}{E}
\implies
\left.
\begin{aligned}[t]
\varepsilon E&=E_0\\
E_0&=k\frac{q}{r^2}
\end{aligned}
\right\}
\end{math}
\end{document}
How do I make the brace only be as long as necessary for the equations in the aligned environment? I wish to keep the rest of the formatting.




[t]out fromalignedthen things look nice, but it seems as if the left-most equation implies the equation system. – tambre May 21 '19 at 14:36casesenvironment where the brace is at the right. It is already answered in – May 21 '19 at 14:40casesenvironment has undesirable spacing and requires me to manually enter mathmode for the other side of the equation. Furthermore, I'd presumably have to use a similar hack as in the solution to get it to line up as wanted. – tambre May 21 '19 at 15:06cases, see my answer. Also, LaTeX is designed for mathematics, so please use it mathematically. Hacking should be always avoided – May 21 '19 at 15:07