TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a command that has been floating around in my standard preamble for a while:


It is meant to mimic the AMS-LaTeX extendible arrow symbols \xleftarrow and \xrightarrow.

It's not perfect for two reasons:

  1. It does not take the optional lower argument like the AMS \xrightarrow[down]{up}
  2. The overlap of the constituent equals signs is slightly visible.

Does anyone have a better command or know of a package with such a command?

share|improve this question
up vote 18 down vote accepted

I think you can more or less copy the definitions from amsmath.sty:



\newcommand*{\xeq}[2][]{\ext@arrow 0055\Relbarfill@{#1}{#2}}


$a \xeq[uuuuu]{vvv} b$

share|improve this answer
Thanks, that works well. – Simon Nov 2 '10 at 10:25

The extarrows package provides \xlongequal[below]{above}.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.