I have
$A-V$
but the line "-" is shown too long:
I would like to have shorter line.
How can you have a shorter line there in the math-mode?
I have
$A-V$
but the line "-" is shown too long:
I would like to have shorter line.
How can you have a shorter line there in the math-mode?
A hyphen in math mode is interpreted as a minus sign. If you mean to have a variable named A-V in math mode, with a hyphen in between, you need to define a “math hyphen” or resort to $A\text{-}V$.
For defining a math hyphen you can do
\DeclareMathSymbol{\mh}{\mathord}{operators}{`\-}
Full example:
\documentclass{article}
\usepackage{amsmath}
\DeclareMathSymbol{\mh}{\mathord}{operators}{`\-}
\begin{document}
$A\mh V$
$A\text{-}V$
\end{document}
The first option, with \mh (or the name you prefer), is better.
Of course, if this is not a variable, but you're referring to two variables in some text, the correct input would be
$A$\nobreakdash-$V$
amsmathand use$A\text{ - }V$– Nov 03 '15 at 23:07$A{-}V$will reduce the spacing, while$A\mbox{-}V$will change the font and therefore not set-as a minus. – Werner Nov 03 '15 at 23:10\textit{A-V}? – Sigur Nov 03 '15 at 23:13$A$\nobreakdash-$V$(requiresamsmath). Or$A\text{-}V$, but it's wrong to begin with. – egreg Nov 03 '15 at 23:14