When I try using underbrace across alignment tabs, like so
\begin{align*}
\underbrace{1 && 2 && 3 && 4}_{small} && 5 && 6 && 7 && 8
\end{align*}
I get an error, which is no too surprising.
Is there an easy way to implement the above?
Specifically, I am looking for an option to put an underbrace under some elements of an align environment when those elements are spread across several (contingent) alignment tabs. I would want the spacing between tabs not to be affected by the addition of the underbrace.
The result should look something like this:
Equivalent solutions not using the align environment are also welcome.
Edit: ideally, I would still want a solution using something like align because I might have to repeat this kind of construction on multiple lines and would want to maintain alignment between the tabs.
For instance, I might want to do something like:
(the above image is taken from David Carlisle's answer)





