13

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!

4
  • You can use tex.stackexchange.com/q/14/17423 with \overset to produce what you want. Something like \newcommand\Line[1]{\overset{\leftrightarrow}{#1}}, perhaps (untested) (By the way.... Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format.( Sep 26, 2014 at 16:56
  • 2
    take a look at Partial derivative with rightleftarrow on top of it. (if it is what you want, this question is a duplicate.) Sep 26, 2014 at 17:01
  • Freakin' called it. :) Though, looking at the output, such lines are usually longer in geometry (at least with the professor I studied under). There's definitely a question about lengthening that line, though I can't put my finger on it. A combination of that link and the question I'm thinking of would cover this Q. Sep 26, 2014 at 17:08
  • Almost found something that works: \newcommand{\Line[1]}{\xleftrightarrow[\displaystyle{#1}]{}} The problem is that the line is justified with the text, not the letters. Both the suggestions with \overset don't make the line long enough. Sep 26, 2014 at 18:00

2 Answers 2

18

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

1
  • I think it looks much better with the MnSymbol package. Of course, other symbols look less good with MnSymbol.... Dec 29, 2022 at 13:48
-1

You can use

\overlinesegment{...}

from the the MnSymbol package.

2
  • Not the traditional line segment symbol Oct 9, 2020 at 17:05
  • Thanks, this helped me.
    – JoudaBouda
    Feb 26, 2022 at 18:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .