In some cases where weird spacing can happen, it is recommended to add (possibly empty) braces, e.g.
- Using
\underbraceand similar (link):\[ { \underbrace{a}_{b} } + c \] - Aligning relation symbols on the right side with
amsmathpackage:
or\begin{align*} {} & a \\ \iff{} & b \end{align*}
(Bonus question: Why don't we need to do it if we align on the left side, like\begin{align*} a ={} & b + c + d \\ {} & + e + f \end{align*}&=instead of& {}=?)
Are there any other use cases of braces in math mode one should know of?
{...}constructs a sub_mlist which behaves like a mathord with regards to spacing. Personally I wouldn't use{...}but rather be explicit by using\mathord{...}. – Henri Menke Apr 15 '22 at 14:39{}will result in an empty noad node which also behaves like a mathord. – Henri Menke Apr 15 '22 at 14:40&because the left-aligned columns already start with an empty group. I've described the working ofaligna bit in this answer of mine. (Actually the answer is aboutalignedbut the main points are the same.) – campa Apr 15 '22 at 17:13