# How can I put a symbol or text over another text as shown in the formula in latex by overleaf

I have been trying to look for a solution to this How can I put a symbol or text over another text as shown in the formula in latex by overleaf? Any help would be appreciated.

• For stacking symbols there is the `\overset` macro from the `amsmath` package. Combining that with superscripts is however not trivial; have a look at Simultaneous overset and superscript. Jan 22 '21 at 14:09
• @campa it works! thank you so much Jan 22 '21 at 14:32