[texhax] use of " in LaTeX
Alex Scorpan
scorpan at gmail.com
Wed Jul 19 20:52:37 CEST 2006
> or define a new command such as
>
> \newcommand{\inchsign}{^{\prime\prime}}
> and use it like $123\inchsign$ to spare a bit of typing.
Or
\newcommand\inchsign{\ensuremath{''}}
and use it like
It's 123\inchsign\ long!
to save you from even more typing (no $'s required).
Or, to get rid of the space "\ ", do
\usepackage{xspace}
\newcommand\inchsign{\ensuremath{''}\xspace}
and use it like
It's 123\inchsign long.
(\xspace is smart enough to add a space when needed, but not add one
if the next character is a punctuation mark.)
Alex
More information about the texhax
mailing list