I want to use a variable name containing dash in TeX equation. However, dash gets interpreted as minus sign. Anyone any idea of how to escape the character?
It does. Thanks for help!
2009-02-15 08:34:58
+1
A:
Put the whole variable name inside \text.
Or better, make a macro for variable names which uses \text. Using a macro will help you get a uniform style that you can easily change later.
starblue
2009-02-15 08:33:43
+1
A:
Type \hbox{-} in TeX equation. It is faster to compile than \text{-}.
Alexey Malistov
2009-06-17 09:28:35
A:
Putting
\catcode`\-=11
as the first declaration in the scope of the equation will make -
into a normal letter character.
Charles Stewart
2009-12-03 06:37:56