Adding a javascript script tag some place so that it works for every file in sphinx documentation

后端 未结 5 1069
野的像风
野的像风 2020-12-24 14:59

I am using Sphinx to write some notes. I am using the Mathjax extension for Math in the notes. The default size of the math is little larger than I would like. On the Mathja

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 15:39

    The simplest solution for a conf.py only configuration might be to use the MathJax extension's config value mathjax_config (Available since 1.8). The value of mathjax_config is passed to MathJax.Hub.Config().

    In your specific case, add the following to conf.py:

    mathjax_config = {
        "HTML-CSS": {"scale": 90},
    }
    

提交回复
热议问题