@@ -6,10 +6,12 @@ The HTML-CSS output processor
6
6
7
7
The options below control the operation of the HTML-CSS output
8
8
processor that is run when you include ``"output/HTML-CSS"`` in the
9
- `jax` array of your configuration. They are listed with their default
10
- values. To set any of these options, include a ``"HTML-CSS"`` section
11
- in your :meth:`MathJax.Hub.Config()` call. Note that, because of the
12
- dash, you need to enclose the name in quotes. For example
9
+ `jax` array of your configuration or load a combined configuration
10
+ file that includes the HTML-CSS output jax. They are listed with
11
+ their default values. To set any of these options, include a
12
+ ``"HTML-CSS"`` section in your :meth:`MathJax.Hub.Config()` call.
13
+ Note that, because of the dash, you need to enclose the name in
14
+ quotes. For example
13
15
14
16
.. code-block:: javascript
15
17
@@ -25,7 +27,7 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
25
27
26
28
The scaling factor (as a percentage) of math with respect to the
27
29
surrounding text. The `HTML-CSS` output processor tries to match
28
- the en -size of the mathematics with that of the text where it is
30
+ the ex -size of the mathematics with that of the text where it is
29
31
placed, but you may want to adjust the results using this scaling
30
32
factor. The user can also adjust this value using the contextual
31
33
menu item associated with the typeset mathematics.
@@ -86,6 +88,68 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
86
88
(even if it doesn't contain the needed character), so order these
87
89
carefully.
88
90
91
+ .. describe:: mtextFontInherit: false
92
+
93
+ This setting controls whether ``<mtext>`` elements will be typeset
94
+ using the math fonts or the font of the surrounding text. When
95
+ ``false``, the font for ``mathvariant="normal"`` will be used;
96
+ when ``true``, the font will be inherited from the surrounding
97
+ paragraph.
98
+
99
+ .. describe:: EqnChunk: 50
100
+ EqnChunkFactor: 1.5
101
+ EqnChunkDelay: 100
102
+
103
+ These values control how "chunky" the display of mathematical
104
+ expressions will be; that is, how often the equations will be
105
+ updated as they are processed.
106
+
107
+ ``EqnChunk`` is the number of equations that will be typeset before
108
+ they appear on screen. Larger values make for less visual flicker
109
+ as the equations are drawn, but also mean longer delays before the
110
+ reader sees anything.
111
+
112
+ ``EqChunkFactor`` is the factor by which the ``EqnChunk`` will
113
+ grow after each chunk is displayed.
114
+
115
+ ``EqChunkDelay`` is the time (in milliseconds) to delay between
116
+ chunks (to allow the browser to respond to other user
117
+ interaction).
118
+
119
+ Set ``EqnChunk`` to 1, ``EqnChunkFactor`` to 1, and
120
+ ``EqnChunkDelay`` to 10 to get the behavior from MathJax v1.1 and
121
+ below.
122
+
123
+ .. describe:: linebreaks: {}
124
+
125
+ This is an object that configures automatic linebreaking in the
126
+ HTML-CSS output. In order to be backward compatible with earlier
127
+ versions of MathJax, only explicit line breaks are performed by
128
+ default, so you must enable line breaks if you want automatic
129
+ ones. The object contains the following values:
130
+
131
+ .. describe:: automatic: false
132
+
133
+ This controls the automatic breaking of expressions: when
134
+ ``false``, only ``linebreak="newline"`` is processed; when
135
+ ``true``, line breaks are inserted automatically in long
136
+ expressions.
137
+
138
+ .. describe:: width: "container"
139
+
140
+ This controls how wide the lines of mathematics can be.
141
+
142
+ Use an explicit width like ``"30em"`` for a fixed width.
143
+ Use ``"container"`` to compute the size from the containing
144
+ element.
145
+ Use ``"nn% container"`` for a portion of the container.
146
+ Use ``"nn%"`` for a portion of the window size.
147
+
148
+ The container-based widths may be slower, and may not produce
149
+ the expected results if the layout width changes due to the
150
+ removal of previews or inclusion of mathematics during
151
+ typesetting.
152
+
89
153
.. describe:: styles: {}
90
154
91
155
This is a list of CSS declarations for styling the HTML-CSS
@@ -96,18 +160,10 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
96
160
97
161
.. describe:: showMathMenu: true
98
162
99
- This controls whether the MathJax contextual menu will be
100
- available on the mathematics in the page. If true, then
101
- right-clicking (on the PC) or control-clicking (on the Mac) will
102
- produce a MathJax menu that allows you to get the source of the
103
- mathematics in various formats, change the size of the mathematics
104
- relative to the surrounding text, get information about
105
- MathJax, and configure other MathJax settings.
106
-
107
- Set this to ``false`` to disable the menu. When ``true``, the
108
- ``MathMenu`` configuration block determines the operation of the
109
- menu. See :ref:`the MathMenu options <configure-MathMenu>` for
110
- more details.
163
+ This value has been moved to the core configuration block, since
164
+ it applies to all output jax, but it will still be honored (for
165
+ now) if it is set here. See the :ref:`Core configuration options
166
+ <configure-hub>` for more details.
111
167
112
168
.. describe:: tooltip: { ... }
113
169
@@ -128,7 +184,8 @@ would set the ``preferredFont`` option to the :term:`STIX` fonts.
128
184
The delay (in milliseconds) before the tooltop is cleared
129
185
after the mouse moves out of the ``maction`` element.
130
186
131
- .. describe:: offsetX: 10 and offsetY: 5
187
+ .. describe:: offsetX: 10
188
+ offsetY: 5
132
189
133
190
These are the offset from the mouse position (in pixels)
134
191
where the tooltip will be placed.
0 commit comments