I am trying to highlight pieces of a formula with some text on the side, but one of those pieces is multiple lines. The solution that I came up with was to use braces in an array to highlight the groups.
Unfortunately, the result doesn't look very good because the small brace is much narrower and has a different weight than the big brace. How can I fix this so it doesn't look so strange?
One option is to find a different kind of brace that doesn't vary in width when it varies in height. I hoped that ] would do this, but indeed it varies in width.
\documentclass{article}
\usepackage{multirow}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\begin{array}{ll@{}l}
w & \} & \textrm{one element} \\
x & \multirow{2}{*}{\bigg\}} & \multirow{2}{*}{\textrm{two elements}} \\
y & & \\
z & \} & \textrm{another element}
\end{array}
\end{align*}
\end{document}
Here is the result of the code. I would like for the left and right edges of all three braces to be aligned. Here the gap between the brace and one element is much larger than the gap between the brace and two elements.


