Re: [sphinx-users] Is it possible to force inclusion of MathJax?

2020-01-02 Thread Komiya Takeshi
Do you want to know how to make a subclass of math nodes? It's simple knowledge of python. You can do it like following: from docutils.nodes import math class plotly_elements(math): pass That's all. If you'd like to know about that behavior, unfortunately there are no document

Re: [sphinx-users] Is it possible to force inclusion of MathJax?

2020-01-02 Thread moritz . beber
Hello, On Thu, 2020-01-02 at 23:04 +0900, Komiya Takeshi wrote: > mathjax will be loaded only when document contains any math elements. > How about make plotly objects subclasses of math node? Then mathjax > extension will recognize them as math elements. Do you have any pointers (documentation

Re: [sphinx-users] Is it possible to force inclusion of MathJax?

2020-01-02 Thread Komiya Takeshi
Hi, mathjax will be loaded only when document contains any math elements. How about make plotly objects subclasses of math node? Then mathjax extension will recognize them as math elements. As a workaround, you can modify "has_equations" attribute of math domain. But I don't think not a good way

[sphinx-users] Is it possible to force inclusion of MathJax?

2020-01-01 Thread Moritz Beber
This is somewhat related to issue https://github.com/sphinx-doc/sphinx/issues/5497. I have a plotly figure that includes some math and only renders correctly when MathJax is present. You can see what I mean in this nbsphinx issue (https://github.com/spatialaudio/nbsphinx/issues/369). This is