I want to make a horizontal brace for mark a part of some numbers as special.
see the picture:
I hope I made it clear…
Best Answer
If you want the number to be not split into two parts, I suggest using pstricks, inserting empty nodes at the relevant places, and joining them by an ‘underbracket’. Here are two possibilities:
After I saw that \upbracefill is used for \underbrace, I felt the need to correct this problem, so I take some time to it and look at it to see what choices do I have. Soon I realized that the only good solution is if I shrink the bounding box of each character, with the help of \setbox. (The only problem was to do this in the characters right state.) Since the most biggest character is the middle one, I arrange their height to that. (The rest of that characters height is aligned to that, however 0pt height is also ok.)
So here is the result using the above \rotatebrace and \midshift macros:
Here is an example:
The example above uses Calibri for normal text and Cambria for mathematical equations, (just as Office 2007 does) as well as for the braces, as in a Hungarian notes of a class of mine. Note: In some viewer in certain zoom it appears as if it would fallen apart, and the join of the characters seems thicker than they should be. This will be OK in print.
The solution below uses \mathclap from the mathtools package.
This command tells TeX that the content of \mathclap should not take up any horizontal space (from TeX's point of view), which means that TeX will not extend the fraction bar to account for the content of the overbrace and underbrace
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
\[
\frac{x^n}{x^m}\cdot \frac{1+{\overbrace{\textstyle \frac{1}{x^n}}^{\mathclap{\geq -\frac{1}{2} \text{ for }|x| \text{ large enough}}}}}
{1+{\underbrace{\textstyle \frac{1}{x^m}}_{\mathclap{\leq 1 \text{ for }|x| \text{ large enough}}}}}
\]
\end{document}
And if you change the \mathclap to \mathrlap, then you get
Best Answer
If you want the number to be not split into two parts, I suggest using
pstricks
, inserting empty nodes at the relevant places, and joining them by an ‘underbracket’. Here are two possibilities: