File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ documentation if you need it.
7979 Lazy Typesetting <output/lazy >
8080 Line Breaking <output/linebreaks >
8181 Font Support <output/fonts >
82+ Dark Mode <output/dark-mode >
8283 Browser Support <output/browser >
8384
8485.. _toc-configuration-options :
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ The Configuration Block
172172 },
173173 worker: {
174174 path: ' path-to-bundle/a11y/sre' , // full path to bundle/a11y/sre (set automatically)
175- pool : ' speech-workerpool.html ' , // name of worker-pool file to load in an iframe
175+ maps : ' path-to-sre/lib/mathmaps ' , // full path to sre's speech rules
176176 worker: ' speech-worker.js' , // name of worker script to load as a webworker
177177 debug: false , // true to include debugging messages in the browser console about
178178 // the communications between the page, worker pool, and workers.
Original file line number Diff line number Diff line change 1+ .. _dark-mode :
2+
3+ #################
4+ Dark Mode Support
5+ #################
6+
7+ As of v4.1.0, MathJax provides support for browsers using dark-mode
8+ system settings. MathJax dialogs, menus, and expression explorer all
9+ will use a dark-mode color set automatically when dark-mode is enabled
10+ in the system preferences.
11+
12+ This works well when the webpage itself has dark-mode support. But if
13+ not, then the explorer dark-mode colors can make the text somewhat
14+ harder to read. For those pages, MathJax v4.1.1 and later provides an
15+ extension to disable dark mode.
16+
17+ To disable the dark-mode colors, include ``ui/no-dark-mode `` in the
18+ :data: `load ` array of the :data: `loader ` section of your MathJax
19+ configuration object:
20+
21+ .. code-block :: javascript
22+
23+ MathJax = {
24+ loader: {load: [' ui/no-dark-mode' ]}
25+ };
26+
27+
28+ This will prevent dark mode from being used in dialogs and the
29+ explorer; menus will remain in dark mode, however, but that should not
30+ cause an issue, as the menu's dark color scheme also works well in
31+ light mode.
32+
33+ |----- |
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ fonts are stored. For example,
8383 MathJax = {
8484 loader: {
8585 paths: {
86- font : ' /mathjax-fonts' ,
86+ fonts : ' /mathjax-fonts' ,
8787 }
8888 };
8989
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ change.
2525To use the lazy typesetting extension, simply add it to your
2626configuration as follows:
2727
28- .. code-block :: latex
28+ .. code-block :: javascript
2929
3030 MathJax = {
3131 loader: {load: [' ui/lazy' ]}
Original file line number Diff line number Diff line change @@ -61,5 +61,5 @@ sphinxcontrib-qthelp==2.0.0
6161 # via sphinx
6262sphinxcontrib-serializinghtml == 2.0.0
6363 # via sphinx
64- urllib3 == 2.5.0
64+ urllib3 == 2.6.3
6565 # via requests
You can’t perform that action at this time.
0 commit comments