[Tex/LaTex] Vector with too short arrow

amsmathmath-modevector

I'm trying to write two vectors like this:

enter image description here

Currently I'm using $\vec{p_e,\SI{10}{\hertz},s2}$ bug ig looks like this:

enter image description here

How can I write it correctly?

That means:

  • long vector arrow
  • italic Hz

Best Answer

As far I have understood the math in the question, the vector is p, the remaining part is just an index to the vector. Therefore, a short vector would be sufficient as shown in the following example. I do not know about e, s2, and d7, but 10 Hz is clearly a number with unit, typeset upright, as already shown in the question and correctly done via \SI{10}{\hertz} with the macro \SI from package siunitx.

\vec{p} is replaced by \vec{{}p} as Manuel has suggested in his comment.

The example:

\documentclass{article}

\usepackage{siunitx}

\begin{document}
  \dots ors $\vec{{}p}_{e,\SI{10}{\hertz},s2}$
  respectively $\vec{{}p}_{e,\SI{10}{\hertz},d7}$
\end{document}

Result

Related Question