In a question of mine I used e.g. $\newcommand{curl}{\operatorname{curl}}$
to define $\curl$
being rendered as $\newcommand{curl}{\operatorname{curl}}\curl$. Back when I posted the question, answers and comments to that question where also capable of using the thus declared command. But now, using $\curl$
elsewhere results in a red $\color{red}{\backslash\text{curl}}$.
I realize this bug is actually the opposite of the status-completed old \def definitions linger, which states some very valid why \newcommand
should usually not be global, so this request will probably be status-bydesign or status-declined. Therefore this discussion:
What is the proper way to provide mathjax
\newcommand
s that might help answerers and commenters in typesetting their response?
Should they simply have to copy-paste the definition which might become outdated due to a fix (e.g. in spacing)? Especially comments will suffer from this due to the character limit. Should we feature-request an option to accept global \newcommand
s or something else? A simple $\usefrom{postid}{commandname}$
, e.g. $\usefrom{337971}{curl}$
could also work, though that'd probably be a hassle to implement...
\curl
s in your answer and this comment. I currently see them rendered as one would expect (image of post, image of comment), and see no local definitions in either. $\endgroup$