[Tex/LaTex] Looking for a command to create the geometry line symbol (\overline with arrows on both ends)

geometrysymbols

I need a way of encoding the geometry line symbol. $\overline{AB}$ gives me the line segment symbol and $\overrightarrow{AB}$ gives me the ray symbol, I need a way to get a bar over the letters that has arrows on both ends. $\overrightleftarrow{AB}$ does not work.

Thanks!

Best Answer

Use $\overleftrightarrow{AB}$ with the mathtools or amsmath packages.