In math mode, I tried to type in $$\overline{a}+\overline{b}$$, and this happened:
Obviously, the lines over a and b look different. How do I fix this?
I wouldn't worry about the height and use \bar instead of \overline. Compare the results below: odd numbered lines have no adjustment, even numbered lines have \vphantom{b} to raise the bar; the first two lines use \overline, the next ones use \bar.
\documentclass[twocolumn]{article} % twocolum just for a smaller picture
\usepackage{amsmath}
\begin{document}
\begin{gather}
\overline{a}+\overline{b} \\
\overline{a\vphantom{b}}+\overline{b} \\
\bar{a}+\bar{b} \\
\bar{a\vphantom{b}}+\bar{b}
\end{gather}
\end{document}
aandbare different widths. They're different heights becauseaandbare different heights. Which are you trying to "fix"? – Teepeemm May 21 '17 at 00:15awitha\mathstrut(andb\mathstrut) ora\vphantom{b}(preferred). – Peter Grill May 21 '17 at 00:40$$. – cfr May 21 '17 at 01:44\[...\]instead of$$...$$. See here: https://tex.stackexchange.com/questions/503/why-is-preferable-to – CarLaTeX May 21 '17 at 03:26\bar{a}and\bar{b}; don't worry about the height. – egreg May 21 '17 at 06:58