When adding a \bar to a relation the spacing around the relation is removed:



$x > y$ $x \bar{>} y$


So, how does one do this correctly?


The name "relation" is the key: you must tell TeX that you want a math relation with \mathrel:


$x > y$, $x \bar{>} y$, $x \mathrel{\bar{>}} y$

enter image description here

By default > is already a Rel atom, but \bar{>} is turned into an Ord atom, just like x and y, and you find no spacing between them (try x{>}y).

  • 2
    To be extremely fussy, \bar{>} yields an Acc[ent] atom, which, however, is eventually “turned into an Ord atom”, as the answer correctly states, once the accent has been dealt with. – GuM Jul 27 '17 at 9:58

Here are three other possibilities: with the \widebar symbol from mathabx, a simple \overline, and with \stackrel which, by definition, does not remove the relation spacing:



<-6> mathx5 <6-7> mathx6 <7-8> mathx7
<8-9> mathx8 <9-10> mathx9
<10-12> mathx10 <12-> mathx12


$x \mathrel{\widebar{>}} y$

$x \mathrel{\mkern1.8mu\overline{\mkern-1.8mu>\mkern-1.5mu}\mkern1.5mu} y$

$x \stackrel{\raisebox{-0.7ex}[0pt][0pt]{$\relbar$}}{>} y$


enter image description here


Do you really want a bar over > or do you need simply something like this?

\usepackage{amsmath, amssymb}
x \eqslantgtr y

enter image description here


Not a general answer for the problem of getting a bar over a relation symbol, but a specific solution for < and >. Using \mathrel around the construction is necessary anyway.

The idea here is to rotate \leq and \geq by 180 degrees. However, \mathrel{\bar{<}} and \mathrel{\bar{>}} might be better, depending on the intended meaning of the symbol.





$a\barlt b\bargt c$ $a\leq b \geq c$

$a\leq b\geq c$



enter image description here


Generally, < > = are called as relational operators, LaTeX some spaces are fixed for relational operators, if you give this symbol into braces, then those spaces are removed, so give the tag within \mathrel command, e.g, $x > y$ $x \mathrel{\bar{>}} y$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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