I'm trying to write two vectors like this:
Currently I'm using $\vec{p_e,\SI{10}{\hertz},s2}$ bug ig looks like this:
How can I write it correctly?
That means:
- long vector arrow
- italic Hz
I'm trying to write two vectors like this:
Currently I'm using $\vec{p_e,\SI{10}{\hertz},s2}$ bug ig looks like this:
How can I write it correctly?
That means:
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}
\vec{\kern0pt p} or \vec{{}p} is beneficial, in my opinion.
– Manuel
Aug 16 '15 at 15:57
You might want to give a try to the esvect package, which has 8 nice arrow shapes, longer than the arrow that comes with vec. The base command is \vv, and there is a \vv* command for vectors with indices, in order to have a correct spacing between vector and index:
\documentclass{article}
\usepackage{siunitx}
\usepackage[e]{esvect}
\begin{document}
\dots ors $\vv*{p}{e,\SI{10}{\hertz},s2}$
respectively $\vv*{p}{e,\SI{10}{\hertz},d7}$
\end{document}
Using old-arrows package with arrows very closer to the initial image.
\documentclass[12pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{old-arrows}
\begin{document}
$\overrightarrow{ p_{\scriptstyle e,10 Hz,s2}}$ respectively $\overrightarrow{ p_{\scriptstyle e,10 Hz,d7}}$
\end{document}
\vec{p}_{e,\SI{10}{\hertz},s2}? You can use\overrightarrowto get that exact output, but, at least to me, the arrow is too big. – Manuel Aug 15 '15 at 21:06