Skip to content

Commit c807ee1

Browse files
committed
Merge branch 'v4.1'
2 parents 91901d3 + de3f78e commit c807ee1

7 files changed

Lines changed: 74 additions & 21 deletions

File tree

advanced/typeset.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,7 @@ in memory and a corresponding decrease in performance over time.
108108

109109
To deal with changing content, MathJax provides a function that tells
110110
it to forget about math that it has previously typeset:
111-
112-
.. js:function:: MathJax.typesetClear(elements)
113-
114-
:param HTMLElement[] elements: An optional array of HTML elements
115-
whose typeset math is to be
116-
forgotten. If not given, all math
117-
items are forgotten (i.e., the
118-
entire list of items is removed).
111+
:js:meth:`MathJax.typesetClear()`.
119112

120113
If you are removing a portion of your document that may include
121114
typeset mathematics, you should call this function **before** removing

input/tex/extensions/colorv2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ command, which is a switch that changes the color of everything that
1313
follows it.
1414

1515
This extension is **not** loaded automatically when the `autoload`
16-
extension is used. To load the `color` extension explicitly, add
16+
extension is used. To load the `colorv2` extension explicitly, add
1717
``'[tex]/colorv2'`` to the :data:`load` array of the :data:`loader`
18-
block of your MathJax configuration, and add ``'color'`` to the
18+
block of your MathJax configuration, and add ``'colorv2'`` to the
1919
:data:`packages` array of the :data:`tex` block.
2020

2121
.. code-block:: javascript
2222
2323
window.MathJax = {
2424
loader: {load: ['[tex]/colorv2']},
25-
tex: {packages: {'[+]': ['color']}}
25+
tex: {packages: {'[+]': ['colorv2']}}
2626
};
2727
2828
or, use ``\require{colorv2}`` in a TeX expression to load it
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.. _tex-fontsizev3:
2+
3+
##########
4+
fontsizev3
5+
##########
6+
7+
The `fontsizev3` extension (new in v4.1.2) re-defines the various
8+
font-sizing commands (like ``\tiny``, ``\small``, ``\large``, etc.) to
9+
be the sizes that they were in MathJax v3 and in v4 prior to v4.1.2,
10+
when they were corrected to be consistent with the sizes used in
11+
actual LaTeX. This extension is intended for those sites that have
12+
legacy content where the old sizing values are critical to the layout.
13+
14+
This extension is **not** loaded automatically when the `autoload`
15+
extension is used. To load the `fontsizev3` extension explicitly, add
16+
``'[tex]/fontsizev3'`` to the :data:`load` array of the :data:`loader`
17+
block of your MathJax configuration, and add ``'fontsizev3'`` to the
18+
:data:`packages` array of the :data:`tex` block.
19+
20+
.. code-block:: javascript
21+
22+
window.MathJax = {
23+
loader: {load: ['[tex]/fontsizesv3']},
24+
tex: {packages: {'[+]': ['fontsizesv3']}}
25+
};
26+
27+
or, use ``\require{fontsizesv3}`` in a TeX expression to load it
28+
dynamically from within the math on the page, if the
29+
:ref:`tex-require` extension is loaded.
30+
31+
-----
32+
33+
.. _tex-fontsizesv3-commands:
34+
35+
fontsizesv3 Commands
36+
--------------------
37+
38+
The `fontsizesv3` extension implements the following macros:
39+
``\Tiny``, ``\tiny``, ``\scriptsize``, ``\small``, ``\normalsize``,
40+
``\large``, ``\Large``, ``\LARGE``, ``\huge``, ``\Huge``
41+
42+
43+
|-----|

input/tex/extensions/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The main extensions are described below:
3131
empheq
3232
enclose
3333
extpfeil
34+
fontsizev3
3435
gensymb
3536
html
3637
mathtools

input/tex/extensions/textmacros.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,18 @@ Size Control
189189

190190
.. list-table::
191191

192+
* - ``\Tiny``
193+
- tiny size
192194
* - ``\tiny``
193195
- very tiny size
194-
* - ``\Tiny``
195-
- tiny size (non-standard)
196196
* - ``\scriptsize``
197197
- size of super- and subscripts
198+
* - ``\SMALL``
199+
- same as script size
200+
* - ``\footnotesize``
201+
- size of footnotes
202+
* - ``\Small``
203+
- same as footnote size
198204
* - ``\small``
199205
- small size
200206
* - ``\normalsize``
@@ -208,7 +214,9 @@ Size Control
208214
* - ``\huge``
209215
- even larger size
210216
* - ``\Huge``
211-
- largest size
217+
- larger size yet
218+
* - ``\HUGE``
219+
- largest size (non-standard)
212220

213221

214222
Special Characters

input/tex/macros/index.rst

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,8 @@ F
11411141
-
11421142
* - ``\flatfrac``
11431143
- physics
1144+
* - ``\footnotesize``
1145+
- **base**, text-base
11441146
* - ``\forall``
11451147
-
11461148
* - ``\frac``
@@ -1272,8 +1274,10 @@ H
12721274
* - ``\hspace``
12731275
- **base**, text-base
12741276
* - ``\huge``
1275-
- **base**, text-base
1277+
- **base**, text-base, fontsizev3
12761278
* - ``\Huge``
1279+
- **base**, text-base, fontsizev3
1280+
* - ``\HUGE``
12771281
- **base**, text-base
12781282
* - ``\hypcosecant``
12791283
- physics
@@ -1880,7 +1884,7 @@ N
18801884
* - ``\norm``
18811885
- physics
18821886
* - ``\normalsize``
1883-
- **base**, text-base
1887+
- **base**, text-base, fontsizev3
18841888
* - ``\not``
18851889
-
18861890
* - ``\notag``
@@ -2306,7 +2310,7 @@ S
23062310
* - ``\scriptscriptstyle``
23072311
-
23082312
* - ``\scriptsize``
2309-
- **base**, text-base
2313+
- **base**, text-base, fontsizev3
23102314
* - ``\scriptstyle``
23112315
-
23122316
* - ``\searrow``
@@ -2364,6 +2368,10 @@ S
23642368
* - ``\skew``
23652369
-
23662370
* - ``\small``
2371+
- **base**, text-base, fontsizev3
2372+
* - ``\Small``
2373+
- **base**, text-base
2374+
* - ``\SMALL``
23672375
- **base**, text-base
23682376
* - ``\smallfrown``
23692377
- **ams**
@@ -2830,9 +2838,9 @@ T
28302838
* - ``\times``
28312839
-
28322840
* - ``\tiny``
2833-
- **base**, text-base
2841+
- **base**, text-base, fontsizev3
28342842
* - ``\Tiny``
2835-
- **base**, text-base
2843+
- **base**, text-base, fontsizev3
28362844
* - ``\to``
28372845
-
28382846
* - ``\toggle``

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ markupsafe==3.0.3
2626
# via jinja2
2727
packaging==25.0
2828
# via sphinx
29-
pygments==2.19.2
29+
pygments==2.20.0
3030
# via sphinx
31-
requests==2.32.5
31+
requests==2.33.0
3232
# via sphinx
3333
roman-numerals-py==3.1.0
3434
# via sphinx

0 commit comments

Comments
 (0)