I want to use something like this:
\newcommand{\favouritealgorithm}{\texttt{Gaussian elimination}}
so that
My favourite algorithm is \favouritealgorithm written in C.
produces
My favourite algorithm is \texttt{Gaussian elimination} written in C.
However, the space after the word "elimination" is omitted. Which macro provides the correct behaviour?
My favourite algorithm is \favouritealgorithm\ written in C.– Sigur Jun 25 '13 at 16:28\xspaceat the end of your definition. – Jun 25 '13 at 16:28is {\favoritealgorithm} wr...– Steven B. Segletes Jun 25 '13 at 16:36