MathJax no longer respects \newcommand definitions from questions in other posts


I realize this is actually the opposite of the old \def definitions linger, which states some very valid why \newcommand should usually not be global, so this request will probably be or . Therefore this :

What is the proper way to provide mathjax \newcommands 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 an option to accept global \newcommands 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...

• I suppose you mean the \curls 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. Apr 6 '17 at 6:58
• Are you perchance using Ilmari Karonen's Stack Overflow Unofficial Patch (SOUP), which includes a client-side "fix" to the global definitions bug? (See this meta.math post.) Apr 6 '17 at 6:59
• @arjafi Oh, I do. Never noticed that "fix" before. Thanks :) Apr 6 '17 at 7:06
• I'm voting to close this question as off-topic because it's caused by the Stack Overflow Unofficial Patch Apr 6 '17 at 7:07
• You can just delete your question... Apr 6 '17 at 7:34
• Well, I don't think it should be closed or deleted. I believe this question might be helpful for other people.
– Surb
Apr 6 '17 at 9:25
• Tobias Kienzler and @arjafi: I agree with Surb's comment that it is possible that this question could be useful for other users and it is better to keep it here. In my opinion a better option than closing would be expanding arjafi's comment to an an answer. (In that way when somebody faces the same problem and finds this post, the information will be displayed more prominently.) Apr 20 '17 at 4:10