[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] no space after defined \newcommands in LaTeX



on Mon, 31 Mar 2003 03:29:11PM -0800, Stephen A. Witt insinuated:
> On Mon, 31 Mar 2003, Nori Heikkinen wrote:
> 
> > this has been pissing me off recently.  if i define a new command
> >
> > \newcommand{\TM}{Turing machine}
> >
> > and then say in my document
> >
> > ... the \TM defined by blah blah ...
> >
> > i will get the output ``the Turing machinedefined by blah blah.''
> >
> 
> 
> Use the xspace package in Latex.
> 
> 
> 
> \usepackage{xspace}
> 
> 
> \newcommand{\TM}{Turing machine\xspace}

that's exactly what i wanted -- thanks!

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu
    /V\  http://www.sccs.swarthmore.edu/~nori/jnl/
   // \\          @ maenad.net
  /(   )\       www.maenad.net
   ^`~'^
  pgp servers finicky: get my (*new*) key here:
   http://www.maenad.net/geek/gpg/7ede5499.asc
      (please *remove* old key 11e031f1!)

Attachment: pgptNjDGfKhZD.pgp
Description: PGP signature


Reply to: