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.