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 used to fix the \overline command to get a conjugate complex number for I think the line does not so satisfy me by its length. You may noticed something like:


could turn fine by:


The \bar command don't have any profit in this situation.

How can I creat a command without cocerning the specific letter to get appropriate line width?

share|improve this question

You can try the following. It measures the difference in width between the upright (\mathrm) and the normal math character. The overline is set over a phantom box of the size of the upright symbol. It is then moved to the right with the difference in width between the two characters. It will work for super and subscripted symbols also





\[\oversymb{N} + \oversymb{F} + \oversymb{C}\]
\[\oversymb{A} + \oversymb{a} + \oversymb{B} + \oversymb{b} + \oversymb{i}\]

The result is

enter image description here

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.