Math & Science ⇒ Alignment question about \overbrace{}^{}
Alignment question about \overbrace{}^{}
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Alignment question about \overbrace{}^{}
you could post the code which produces the undesired alignment, so we could help to fix it.
Stefan
Alignment question about \overbrace{}^{}
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: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Alignment question about \overbrace{}^{}
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}
\]