Reputation: 206
I would like to declare some math operators in my local Mathjax configuration file, so that I could use them in every page.
I find that I could define command as described in the MathJax documentation, Defining TeX macros.
But I couldn't find any reference to use DeclareMathOperator
in a configuration file? Any workaround?
Upvotes: 3
Views: 1354
Reputation: 31
I could achieve what you want with the configuration below:
MathJax.Hub.Config({
TeX: {
Macros: {
sen: ["\\operatorname\{sen\}"],
tg: ["\\operatorname\{tg\}"],
},
},
});
Upvotes: 1