Fang Hung-chien
Fang Hung-chien

Reputation: 206

How to use DeclareMathOperator in MathJax configuration file?

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

Answers (1)

ProfCaju
ProfCaju

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

Related Questions