TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I've got a command defined like this:


And later in my document I use it like this:

\abc{a}, following text

How can I reduce the space after the result of that command:

abca , following text

Thanks in advance for any piece of advice.

share|improve this question
Side note: ifthen package is obsoleted, so in new code is better to use etoolbox's \ifstrequal or other nice commands defined there. – przemoc Jul 12 '11 at 0:50
up vote 9 down vote accepted

Each end of line counts as a space (if not following a command name)


One has always to be careful for spaces in definitions that typeset text.

share|improve this answer
Thank you very much :) – Paulina R Jul 11 '11 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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