I'm using this code in LaTeX:
$\vec{s}^{'}$
The result:

As you see, the position of ' isn't good. How can I have a appropriate position?
I'm using this code in LaTeX:
$\vec{s}^{'}$
The result:

As you see, the position of ' isn't good. How can I have a appropriate position?
it seems that there isn't any "nice" way to handle this. the first four attempts failed miserably. only the last output is passable, and the code is ugly.
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[
\vec{s}' \quad
{\vec{s}}' \quad
\vec{s}{}' \quad
{\vec{s}}{}' \quad
\vec{s}^{\,\prime}
\]
\end{document}

\vec{s}\,' is simpler markup, although perhaps the space is a little too big compared to your last
– David Carlisle
Mar 27 '15 at 20:34
'in a superscript. How about\vec{s}'? – Manuel Mar 27 '15 at 18:35^{'}is always wrong. – egreg Mar 27 '15 at 18:44\vec{s}'is same. – user2991243 Mar 27 '15 at 19:12Sand arrow. – user2991243 Mar 27 '15 at 19:13{\vec{s}}'. – barbara beeton Mar 27 '15 at 19:35\vec{s}{}'-- and i agree that this does leave a lot to be desired. – barbara beeton Mar 27 '15 at 19:40\vec{s}^{\,\prime}, by the way, the results of my testing (finally) didn't get anything that looked quite like what's in your example, so presumably document class and packages matter. – barbara beeton Mar 27 '15 at 19:47