`\newcommand` has to be placed in an equation block.

Mathjax renders only a subset of LaTex (maybe link to allowed constructs, and keywords)