Thanks for the tip.
I have removed my mathjax.js file with the definitions of the macros and I
have added the following in my conf.py file.
mathjax_config = {
"extensions": ["AMSmath.js"] ,
"TeX": {
"Macros": {
"bm": ["{\\boldsymbol{#1}}", 1],
"tensor": ["{\\bar{\\bar{#1}}}", 1],
"tensorbs": ["{\\bar{\\bar{\\bm{#1}}}}", 1],
"tensorbf": ["{\\bar{\\bar{\\bm{#1}}}}", 1],
"fieldbf": ["{\\bar{\\bm{#1}}}", 1],
"water": "\\H_{2}O",
},
},
}
Sphinx now interprets my \newcommand correctly and the maths is displayed
correctly.
Thanks
John
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.