I would like to use characters as variable names and adjust their width to all be the maximum width of a character. This way, brackets around them would align nicely as shown in the example below. Instead of stretching the characters, I would like them to match width by adding whitespace to the left and right of the character. I'm aware of \hphantom{}
but what I need here is to "fill up" the width of one character to that of another.
Example:
\begin{aligned}
&\operatorname{I}[a; c] \\
&\operatorname{I}[w; a] \\
&\operatorname{I}[c; w]
\end{aligned}
Output:
w
, which does not show up in the first line. Do you propose the user provide the letter (w
) for which all widths will be matched, or should the user just always take it to be aw
, since that is the widest lowercase letter?