Left right vector in LaTeX

Symbol Command
$\overleftrightarrow{AB}$ \overleftrightarrow{AB}
$\underleftrightarrow{AB}$ \underleftrightarrow{AB}
$\overlinesegment{AB}$ \overlinesegment{AB}
$\underlinesegment{AB}$ \underlinesegment{AB}

LaTeX vector

LaTeX