
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?

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?
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.

\overline{\strut...}– David Carlisle Mar 15 '13 at 20:21\def\mystrut{\rule{0pt}{.6em}}experiment with whatever height you like. – David Carlisle Mar 15 '13 at 20:28