Command to include text on first usage only 

Newsgroups: comp.text.tex
> I'm preparing a document that makes mention of a software
> product. The first mention of the product name must be followed by the
> registered symbol, but each subsequent mention does not need to
> include the symbol.

How about:

\newcommand{\product}{Name\textregistered
  \renewcommand{\product}{Name}}

That is, \product redefines itself.

Mogens

Command to include text on first usage only 

Steven> That's short, clever, and works. The only part I don't
Steven> like is that one must mention the command name and
Steven> replacement text twice.
\newcommand\cleverstuff[3]{\newcommand{#1}{#2#3%
   \renewcommand{#1}{#2}}}
\cleverstuff{\product}{Name}{\textregistered}

David Kastrup