Inspired by this question on the math StackExchange, suppose you want to typeset the square root of the number 144...4, that is, 1 followed by n 4's. If you write $\sqrt{1\underbrace{44\ldots4}_{n\ \text{times}}}$, as in the current version of the question, you get a huge radical sign that reaches down to match the "n times" text below the number. Is there an elegant way to typeset this so that the radical sign looks like it would with $\sqrt{144\ldots4}$, but also keeping the underset text in the right place?
|
|
|||
|
|
|
I'd recommend the following:
Note that it's syntactically cleaner to place Addendum: This MWE was meant to produce an image of a single formula in which the "root" of the square-root symbol doesn't plunge down unnecessarily far. If this formula were part of some longer running text, a problem would immediately arise: the following line of text and math -- and, depending on the depth of the underbrace contents, even the line after that -- will run smack over the underbrace material. As @egreg notes in his comment and as @Werner shows in his answer, to keep this from happening the formula should be augmented to contain a
|
|||||||||||||
|
|
The "entire" number is typeset, followed by a
|
|||
|
|
|
The command
The |
|||
|
|
|
Would something like this work?
|
|||||||||
|
|
The answers are great but this time I couldn't stop myself to write up an answer though there are 4 answers already. The detail I'm kind of obsessed is the underbraces and their fat appearance when the argument is short. Thanks to the
Notice the brace arms are smoothly rendered instead of a rather crude concatenation. |
|||||
|
|
The standard overkill TikZ solution using the infamous
Note:
References:
Code:
|
||||
|
|






