labeling parts of an equation

2009-02-14 Thread Micha Feigin
I want to label parts of an equation (such as with overset).
There are two problems when using overset
1. If equation elements are of different height then labels come out in
different heights
2. If the label is wider than the equation element it ruins spacing (the
equation gets spaces around the element

Is there a better way to do it?

For example
I_{\mathbf{p}}^{bf}=\overset{\mbox{normalization}}{\overbrace{\frac{1}{W_{\mathbf{p}}^{bf\sum_{\mathbf{q}\in\mathcal{S}}\overset{\mbox{space}}{\overbrace{G_{\sigma_{s}}\left(\left\Vert
 \mathbf{p}-\mathbf{q}\right\Vert 
\right)}}\overset{\mbox{Intensity}}{\overbrace{G_{\sigma_{r}}\left(\left\Vert 
I_{\mathbf{p}}-I_{\mathbf{q}}\right\Vert \right)}}I_{\mathbf{q}}

If you paste this into a math environment you will see that it just comes out
wrong


Re: labeling parts of an equation

2009-02-14 Thread Uwe Stöhr

Micha Feigin schrieb:


I want to label parts of an equation (such as with overset).
There are two problems when using overset
1. If equation elements are of different height then labels come out in
different heights


When it is important that they all are in the same height, then use a vertical phantom inset. This 
is described in sec. 3.7 and used in sec. 5.2 of LyX's math manual that you find in the Help menu.



2. If the label is wider than the equation element it ruins spacing (the
equation gets spaces around the element


This can be solved with the \mathclap trick that is described in sec. 10.2 of 
the Math manual.

Attached is a LyX file with possible solutions.

regards Uwe


newfile5.lyx
Description: application/lyx


labeling parts of an equation

2009-02-14 Thread Micha Feigin
I want to label parts of an equation (such as with overset).
There are two problems when using overset
1. If equation elements are of different height then labels come out in
different heights
2. If the label is wider than the equation element it ruins spacing (the
equation gets spaces around the element

Is there a better way to do it?

For example
I_{\mathbf{p}}^{bf}=\overset{\mbox{normalization}}{\overbrace{\frac{1}{W_{\mathbf{p}}^{bf\sum_{\mathbf{q}\in\mathcal{S}}\overset{\mbox{space}}{\overbrace{G_{\sigma_{s}}\left(\left\Vert
 \mathbf{p}-\mathbf{q}\right\Vert 
\right)}}\overset{\mbox{Intensity}}{\overbrace{G_{\sigma_{r}}\left(\left\Vert 
I_{\mathbf{p}}-I_{\mathbf{q}}\right\Vert \right)}}I_{\mathbf{q}}

If you paste this into a math environment you will see that it just comes out
wrong


Re: labeling parts of an equation

2009-02-14 Thread Uwe Stöhr

Micha Feigin schrieb:


I want to label parts of an equation (such as with overset).
There are two problems when using overset
1. If equation elements are of different height then labels come out in
different heights


When it is important that they all are in the same height, then use a vertical phantom inset. This 
is described in sec. 3.7 and used in sec. 5.2 of LyX's math manual that you find in the Help menu.



2. If the label is wider than the equation element it ruins spacing (the
equation gets spaces around the element


This can be solved with the \mathclap trick that is described in sec. 10.2 of 
the Math manual.

Attached is a LyX file with possible solutions.

regards Uwe


newfile5.lyx
Description: application/lyx


labeling parts of an equation

2009-02-14 Thread Micha Feigin
I want to label parts of an equation (such as with overset).
There are two problems when using overset
1. If equation elements are of different height then labels come out in
different heights
2. If the label is wider than the equation element it ruins spacing (the
equation gets spaces around the element

Is there a better way to do it?

For example
I_{\mathbf{p}}^{bf}=\overset{\mbox{normalization}}{\overbrace{\frac{1}{W_{\mathbf{p}}^{bf\sum_{\mathbf{q}\in\mathcal{S}}\overset{\mbox{space}}{\overbrace{G_{\sigma_{s}}\left(\left\Vert
 \mathbf{p}-\mathbf{q}\right\Vert 
\right)}}\overset{\mbox{Intensity}}{\overbrace{G_{\sigma_{r}}\left(\left\Vert 
I_{\mathbf{p}}-I_{\mathbf{q}}\right\Vert \right)}}I_{\mathbf{q}}

If you paste this into a math environment you will see that it just comes out
wrong


Re: labeling parts of an equation

2009-02-14 Thread Uwe Stöhr

Micha Feigin schrieb:


I want to label parts of an equation (such as with overset).
There are two problems when using overset
1. If equation elements are of different height then labels come out in
different heights


When it is important that they all are in the same height, then use a vertical phantom inset. This 
is described in sec. 3.7 and used in sec. 5.2 of LyX's math manual that you find in the Help menu.



2. If the label is wider than the equation element it ruins spacing (the
equation gets spaces around the element


This can be solved with the \mathclap trick that is described in sec. 10.2 of 
the Math manual.

Attached is a LyX file with possible solutions.

regards Uwe


newfile5.lyx
Description: application/lyx