In LaTeX, I would like to define
\newcommand{\ACROeg}{e.\,g.}
This is a sample sentence, \ACROeg it does not make much sense.
but this yields
This is a sample sentence, e.\,g.it does not make much sense.
i.e. the space between \ACROeg and it was gobbled.
I do not want to use \ACROeg{} or \ARCOeg\. Can I define the macro in a way so it does not read into the next token?
\ACROegin your example isi, which is not read by the macro. By the way, the definition should be\newcommand{\ACROeg}{e.\,g.\@}so that the period is not considered sentence ending. I'm sure the problem has already appeared on the site. – egreg Oct 15 '14 at 21:03xspace.sty, would{e.\,g.\@\xspace}the best choice? And why don't I but\@aftere.? – arney Oct 15 '14 at 21:11\ACROeg{}. No\@is needed aftere.because it is not followed by an interword space. – egreg Oct 15 '14 at 21:19