Possible Duplicate:
\newcommand and spacing
In my latex document I have defined a new command to force a consistency in naming of a product I talk in my document:
\newcommand{\fancyName}{\emph{ABC}}
However I experience a problem that:
\fancyName is a wonderfull and fancy product.
is compiled to:
ABCis a wonderfull and fancy product.
without a space after \fancyName in the compiled text.
Does anybody know how to define a new command and avoid this issue?
{}
after the macro, insert an explicit space using\
,~
(unbreakable), or\space
or add\xspace
at the very end. It will add a space if the macro isn't used before a punctuation mark.