How can you have a shorter line there in the math-mode?
Best Answer
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$.
If the expression contains many commas then consider to break it into several math expressions, separated by commas. It reads like a list of math expressions. This way TeX can break the line.
To achieve line breaks after a comma, you could insert \allowbreak after the comma and before the next math symbol. If necessary, leave a blank after \allowbreak.
If you would like to have a document wide solution, you could redefine the comma. One solution, following the tip here would be:
Best Answer
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
Full example:
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