TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I place a underbrace in a subscript?


does not typeset correctly (the 3's are not subscript sized)

share|improve this question
Thanks - the answer below worked great! – Bart Snapp Nov 16 '10 at 2:20
up vote 6 down vote accepted

How about a quick and simple I_{2,(\underbrace{\scriptstyle3,3,3,3,3}_5)}?

share|improve this answer

Jan already gave a good answer. However, I'd say it's a real weakness of \underbrace that you have to do this manually. (One might even call it a bug.) Here's a surprisingly complicated redefinition of \underbrace that automatically inserts \scriptstyle if needed.


One of the problems I had to overcome is very similar to this question of mine: The underscore must go inside the mathpalette (if present).

share|improve this answer
I'll add something like this to unicode-math when I tackle the other under/over brace issues. Thanks! – Will Robertson Nov 16 '10 at 14:04
@will: luatex seems not to have a problem here, the digits are in script style already with no other modifications (it seems an issue confined to the plain tex definition of underbrace) – Khaled Hosny Nov 16 '10 at 15:13
@Khaled yeah, I was more referring to the terrible brokenness of these in xetex. – Will Robertson Nov 16 '10 at 15:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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