The following code
A_1, A_2,\underbrace{A_3,\overbrace{A_4}^{\text{over}}, A_5}_{\text{under}}, A_6, A_7
yields
How can I change it to get:
As noted in comments pure mathjax questions are off topic, but if you can phrase the question such that the anwser involves TeX you are Ok,
unfortunately there are various ways in latex of centring some text whilst hiding its width, but none seem to be supported in mathjax, this sort of half works but you have to split the text into two "by hand" and
\( A_1, A_2,\underbrace{A_3,\overbrace{A_4}^{\llap{oooo}\rlap{ver}} A_5}_{\text{under}}, A_6, A_7\)
ooo
in your output than your input, it is helpful to make them match.LaTeX
this problem was solved using themathtools
package and the macro\mathclap
.