# No space after the word when I defined a macro, bug? [duplicate]

This question already has an answer here:

I defined a macro but I found the word spacing is gone. Am I missing something?

\documentclass[11pt, oneside]{article}

\newcommand{\abc}{$abc$}
\newcommand{\abcSpace}{$abc$ }

\begin{document}

Word spacing here $abc$ is correct.

Word spacing here \abc is incorrect.

Why do I need to define macro like this \abcSpace in order to have a space?

But within brackets, this space again is not what I want: (\abcSpace).

\end{document}

-

## marked as duplicate by egreg, Torbjørn T., Marco Daniel, cgnieder, percusseJun 6 '13 at 17:45

This is perfectly normal and documented behavior. Use \abc\ is when you want a space. –  egreg Jun 6 '13 at 17:11
Why tex is designed in this way, I thought macro is just replacement. Sadly, it is not. –  Daniel Jun 6 '13 at 17:12
I'd be sad if this weren't documented. It is; spaces after control sequences consisting of letters (like your \abc) are ignored. That's the way it is. –  egreg Jun 6 '13 at 17:14
Thank you, the link you provided is helpful. –  Daniel Jun 6 '13 at 17:15
Why downvote? Even if a duplicate question, it is a common one, and there is a minimal example. (If only all people included them in their questions!) Is the downvote meant to imply 'look harder before asking'? –  jon Jun 6 '13 at 17:26

Use macro with {} solves the problem.

\documentclass[11pt, oneside]{article}

\newcommand{\abc}{$abc$}

\begin{document}

Word spacing \abc{} is correct now.

Within brackets: (\abc{}).

\end{document}

-