I want to typeset a vector with an arrow over the top that has a long subscript. My approach makes the vector arrow center over the letter including its subscripts, but I want the arrow to be centered over the letter only instead. Does anyone have an idea how to achieve this? I guess it will be kind of easy for you folks, but I couldn't find an answer by googling.
My code:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\(\Vec{H_{\mathrm{n,1}}}\)
\end{document}
my output:
I would like the vector arrow to be centered over the "H" instead of the whole thing.
\(\Vec{H}_{\mathrm{n,1}}\)
\vec{H}_{n,1}
(I see no reason for\mathrm
}. By the way,\Vec
is exactly the same as\vec