Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
LATEX: Hyphens in Math Mode

# LATEX: Hyphens in Math Mode

Ratings: (0)|Views: 100|Likes:

### Availability:

See more
See less

05/16/2012

pdf

text

original

L
A
TEX: Hyphens in Math Mode
Gernot Salzer, salzer@logic.at9 December 2008, updated 1 June 2009
Abstract
Hyphens are sometimes necessary in L
A
TEX’s math mode to structurelong variable or function names. We present four ways to typeset them,two bad ones and two good ones. This discussion seems to be necessarysince the knowledge about how to do it right is not wide-spread.
In math mode, the hyphen symbol is typeset as minus sign, which is too longfor an ordinary hyphen. Moreover, the spacing is wrong.
$\mathit{non-unique}$
non
unique
$\mathrm{non-unique}$
non
unique
$A_{\mathit{non-unique}}$
A
non
unique
\boldmath $A_{\mathit{non-unique}}$
A
non
unique
Putting the hyphen into an mbox improves the situation: the length of thehyphen as well as the spacing is correct. However, size and font don’t changewith the surrounding math.
$\mathit{non\mbox{-}unique}$
non
-
unique
$\mbox{non-unique}$
non-unique
$\mathrm{non\mbox{-}unique}$
non-unique
$A_{\mathit{non\mbox{-}unique}}$
A
non
-
unique
\boldmath$A_{\mbox{non-unique}}$
A
non-unique
Good: deﬁning a mathchar
To obtain a proper hyphen that changes with the surrounding math we deﬁnea new math character:1