File: combined.rst

package info (click to toggle)
mathjax-docs 3.2%2B20240903-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: python: 31; javascript: 28; sh: 20; makefile: 8
file content (172 lines) | stat: -rw-r--r-- 4,896 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
.. _combined-components:

###################
Combined Components
###################

Currently there are eight combined components, whose contents are
described below:

* :ref:`tex-chtml-component`
* :ref:`tex-chtml-full-component`
* :ref:`tex-svg-component`
* :ref:`tex-svg-full-component`
* :ref:`tex-mml-chtml-component`
* :ref:`tex-mml-svg-component`
* :ref:`mml-chtml-component`
* :ref:`mml-svg-component`

The combined components include everything needed to run MathJax in
your web pages.  Each includes at least one input processor, an output
processor, the data needed for the MathJax TeX font, the contextual
menu code, and the :ref:`startup-component` component.

Unlike the other components, these combined components should be
loaded directly via a `<script>` tag, not through the ``load`` array
in your MathJax configuration.  So a typical use would be

.. code-block:: html

   <script>
   MathJax = {
     // your configuration here, if needed
   };
   </script>
   <script type="text/javascript" id="MathJax-script" async
     src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
   </script>

to load the `tex-chtml` component, for example.

-----


.. _tex-chtml-component:

tex-chtml
=========

The `tex-chtml` component loads the :ref:`input/tex <tex-component>`
component and the :ref:`output/chtml <chtml-component>`, along with
the contextual menu component, and the startup component.

The `input/tex` component loads the :ref:`tex-ams`, :ref:`tex-newcommand`,
:ref:`tex-require`, :ref:`tex-autoload`, :ref:`tex-configmacros`, 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-chtml-full-component:

tex-chtml-full
==============

The `tex-chtml-full` component loads the :ref:`input/tex-full
<tex-component>` component and the :ref:`output/chtml
<chtml-component>`, along with the contextual menu component, and the
startup component.

The `input/tex-full` component loads the code for all the TeX
extensions, and configures TeX to use all but the :ref:`tex-physics`
and :ref:`tex-colorv2` extensions.

-----


.. _tex-svg-component:

tex-svg
=======

The `tex-svg` component loads the :ref:`input/tex <tex-component>`
component and the :ref:`output/svg <svg-component>`, along with
the contextual menu component, and the startup component.

The `input/tex` component loads the :ref:`tex-ams`, :ref:`tex-newcommand`,
:ref:`tex-require`, :ref:`tex-autoload`, :ref:`tex-configmacros`, 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-full-component:

tex-svg-full
============

The `tex-svg-full` component loads the :ref:`input/tex-full
<tex-component>` component and the :ref:`output/svg <svg-component>`,
along with the contextual menu component, and the startup component.

The `input/tex-full` component loads the code for all the TeX
extensions, and configures TeX to use all but the :ref:`tex-physics`
and :ref:`tex-colorv2` extensions.

-----


.. _tex-mml-chtml-component:

tex-mml-chtml
=============

The `tex-mml-chtml` component loads the :ref:`input/tex
<tex-component>` and :ref:`mathml-component` components and the
:ref:`output/chtml <chtml-component>`, along with the contextual menu
component, and the startup component.

The `input/tex` component loads the :ref:`tex-ams`, :ref:`tex-newcommand`,
:ref:`tex-require`, :ref:`tex-autoload`, :ref:`tex-configmacros`, 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:

tex-mml-svg
===========

The `tex-mml-svg` component loads the :ref:`input/tex
<tex-component>` and :ref:`mathml-component` components and the
:ref:`output/svg <svg-component>`, along with the contextual menu
component, and the startup component.

The `input/tex` component loads the :ref:`tex-ams`, :ref:`tex-newcommand`,
:ref:`tex-require`, :ref:`tex-autoload`, :ref:`tex-configmacros`, 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:

mml-chtml
=========

The `mml-chtml` component loads the :ref:`mathml-component` component
and the :ref:`output/chtml <chtml-component>`, along with the
contextual menu component, and the startup component.

-----


.. _mml-svg-component:

mml-svg
=======

The `mml-svg` component loads the :ref:`mathml-component` component
and the :ref:`output/svg <svg-component>`, along with the
contextual menu component, and the startup component.

|-----|