TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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{\abcSpace}{$abc$ }


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).

share|improve this question

marked as duplicate by egreg, Torbjørn T., Marco Daniel, clemens, percusse Jun 6 '13 at 17:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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
up vote 0 down vote accepted

Use macro with {} solves the problem.

\documentclass[11pt, oneside]{article}



Word spacing \abc{} is correct now.

Within brackets: (\abc{}).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.