[Tex/LaTex] Why is the Zero Vector so Big

delimitersheightvector

The esvect package seems to produce a zero vector with height larger than I would have expected.

The one shown in red is produced using $\norm*{\Vec{0}}$ and seems to have the delimiters resized larger than needed.
I can fix it using either:

  • \norm instead of \norm* or

  • \smash{} as shown in blue,

but wondering why $\norm* seems to think that the zero vector has that much height.

enter image description here

Code:

\documentclass{article}
\usepackage{mathtools}
\usepackage{esvect}
\usepackage{xcolor}

\DeclarePairedDelimiter\norm{\lVert}{\rVert}%
\renewcommand*{\Vec}[1]{\vv{\mathbf{#1}}}%
\newcommand*{\U}{\Vec{u}}
\newcommand*{\V}{\Vec{v}}
\newcommand*{\Z}{\Vec{0}}


\begin{document}
\begin{tabular}{@{}c@{}c@{}c@{}c@{}c@{}}
\tiny\verb|\norm*{\V} |  & 
\tiny\verb|\norm{\Z} |  &
\tiny\verb|\norm*{\Z} | &
\tiny\verb|\norm*{\smash{\Z}} | &
\tiny\verb|\norm*{\U}|
\\
$\norm*{\V}$  & 
$\norm{\Z}$  &
\textcolor{red}{$\norm*{\Z}$} &
\textcolor{blue}{$\norm*{\smash{\Z}}$} &
$\norm*{\U}$
\end{tabular}

\end{document}

Best Answer

This has nothing to do with the package you mention. It's a property of \left...\right. The delimiters are centered w.r.t. the math axis, therefore when larger height is needed, the depth is increased accordingly.

enter image description here

\documentclass{article}
\usepackage{mathtools}
\usepackage{esvect}
\usepackage{xcolor}

\DeclarePairedDelimiter\norm{\lVert}{\rVert}%
\renewcommand*{\Vec}[1]{\vv{\mathbf{#1}}}%
\newcommand*{\U}{\Vec{u}}
\newcommand*{\V}{\Vec{v}}
\newcommand*{\Z}{\Vec{0}}


\begin{document}

$\left\|\overline{0}\right\|$ $\norm*{\Z}$

\end{document}