Hi Stefano, That's already the case but MathJax is not loaded unless there is a math object somewhere in the documents.
Cheers, Moritz On Thu, 2020-01-02 at 05:49 -0800, Stefano David wrote: > Hi, > > On Wednesday, 1 January 2020 13:32:11 UTC+1, Moritz Beber wrote: > > 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 not detected > > by Sphinx and thus MathJax is not automatically included. > > > > So I'm wondering if there is a way for me to force the inclusion of MathJax > > or, alternatively, for Sphinx to detect math in plotly objects? > > Add 'sphinx.ext.mathjax' to the extensions listed in conf.py, like > > extensions = [ 'sphinx.ext.mathjax' ] > > HTH, > Stefano > > > > > -- > > You received this message because you are subscribed to a topic in the Google > Groups "sphinx-users" group. > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sphinx-users/0cDKO35c5IQ/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > sphinx-users+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/a93d58ee-f390-48fe-ba4e-1d3f66833f84%40googlegroups.com > . > -- 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 sphinx-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/2e64689552490cc64baa616e7b3f43d4a7dd3a0a.camel%40gmail.com.