11

I'm not completely happy with the construction \overset\leftrightarrow{#1}. There is slightly too much spacing and the arrow heads are too big - making the line spacing a bit too much.

Does anyone have an alternative that they prefer?

Martin
  • 711
Simon
  • 4,262
  • 2
    This answer, http://tex.stackexchange.com/questions/162337/double-headed-vector/162342#162342, may be of interest, depending on your application. – Steven B. Segletes Mar 28 '15 at 11:50

2 Answers2

10

amsmath provides a primitive \overleftrightarrow{...}, but it's even larger than \overset\leftrightarrow{#1}.

You could try the variant MnSymbol provides, which is smaller, but may have unwanted consequences elsewhere.

What about \overset{\text{\tiny$\leftrightarrow$}}{#1}? (That's awkward, and there's probably some way to do without the \text construction, but it seems to work...)

frabjous
  • 41,473
  • Strange... I didn't know about the amsmath primitive. And you're right, it is even bigger than the one that I was complaining about! – Simon Oct 08 '10 at 04:23
  • As you said, the final construct is a bit awkward but it does work and looks good enough for me. Thanks! – Simon Oct 13 '10 at 08:08
1

With the fonts that I'm using I find that \overset{\text{\scriptsize$\leftrightarrow$}}{#1} is the best. The big problem is still that the line thickness is off.

It's quite annoying that there aren't any true solutions to this. For those curious, the possible size options are as follows:

  1. \tiny
  2. \scriptsize
  3. \footnotesize
  4. \small (this appears to be the standard size of \overset)
Werner
  • 603,163
Kevin Morse
  • 253
  • 1
  • 7