# xspace example

Suppose you had the following macro,
` \newcommand{\apples}{AppLeS} `
When used within text such as this:
` These statistics also show that the \apples scheduler `
you would get the following:
`These statistics also show that the AppLeSscheduler`
Latex eats up the space between the macro and text. And if you do
` \newcommand{\apples}{AppLeS } `
then you could get an extra space where you don't want it
`In Chapter I, we defined a user-directed AppLeS .`
The solution is the following which takes care of both cases:
` \newcommand{\apples}{\textsf{AppLeS}\xspace} `