3

The following code

A_1, A_2,\underbrace{A_3,\overbrace{A_4}^{\text{over}}, A_5}_{\text{under}}, A_6, A_7

yields

before

How can I change it to get:

after

closed as off-topic by jub0bs, egreg, Paul Gessler, user13907, Przemysław Scherwentke Oct 18 '14 at 23:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – jub0bs, egreg, Paul Gessler, Community, Przemysław Scherwentke
If this question can be reworded to fit the rules in the help center, please edit the question.

  • While mathjax uses LaTeX syntax, it uses Javascript and HTML's DOM model rather than TeX technology, making it mostly off topic for this site. You might try instead searching among the questions tagged with mathjax on StackOverflow, or in the official mathjax-users Google group. – jub0bs Oct 18 '14 at 22:26
  • you've more ooo in your output than your input, it is helpful to make them match. – David Carlisle Oct 18 '14 at 22:26
  • Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. – Martin Schröder Oct 18 '14 at 22:29
  • In LaTeX this problem was solved using the mathtools package and the macro \mathclap. – skpblack Oct 18 '14 at 22:36
4

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\)

Not the answer you're looking for? Browse other questions tagged or ask your own question.