Hi
does the below code draw a line whose length equals the length of the
expression a+x and whose height is equal to or greater than the x
height of the tallest glyph in the expression?
Many thanks,
Paul
\documentclass{article}
\usepackage{amssymb}
\begin{document}
$$\overline{\phantom{a+x}}$
\end{document}