web/components/combined.rst
.. _combined-components:
################### Combined Components ###################
Currently there are twelve combined components, whose contents are described below:
|btight|
tex-chtml-componenttex-svg-componenttex-mml-chtml-componenttex-mml-svg-componentmml-chtml-componentmml-svg-component..
tex-chtml-nofont-componenttex-svg-nofont-componenttex-mml-chtml-nofont-componenttex-mml-svg-nofont-componentmml-chtml-nofont-componentmml-svg-nofont-component|etight|
The combined components include everything needed to run MathJax in
your web pages (though some TeX extensions and additional font data
may be loaded dynamically as needed). Each includes at least one
input processor, an output processor, the basic data needed for the
mathjax-newcm font, the contextual menu code, the assistive tools, and
the :ref:startup-component component.
Unlike the other components, these combined components should be
loaded directly via a <script> tag, not through the
:js:data:load array in your MathJax configuration. So a typical use
would be
.. code-block:: html
<script> MathJax = { // your configuration here, if needed }; </script> <script defer src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js"></script>to load the tex-chtml component, for example.
.. warning::
Version 3 used /es5 just before the component name in the URL
for obtaining the MathJax. This is no longer the case for
version 4.
.. _tex-chtml-component:
The tex-chtml component includes the :ref:input/tex <tex-component>
component and the :ref:output/chtml <chtml-component> component
configured to use the mathjax-newcm font, along with the
contextual menu component, the assistive tools, and the startup
component.
The input/tex component includes the :ref:tex-ams,
:ref:tex-newcommand, :ref:tex-require, :ref:tex-autoload,
:ref:tex-configmacros, :ref:tex-textmacros, and
:ref:tex-noundefined extensions, which means that most other
extensions will be loaded automatically when needed, or you can use
the \require macro to load them explicitly.
.. _tex-svg-component:
The tex-svg component includes the :ref:input/tex <tex-component>
component and the :ref:output/svg <svg-component> component
configured to use the mathjax-newcm font, along with the
contextual menu component, the assistive tools, and the startup
component.
The input/tex component includes the :ref:tex-ams,
:ref:tex-newcommand, :ref:tex-require, :ref:tex-autoload,
:ref:tex-configmacros, :ref:tex-textmacros, and
:ref:tex-noundefined extensions, which means that most other
extensions will be loaded automatically when needed, or you can use
the \require macro to load them explicitly.
.. _tex-mml-chtml-component:
The tex-mml-chtml component includes the :ref:input/tex <tex-component> and :ref:mathml-component components and the
:ref:output/chtml <chtml-component> component configured to use the
mathjax-newcm font, along with the contextual menu component, the
assistive tools, and the startup component.
The input/tex component includes the :ref:tex-ams,
:ref:tex-newcommand, :ref:tex-require, :ref:tex-autoload,
:ref:tex-configmacros, :ref:tex-textmacros, and
:ref:tex-noundefined extensions, which means that most other
extensions will be loaded automatically when needed, or you can use
the \require macro to load them explicitly.
.. _tex-mml-svg-component:
The tex-mml-svg component includes the :ref:input/tex <tex-component>
and :ref:mathml-component components and the :ref:output/svg <svg-component> component configured to use the mathjax-newcm
font, along with the contextual menu component, the assistive tools,
and the startup component.
The input/tex component includes the :ref:tex-ams,
:ref:tex-newcommand, :ref:tex-require, :ref:tex-autoload,
:ref:tex-configmacros, :ref:tex-textmacros, and
:ref:tex-noundefined extensions, which means that most other
extensions will be loaded automatically when needed, or you can use
the \require macro to load them explicitly.
.. _mml-chtml-component:
The mml-chtml component includes the :ref:mathml-component component
and the :ref:output/chtml <chtml-component> component configured to
use the mathjax-newcm font, along with the contextual menu
component, the assistive tools, and the startup component.
.. _mml-svg-component:
The mml-svg component includes the :ref:mathml-component component
and the :ref:output/svg <svg-component> component configured to use the
mathjax-newcm font, along with the contextual menu component, the
assistive tools, and the startup component.
.. _tex-chtml-nofont-component:
The tex-chtml-nofont component is the same as the tex-chtml
component, but configured without a font, with the expectation that
your configuration will specify the font explicitly. This reduces the
size of the initial download when the mathjax-newcm font is going
to be replaced by one of the other fonts.
.. _tex-svg-nofont-component:
The tex-svg component is the same as the tex-svg component, but
configured without a font, with the expectation that your
configuration will specify the font explicitly. This reduces the size
of the initial download when the mathjax-newcm font is going to be
replaced by one of the other fonts.
.. _tex-mml-chtml-nofont-component:
The tex-mml-chtml component is the same as the tex-mml-chtml
component, but configured without a font, with the expectation that
your configuration will specify the font explicitly. This reduces the
size of the initial download when the mathjax-newcm font is going
to be replaced by one of the other fonts.
.. _tex-mml-svg-nofont-component:
The tex-mml-svg component is the same as the tex-mml-svg
component, but configured without a font, with the expectation that
your configuration will specify the font explicitly. This reduces the
size of the initial download when the mathjax-newcm font is going
to be replaced by one of the other fonts.
.. _mml-chtml-nofont-component:
The mml-chtml component is the same as the mml-chtml component,
but configured without a font, with the expectation that your
configuration will specify the font explicitly. This reduces the size
of the initial download when the mathjax-newcm font is going to be
replaced by one of the other fonts.
.. _mml-svg-nofont-component:
The mml-svg component is the same as the mml-svg component, but
configured without a font, with the expectation that your
configuration will specify the font explicitly. This reduces the size
of the initial download when the mathjax-newcm font is going to be
replaced by one of the other fonts.
|-----|