TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following:



Unfortunately, I did not properly define the makeWord macro. How do I fix this?

share|improve this question
up vote 12 down vote accepted

\#1 is the two tokens \# (which would typeset a #) and 1 so is a syntax error as the first argument of \newcommand.



Note this will make a mathord token if used in math. If you want to make an operator like \log it needs to be


or use the amsopn \DeclareMathOperator command.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.