0

This question already has an answer here:

Is there any way to define a \newcommand that behaves like a normal word?

I have a few names for Objects, that might change later.

To keep my flexibility i use \newcommand{\superprod}{superPRODUCT}. If later on the name of "superPRODUCT" has to be changed to "uberPr0duct", I just have to change the new command. But it really bothers me, that i have always have to type \superprod\or \superprod{} in my text.

Is there any way to make latex realise that a space has to be inserted after the word (except at the end of a sentence)?

Edit: No real solution, best way:

\newcommand{\superprod}{}% To make sure that \naive isn't already defined    
\def\superprod/{superPRODUCT}

in text:
Lorem \superprod/ ipsum \superprod/.

marked as duplicate by Werner, Gonzalo Medina, user31729, Sean Allred, Claudio Fiandrino May 12 '14 at 14:24

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.

  • Look up xspace package – JLDiaz May 12 '14 at 14:13
  • 6
    I'd stick with manually adding the space if required (not even one of the authors of xspace likes to recommend using it). – Gonzalo Medina May 12 '14 at 14:16

Browse other questions tagged or ask your own question.