I currently use a macro:
\newcommand{\abs}[1]{\left\lvert #1 \right\rvert}
in order to write absolute values, but I'm finding that when I combine this with \hat then the height is modified in an undesirable way:
\lvert \hat{x} \rvert, \quad \left\lvert \hat{x} \right\rvert, \quad \lvert \hat{\psi} \rvert, \quad \left\lvert \hat{\psi} \right\rvert
The first three all have equal height on the absolute values, but the last is significantly higher. I can only presume this is something unique to the symbol \psi with \hat as opposed to a generic letter (in this case x). Is there any way around this without defining another macro (e.g. \normalabs without the \left and \right) or is there a better way to handle this?
MWE:
\documentclass{article}
\usepackage{amsmath}
\newcommand{\abs}[1]{\left\lvert #1 \right\rvert}
\begin{document}
\[
\lvert \hat{x} \rvert, \quad \left\lvert \hat{x} \right\rvert, \quad \lvert \hat{\psi} \rvert, \quad \left\lvert \hat{\psi} \right\rvert
\]
\end{document}


\left...and\right...? How about the same as the others...simply\lvertand\rvert? – Steven B. Segletes Dec 10 '20 at 00:36