9

enter image description here

Above is an example produced by S\overline{n}=\overline{n+1}. The overlines are not aligned vertically, which is highly undesirable. Is there any way to produce overlines of the same height throughout a whole formula?

David Carlisle
  • 757,742
4ae1e1
  • 879

1 Answers1

9

If you want the same height, here's a way:

\documentclass{article}
\begin{document}
$S\overline{n\vphantom{+1}}=\overline{n+1}$
\end{document}

but the result is far from pretty. To be honest, I prefer the version you get.

enter image description here

egreg
  • 1,121,712
  • Yeah, it is a little bit off expectation, but it looks okay in 10pt or 11pt. Better than the original one, I mean. – 4ae1e1 Mar 15 '13 at 20:39
  • Of course, the code becomes really annoying both to write and to read, even if shortcut is used. – 4ae1e1 Mar 15 '13 at 20:42
  • 1
    @KevinSayHi TeX is not clairvoyant, so small manual adjustments are sometimes needed when object with different characteristics need to be set next to each other. – egreg Mar 15 '13 at 20:45