0

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?

egreg
  • 1,121,712
shuhalo
  • 2,545

0 Answers0