Hi guys,
I have a question about how to make the overbrace line up on the same horizental. See the attached example. You can see because of the exponent, the overbrace over these components cannot be aligned. Can anyone have some good idea to sort it out? Many thanks
BTW, why can't I post the sample image like jpg (I can't use upload attachment privillage?)
Donald
Math & Science ⇒ Alignment question about \overbrace{}^{}
Alignment question about \overbrace{}^{}
Last edited by haha8888 on Sun May 22, 2011 2:25 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Alignment question about \overbrace{}^{}
Hi Donald,
you could post the code which produces the undesired alignment, so we could help to fix it.
Stefan
you could post the code which produces the undesired alignment, so we could help to fix it.
Stefan
LaTeX.org admin
Alignment question about \overbrace{}^{}
Hi Stefan,
Thanks for the suggestion. My code is as follows:
You see the result is not so good. I want make the overbrace line up horizentally ( on the same level). I set the same height "2" in the raisebox. The height should be the same for two boxes, why did I get different height in the result? Thanks!
Donald
Thanks for the suggestion. My code is as follows:
Code: Select all
\[
\begin{array}{l}
\overbrace{\fbox{\raisebox{0ex}[2\height]{$\alpha^{(1)}\overrightarrow{e}_1^{(1)}$,}}}^{n_{1}}
\overbrace{~~\fbox{\raisebox{0ex}[2\height]{$0^{n_{1}}$,}}~~}^{n_{1}}
\end{array}
\]
Donald
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Alignment question about \overbrace{}^{}
Hi Donald,
you could use an invisible vertical line in the argument of \overbrace, such as:
Stefan
you could use an invisible vertical line in the argument of \overbrace, such as:
Code: Select all
\[
\begin{array}{l}
\overbrace{\rule{0pt}{6ex}\fbox{\raisebox{0ex}[2\height]{$\alpha^{(1)}\overrightarrow{e}_1^{(1)}$,}}}^{n_{1}}
\overbrace{\rule{0pt}{6ex}~~\fbox{\raisebox{0ex}[2\height]{$0^{n_{1}}$,}}~~}^{n_{1}}
\end{array}
\]
LaTeX.org admin
Re: Alignment question about \overbrace{}^{}
Thanks so much. It's just what I want!