I'd like to put some formula over the tilde in math mode and adjust the tilde length to the length of that formula. It seems that \widetilde{}
is almost what I need, however it puts the formula below the tilde. Is there a way to actually put the formula above?
An example of the formula to put above is:
\widetilde{(p_1',p_2') \in C}
Edit: I wasn't exactly clear with the expected effect. I'd like to have tilde in the middle of line (like \sim
does), however with the formula above.
Best Answer
I took my answer at Big tilde in math mode and made two changes: 1) I changed it from an overstack to an understack; and 2) I increased the vertical stacking gap to
\LMpt
, which is 1pt scaled to the local mathstyle.If, by some chance, you actually wanted the text over the tilde (rather than the tilde under the text), that is also easy: