Skip to content

Commit 654967b

Browse files
committed
Add docs about new mathmpl options.
1 parent 3b7342c commit 654967b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
More configuration of ``mathmpl:`` sphinx extension
2+
---------------------------------------------------
3+
4+
The `matplotlib.sphinxext.mathmpl` sphinx extension supports two new
5+
configuration options that may be specified in your ``conf.py``:
6+
7+
- ``mathmpl_fontsize`` (float), which sets the font size of the math text in
8+
points;
9+
- ``mathmpl_srcset`` (list of str), which provides a list of sizes to support
10+
`responsive resolution images
11+
<https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images>`__
12+
The list should contain additional x-descriptors (``'1.5x'``, ``'2x'``, etc.)
13+
to generate (1x is the default and always included.)

0 commit comments

Comments
 (0)