|
| 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 | +|-----| |
0 commit comments