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
This can be done with a template:
Create a folder called templates in the Sphinx project directory.
In conf.py, add
templates_path = ["templates"]
In the templates directory, create a file called layout.html with the following contents:
{% extends "!layout.html" %}
{%- block extrahead %}
{% endblock %}
The element will be included in the of every generated HTML page.
The extrahead template block is empty by default. See the Sphinx templating documentation for details.