[tex]\stackrel{\textstyle\frown}{\mathrm{AB}}[/tex] \( \stackrel{\textstyle\frown}{\mathrm{AB}} \)
(Obviando el \mathrm, la diferencia es poco importante.)
[tex]\stackrel{\textstyle\longleftrightarrow}{\mathrm{AB}}[/tex] \( \stackrel{\textstyle\longleftrightarrow}{\mathrm{AB}} \)
Pero mejor parece [tex]\overleftrightarrow{AB}[/tex] \( \overleftrightarrow{AB} \)
Similarmente, \( \overline{AB} \)
En el botón LaTeX la segunda opción es Tutorial, donde explícitamente tienes la primera. Copiando la idea sale la segunda.
Tal vez haya mejores.
Saludos.