Debian Codegraph @

texmf-dist/tex/generic/tex4ht/mathml.4ht

raw
1 % mathml.4ht (2025-10-17-09:06), generated from tex4ht-mathml.tex
2 % Copyright 2009-2025 TeX Users Group
3 % Copyright 1999-2009 Eitan M. Gurari
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % https://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <https://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2025-10-17-09:06}
21
22 \exit:ifnot{Preamble,%
23 accents,%
24 amsbsy,%
25 amscd,%
26 amsfonts,%
27 amsmath,%
28 amsopn,%
29 amssymb,%
30 amstex,%
31 amstex1,%
32 amstext,%
33 array,%
34 bm,%
35 cancel,%
36 dcolumn,%
37 esvect,%
38 etex4ht,%
39 fontmath,%
40 gauss,%
41 latex,%
42 mathtools,%
43 mhchem,%
44 plain,%
45 rlbabel,%
46 sistyle,%
47 siunitx,%
48 stmaryrd,%
49 subeqnarray,%
50 tex4ht,%
51 ulem,%
52 ushort,%
53 vanilla}
54
55 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56 \ConfigureHinput{Preamble}
57 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
58 \Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
59 \:CheckOption{no-DOCTYPE} \if:Option
60 \Configure{PROLOG}{VERSION,*XML-STYLESHEET}
61 \fi
62 \ifx \a:mathml\:UnDef
63 \NewConfigure{mathml}{1}
64 \Configure{mathml}{}
65 \fi
66 \def\mml:class{\a:mathml class}
67
68 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69
70 \endinput\empty\empty\empty\empty\empty\empty
71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
72
73 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
74 \ConfigureHinput{tex4ht}
75 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
76 \Configure{DviMath}
77 {\a:DviMathML \mathmltrue
78 \ifOption{mml-fonts}{}{\NoFonts}%
79 \IgnoreRule \HCode{<!--l.
80 \the\inputlineno-->}\Tg<\a:mathml math\Hnewline
81 \csname a:math-xmlns\endcsname \Hnewline \a:@math>\a:math
82 \edef\sv:ignore{\if:nopar
83 \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
84 \IgnorePar}
85 {\Tg</\a:mathml math>\EndIgnoreRule
86 \ifOption{mml-fonts}{}{\EndNoFonts}%
87 \mathmlfalse \b:DviMathML \sv:ignore
88 }
89 \NewConfigure{DviMathML}{2}
90 \NewConfigure{math-xmlns}{1}
91 \Configure{math-xmlns}
92 { xmlns="http://www.w3.org/1998/Math/MathML" }
93 \newif\ifmathml \mathmlfalse
94 \newif\ifmtext \mtextfalse
95 \LinkCommand\mtxt:link{\a:mathml mtext,%
96 xlink:type="simple"
97 xmlns:xlink="http://www.w3.org/1999/xlink"
98 xlink:href,
99 id, \mml:class="label",,}
100 \LinkCommand\msp:link{\a:mathml mstyle,%
101 xlink:type="simple"
102 xmlns:xlink="http://www.w3.org/1999/xlink"
103 xlink:href,
104 id, \mml:class="label",,}
105 \let\M:Link\Link
106 \def\Link{\ifmathml
107 \ifmtext \ht:special{t4ht@,}%
108 \HCode{</\a:mathml mtext>}%
109 \expandafter\expandafter\expandafter\mtxt:link
110 \else \expandafter\expandafter\expandafter\msp:link\fi
111 \else \expandafter\M:Link\fi}
112 \let\M:EndLink\EndLink
113 \edef\:temp{\catcode`\#=\the\catcode`\#}
114 \catcode`\#=12
115 \def\EndLink{\ifmathml
116 \ifmtext \ht:special{t4ht@,}%
117 %
118 \Endmtxt:link \HCode{<\a:mathml mtext\Hnewline
119 \mml:class="endlabel">}\ht:special{t4ht@,&#x00A0;}%
120 %
121 \else \HCode{</\a:mathml mstyle><!--endlabel-->}\fi
122 \else \expandafter\M:EndLink\fi}
123 \:temp
124
125 \NewConfigure{math}{1}
126 \NewConfigure{@math}{1}
127 \def\IgnoreRule{\ht:special{t4ht@\string_}}
128 \def\EndIgnoreRule{\ht:special{t4ht@\string_\string_}}
129 \Configure{$$}
130 {\Configure{@math}{%\a:mathml
131 display="block"
132 }\IgnorePar
133 \ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
134 \EndP\DviMath}
135 {\EndDviMath\ShowPar\par{\csname HCondtrue\endcsname\noindent}}
136 {\DisplayMathtrue}
137 \Configure{$}
138 {\Configure{@math}{%\a:mathml
139 display="inline"
140 }\DviMath}
141 {\EndDviMath}{}
142 \newif\ifDisplayMath \DisplayMathfalse
143 \Configure{radical}
144 {\Tg<\a:mathml msqrt>%
145 \special{t4ht\string~!e<<\a:mathml mrow>}%
146 \special{t4ht\string~!e></\a:mathml mrow></\a:mathml msqrt>}%
147 \special{t4ht\string~!ee/}%
148 \special{t4ht\string~!ese-}%
149 }
150 \def\:MT{\ifmathml \a:mathml m\fi}
151 \Configure{halignTB}{\HCode{<\:MT table }\halignTBL}{\HCode{>}}
152 \Configure{halignTBL}
153 {t}{}
154 {b}{}
155 {c}{}
156 {}
157 \def\t:HA{\HCode{</\:MT table>}}
158 \def\R:HA{\HCode{<\:MT tr \Hnewline style="vertical-align:baseline">}}
159 \def\r:HA{\HCode{</\:MT tr>}}
160 \def\D:HA{\SaveEndP
161 \HCode{<\:MT td
162 \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
163 \halignTD \HCode{\Hnewline>}}
164 \def\d:HA{\HCode{</\:MT td>}\RecallEndP
165 }
166
167 \Configure{SUB}
168 {\Send{BACK}
169 {<\a:mathml msub><\a:mathml mrow\Hnewline>}%
170 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>\trap:base}
171 {\Tg</\a:mathml mrow>\TG</\a:mathml msub\Hnewline>}
172 \Configure{SUP}
173 {\Send{BACK}
174 {<\a:mathml msup><\a:mathml mrow\Hnewline>}%
175 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>\trap:base}
176 {\Tg</\a:mathml mrow>\TG</\a:mathml msup\Hnewline>}
177 \Configure{SUBSUP}
178 {\Send{BACK}
179 {<\a:mathml msubsup><\a:mathml mrow\Hnewline>}%
180 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>\trap:base}
181 {\Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>\trap:base}
182 {\Tg</\a:mathml mrow>\TG</\a:mathml msubsup\Hnewline>}
183 \def\trap:base{{\HCode{}}}
184
185 \Configure{nolimits}{\HCode{<!--nolimits-->}}
186 \Configure{limits}
187 {\let\pl:SUB =\:UnDef
188 \let\pl:SUP =\:UnDef
189 \ifx \:temp\sp \def\pl:SUP{\Configure{SUP}}%
190 \expandafter\append:def
191 \expandafter\pl:SUP\expandafter{\expandafter{\a:SUP}}%
192 \expandafter\append:def
193 \expandafter\pl:SUP\expandafter{\expandafter{\b:SUP}}%
194 %
195 \Configure{SUP}
196 {\Send{BACK}{<\a:mathml mover
197 \mml:class="msup"><\a:mathml mrow\Hnewline>}%
198 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
199 \bgroup
200 \ifx \pl:SUBSUP
201 \:UnDef \else
202 \let\SUBSUP:=\pl:SUBSUP
203 %
204 \fi
205 %
206 \Configure{SUP}
207 {\Send{BACK}{<\a:mathml msup><\a:mathml mrow\Hnewline>}%
208 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
209 \bgroup
210 \Configure{SUP}
211 {\Send{BACK}{<\a:mathml msup><\a:mathml mrow\Hnewline>}%
212 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
213 \bgroup \trap:base}
214 {\egroup \Tg</\a:mathml mrow>\TG</\a:mathml msup\Hnewline>%
215 }%
216 \trap:base}
217 {\egroup\Tg</\a:mathml mrow>\TG</\a:mathml mover\Hnewline>\aftergroup\pl:SUP %
218 }%
219 \trap:base}
220 {}%
221 \else
222 \ifx \:temp\sb \def\pl:SUB{\Configure{SUB}}%
223 \expandafter\append:def
224 \expandafter\pl:SUB\expandafter{\expandafter{\a:SUB}}%
225 \expandafter\append:def
226 \expandafter\pl:SUB\expandafter{\expandafter{\b:SUB}}%
227 %
228 \Configure{SUB}
229 {\Send{BACK}{<\a:mathml munder
230 \mml:class="msub"><\a:mathml mrow\Hnewline>}%
231 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
232 \bgroup
233 \ifx \pl:SUBSUP
234 \:UnDef \else
235 \let\SUBSUP:=\pl:SUBSUP
236 %
237 \fi
238 %
239 \Configure{SUB}
240 {\Send{BACK}{<\a:mathml msub><\a:mathml mrow\Hnewline>}%
241 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
242 \bgroup
243 \Configure{SUB}
244 {\Send{BACK}{<\a:mathml msub><\a:mathml mrow\Hnewline>}%
245 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
246 \bgroup \trap:base}
247 {\egroup \Tg</\a:mathml mrow>\TG</\a:mathml msub\Hnewline>%
248 }%
249 \trap:base}
250 {\egroup\Tg</\a:mathml mrow>\TG</\a:mathml
251 munder\Hnewline>\aftergroup\pl:SUB %
252 }%
253 \trap:base}
254 {}%
255 \fi
256 \fi
257 \let\pl:SUBSUP
258 =\SUBSUP:
259 %
260 \Configure{SUBSUP}
261 {\ifx \pl:SUB \:UnDef\else \pl:SUB \fi
262 \ifx \pl:SUP \:UnDef\else \pl:SUP \fi
263 \ifx \pl:SUBSUP
264 \:UnDef \else
265 \let\SUBSUP:=\pl:SUBSUP
266 %
267 \fi
268 %
269 \Send{BACK}
270 {<\a:mathml munderover \a:mathml accentunder="false"
271 \a:mathml accent="false"><\a:mathml mrow
272 \Hnewline>}%
273 \Tg</\a:mathml mrow>\Tg<\a:mathml
274 mrow\Hnewline>\trap:base
275 }
276 {\Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>\trap:base}
277 {\Tg</\a:mathml mrow>\TG</\a:mathml munderover\Hnewline>}
278 %
279 }
280 \Configure{displaylimits}
281 {\ifDisplayMath \expandafter\disp:limits\fi}
282 \def\disp:limits{\let\pl:SUB =\:UnDef
283 \let\pl:SUP =\:UnDef
284 \ifx \:temp\sp \def\pl:SUP{\Configure{SUP}}%
285 \expandafter\append:def
286 \expandafter\pl:SUP\expandafter{\expandafter{\a:SUP}}%
287 \expandafter\append:def
288 \expandafter\pl:SUP\expandafter{\expandafter{\b:SUP}}%
289 %
290 \Configure{SUP}
291 {\Send{BACK}{<\a:mathml mover
292 \mml:class="msup"><\a:mathml mrow\Hnewline>}%
293 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
294 \bgroup
295 \ifx \pl:SUBSUP
296 \:UnDef \else
297 \let\SUBSUP:=\pl:SUBSUP
298 %
299 \fi
300 %
301 \Configure{SUP}
302 {\Send{BACK}{<\a:mathml msup><\a:mathml mrow\Hnewline>}%
303 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
304 \bgroup
305 \Configure{SUP}
306 {\Send{BACK}{<\a:mathml msup><\a:mathml mrow\Hnewline>}%
307 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
308 \bgroup \trap:base}
309 {\egroup \Tg</\a:mathml mrow>\TG</\a:mathml msup\Hnewline>%
310 }%
311 \trap:base}
312 {\egroup\Tg</\a:mathml mrow>\TG</\a:mathml mover\Hnewline>\aftergroup\pl:SUP %
313 }%
314 \trap:base}
315 {}%
316 \else
317 \ifx \:temp\sb \def\pl:SUB{\Configure{SUB}}%
318 \expandafter\append:def
319 \expandafter\pl:SUB\expandafter{\expandafter{\a:SUB}}%
320 \expandafter\append:def
321 \expandafter\pl:SUB\expandafter{\expandafter{\b:SUB}}%
322 %
323 \Configure{SUB}
324 {\Send{BACK}{<\a:mathml munder
325 \mml:class="msub"><\a:mathml mrow\Hnewline>}%
326 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
327 \bgroup
328 \ifx \pl:SUBSUP
329 \:UnDef \else
330 \let\SUBSUP:=\pl:SUBSUP
331 %
332 \fi
333 %
334 \Configure{SUB}
335 {\Send{BACK}{<\a:mathml msub><\a:mathml mrow\Hnewline>}%
336 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
337 \bgroup
338 \Configure{SUB}
339 {\Send{BACK}{<\a:mathml msub><\a:mathml mrow\Hnewline>}%
340 \Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>%
341 \bgroup \trap:base}
342 {\egroup \Tg</\a:mathml mrow>\TG</\a:mathml msub\Hnewline>%
343 }%
344 \trap:base}
345 {\egroup\Tg</\a:mathml mrow>\TG</\a:mathml
346 munder\Hnewline>\aftergroup\pl:SUB %
347 }%
348 \trap:base}
349 {}%
350 \fi
351 \fi
352 \let\pl:SUBSUP
353 =\SUBSUP:
354 %
355 \Configure{SUBSUP}
356 {\ifx \pl:SUB \:UnDef\else \pl:SUB \fi
357 \ifx \pl:SUP \:UnDef\else \pl:SUP \fi
358 \ifx \pl:SUBSUP
359 \:UnDef \else
360 \let\SUBSUP:=\pl:SUBSUP
361 %
362 \fi
363 %
364 \Send{BACK}
365 {<\a:mathml munderover \a:mathml accentunder="false"
366 \a:mathml accent="false"><\a:mathml mrow
367 \Hnewline>}%
368 \Tg</\a:mathml mrow>\Tg<\a:mathml
369 mrow\Hnewline>\trap:base
370 }
371 {\Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>\trap:base}
372 {\Tg</\a:mathml mrow>\TG</\a:mathml munderover\Hnewline>}
373 %
374 }
375 \ifx \a:putSUB\:UnDef \else
376 \pend:def\a:putSUB{\ifx \pl:SUBSUP
377 \:UnDef\else
378 \let\SUBSUP:=\pl:SUBSUP
379 %
380 \let\pl:SUBSUP
381 =\:UnDef
382 \fi}%
383 \fi
384 \ifx \a:putSUP\:UnDef \else
385 \pend:def\a:putSUP{\ifx \pl:SUBSUP
386 \:UnDef\else
387 \let\SUBSUP:=\pl:SUBSUP
388 %
389 \let\pl:SUBSUP
390 =\:UnDef
391 \fi}%
392 \fi
393
394 \def\mml:htfsym{\Configure
395 {htf}{254}{+}{<\a:mathml mglyph\Hnewline fontfamily="}{\%s"}{
396 index="\%s"}{ mathsize="\%d\%\%"}{}{ alt="}{"/>}}
397 \def\ext:htfsym{\Configure{htf}{254}{+}{}{}{}{}{}{}{}}
398 \Configure{over}
399 {\Send{GROUP}{0}
400 {<\a:mathml mfrac><\a:mathml mrow>}\HCode{</\a:mathml mrow>}}
401 {\HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}
402 {</\a:mathml mrow></\a:mathml mfrac>}}
403 \Configure{atop}
404 {\Send{GROUP}{0}{<\a:mathml mfrac linethickness="0"><\a:mathml mrow>}\HCode{</\a:mathml mrow>}}
405 {\HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}}
406 \Configure{above}
407 {\Send{GROUP}{0}{<\a:mathml mfrac linethickness="\the\tmp:dim"><\a:mathml mrow>}%
408 \HCode{</\a:mathml mrow>}\o:over:\:gobbleII}
409 {\HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}}
410 \Configure{abovewithdelims}
411 {\abovewithdelims:III}
412 {}
413 \def\abovewithdelims:III#1#2#3{%
414 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
415 \Send{GROUP}{0}{<\a:mathml mfrac linethickness="\the\tmp:dim"><\a:mathml mrow>}%
416 \HCode{</\a:mathml mrow>}\o:over:
417 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}
418 \else
419 \Send{GROUP}{0}{<\a:mathml mfenced \a:mathml separators=""\Hnewline
420 \a:mathml open="\expandafter
421 \ifx \csname \string#2:lr del\endcsname\relax #2\else
422 \csname \string#2:lr del\endcsname\fi
423 " \a:mathml close="\expandafter
424 \ifx \csname \string#3:lr del\endcsname\relax #3\else
425 \csname \string#3:lr del\endcsname\fi
426 "><\a:mathml mfrac
427 \a:mathml linethickness="\the\tmp:dim"><\a:mathml mrow>}%
428 \HCode{</\a:mathml mrow>}\o:over:
429 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml
430 mrow></\a:mathml mfrac></\a:mathml mfenced>}
431 \fi
432 \tmp:dim
433 }
434 \Configure{atopwithdelims}
435 {\atopwithdelims:III}
436 {}
437 \def\atopwithdelims:III#1#2#3{%
438 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
439 \Send{GROUP}{0}{<\a:mathml mfrac linethickness="0"><\a:mathml mrow>}%
440 \HCode{</\a:mathml mrow>}\o:atop:
441 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}
442 \else
443 \Send{GROUP}{0}{<\a:mathml mfenced \a:mathml separators=""\Hnewline
444 \a:mathml open="\expandafter
445 \ifx \csname \string#2:lr del\endcsname\relax #2\else
446 \csname \string#2:lr del\endcsname\fi
447 " \a:mathml close="\expandafter
448 \ifx \csname \string#3:lr del\endcsname\relax #3\else
449 \csname \string#3:lr del\endcsname\fi
450 "><\a:mathml mfrac
451 \a:mathml linethickness="0"><\a:mathml mrow>}%
452 \HCode{</\a:mathml mrow>}\o:atop:
453 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml
454 mrow></\a:mathml mfrac></\a:mathml mfenced>}
455 \fi
456 }
457 \Configure{overwithdelims}
458 {\overwithdelims:III}
459 {}
460 \def\overwithdelims:III#1#2#3{%
461 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
462 \Send{GROUP}{0}{<\a:mathml mfrac><\a:mathml mrow>}%
463 \HCode{</\a:mathml mrow>}\o:over:
464 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}
465 \else
466 \Send{GROUP}{0}{<\a:mathml mfenced \a:mathml separators=""\Hnewline
467 \a:mathml open="\expandafter
468 \ifx \csname \string#2:lr del\endcsname\relax #2\else
469 \csname \string#2:lr del\endcsname\fi
470 " \a:mathml close="\expandafter
471 \ifx \csname \string#3:lr del\endcsname\relax #3\else
472 \csname \string#3:lr del\endcsname\fi
473 "><\a:mathml mfrac><\a:mathml mrow>}%
474 \HCode{</\a:mathml mrow>}\o:over:
475 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml
476 mrow></\a:mathml mfrac></\a:mathml mfenced>}
477 \fi
478 }
479 \def\mathunderscore{\nfss@text{\HChar{95}}}
480 \Configure{halignTD} {}{}
481 {<}{\HCode{ \a:mathml columnalign="left"}}
482 {-}{\HCode{ \a:mathml columnalign="center"}}
483 {>}{\HCode{ \a:mathml columnalign="right"}}
484 {^}{\HCode{ \a:mathml rowalign="top"}}
485 {=}{\HCode{ \a:mathml rowalign="baseline"}}
486 {|}{\HCode{ \a:mathml rowalign="center"}}
487 {_}{\HCode{ \a:mathml rowalign="bottom"}}
488 {p}{\HCode{ \a:mathml columnalign="left"}}
489 {}
490
491 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
492
493 \endinput\empty\empty\empty\empty\empty\empty
494 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
495
496
497
498 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
499 \ConfigureHinput{etex4ht}
500 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
501 \def\:tempc#1{\a:middle\mathrel{\left:right#1\:EMPTY}\b:middle}
502 \HLet\middle=\:tempc
503 \NewConfigure{middle}{2}
504 \Configure{middle}
505 {\bgroup
506 \Configure{mathrel}{*}
507 {<mo \mml:class="MathClass-rel"
508 fence="true" stretchy="true" >}
509 {</mo>}
510 {\Configure{mathrel}{}{}{}{}}%
511 }
512 {\egroup}
513
514 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
515
516 \endinput\empty\empty\empty\empty\empty\empty
517 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
518
519
520 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
521 \ConfigureHinput{latex}
522 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
523 \:CheckOption{core}\if:Option \expandafter\endinput \fi
524 \let\A:equation\a:equation
525 \let\B:equation\b:equation
526 \let\C:equation\c:equation
527 \Configure{equation}
528 {\A:equation\Configure{$$}
529 {\Configure{@math}{%\a:mathml
530 display="block"
531 %
532 \mml:class="equation"}\IgnorePar\EndP\DviMath}
533 {\EndDviMath\EndP}
534 {\DisplayMathtrue}%
535 }
536 {\B:equation}{\C:equation}
537 \ExplSyntaxOn
538 \def\:tempa#1#2{% these functions must be protected
539 \cs_set_protected:Npn\:tempb{\mathop{\PauseMathClass%
540 \HCode{<\a:mathml mi~\mml:class="loglike">} #2\HCode{</\a:mathml mi>%
541 <\a:mathml mo>&\#x2061;<!--FUNCTION~APPLICATION--></\a:mathml mo>}\EndPauseMathClass%
542 }\nolimits
543 }
544 \HLet#1\:tempb
545 }
546 \ExplSyntaxOff
547
548 \:tempa\log{log}
549 \:tempa\lg{lg}
550 \:tempa\ln{ln}
551 \:tempa\sin{sin}
552 \:tempa\arcsin{arcsin}
553 \:tempa\sinh{sinh}
554 \:tempa\cos{cos}
555 \:tempa\arccos{arccos}
556 \:tempa\cosh{cosh}
557 \:tempa\tan{tan}
558 \:tempa\arctan{arctan}
559 \:tempa\tanh{tanh}
560 \:tempa\cot{cot}
561 \:tempa\coth{coth}
562 \:tempa\sec{sec}
563 \:tempa\csc{csc}
564 \:tempa\arg{arg}
565 \:tempa\ker{ker}
566 \:tempa\dim{dim}
567 \:tempa\hom{hom}
568 \:tempa\exp{exp}
569 \:tempa\deg{deg}
570 \Configure{hspace}
571 {\ifmathml\ifmtext\else \Tg<\a:mathml mspace width="\the\tmp:dim"/>\fi\fi}{}{ }
572 \Configure{romannumeral}
573 {\ifmathml\ifmtext\else \HCode{<\a:mathml mrow \mml:class="romannumeral">}\fi\fi}
574 {\ifmathml\ifmtext\else \HCode{</\a:mathml mrow>}\fi\fi}
575 \Configure{newline}
576 {\ht:special{t4ht@,}%
577 \HCode{</\a:mathml mtext\Hnewline><\a:mathml
578 mtext \mml:class="newline">}\ht:special{t4ht@,&\#x00A0;}%
579 }
580 \Configure{[]}
581 {\Configure{@math}{%\a:mathml
582 display="block"
583 }\csname a:mathml[]\endcsname
584 \DviMath\Tg<\a:mathml mrow\Hnewline>$$\DisplayMathtrue }
585 {$$\Tg</\a:mathml mrow>\EndDviMath\csname b:mathml[]\endcsname}
586 \Configure{()}
587 {\Configure{@math}{%\a:mathml
588 display="inline"
589 }\csname a:mathml()\endcsname
590 \DviMath\Tg<\a:mathml mrow\Hnewline>$}
591 {$\Tg</\a:mathml mrow>\EndDviMath\csname b:mathml()\endcsname}
592 \NewConfigure{mathml[]}{2}
593 \NewConfigure{mathml()}{2}
594 \let\columnlines\empty
595 \Configure{halignTB<>}{array}{\HCode{\Hnewline
596 \a:mathml equalrows="false"
597 \ifx\columnlines\empty\else\a:mathml columnlines="\columnlines" \fi
598 \a:mathml equalcolumns="false" \a:mathml class="array" \a:mathml displaystyle="true"}<>\HAlign}
599 \Configure{array}
600 {\halignTB{array}}
601 {\ifvmode \IgnorePar\fi \expandafter\tmp:toks\expandafter{\Clr}%
602 \HCode{<!--\the\tmp:toks-->}%
603 \Tg</\a:mathml mtable>}
604 {\Tg<\a:mathml mtr \mml:class="array-row">}{\Tg</\a:mathml mtr>}
605 {\HCode{<\a:mathml mtd\Hnewline \mml:class="array-td"
606 \ifnum 1<\HMultispan columnspan="\HMultispan"\fi}%
607 \halignTD \HCode{>}%
608 }
609 {\Tg</\a:mathml mtd>}
610 \ConfigureEnv{array}
611 {\bgroup\Configure{$}{}{}{}}
612 {\egroup}
613 {}{}
614 \Configure{VBorder}
615 {\HAssign\NewGroup = 0
616 \HAssign\borderlines = 0
617 \global\let\columnlines=\relax
618 }
619 {\ifx \columnlines\relax \gHAssign\borderlines = 1
620 \else \gHAdvance\borderlines by 2 \fi
621 %
622 \HAssign\NewGroup = 0}
623 {\Advance:\NewGroup by 1
624 \ifnum \borderlines>1 \gHAdvance\borderlines by -2 \fi
625 \ifx \columnlines\relax
626 \global\let\columnlines\empty
627 \else
628 \ifnum \NewGroup=1
629 \xdef\columnlines{\columnlines\ifx\columnlines\empty
630 \else \space\fi solid}%
631 \else
632 \xdef\columnlines{\columnlines\ifx\columnlines\empty
633 \else \space\fi none}%
634 \fi
635 \fi
636 }
637 {}
638
639 \def\:MM{m}
640 \def\mathml:hborder{%
641 \Configure{HBorder}
642 {<\a:mathml mtr\Hnewline \mml:class="array-hline">}
643 {<\a:mathml mtd \mml:class="hline-mtd"></\a:mathml mtd>
644 }
645 {</\a:mathml mtr>}
646 {<\a:mathml mtr\Hnewline \mml:class="array-cline">}
647 {<\a:mathml mtd></\a:mathml mtd>}
648 {<\a:mathml mtd \mml:class="hline-mtd"></\a:mathml mtd>
649 }
650 {</\a:mathml mtr>}
651 {<\a:mathml mtr\Hnewline
652 \mml:class="array-vspace" style="font-size:\HBorderspace">}
653 {}
654 {</\a:mathml mtr>}
655 }
656
657 \mathml:hborder
658
659 \def\providemtextclass#1{%
660 \Configure{@mtext}{#1}%
661 }
662
663 \Configure{texttt}
664 {\ifmathml \providemtextclass{\mml:class="texttt"
665 mathvariant="monospace" }\fi}
666 {}%
667 \Configure{textit}
668 {\ifmathml \providemtextclass{\mml:class="textit"
669 mathvariant="italic" }\fi}
670 {}%
671 \Configure{textrm}
672 {\ifmathml \providemtextclass{\mml:class="textrm"
673 mathvariant="normal" }\fi}
674 {}%
675 \Configure{textup}
676 {\ifmathml \providemtextclass{\mml:class="textup"
677 mathvariant="normal" }\fi}
678 {}%
679 \Configure{textsl}
680 {\ifmathml \providemtextclass{\mml:class="textsl"
681 mathvariant="italic" }\fi}
682 {}%
683 \Configure{textsf}
684 {\ifmathml \providemtextclass{\mml:class="textsf"
685 mathvariant="sans-serif" }\fi}
686 {}%
687 \Configure{textbf}
688 {\ifmathml \providemtextclass{\mml:class="textbf"
689 mathvariant="bold" }\fi}
690 {}%
691 \Configure{textsc}
692 {\ifmathml \providemtextclass{\mml:class="textsc"
693 mathvariant="normal" }\fi}
694 {}%
695 \Configure{emph}
696 {\ifmathml \providemtextclass{\mml:class="emph"
697 mathvariant="italic" }\fi}
698 {}%
699 \def\:closebf{\HCode{</\a:mathml mi>}\EndPauseMathClass}
700 \def\:tempa{\ifmmode\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{\PauseMathClass\HCode{<\a:mathml mi mathvariant="bold">}\aftergroup\:closebf}{\o:bf:}}
701 \HLet\bf\:tempa
702
703 \let\A:fbox=\a:fbox
704 \let\B:fbox=\b:fbox
705 \let\OLDn:fbox:\n:fbox:
706 \def\OLDf:box{\ifx \EndPicture \:UnDef
707 \expandafter \OLDn:fbox: \else\expandafter \o:fbox: \fi}
708 \def\:temp{\relax\ifmmode
709 \Configure{fbox}{\leavevmode\Configure{HtmlPar}{}{}{}{}\IgnoreRule
710 \AA:text{fbox}}{\BB:text\EndIgnoreRule}\else
711 \Configure{fbox}{\IgnoreRule\A:fbox}{\B:fbox\EndIgnoreRule}\fi
712 \OLDf:box}
713 \HLet\fbox\:temp
714 \let\A:mbox\a:mbox
715 \let\B:mbox\b:mbox
716 \let\OLD:mbox\mbox
717 \def\mbox{\relax\ifmmode \Configure{mbox}{\AA:text{mbox}}{\BB:text}\else
718 \Configure{mbox}{\A:mbox}{\B:mbox}\fi\OLD:mbox}
719 \NewConfigure{@mtext}{1}
720 \Configure{@mtext}{ }
721 \def\AA:text#1{\mtexttrue
722 \HCode{<\a:mathml mstyle\Hnewline \mml:class="#1"><\a:mathml
723 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
724 \PauseMathClass
725 \ifmmode\else
726 \Configure{$}%
727 {\EndPauseMathClass \mtextfalse
728 \ht:special{t4ht@,}%
729 \HCode{</\a:mathml mtext><\a:mathml
730 mstyle\Hnewline \mml:class="math">}}%
731 {\HCode{</\a:mathml mstyle><\a:mathml
732 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
733 \PauseMathClass
734 \mtexttrue}%
735 {}%
736 \Configure{()}%
737 {\EndPauseMathClass \mtextfalse
738 \ht:special{t4ht@,}%
739 \HCode{</\a:mathml mtext><\a:mathml
740 mstyle\Hnewline \mml:class="math">}$}%
741 {$\HCode{</\a:mathml mstyle><\a:mathml
742 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
743 \PauseMathClass
744 \mtexttrue}%
745 {}%
746 %
747 \fi
748 }
749 \def\BB:text{\mtextfalse\EndPauseMathClass\ht:special{t4ht@,}%
750 \HCode
751 {</\a:mathml mtext></\a:mathml mstyle>}%
752 }
753
754 \Configure{frac}
755 {\Tg<\a:mathml mfrac>\Tg<\a:mathml mrow\Hnewline>}
756 {\Tg</\a:mathml mrow>\Configure{over}{}{}}
757 {\Tg<\a:mathml mrow\Hnewline>}
758 {\Tg</\a:mathml mrow>\Tg</\a:mathml mfrac>}
759 \ConfigureEnv{eqnarray}
760 {\ifvmode \IgnorePar \fi \EndP}
761 {\ifvmode \IgnorePar \fi \EndP \ShowPar \par}
762 {}{}
763 \Configure{eqnarray}
764 {\HCode{<\a:mathml mtable\Hnewline \a:mathml displaystyle="true"
765 \mml:class="eqnarray\ifx
766 \@seqncr\@eqncr\else-star\fi"
767 \a:mathml columnalign="right center left" >}}%
768 {\HCode{</\a:mathml mtable>}}
769 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
770 {\Tg<\a:mathml mtd\Hnewline \mml:class="eqnarray-\HCol">
771 \ifnum \HCol=4
772 \Tg<\a:mathml mtext
773 \mml:class="eqnarray">\ht:special{t4ht@,&\#x00A0;}%
774 \PauseMathClass
775 \mtexttrue
776 \Configure{$}%
777 {\EndPauseMathClass \mtextfalse
778 \ht:special{t4ht@,}%
779 \HCode{</\a:mathml mtext><\a:mathml
780 mstyle\Hnewline \mml:class="math">}}%
781 {\HCode{</\a:mathml mstyle><\a:mathml
782 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
783 \PauseMathClass
784 \mtexttrue}%
785 {}%
786 \Configure{()}%
787 {\EndPauseMathClass \mtextfalse
788 \ht:special{t4ht@,}%
789 \HCode{</\a:mathml mtext><\a:mathml
790 mstyle\Hnewline \mml:class="math">}$}%
791 {$\HCode{</\a:mathml mstyle><\a:mathml
792 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
793 \PauseMathClass
794 \mtexttrue}%
795 {}%
796 %
797 \fi}
798 {\ifnum \HCol=4 \mtextfalse
799 \EndPauseMathClass\ht:special{t4ht@,}%
800 \Tg</\a:mathml mtext>\fi
801 \Tg</\a:mathml mtd>}
802 \def\:temp#1#2{{\a:stackrel{#1}\b:stackrel {#2}\c:stackrel}}
803 \HLet\stackrel\:temp
804 \:CheckOption{stackrel-} \if:Option
805 \Configure{stackrel}
806 {\mathrel\bgroup \HCode{<\a:mathml mglyph\Hnewline
807 alt="\string\stackrel}\afterassignment\put:arg\tmp:toks}
808 {\afterassignment\put:arg\tmp:toks}
809 {\HCode{" />}\egroup}
810 \def\put:arg{\HCode{{\the\tmp:toks}}}
811 \else
812 \Configure{stackrel}
813 {\HCode{<\a:mathml mover\Hnewline
814 \mml:class="stackrel"><\a:mathml mrow\Hnewline>}\inv:i:iii}
815 {\HCode{</\a:mathml mrow><\a:mathml
816 mrow\Hnewline>}\Configure{mathop*}{*}
817 {<\a:mathml mrow>}
818 {</\a:mathml mrow>}
819 {\Configure{mathop}{}{}{}{}}%
820 \mathop}
821 {\HCode{</\a:mathml mrow></\a:mathml mover>}}
822 \def\inv:i:iii#1#2#3{{#3}#2{#1}}
823 \fi
824 \ifdefined\MathMLintent
825 \RenewDocumentCommand{\MathMLintent}{mm}{{%
826 \def\${$}% Fix support for the \$ command
827 \HCode{<mrow intent="#1">}#2\HCode{</mrow>}%
828 }}
829 \fi
830
831 \ifdefined\MathMLarg
832 \RenewDocumentCommand\MathMLarg{mm}{%
833 \HCode{<mrow arg="#1">}#2\HCode{</mrow>}%
834 }
835 \fi
836 \Configure{overline}
837 {\bgroup \HCode{<\a:mathml mover accent="false"\Hnewline
838 \mml:class="mml-overline"><\a:mathml mrow>}%
839 }
840 {\HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
841 accent="true">&\#x00AF;</\a:mathml mo>%
842 </\a:mathml mover>}%
843 \egroup}
844 \Configure{underline}
845 {\bgroup \ifmmode \HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline
846 \mml:class="mml-underline"><\a:mathml mrow>}%
847 \else
848 \expandafter\everymath
849 \expandafter{\expandafter\everymath
850 \expandafter{\the\everymath}}%
851 \let\o::@underline:\o:@@underline:
852 \def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
853 \fi}
854 {\HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
855 accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
856 \egroup}
857
858
859
860
861 \let\A:displaylines\a:displaylines
862 \let\B:displaylines\b:displaylines
863 \let\C:displaylines\c:displaylines
864 \let\D:displaylines\d:displaylines
865 \Configure{displaylines}
866 {\ifmmode
867 \def\A:displaylines{\HCode{<\a:mathml mtable
868 \mml:class="displaylines">}}%
869 \def\B:displaylines{\HCode{</\a:mathml mtable>}}%
870 \def\C:displaylines{\HCode{<\a:mathml mtr\Hnewline
871 \mml:class="displaylines"><\a:mathml mtd>}}%
872 \def\D:displaylines{\HCode{</\a:mathml mtd></\a:mathml mtr>}}%
873 \fi
874 \A:displaylines}
875 {\B:displaylines} {\C:displaylines}{\D:displaylines}
876 \let\mathml:on\relax
877 \Configure{ }
878 {\ifmathml \ifmtext \space \else\Tg<\a:mathml mspace
879 width="0.33em" \mml:class="nbsp" />\fi
880 \else \:nbsp\fi}
881
882 % redefine macro from unicode.4ht to produce better accents
883 \def\unicode:mathop#1{\PauseMathClass\HCode{<\a:mathml mo accent="true">}#1\HCode{</\a:mathml mo>}\EndPauseMathClass}
884
885 \:CheckOption{new-accents} \if:Option \else
886 \Configure{accent}\widetilde\widetilde{{}{}}
887 {}
888 {\HCode{<\a:mathml mover\Hnewline accent="true"><\a:mathml mrow\Hnewline>}#2\HCode{</\a:mathml mrow>}%
889 \:widetilde:over \HCode{</\a:mathml mover>}}
890 % this configuration caused problems with text accents.
891 % we can use Unicode characters with tilde accents instead even in MathML
892 % \Configure{accent}\tilde\tilde{{}{}}
893 % {}
894 % {\HCode{<\a:mathml mover\Hnewline accent="true"><\a:mathml mrow\Hnewline>}#2\HCode{</\a:mathml mrow>}%
895 % \:tilde:over \HCode{</\a:mathml mover>}}
896 \Configure{accent}\widehat\widehat{{}{}}
897 {}
898 {\HCode{<\a:mathml mover\Hnewline accent="true"><\a:mathml mrow\Hnewline>}#2\HCode{</\a:mathml mrow>}%
899 \:widehat:over \HCode{</\a:mathml mover>}}
900 \fi
901 \:CheckOption{new-accents} \if:Option \else
902 \ifx \mathml:on\:UnDef
903 \Configure{accents}
904 {\ifmmode \expandafter\mathord\fi
905 {\leavevmode
906 \if !#1!\ht:special{t4ht@+\string&{35}x#2;}%
907 \else \expandafter \ifx\csname U#2#1\endcsname\relax
908 \ht:special{t4ht@+\string&{35}x#2;}%
909 \else
910 \ht:special{t4ht@+\string&{35}x\csname U#2#1\endcsname;}%
911 \fi \fi x%
912 %
913 \ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
914 {\Tg<\a:mathml mrow
915 \mml:class="accent#1">\mathord{#3}\Tg</\a:mathml mrow>%
916 }%
917 \fi
918 \fi
919 \let\mml:TeX\TeX
920 \def\TeX{\ifmathml\ifmtext TeX\else
921 \HCode{<\a:mathml mtext
922 \mml:class="TeX">TeX</\a:mathml mtext>}\fi\else \mml:TeX\fi}
923 \Configure{afterSUB}{'}{\def\SUB:prime{\SUB:SUP}}
924 \Configure{'}
925 {\let\:primes=\empty}
926 {\relax \csname SUB:prime\endcsname\sp{%
927 \global\let\SUB:prime=\:UnDef
928 \def\:tempa{\prime\prime}\ifx \:tempa\:primes
929 \mathop{\HCode{<\a:mathml mi>\string&\#x2033;</\a:mathml mi>}}\else
930 \def\:tempa{\prime\prime\prime}\ifx \:tempa\:primes
931 \mathop{\HCode{<\a:mathml mi>\string&\#x2034;</\a:mathml mi>}}\else
932 \:primes \fi\fi}%
933 }
934 {\let\prime=\relax \xdef\:primes{\:primes\prime}}
935 \def\:temp#1{\a:left{#1}\o:left:.\b:left{#1}} \HLet\left\:temp
936 \def\:temp#1{\a:right{#1}\o:right:.\b:right{#1}}\HLet\right\:temp
937 \Configure{left}
938 {}
939 {\HCode{<\a:mathml mrow><\a:mathml mo \a:mathml fence="true" \a:mathml form="prefix">%
940 \expandafter
941 \ifx \csname \string#1:lr del\endcsname\relax #1\else
942 \csname \string#1:lr del\endcsname\fi
943 </\a:mathml mo>}\bgroup
944 \HCode{<\a:mathml mrow>}\bgroup}
945 \Configure{right}
946 {\egroup\egroup}%{\egroup\Send{GROUP}{0}{ \a:mathml close=""\space}\egroup}
947 {\HCode{</\a:mathml mrow><\a:mathml mo \a:mathml fence="true" \a:mathml form="postfix">\expandafter
948 \ifx \csname \string#1:lr del\endcsname\relax #1\else
949 \csname \string#1:lr del\endcsname\fi
950 </\a:mathml mo></\a:mathml mrow>}}
951 \def\def:DEL#1{\def\:DEL{#1}}
952 \def\check:DEL#1#2{\def\:tempa{#1}\ifx \:tempa\:DEL \def\:DEL{#2}\fi}
953 \NewConfigure{mfenced}[2]{\append:defI\def:DEL{\check:DEL{#1}{#2}}}
954 \NewConfigure{Biggl}{2}
955 \NewConfigure{Biggm}{2}
956 \NewConfigure{Biggr}{2}
957 \NewConfigure{Bigl}{2}
958 \NewConfigure{Bigm}{2}
959 \NewConfigure{Bigr}{2}
960 \NewConfigure{biggl}{2}
961 \NewConfigure{biggm}{2}
962 \NewConfigure{biggr}{2}
963 \NewConfigure{bigl}{2}
964 \NewConfigure{bigm}{2}
965 \NewConfigure{bigr}{2}
966 \Configure{Biggm}
967 {\bgroup
968 \Configure{Bigg}{}{}{}{}%
969 \Configure{mathrel}{*}
970 {<mo \mml:class="MathClass-rel"
971 fence="true" mathsize="2.45em" >}
972 {</mo>}
973 {\Configure{mathrel}{}{}{}{}}%
974 }
975 {\egroup}
976 \Configure{Bigm}
977 {\bgroup
978 \Configure{Big}{}{}{}{}%
979 \Configure{mathrel}{*}
980 {<mo \mml:class="MathClass-rel"
981 fence="true" mathsize="1.61em" >}
982 {</mo>}
983 {\Configure{mathrel}{}{}{}{}}%
984 }
985 {\egroup}
986 \Configure{biggm}
987 {\bgroup
988 \Configure{bigg}{}{}{}{}%
989 \Configure{mathrel}{*}
990 {<mo \mml:class="MathClass-rel"
991 fence="true" mathsize="2.03em" >}
992 {</mo>}
993 {\Configure{mathrel}{}{}{}{}}%
994 }
995 {\egroup}
996 \Configure{bigm}
997 {\bgroup
998 \Configure{big}{}{}{}{}%
999 \Configure{mathrel}{*}
1000 {<mo \mml:class="MathClass-rel"
1001 fence="true" mathsize="1.19em" >}
1002 {</mo>}
1003 {\Configure{mathrel}{}{}{}{}}%
1004 }
1005 {\egroup}
1006
1007 \:CheckOption{mathml-} \if:Option
1008 \Configure{Biggl}
1009 {\bgroup
1010 \Configure{Bigg}{}{}{}{}%
1011 \Configure{mathopen}{*}
1012 {<mrow><mo \mml:class="MathClass-open"
1013 fence="true" mathsize="2.45em" >}
1014 {</mo>}
1015 {\Configure{mathopen}{}{}{}{}}%
1016 }
1017 {\egroup}
1018 \Configure{Biggr}
1019 {\bgroup
1020 \Configure{Bigg}{}{}{}{}%
1021 \Configure{mathclose}{*}
1022 {<mo \mml:class="MathClass-close"
1023 fence="true" mathsize="2.45em" >}
1024 {</mo></mrow>}
1025 {\Configure{mathclose}{}{}{}{}}%
1026 }
1027 {\egroup}
1028 \Configure{Bigl}
1029 {\bgroup
1030 \Configure{Big}{}{}{}{}%
1031 \Configure{mathopen}{*}
1032 {<mrow><mo \mml:class="MathClass-open"
1033 fence="true" mathsize="1.61em" >}
1034 {</mo>}
1035 {\Configure{mathopen}{}{}{}{}}%
1036 }
1037 {\egroup}
1038 \Configure{Bigr}
1039 {\bgroup
1040 \Configure{Big}{}{}{}{}%
1041 \Configure{mathclose}{*}
1042 {<mo \mml:class="MathClass-close"
1043 fence="true" mathsize="1.61em" >}
1044 {</mo></mrow>}
1045 {\Configure{mathclose}{}{}{}{}}%
1046 }
1047 {\egroup}
1048 \Configure{biggl}
1049 {\bgroup
1050 \Configure{bigg}{}{}{}{}%
1051 \Configure{mathopen}{*}
1052 {<mrow><mo \mml:class="MathClass-open"
1053 fence="true" mathsize="2.03em" >}
1054 {</mo>}
1055 {\Configure{mathopen}{}{}{}{}}%
1056 }
1057 {\egroup}
1058 \Configure{biggr}
1059 {\bgroup
1060 \Configure{bigg}{}{}{}{}%
1061 \Configure{mathclose}{*}
1062 {<mo \mml:class="MathClass-close"
1063 fence="true" mathsize="2.03em" >}
1064 {</mo></mrow>}
1065 {\Configure{mathclose}{}{}{}{}}%
1066 }
1067 {\egroup}
1068 \Configure{bigl}
1069 {\bgroup
1070 \Configure{big}{}{}{}{}%
1071 \Configure{mathopen}{*}
1072 {<mrow><mo \mml:class="MathClass-open"
1073 fence="true" mathsize="1.19em" >}
1074 {</mo>}
1075 {\Configure{mathopen}{}{}{}{}}%
1076 }
1077 {\egroup}
1078 \Configure{bigr}
1079 {\bgroup
1080 \Configure{big}{}{}{}{}%
1081 \Configure{mathclose}{*}
1082 {<mo \mml:class="MathClass-close"
1083 fence="true" mathsize="1.19em" >}
1084 {</mo></mrow>}
1085 {\Configure{mathclose}{}{}{}{}}%
1086 }
1087 {\egroup}
1088
1089 \else
1090 \Configure{Biggl}
1091 {\bgroup
1092 \Configure{Bigg}{}{}{}{}%
1093 \Configure{mathopen}{*}
1094 {<mrow><mo \mml:class="MathClass-open"
1095 fence="true" mathsize="2.45em" >}
1096 {</mo><mrow>}
1097 {\Configure{mathopen}{}{}{}{}}%
1098 }
1099 {\egroup}
1100 \Configure{Biggr}
1101 {\bgroup
1102 \Configure{Bigg}{}{}{}{}%
1103 \Configure{mathclose}{*}
1104 {</mrow><mo \mml:class="MathClass-close"
1105 fence="true" mathsize="2.45em" >}
1106 {</mo></mrow>}
1107 {\Configure{mathclose}{}{}{}{}}%
1108 }
1109 {\egroup}
1110 \Configure{Bigl}
1111 {\bgroup
1112 \Configure{Big}{}{}{}{}%
1113 \Configure{mathopen}{*}
1114 {<mrow><mo \mml:class="MathClass-open"
1115 fence="true" mathsize="1.61em" >}
1116 {</mo><mrow>}
1117 {\Configure{mathopen}{}{}{}{}}%
1118 }
1119 {\egroup}
1120 \Configure{Bigr}
1121 {\bgroup
1122 \Configure{Big}{}{}{}{}%
1123 \Configure{mathclose}{*}
1124 {</mrow><mo \mml:class="MathClass-close"
1125 fence="true" mathsize="1.61em" >}
1126 {</mo></mrow>}
1127 {\Configure{mathclose}{}{}{}{}}%
1128 }
1129 {\egroup}
1130 \Configure{biggl}
1131 {\bgroup
1132 \Configure{bigg}{}{}{}{}%
1133 \Configure{mathopen}{*}
1134 {<mrow><mo \mml:class="MathClass-open"
1135 fence="true" mathsize="2.03em" >}
1136 {</mo><mrow>}
1137 {\Configure{mathopen}{}{}{}{}}%
1138 }
1139 {\egroup}
1140 \Configure{biggr}
1141 {\bgroup
1142 \Configure{bigg}{}{}{}{}%
1143 \Configure{mathclose}{*}
1144 {</mrow><mo \mml:class="MathClass-close"
1145 fence="true" mathsize="2.03em" >}
1146 {</mo></mrow>}
1147 {\Configure{mathclose}{}{}{}{}}%
1148 }
1149 {\egroup}
1150 \Configure{bigl}
1151 {\bgroup
1152 \Configure{big}{}{}{}{}%
1153 \Configure{mathopen}{*}
1154 {<mrow><mo \mml:class="MathClass-open"
1155 fence="true" mathsize="1.19em" >}
1156 {</mo><mrow>}
1157 {\Configure{mathopen}{}{}{}{}}%
1158 }
1159 {\egroup}
1160 \Configure{bigr}
1161 {\bgroup
1162 \Configure{big}{}{}{}{}%
1163 \Configure{mathclose}{*}
1164 {</mrow><mo \mml:class="MathClass-close"
1165 fence="true" mathsize="1.19em" >}
1166 {</mo></mrow>}
1167 {\Configure{mathclose}{}{}{}{}}%
1168 }
1169 {\egroup}
1170
1171 \fi
1172 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
1173 \a:bigl\mathopen{\left:right\big{#1\:EMPTY}}\b:bigl\:EMPTY}
1174 \HLet\bigl=\:tempc
1175 \def\:tempc#1{\a:bigm\mathrel{\left:right\big{#1\:EMPTY}}\b:bigm}
1176 \HLet\bigm=\:tempc
1177 \def\:tempc#1{\:EMPTY
1178 \a:bigr\mathclose{\left:right\big{#1\:EMPTY}}\b:bigr%
1179 \ht:special{t4ht@[})\ht:special{t4ht@]}}
1180 \HLet\bigr=\:tempc
1181 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
1182 \a:Bigl\mathopen{\left:right\Big{#1}\:EMPTY}\b:Bigl\:EMPTY}
1183 \HLet\Bigl=\:tempc
1184 \def\:tempc#1{\a:Bigm\mathrel{\left:right\Big{#1\:EMPTY}}\b:Bigm}
1185 \HLet\Bigm=\:tempc
1186 \def\:tempc#1{\:EMPTY
1187 \a:Bigr\mathclose{\left:right\Big{#1\:EMPTY}}\b:Bigr%
1188 \ht:special{t4ht@[})\ht:special{t4ht@]}}
1189 \HLet\Bigr=\:tempc
1190 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
1191 \a:biggl\mathopen{\left:right\bigg{#1\:EMPTY}}\b:biggl\:EMPTY}
1192 \HLet\biggl=\:tempc
1193 \def\:tempc#1{\a:biggm\mathrel{\left:right\bigg{#1\:EMPTY}}\b:biggm}
1194 \HLet\biggm=\:tempc
1195 \def\:tempc#1{\:EMPTY
1196 \a:biggr\mathclose{\left:right\bigg{#1\:EMPTY}}\b:biggr%
1197 \ht:special{t4ht@[})\ht:special{t4ht@]}}
1198 \HLet\biggr=\:tempc
1199 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
1200 \a:Biggl\mathopen{\left:right\Bigg{#1\:EMPTY}}\b:Biggl\:EMPTY}
1201 \HLet\Biggl=\:tempc
1202 \def\:tempc#1{\a:Biggm\mathrel{\left:right\Bigg{#1\:EMPTY}}\b:Biggm}
1203 \HLet\Biggm=\:tempc
1204 \def\:tempc#1{\:EMPTY
1205 \a:Biggr\mathclose{\left:right\Bigg{#1}\:EMPTY}\b:Biggr
1206 \ht:special{t4ht@[})\ht:special{t4ht@]}}
1207 \HLet\Biggr=\:tempc
1208 \def\:EMPTY{{\HCode{}}}
1209 \def\left:right{%
1210 \let\left\o:left:
1211 \let\right\o:right:
1212 \Configure{left}{}{}\Configure{right}{}{}}
1213
1214 \:CheckOption{new-accents} \if:Option \else
1215 \Configure{accents}
1216 {\ifmmode \expandafter\mathord\fi
1217 {\leavevmode
1218 \if !#1!\ht:special{t4ht@+\string&{35}x#2;}%
1219 \else \expandafter \ifx\csname U#2#1\endcsname\relax
1220 \ht:special{t4ht@+\string&{35}x#2;}%
1221 \else
1222 \ht:special{t4ht@+\string&{35}x\csname U#2#1\endcsname;}%
1223 \fi \fi x%
1224 %
1225 \ht:special{t4ht@[}\if!#1!x\else#2\fi
1226 \ht:special{t4ht@]}}}
1227 {\ifmathml
1228 \ifmtext \expandafter\ifx \csname :#1:over\endcsname\relax
1229 \expandafter\ifx \csname :#1:under\endcsname\relax
1230 \AccentMath{\expandafter\ifx \csname :#1:over\endcsname\relax
1231 \HCode{<\a:mathml munder\Hnewline
1232 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1233 \csname :#1:under\endcsname
1234 \HCode{</\a:mathml munder>}%
1235 %
1236 \else \expandafter\ifx \csname :#1:under\endcsname\relax
1237 \HCode{<\a:mathml mover\Hnewline
1238 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1239 \csname :#1:over\endcsname
1240 \HCode{</\a:mathml mover>}%
1241 %
1242 \else
1243 \HCode{<\a:mathml munderover\Hnewline
1244 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1245 \csname :#1:under\endcsname
1246 \csname :#1:over\endcsname
1247 \HCode{</\a:mathml munderover>}%
1248 %
1249 \fi \fi
1250 }%
1251 \else #3\csname :#1:under\endcsname \fi
1252 \else #3\csname :#1:over\endcsname \fi
1253 %
1254 \else \AccentMath{\expandafter\ifx \csname :#1:over\endcsname\relax
1255 \HCode{<\a:mathml munder\Hnewline
1256 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1257 \csname :#1:under\endcsname
1258 \HCode{</\a:mathml munder>}%
1259 %
1260 \else \expandafter\ifx \csname :#1:under\endcsname\relax
1261 \HCode{<\a:mathml mover\Hnewline
1262 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1263 \csname :#1:over\endcsname
1264 \HCode{</\a:mathml mover>}%
1265 %
1266 \else
1267 \HCode{<\a:mathml munderover\Hnewline
1268 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1269 \csname :#1:under\endcsname
1270 \csname :#1:over\endcsname
1271 \HCode{</\a:mathml munderover>}%
1272 %
1273 \fi \fi
1274 }\fi
1275 \else \expandafter\ifx \csname :#1:over\endcsname\relax
1276 \expandafter\ifx \csname :#1:under\endcsname\relax
1277 \AccentMath{\expandafter\ifx \csname :#1:over\endcsname\relax
1278 \HCode{<\a:mathml munder\Hnewline
1279 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1280 \csname :#1:under\endcsname
1281 \HCode{</\a:mathml munder>}%
1282 %
1283 \else \expandafter\ifx \csname :#1:under\endcsname\relax
1284 \HCode{<\a:mathml mover\Hnewline
1285 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1286 \csname :#1:over\endcsname
1287 \HCode{</\a:mathml mover>}%
1288 %
1289 \else
1290 \HCode{<\a:mathml munderover\Hnewline
1291 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
1292 \csname :#1:under\endcsname
1293 \csname :#1:over\endcsname
1294 \HCode{</\a:mathml munderover>}%
1295 %
1296 \fi \fi
1297 }%
1298 \else #3\csname :#1:under\endcsname \fi
1299 \else #3\csname :#1:over\endcsname \fi
1300 \fi
1301 }
1302
1303 \fi
1304 \def\mathinner#1{\Tg<\a:mathml mrow
1305 \mml:class="mathinner">#1\Tg</\a:mathml mrow>}
1306 \Configure{root}{\rev:root}{}{}
1307 \def\rev:root #1\b:root#2\c:root{
1308 \Tg<\a:mathml mroot>{\Tg<\a:mathml mrow\Hnewline>#2\Tg</\a:mathml mrow>}%
1309 {\Tg<\a:mathml mrow\Hnewline>#1\Tg</\a:mathml mrow>}\Tg</\a:mathml mroot>}
1310 \def\AccentMath#1{\relax\ifmmode #1\else $#1$\fi}
1311 \NewConfigure{mfenced}[2]{\expandafter
1312 \def\csname \string#1:lr del\endcsname{#2}}
1313 \Configure{mfenced}{\|}{\string&\#x2225;}
1314 \Configure{mfenced}{.}{}
1315 \Configure{mfenced}{\langle}{\string&\#x27E8;}
1316 \Configure{mfenced}{\rangle}{\string&\#x27E9;}
1317 \Configure{mfenced}{\vert}{|}
1318 \edef\:temp{\noexpand\Configure{mfenced}{\noexpand\{}{\string{}}\:temp
1319 \edef\:temp{\noexpand\Configure{mfenced}{\noexpand\}}{\string}}}\:temp
1320 \edef\:temp{\noexpand
1321 \Configure{mfenced}{\noexpand\lbrace}{\string{}}\:temp
1322 \edef\:temp{\noexpand
1323 \Configure{mfenced}{\noexpand\rbrace}{\string}}}\:temp
1324 \Configure{mfenced}{<}{\string&\#x003C;}
1325 \Configure{mfenced}{>}{\string&\#x003E;}
1326 \Configure{mfenced}{\lceil}{\string&\#x2308;}
1327 \Configure{mfenced}{\rceil}{\string&\#x2309;}
1328 \Configure{mfenced}{\lfloor}{\string&\#x230A;}
1329 \Configure{mfenced}{\rfloor}{\string&\#x230B;}
1330 \Configure{mfenced}{\Vert}{\string&\#x2225;}
1331 \Configure{mfenced}{\rgroup}{)}
1332 \Configure{mfenced}{\lgroup}{(}
1333 \Configure{mfenced}{\bracevert}{|}
1334 \Configure{mfenced}{\bracevert}{|}
1335 \Configure{mfenced}{\downarrow}{\string&\#x2193;}
1336 \Configure{mfenced}{\uparrow}{\string&\#x2191;}
1337 \Configure{mfenced}{\Uparrow}{\string&\#x21D1;}
1338 \Configure{mfenced}{\updownarrow}{\string&\#x2195;}
1339 \Configure{mfenced}{\Updownarrow}{\string&\#x21D5;}
1340 \Configure{mfenced}{\Downarrow}{\string&\#x21D3;}
1341 \Configure{mfenced}{\backslash}{\string&\#x2216;}
1342 \Configure{mfenced}{\rmoustache}{\string&\#x25DD;}
1343 \Configure{mfenced}{\lmoustache}{\string&\#x25DC;}
1344 \Configure{mfenced}{\Arrowvert}{\string&\#x2225;}
1345 \Configure{mfenced}{\arrowvert}{\string&\#x007C;}
1346
1347 \let\A:oalign\a:oalign
1348 \let\B:oalign\b:oalign
1349 \Configure{oalign}
1350 {\ifmmode \Configure{$}{\Tg<\a:mathml mrow\Hnewline>}%
1351 {\Tg</\a:mathml mrow>}{}%
1352 \let\halign\TeXhalign
1353 \Tg<\a:mathml mrow\Hnewline \mml:class="oalign">\else\A:oalign
1354 \fi}
1355 {\ifmmode \Tg</\a:mathml mrow>\else\B:oalign\fi}
1356 \def\mathop:prefix#1{%
1357 \Configure{mathop}{*}{<\a:mathml mo #1\Hnewline>}{</\a:mathml mo>}%
1358 {\Configure{mathop}{*}{<\a:mathml mo>}{</\a:mathml mo>}{}}}
1359 \ifdefined\protect%
1360 \def\:unicodespace{\protect\leavevmode\special{t4ht@+\string&{35}x00A0{59}}x}%
1361 \def\:unicodenspace{\protect\leavevmode\special{t4ht@+\string&{35}x2002{59}}x}%
1362 \else%
1363 \def\:unicodespace{\leavevmode\special{t4ht@+\string&{35}x00A0{59}}x}%
1364 \def\:unicodenspace{\leavevmode\special{t4ht@+\string&{35}x2002{59}}x}%
1365 \fi
1366 \def\:nbsp{\ifmtext \:unicodespace%
1367 \else\ifmathml
1368 \Tg<\a:mathml mspace />\else \:unicodespace%
1369 \fi\fi}
1370 \def\:ensp{\ifmtext \:unicodenspace%
1371 \else\ifmathml
1372 \Tg<\a:mathml mspace />\else \:unicodenspace%
1373 \fi\fi}
1374 \Configure{cases}
1375 {}{} {\Tg<\a:mathml mtable>}{\Tg</\a:mathml mtable>}
1376 {\Tg<\a:mathml mtr>}{\Tg</\a:mathml mtr>}
1377 {\Tg<\a:mathml mtd \mml:class="cases">}{\Tg</\a:mathml mtd>}
1378 \Configure{matrix}
1379 {\Tg<\a:mathml mtable
1380 \a:mathml equalrows="false" \a:mathml equalcolumns="false"\Hnewline
1381 \mml:class="matrix">}
1382 {\Tg</\a:mathml mtable>}
1383 {\Tg<\a:mathml mtr>}{\Tg</\a:mathml mtr>}
1384 {\HCode{<\a:mathml mtd\Hnewline \mml:class="matrix"
1385 \ifnum 1<\HMultispan columnspan="\HMultispan"\fi}%
1386 \halignTD \HCode{>}%
1387 }{\Tg</\a:mathml mtd>}
1388 \Configure{pmatrix} {\bgroup\Tg<\a:mathml mrow\Hnewline
1389 \mml:class="pmatrix">} {\Tg</\a:mathml mrow>\egroup}
1390 \Configure{quad}{{\ifmathml \ifmtext \o:quad:\else
1391 {\HCode{<\a:mathml mspace width="1em" \mml:class="quad"/>}}\fi
1392 \else \o:quad: \fi}}
1393 \Configure{qquad}{{\ifmathml \ifmtext \o:qquad:\else
1394 {\HCode{<\a:mathml mspace width="2em" \mml:class="qquad"/>}}\fi
1395 \else \o:qquad: \fi}}
1396 \Configure{,}
1397 {{\HCode{<\a:mathml mspace width="0.17em" \mml:class="thinspace"/>}}}
1398 \Configure{:}
1399 {{\HCode{<\a:mathml mspace width="0.22em" \mml:class="thinspace"/>}}}
1400 \Configure{;}
1401 {{\HCode{<\a:mathml mspace width="0.28em" \mml:class="thickpace"/>}}}
1402 \Configure{>}
1403 {{\HCode{<\a:mathml mspace width="0.30em" \mml:class="medspace"/>}}}
1404 \Configure{!}
1405 {{\HCode{<\a:mathml mspace width="-0.17em" \mml:class="negthinspace"/>}}}
1406
1407 \def\:tempb#1{%
1408 \expandafter\let\expandafter\:tempc\csname #1\endcsname
1409 \append:def\:tempc{\limits}%
1410 \expandafter\HLet\csname #1\endcsname\:tempc
1411 }
1412 \:tempb{lim}
1413 % \:tempb{limsup}
1414 % \:tempb{liminf}
1415 \:tempb{max}
1416 \:tempb{min}
1417 \:tempb{sup}
1418 \:tempb{inf}
1419 \:tempb{det}
1420 \:tempb{Pr}
1421 \:tempb{gcd}
1422
1423
1424 \def\:limspaces#1#2{\HCode{<\a:mathml mi>#1</\a:mathml mi><\a:mathml mspace class="thinspace" width="0.17em"></\a:mathml mspace><\a:mathml mi>#2</\a:mathml mi><\a:mathml mspace class="thinspace" width="0.17em"></\a:mathml mspace>}}
1425 \def\:tempa{\mathop{\:limspaces{lim}{sup}}\limits}
1426 \HLet\limsup\:tempa
1427 \def\:tempa{\mathop{\:limspaces{lim}{inf}}\limits}
1428 \HLet\liminf\:tempa
1429 \def\:temp#1#2{\def\:tempa{\PauseMathClass{\HCode{<mi mathvariant="normal">}\ht:special{t4ht@+\string&{35}x#2{59}}\a:HChar\HCode{</mi>}}\EndPauseMathClass}\HLet#1\:tempa}
1430 \:temp\Gamma{0393}
1431 \:temp\Delta{0394}
1432 \:temp\Theta{0398}
1433 \:temp\Lambda{039B}
1434 \:temp\Xi{039E}
1435 \:temp\Pi{03A0}
1436 \:temp\Sigma{03A3}
1437 \:temp\Upsilon{03A5}
1438 \:temp\Phi{03A6}
1439 \:temp\Psi{03A8}
1440 \:temp\Omega{03A9}
1441
1442 \AtBeginDocument{%
1443 \Configure{mathop*}{*}{}{}{\Configure{mathop}{*}{<\a:mathml mo>}{</\a:mathml mo>}{}}
1444 }
1445
1446 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1447
1448 \endinput\empty\empty\empty\empty\empty\empty
1449 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1450
1451
1452
1453
1454
1455
1456
1457 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1458 \ConfigureHinput{fontmath}
1459 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1460 \ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi
1461 \ifx \find:set:mgroup\:UnDef
1462 \def\find:set:mgroup#1#2#3{\bgroup
1463 \def\use@mathgroup##1##2##3{\relax
1464 \tmp:cnt=##2%
1465 \xdef\:temp####1{\noexpand\Configure{MathClass}{#2}%
1466 {}{}{}{\mathchar"0\the\tmp:cnt ####1}}%
1467 }%
1468 \setbox\tmp:bx=\hbox{$#1$}\setbox\tmp:bx=\hbox{}%
1469 \set:mgroup#3{}{}%
1470 \egroup
1471 }
1472 \fi
1473 \def\set:mgroup#1#2{\if :#1#2:\else
1474 \:temp{#1#2}\expandafter\set:mgroup \fi}
1475
1476 \ifx \mathboldcalMathClass\:UnDef
1477 \NewMathClass\mathboldcalMathClass
1478 \fi
1479 \Configure{MathClass}{\mathboldcalMathClass}{*}
1480 {<\a:mathml mi\Hnewline
1481 mathvariant="bold-script">}{</\a:mathml mi>}{}
1482
1483 \expandafter\ifx\csname mv@bold\endcsname\relax \else
1484 \bgroup
1485 \mathversion{bold}%
1486 \find:set:mgroup{\mathcal{A}}{\mathboldcalMathClass}%
1487 {4142434445464748494A4B4C4D4E4F505152535455565758595A}
1488 \egroup
1489 \fi
1490
1491 \def\:tempa#1{\bgroup\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{</\a:mathml mstyle>}\egroup}
1492 \HLet\mathcal\:tempa
1493
1494 \expandafter\ifx \csname o@everypar\endcsname\relax \else
1495 \expandafter\ifx \csname ht:everypar\endcsname\relax
1496 \let\ht:everypar\o@everypar
1497 \fi\fi
1498
1499 \Configure{MathClass}{1}{}{}{}{
1500 \mathchar"1360
1501 \mathchar"1357
1502 \mathchar"1356
1503 \mathchar"1355
1504 \mathchar"1354
1505 \mathchar"1353
1506 \mathchar"1352
1507 \mathchar"1351
1508 \mathchar"1350
1509 \mathchar"134E
1510 \mathchar"134C
1511 \mathchar"134A
1512 \mathchar"1348
1513 \mathchar"1346
1514 \mathchar"1273
1515 \mathchar"3234
1516 \mathchar"3238
1517 \mathchar"3239
1518 \mathchar"323A
1519 \mathchar"323E
1520 \mathchar"323F
1521 \mathchar"3272
1522 \mathchar"3278
1523 \mathchar"327B
1524 \mathchar"327C
1525 \mathchar"327D
1526 \mathchar"327E
1527 \mathchar"327F
1528 %
1529 }
1530 \Configure{MathClass}{2}{}{}{}{
1531 *-+/
1532 \mathchar"212F
1533 \mathchar"212E
1534 \mathchar"2234
1535 \mathchar"2235
1536 \mathchar"225E
1537 \mathchar"225F
1538 \mathchar"225C
1539 \mathchar"225B
1540 \mathchar"227A
1541 \mathchar"2279
1542 \mathchar"2275
1543 \mathchar"2274
1544 \mathchar"225D
1545 \mathchar"2271
1546 \mathchar"2205
1547 \mathchar"220F
1548 \mathchar"226F
1549 \mathchar"2204
1550 \mathchar"220C
1551 \mathchar"220B
1552 \mathchar"220A
1553 \mathchar"2209
1554 \mathchar"2208
1555 \mathchar"2207
1556 \mathchar"2206
1557 \mathchar"220E
1558 \mathchar"220D
1559 \mathchar"226E
1560 \mathchar"2201
1561 \mathchar"2203
1562 \mathchar"2202
1563 \mathchar"213F
1564 \mathchar"6201 % cdot
1565 }
1566 \Configure{MathClass}{3}{}{}{}{
1567 \mathchar"3128
1568 \mathchar"3129
1569 \mathchar"312A
1570 \mathchar"312B
1571 \mathchar"315E
1572 \mathchar"315F
1573 \mathchar"3210
1574 \mathchar"3211
1575 \mathchar"3212
1576 \mathchar"3213
1577 \mathchar"3214
1578 \mathchar"3215
1579 \mathchar"3216
1580 \mathchar"3217
1581 \mathchar"3218
1582 \mathchar"3219
1583 \mathchar"321A
1584 \mathchar"321B
1585 \mathchar"321C
1586 \mathchar"321D
1587 \mathchar"321E
1588 \mathchar"321F
1589 \mathchar"3220
1590 \mathchar"3221
1591 \mathchar"3224
1592 \mathchar"3227
1593 \mathchar"3232
1594 \mathchar"3233
1595 \mathchar"3236
1596 \mathchar"3237
1597 \mathchar"323F
1598 :=><
1599 \mathchar"322F
1600 \mathchar"3276
1601 \mathchar"3277
1602 \mathchar"326B
1603 \mathchar"326A
1604 \mathchar"3261
1605 \mathchar"3260
1606 \mathchar"3225
1607 \mathchar"3226
1608 \mathchar"322D
1609 \mathchar"322E
1610 \mathchar"322C
1611 \mathchar"3228
1612 \mathchar"3229
1613 }
1614 \Configure{MathClass}{4}{}{}{}{}
1615 \Configure{MathDelimiters}{(}{)}
1616 \Configure{MathDelimiters}{[}{]}
1617 \Configure{MathDelimiters}{\mathchar"4262}{\mathchar"5263}
1618 \Configure{MathDelimiters}{\mathchar"4264}{\mathchar"5265}
1619 \Configure{MathDelimiters}{\mathchar"4266}{\mathchar"5267}
1620 \Configure{MathDelimiters}{\mathchar"4268}{\mathchar"5269}
1621 \Configure{MathDelimiters}{\mathchar"4300}{\mathchar"5301}
1622 \Configure{MathDelimiters}{\mathchar"4302}{\mathchar"5303}
1623 \Configure{MathDelimiters}{\mathchar"4304}{\mathchar"5305}
1624 \Configure{MathDelimiters}{\mathchar"4306}{\mathchar"5307}
1625 \Configure{MathDelimiters}{\mathchar"4308}{\mathchar"5309}
1626 \Configure{MathDelimiters}{\mathchar"430A}{\mathchar"530B}
1627 \Configure{MathClass}{6}{}{}{}{
1628 \mathchar"613A % ldot
1629 \mathchar"603A % colon
1630 !?; ,
1631 }
1632
1633 \Configure{overrightarrow}
1634 {\leavevmode\hbox\bgroup$\Tg<\a:mathml mover accent="true" class="overrightarrow">%
1635 \Tg<\a:mathml mrow\Hnewline>\:gobble}
1636 {\Tg</\a:mathml mrow>\HCode{<\a:mathml mo>&\#x2192;</\a:mathml mo>}%
1637 \Tg</\a:mathml mover>$\egroup}
1638 \Configure{overleftarrow}
1639 {\leavevmode\hbox\bgroup$\Tg<\a:mathml mover accent="true" class="overleftarrow">%
1640 \Tg<\a:mathml mrow\Hnewline>\:gobble}
1641 {\Tg</\a:mathml mrow>\HCode{<\a:mathml mo>&\#x2190;</\a:mathml mo>}%
1642 \Tg</\a:mathml mover>$\egroup}
1643 \Configure{big}
1644 {}{}
1645 {\HCode{<\a:mathml mstyle mathsize="1.19em">}}
1646 {\HCode{</\a:mathml mstyle>}}
1647 \Configure{Big}
1648 {}{}
1649 {\HCode{<\a:mathml mstyle mathsize="1.61em">}}
1650 {\HCode{</\a:mathml mstyle>}}
1651 \Configure{bigg}
1652 {}{}
1653 {\HCode{<\a:mathml mstyle mathsize="2.03em">}}
1654 {\HCode{</\a:mathml mstyle>}}
1655 \Configure{Bigg}
1656 {}{}
1657 {\HCode{<\a:mathml mstyle mathsize="2.45em">}}
1658 {\HCode{</\a:mathml mstyle>}}
1659 \def\:tempc#1{{\hbox{\a:big$\c:big
1660 \left#1\hbox{}\right.\n@space\d:big$\b:big}}}
1661 \HLet\big=\:tempc
1662 \def\:tempc#1{{\hbox{\a:Big$\c:Big
1663 \left#1\hbox{}\right.\n@space\d:Big$\b:Big}}}
1664 \HLet\Big=\:tempc
1665 \def\:tempc#1{{\hbox{\a:bigg$\c:bigg
1666 \left#1\hbox{}\right.\n@space\d:bigg$\b:bigg}}}
1667 \HLet\bigg=\:tempc
1668 \def\:tempc#1{{\hbox{\a:Bigg$\c:Bigg
1669 \left#1\hbox{}\right.\n@space\d:Bigg$\b:Bigg}}}
1670 \HLet\Bigg=\:tempc
1671 \Configure{overbrace}
1672 {\Configure{mathop*}{*}
1673 {<\a:mathml mover \a:mathml accent="false"><\a:mathml mrow>}
1674 {</\a:mathml mrow><\a:mathml mo>\string
1675 &\#xFE37;</\a:mathml mo></\a:mathml mover>}
1676 {\Configure{mathop}{}{}{}{}}%
1677 }
1678 {\let\o:overbrace:=\displaystyle}
1679 {}
1680 \Configure{underbrace}
1681 {\Configure{mathop*}{*}
1682 {<\a:mathml munder
1683 \a:mathml accentunder="false"><\a:mathml mrow>}
1684 {</\a:mathml mrow><\a:mathml mo>\string
1685 &\#x23DF;</\a:mathml mo></\a:mathml munder>}
1686 {\Configure{mathop}{}{}{}{}}%
1687 }
1688 {\let\o:underbrace:=\displaystyle}
1689 {}
1690 \Configure{MathClass}{0}{*}{<\a:mathml mi\Hnewline>}{</\a:mathml mi>}{}
1691 \Configure{MathClass}{1}{*}{<\a:mathml mi\Hnewline
1692 \mml:class="MathClass-op">}{</\a:mathml mi><\a:mathml mo> &\#x2061;<!--FUNCTION APPLICATION--></\a:mathml mo>}{}
1693 \Configure{MathClass}{2}{*}{<\a:mathml mo\Hnewline
1694 \mml:class="MathClass-bin" \a:mathml stretchy="false">}{</\a:mathml mo>}{}
1695 \Configure{MathClass}{3}{*}{<\a:mathml mo\Hnewline
1696 \mml:class="MathClass-rel" \a:mathml stretchy="false">}{</\a:mathml mo>}{}
1697 \Configure{MathClass}{4}{*}{<\a:mathml mo\Hnewline
1698 \mml:class="MathClass-open" \a:mathml stretchy="false">}
1699 {</\a:mathml mo>}{}
1700 \Configure{MathClass}{5}{*}{<\a:mathml mo\Hnewline
1701 \mml:class="MathClass-close" \a:mathml stretchy="false">}
1702 {</\a:mathml mo>}{}
1703 \Configure{MathClass}{6}{*}{<\a:mathml mo\Hnewline
1704 \mml:class="MathClass-punc" \a:mathml stretchy="false">}{</\a:mathml mo>}{}
1705 \Configure{MathClass}{7}{*}{<\a:mathml mn>}{</\a:mathml mn>}
1706 {0123456789}
1707 \ifx \mathordMathClass\:UnDef
1708 \NewMathClass\mathordMathClass
1709 \fi
1710 \Configure{MathClass}{\mathordMathClass}{*}{<\a:mathml mo\Hnewline
1711 \mml:class="MathClass-ord">}{</\a:mathml mo>}{}
1712 \Configure{FormulaClass}{0}{}{}{}
1713 \Configure{FormulaClass}{1}{}{}{}
1714 \Configure{FormulaClass}{2}{}{}{}
1715 \Configure{FormulaClass}{3}{}{}{}
1716 \Configure{FormulaClass}{4}{}{}{}
1717 \Configure{FormulaClass}{5}{}{}{}
1718 \Configure{FormulaClass}{6}{}{}{}
1719 \Css{mo.MathClass-op + mi{margin-left:0.3em}}
1720 \Css{mi + mo.MathClass-op{margin-left:0.3em}}
1721
1722 \def\bold:version{bold}
1723 \Configure{mathbf}%
1724 {\bgroup\Tg<\a:mathml mstyle
1725 mathvariant="bold">}%
1726 {\Tg</\a:mathml mstyle>\egroup}%
1727 \Configure{mathit}%
1728 {\bgroup\Tg<\a:mathml mstyle mathvariant="\ifx
1729 \bold:version\math@version bold-\fi italic">}%
1730 {\Tg</\a:mathml mstyle>\egroup}%
1731 \Configure{mathrm}%
1732 {\bgroup\Tg<\a:mathml mstyle
1733 mathvariant="\ifx
1734 \bold:version\math@version bold\else normal\fi">}%
1735 {\Tg</\a:mathml mstyle>\egroup}%
1736 \Configure{mathsf}%
1737 {\bgroup\Tg<\a:mathml mstyle mathvariant="\ifx
1738 \bold:version\math@version bold-\fi sans-serif">}%
1739 {\Tg</\a:mathml mstyle>\egroup}%
1740 \Configure{mathtt}%
1741 {\bgroup\Tg<\a:mathml mstyle mathvariant="monospace">}%
1742 {\Tg</\a:mathml mstyle>\egroup}%
1743 \Css{
1744 math mstyle[mathvariant="bold"] {
1745 font-weight: bold;
1746 font-style: normal;
1747 }
1748 }
1749 \Css{
1750 math mstyle[mathvariant="normal"] {
1751 font-weight: normal;
1752 font-style: normal;
1753 }
1754 }
1755 \NewConfigure{mathversion-style}[2]{\expandafter\gdef\csname :mathversion-#1\endcsname{#2}}
1756 % ToDo: Add support for other mathversions
1757 \Configure{mathversion-style}{bold}{\a:mathml mathvariant="bold-italic"}
1758 \append:defI\mathversion{%
1759 % \a:DviMathML is executed at the beginning of math \a:@math is hook for attributes. we need to append out tags to it
1760 \Configure{DviMathML}{\append:def\a:@math{\ifcsname :mathversion-\math@version\endcsname\expandafter\csname :mathversion-\math@version\endcsname\fi}}{}%
1761 }
1762
1763 \def\:tempd#1#2{%
1764 \expandafter\def\csname #1\endcsname{\mathchar"13#2\relax}%
1765 \MathSymbol\mathop{#1}%
1766 \expandafter\def\csname #1:limits\endcsname{\expandafter
1767 \:same \math:sym\mathop{#1}\limits}%
1768 \expandafter\ProvideDocumentCommand\csname #1:nolimits\endcsname{}{\expandafter
1769 \:same \math:sym\mathop{#1}\nolimits}%
1770 \expandafter\edef\csname n:#1:\endcsname{\noexpand\ifDisplayMath
1771 \noexpand\expandafter \expandafter\noexpand \csname #1:limits\endcsname
1772 \noexpand\else \noexpand\expandafter
1773 \expandafter\noexpand
1774 \csname #1:nolimits\endcsname\noexpand\fi}%
1775 \expandafter\pend:def\csname n:#1:\endcsname{\ifDisplayMath
1776 \mathop:prefix{}\fi}%
1777 }
1778 \:tempd{bigcap}{54}
1779 \:tempd{bigcup}{53}
1780 \:tempd{bigodot}{4A}
1781 \:tempd{bigoplus}{4C}
1782 \:tempd{bigotimes}{4E}
1783 \:tempd{bigsqcup}{46}
1784 \:tempd{biguplus}{55}
1785 \:tempd{bigvee}{57}
1786 \:tempd{bigwedge}{56}
1787 \:tempd{coprod}{60}
1788 \:tempd{intop}{52}
1789 \:tempd{ointop}{48}
1790 \:tempd{prod}{51}
1791 \:tempd{sum}{50}
1792 \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:int::}
1793 \HLet\n:int:\:tempc
1794
1795 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1796
1797 \endinput\empty\empty\empty\empty\empty\empty
1798 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1819 \ConfigureHinput{amsbsy}
1820 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1821 \Configure{pmb}
1822 {\ifmmode \HCode{<!--binary math rel, tripple hight-->}\fi}
1823 {\ifmmode \HCode{<!--/binary math rel, tripple hight-->}\fi}
1824
1825 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1826
1827 \endinput\empty\empty\empty\empty\empty\empty
1828 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1829
1830 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1831 \ConfigureHinput{amsmath}
1832 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1833 \Configure{underarrow@}
1834 {\Tg<\a:mathml munder>\Tg<\a:mathml mrow\Hnewline>}
1835 {\Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>}
1836 {\Tg</\a:mathml mrow>\Tg</\a:mathml munder>}
1837 \Configure{overarrow@}
1838 {\Tg<\a:mathml mover accent="true">\Tg<\a:mathml mrow\Hnewline>}
1839 {\Tg</\a:mathml mrow>\Tg<\a:mathml mrow>}
1840 {\Tg</\a:mathml mrow>\Tg</\a:mathml mover>}
1841 \def\:tempc#1#2#3{\a:overarrow@
1842 \hbox{$\m@th#2#3$}\b:overarrow@
1843 \hbox{#1#2}\c:overarrow@
1844 }
1845 \HLet\overarrow@\:tempc
1846
1847 \Configure{equation}
1848 {\Configure{gather}
1849 {\HCode{<\a:mathml mtable\Hnewline \a:mathml displaystyle="true"
1850 \mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar }
1851 {\HCode{</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}}
1852 {}
1853 {}
1854 {\ifnum\HCol=2 \IgnorePar
1855 \HCode{</\a:mathml mtd><\a:mathml mtd>}\fi }
1856 {}
1857 }{}{}
1858 \Css{.equation-star td{text-align:center; vertical-align:middle; }}
1859 \Css{table.equation-star { width:100\%; } }
1860 \def\eq:mathopen#1{\ifx\relax#1\relax\else\a:mathopen\fi\o:mathopen:{#1}}
1861
1862 % fix \mathopen inside equation
1863 \Configure{@begin}{equation}{\let\mathopen\eq:mathopen%
1864 }
1865 \Configure{above}
1866 {\Send{GROUP}{0}{<\a:mathml mfrac
1867 linethickness="\the\tmp:dim"><\a:mathml mrow>}%
1868 \HCode{</\a:mathml mrow>}\o:@@over:\:gobbleII}
1869 {\HCode{<\a:mathml
1870 mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}}
1871 \def\overwithdelims:III#1#2#3{%
1872 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1873 \Send{GROUP}{0}{<\a:mathml mfrac linethickness="0"><\a:mathml mrow>}%
1874 \HCode{</\a:mathml mrow>}\o:over:
1875 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}
1876 \else
1877 \Send{GROUP}{0}{<\a:mathml mfenced \a:mathml separators=""\Hnewline
1878 \a:mathml open="\expandafter
1879 \ifx \csname \string#2:lr del\endcsname\relax #2\else
1880 \csname \string#2:lr del\endcsname\fi
1881 " \a:mathml close="\expandafter
1882 \ifx \csname \string#3:lr del\endcsname\relax #3\else
1883 \csname \string#3:lr del\endcsname\fi
1884 "><\a:mathml mfrac
1885 \a:mathml linethickness="0"><\a:mathml mrow>}%
1886 \HCode{</\a:mathml mrow>}\o:@@over:
1887 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml
1888 mrow></\a:mathml mfrac></\a:mathml mfenced>}
1889 \fi
1890 }
1891 \Configure{tmspace}
1892 {\ifdim \textspace>0.2em
1893 \HCode{<\a:mathml mspace
1894 width="\textspace" \mml:class="tmspace"/>}%
1895 \else \HCode{<\a:mathml mspace
1896 width="0.3em" \mml:class="thinspace"/>}\fi
1897 }
1898 \Configure{mfenced}{\lvert}{\string&\#x007C;}
1899 \Configure{mfenced}{\rvert}{\string&\#x007C;}
1900 \Configure{mfenced}{\lVert}{\string&\#x2016;}
1901 \Configure{mfenced}{\rVert}{\string&\#x2016;}
1902 \Configure{split}
1903 {\HCode{<\a:mathml mtable \Hnewline
1904 \a:mathml columnalign="right left"
1905 \mml:class="split">}}
1906 {\ifvmode\IgnorePar\fi \HCode{</\a:mathml mtable>}}
1907 {\HCode{<\a:mathml mtr \mml:class="split-mtr">}}
1908 {\HCode{</\a:mathml mtr>}}
1909 {\HCode{<\a:mathml mtd\Hnewline \mml:class="split-mtd">}}
1910 {\HCode{</\a:mathml mtd>}}
1911 \Configure{multline}
1912 {\HCode{<\a:mathml mtable\Hnewline \a:mathml displaystyle="true" \mml:class="multline">}}
1913 {\HCode{</\a:mathml mtable>}}
1914 {\HCode{<\a:mathml mtr>%
1915 <\a:mathml mtd\Hnewline \mml:class="multline">}}
1916 {\HCode{</\a:mathml mtd></\a:mathml mtr>}}
1917 {\HCode{</\a:mathml mtd><\a:mathml mtd>}}
1918 {}
1919 \Configure{multline*}
1920 {\HCode{<\a:mathml mtable\Hnewline \a:mathml displaystyle="true" \mml:class="multline-star">}}
1921 {\HCode{</\a:mathml mtable>}}
1922 {\HCode{<\a:mathml mtr><\a:mathml mtd\Hnewline
1923 \mml:class="multline-star">}}
1924 {\HCode{</\a:mathml mtd></\a:mathml mtr>}}
1925 \Configure{gather}
1926 {\HCode{<\a:mathml mtable\Hnewline \a:mathml displaystyle="true" \mml:class="gather">}}
1927 {\HCode{</\a:mathml mtable>}}
1928 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
1929 {\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
1930 \Configure{gather*}
1931 {\HCode{<\a:mathml mtable\Hnewline \a:mathml displaystyle="true" \mml:class="gather-star">}}
1932 {\HCode{</\a:mathml mtable>}}
1933 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
1934 {\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
1935 \Configure{subarray}
1936 {\HCode{<\a:mathml mtable \mml:class="subarray\if c\Hlcr-c\fi"
1937 \a:mathml rowspacing="0"
1938 \if c\Hlcr \a:mathml columnalign="center"\fi>}}
1939 {\HCode{</\a:mathml mtable>}}
1940 {\HCode{<\a:mathml mtr><\a:mathml mtd>}}
1941 {\HCode{</\a:mathml mtd></\a:mathml mtr>}}
1942 \Configure{smallmatrix}
1943 {\HCode{<\a:mathml mtable>}}
1944 {\HCode{</\a:mathml mtable>}}
1945 {\HCode{<\a:mathml mtr\Hnewline \mml:class="smallmatrix">}}
1946 {\HCode{</\a:mathml mtr>}}
1947 {\HCode{\Hnewline<\a:mathml mtd>}}
1948 {\HCode{</\a:mathml mtd>}}
1949 \def\:tempc#1#2{%
1950 \ConfigureEnv{#1}
1951 {\def\end:al:env{}\ifmmode\else
1952 \ifvmode\else \def\end:al:env{\par\ShowPar\IgnoreIndent}\fi\fi}
1953 {\end:al:env }
1954 {}{}%
1955 \Configure{#1}
1956 {\IgnorePar
1957 \ifvmode \EndP \else \EndP \HCode{<!--tex4ht:inline-->}\fi
1958 \ifmathml
1959 \Tg<\a:mathml mrow>\def\end:mathalign{\Tg</\a:mathml mrow>}%
1960 \else
1961 \Configure{@math}{%\a:mathml
1962 display="block"
1963 }\DviMath
1964 \def\end:mathalign{\EndDviMath \DisplayMathfalse}%
1965 \DisplayMathtrue
1966 \fi
1967 \HCode{<\a:mathml mtable\Hnewline
1968 \a:mathml displaystyle="true" \a:mathml columnalign="left" \mml:class="#2">}}
1969 {\HCode{</\a:mathml mtable>}\end:mathalign }
1970 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
1971 {\HCode{<\a:mathml mtd\Hnewline
1972 \ifodd\HCol \a:mathml columnalign="right" \fi
1973 %
1974 \mml:class="align-\ifnum \HCol>\maxfields@ label\else
1975 \ifodd\HCol\space odd\else even\fi
1976 \fi">}}
1977 {\HCode{\ifodd\HCol\space\else
1978 <\a:mathml mspace width="2em"/>\fi
1979 </\a:mathml mtd>}}}
1980 \:tempc{align}{align}
1981 \:tempc{alignat}{alignat}
1982 \:tempc{xalignat}{xalignat}
1983 \:tempc{xxalignat}{xxalignat}
1984 \:tempc{flalign}{flalign}
1985 \:tempc{align*}{align-star}
1986 \:tempc{alignat*}{alignat-star}
1987 \:tempc{xalignat*}{xalignat-star}
1988 \:tempc{flalign*}{flalign-star}
1989 \Configure{gathered}
1990 {\HCode{<\a:mathml mtable\Hnewline \mml:class="gathered" \a:mathml displaystyle="true" \mtable:align:attribute>}}
1991 {\HCode{</\a:mathml mtable>}}
1992 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
1993 {\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
1994 \Configure{[]}{\begin{equation*}}{\end{equation*}}
1995 \Configure{underrightarrow}
1996 {\Tg<\a:mathml munder>\Tg<\a:mathml mrow\Hnewline>\:gobble}
1997 {\Tg</\a:mathml mrow>\mathop{\rightarrow}\Tg</\a:mathml munder>}
1998 \Configure{underleftarrow}
1999 {\Tg<\a:mathml munder>\Tg<\a:mathml mrow\Hnewline>\:gobble}
2000 {\Tg</\a:mathml mrow>\mathop{\leftarrow}\Tg</\a:mathml munder>}
2001 \Configure{overleftrightarrow}
2002 {\Tg<\a:mathml mover class="overleftrightarrow">\Tg<\a:mathml mrow\Hnewline>\:gobble}
2003 {\Tg</\a:mathml mrow>\mathop{\HCode{&\#x20E1;}}\Tg</\a:mathml mover>}
2004 \Configure{underleftrightarrow}
2005 {\Tg<\a:mathml munder>\Tg<\a:mathml mrow\Hnewline>\:gobble}
2006 {\Tg</\a:mathml mrow>\mathop{\leftrightarrow}\Tg</\a:mathml munder>}
2007 \def\m:env#1{\HCode{<\a:mathml mtable
2008 \mml:class="#1"><\a:mathml mtr><\a:mathml mtd>}%
2009 \def\endm:env{\HCode
2010 {</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}}}
2011
2012 \renewcommand{\xrightarrow}[2][]{%
2013 \Tg<\a:mathml munderover>%
2014 \rightarrow
2015 \Tg<\a:mathml mrow\Hnewline>#1\Tg</\a:mathml mrow>%
2016 \Tg<\a:mathml mrow\Hnewline>#2\Tg</\a:mathml mrow>%
2017 \Tg</\a:mathml munderover>}%
2018 \renewcommand{\xleftarrow}[2][]{%
2019 \Tg<\a:mathml munderover>%
2020 \leftarrow
2021 \Tg<\a:mathml mrow\Hnewline>#1\Tg</\a:mathml mrow>%
2022 \Tg<\a:mathml mrow\Hnewline>#2\Tg</\a:mathml mrow>%
2023 \Tg</\a:mathml munderover>}%
2024
2025 \def\overset#1#2{{%
2026 \Tg<\a:mathml mover class="overset">\Tg<\a:mathml
2027 mrow\Hnewline>#2\Tg</\a:mathml mrow>%
2028 \Tg<\a:mathml mrow\Hnewline>#1\Tg</\a:mathml mrow>%
2029 \Tg</\a:mathml mover>}}%
2030 \def\underset#1#2{{%
2031 \Tg<\a:mathml munder>\Tg<\a:mathml mrow\Hnewline>#2\Tg</\a:mathml mrow>%
2032 \Tg<\a:mathml mrow\Hnewline>#1\Tg</\a:mathml mrow>%
2033 \Tg</\a:mathml munder>}}%
2034
2035 \def\sideset#1#2#3{{\Tg<\a:mathml mrow \mml:class="sideset"\Hnewline
2036 >{\HCode{}}#1{\HCode{}#3}#2\Tg</\a:mathml mrow>}}
2037 \ConfigureEnv{eqxample}{}{}{}{}
2038 \ConfigureEnv{gather*}{}{}{}{}
2039 \ConfigureEnv{gathered}{}{}{}{}
2040 \ConfigureEnv{matrix}{}{}{}{}
2041
2042 \def\:tempc{\DOTSI\protect\:idotsint}
2043 \HLet\idotsint\:tempc
2044 \def\:idotsint{%
2045 \mathop{\intop\cdotp\cdotp\cdotp\intop }\ilimits@
2046 }
2047 \def\:tempc{\HCode{<\a:mathml mspace width="0.2em"/>}\mathbin
2048 {mod}\HCode{<\a:mathml mspace width="0.2em"/>}}
2049 \HLet\bmod\:tempc
2050 \def\:tempc#1{\allowbreak
2051 \HCode{<\a:mathml mspace width="0.3em"/>}(#1)}
2052 \HLet\pod=\:tempc
2053 \def\:tempc#1{\pod{\mathop{mod}\HCode{<\a:mathml mspace width="0.3em"/>}#1}}
2054 \HLet\pmod=\:tempc
2055 \def\:tempc#1{\allowbreak
2056 \HCode{<\a:mathml mspace width="0.3em"/>}\mathop
2057 {mod}\HCode{<\a:mathml mspace width="0.3em"/>}#1}
2058 \HLet\mod=\:tempc
2059
2060 \Configure{intertext}
2061 {\IgnorePar \ifinalign@
2062 \HCode{\ifnum \HRow>0 </\a:mathml mtd></\a:mathml mtr>\fi
2063 <\a:mathml mtr><\a:mathml mtd
2064 columnspan="\ifnum \HRow=0 15\else \HCol\fi"
2065 \mml:class="intertext">}%
2066 \else \ifingather@
2067 \HCode{<\a:mathml mtr><\a:mathml mtd columnspan="\HCol"
2068 \mml:class="intertext">}%
2069 \fi\fi
2070 \AA:text{intertext}%
2071 }
2072 {\BB:text \ifvmode \IgnorePar \fi \EndP\ifinalign@
2073 \HCode{</\a:mathml mtd></\a:mathml mtr>%
2074 \ifnum \HRow>0 <\a:mathml mtr><\a:mathml mtd>\fi}%
2075 \else \ifingather@
2076 \HCode{</\a:mathml mtd></\a:mathml mtr>}%
2077 \fi\fi
2078 }
2079 \Configure{boldsymbol}{\bgroup\HCode{<\a:mathml mstyle mathvariant="bold-italic">}}{\HCode{</\a:mathml mstyle>}\egroup}
2080 \Configure{maketag}
2081 {\ifmathml
2082 \ifmtext \expandafter\expandafter\expandafter\no:maketag\fi
2083 \else \expandafter\no:maketag\fi
2084 \AA:text{maketag}\hbox\bgroup\:gobbleIII :@:}
2085 {\egroup\BB:text\ }
2086 \def\no:maketag#1:@:#2\b:maketag{\hbox{#2}}
2087 \Configure{abovewithdelims}
2088 {\abovewithdelims:III}
2089 {}
2090 \def\abovewithdelims:III#1#2#3{%
2091 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
2092 \Send{GROUP}{0}{<\a:mathml mfrac linethickness="\the\tmp:dim"><\a:mathml mrow>}%
2093 \HCode{</\a:mathml mrow>}\o:@@over:
2094 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}
2095 \else
2096 \Send{GROUP}{0}{<\a:mathml mfenced \a:mathml separators=""\Hnewline
2097 \a:mathml open="\expandafter
2098 \ifx \csname \string#2:lr del\endcsname\relax #2\else
2099 \csname \string#2:lr del\endcsname\fi
2100 " \a:mathml close="\expandafter
2101 \ifx \csname \string#3:lr del\endcsname\relax #3\else
2102 \csname \string#3:lr del\endcsname\fi
2103 "><\a:mathml mfrac
2104 \a:mathml linethickness="\the\tmp:dim"><\a:mathml mrow>}%
2105 \HCode{</\a:mathml mrow>}\o:@@over:
2106 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml
2107 mrow></\a:mathml mfrac></\a:mathml mfenced>}
2108 \fi
2109 \tmp:dim
2110 }
2111 \Configure{atopwithdelims}
2112 {\atopwithdelims:III}
2113 {}
2114 \def\atopwithdelims:III#1#2#3{%
2115 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
2116 \Send{GROUP}{0}{<\a:mathml mfrac \a:mathml linethickness="0"><\a:mathml mrow>}%
2117 \HCode{</\a:mathml mrow>}\o:@@atop:
2118 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}
2119 \else
2120 \Send{GROUP}{0}{<\a:mathml mfenced \a:mathml separators=""\Hnewline
2121 \a:mathml open="\expandafter
2122 \ifx \csname \string#2:lr del\endcsname\relax #2\else
2123 \csname \string#2:lr del\endcsname\fi
2124 " \a:mathml close="\expandafter
2125 \ifx \csname \string#3:lr del\endcsname\relax #3\else
2126 \csname \string#3:lr del\endcsname\fi
2127 "><\a:mathml mfrac
2128 \a:mathml linethickness="0"><\a:mathml mrow>}%
2129 \HCode{</\a:mathml mrow>}\o:@@atop:
2130 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml
2131 mrow></\a:mathml mfrac></\a:mathml mfenced>}
2132 \fi
2133 }
2134 \Configure{overwithdelims}
2135 {\overwithdelims:III}
2136 {}
2137 \def\overwithdelims:III#1#2#3{%
2138 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
2139 \Send{GROUP}{0}{<\a:mathml mfrac><\a:mathml mrow>}%
2140 \HCode{</\a:mathml mrow>}\o:@@over:
2141 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml mrow></\a:mathml mfrac>}
2142 \else
2143 \Send{GROUP}{0}{<\a:mathml mfenced \a:mathml separators=""\Hnewline
2144 \a:mathml open="\expandafter
2145 \ifx \csname \string#2:lr del\endcsname\relax #2\else
2146 \csname \string#2:lr del\endcsname\fi
2147 " \a:mathml close="\expandafter
2148 \ifx \csname \string#3:lr del\endcsname\relax #3\else
2149 \csname \string#3:lr del\endcsname\fi
2150 "><\a:mathml mfrac><\a:mathml mrow>}%
2151 \HCode{</\a:mathml mrow>}\o:@@over:
2152 \HCode{<\a:mathml mrow>}\Send{EndGROUP}{0}{</\a:mathml
2153 mrow></\a:mathml mfrac></\a:mathml mfenced>}
2154 \fi
2155 }
2156 \pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="true"><mfrac><mrow>}
2157 \Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
2158 } {}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
2159 \pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="false"><mfrac><mrow>}
2160 \Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
2161 }{}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
2162 \pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="true">}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
2163 \pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="false">}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
2164 \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iint::}
2165 \HLet\n:iint:\:tempc
2166 \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iiint::}
2167 \HLet\n:iiint:\:tempc
2168 \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:idotsint::}
2169 \HLet\n:idotsint:\:tempc
2170 \ifx \ilimits@\o:nolimits:
2171 \let\ilimits@\nolimits
2172 \fi
2173 \ifx \ilimits@\o:nolimits:
2174 \let\slimits@\nolimits
2175 \fi
2176 \ifx \ilimits@\o:displaylimits:
2177 \let\ilimits@\nolimits
2178 \fi
2179 % thanks to Linas Stonys for this code
2180 \def\mtable:align:attribute{%
2181 \if t\Hlcr\space\a:mathml align="axis 1"\fi
2182 \if b\Hlcr\space\a:mathml align="axis -1"\fi
2183 }
2184
2185 \Configure{aligned}
2186 {\HCode{<\a:mathml mtable\Hnewline \mml:class="aligned" \a:mathml displaystyle="true" \mtable:align:attribute>}}
2187 {\HCode{</\a:mathml mtable>}}
2188 {\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
2189 {\HCode{<\a:mathml mtd
2190 \a:mathml columnalign="\ifodd\HCol right\else left\fi" >}}
2191 {\HCode{</\a:mathml mtd>}}
2192 \Configure{alignedat}
2193 {\HCode{<\a:mathml mtable\Hnewline \mml:class="alignedat" \a:mathml displaystyle="true" \mtable:align:attribute>}}
2194 {\HCode{</\a:mathml mtable>}}
2195 {\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
2196 {\HCode{<\a:mathml mtd
2197 \a:mathml columnalign="\ifodd\HCol right\else left\fi" >}}
2198 {\HCode{</\a:mathml mtd>}}
2199 \Configure{boxed}
2200 {\ifmathml \Tg<\a:mathml menclose \a:mathml notation="box">\Tg<\a:mathml mrow>%
2201 \else \HCode{<span class="boxed">}\fi\IgnorePar}
2202 {\ifmathml \Tg</\a:mathml mrow>\Tg</\a:mathml menclose>%
2203 \else \HCode{</span>}\fi}
2204 \Css{.boxed{border: 1px solid black; padding-left:2px;
2205 padding-right:2px;}}
2206
2207 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2208
2209 \endinput\empty\empty\empty\empty\empty\empty
2210 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2211
2212 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2213 \ConfigureHinput{amsfonts}
2214 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2215 \Configure{mathbb}{}{}
2216 \Configure{mathfrak}{}{}
2217
2218 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2219
2220 \endinput\empty\empty\empty\empty\empty\empty
2221 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2222
2223 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2224 \ConfigureHinput{amstext}
2225 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2226 \Configure{text}{\AA:text{text}}{\BB:text}
2227
2228 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2229
2230 \endinput\empty\empty\empty\empty\empty\empty
2231 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2232
2233 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2234 \ConfigureHinput{amstex1}
2235 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2236 % amstex.sty
2237 \Configure{underarrow@}
2238 {\Tg<\a:mathml munder>\Tg<\a:mathml mrow\Hnewline>}
2239 {\Tg</\a:mathml mrow>\Tg<\a:mathml mrow\Hnewline>}
2240 {\Tg</\a:mathml mrow>\Tg</\a:mathml munder>}
2241 \Configure{overarrow@}
2242 {\Tg<\a:mathml mover accent="true">\Tg<\a:mathml mrow\Hnewline>}
2243 {\Tg</\a:mathml mrow>\Tg<\a:mathml mrow>}
2244 {\Tg</\a:mathml mrow>\Tg</\a:mathml mover>}
2245 \def\:tempc#1#2#3{\a:overarrow@
2246 \hbox{$\m@th#2#3$}\b:overarrow@
2247 \hbox{#1#2}\c:overarrow@
2248 }
2249 \HLet\overarrow@\:tempc
2250
2251 \Configure{mfenced}{\lvert}{\string&\#x007C;}
2252 \Configure{mfenced}{\rvert}{\string&\#x007C;}
2253 \Configure{mfenced}{\lVert}{\string&\#x2016;}
2254 \Configure{mfenced}{\rVert}{\string&\#x2016;}
2255 \ConfigureEnv{aligned}{}{}{}{}
2256 \Configure{aligned}
2257 {\HCode{<\a:mathml mtable\Hnewline \mml:class="aligned">}}
2258 {\HCode{</\a:mathml mtable>}}
2259 {\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
2260 {\HCode{<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
2261
2262
2263 \def\:tempc{{\underrightarrow\lim}} \HLet\varinjlim\:tempc
2264 \def\:tempc{{\underleftarrow\lim}} \HLet\varprojlim\:tempc
2265 \def\:tempc{{\overline\lim}} \HLet\varlimsup\:tempc
2266 \def\:tempc{{\underline\lim}} \HLet\varliminf\:tempc
2267 \def\:tempc#1#2#3{\hbox{{\mtexttrue
2268 \HCode{<\a:mathml mrow\Hnewline
2269 \mml:class="text"><\a:mathml mtext
2270 \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
2271 \PauseMathClass
2272 \Configure{$}{\EndPauseMathClass\mtextfalse
2273 \ht:special{t4ht@,}%
2274 \HCode{</\a:mathml mtext><\a:mathml
2275 mrow\Hnewline \mml:class="math">}}
2276 {\HCode{</\a:mathml mrow><\a:mathml mtext
2277 \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
2278 \mtexttrue\PauseMathClass}{#1}
2279 \let\f@size#2\selectfont #3}%
2280 \mtextfalse \EndPauseMathClass \ht:special{t4ht@,}%
2281 \HCode
2282 {</\a:mathml mtext></\a:mathml mrow>}}}
2283 \HLet\textdef@\:tempc
2284
2285 \ifx \o:overrightarrow:\:UnDef\else
2286 \HRestore\overrightarrow
2287 \HRestore\overleftarrow
2288 \HRestore\overleftrightarrow
2289 \fi
2290
2291 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2292
2293 \endinput\empty\empty\empty\empty\empty\empty
2294 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2295
2296 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2297 \ConfigureHinput{amstex}
2298 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2299 % amstex.tex
2300 \def\m:env#1{\HCode{<\a:mathml mtable
2301 \mml:class="#1"><\a:mathml mtr><\a:mathml mtd>}%
2302 \def\endm:env{\HCode
2303 {</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}}}
2304
2305 \Configure{pmatrix}
2306 {\bgroup\m:env{pmatrix}}
2307 {\endm:env\egroup}
2308 \Configure{multline}
2309 {\HCode{<\a:mathml mtable\mml:class="multline">}}
2310 {\HCode{</\a:mathml mtable>}}
2311 {\HCode{<\a:mathml mtr\Hnewline\mml:class="multline"><\a:mathml mtd>}}
2312 {\HCode{</\a:mathml mtd></\a:mathml mtr>}}
2313 \Configure{smallmatrix}
2314 {\HCode{<\a:mathml mtable\mml:class="smallmatrix">}}
2315 {\HCode{</\a:mathml mtable>}}
2316 {\HCode{<\a:mathml mtr\Hnewline\mml:class="smallmatrix">}}
2317 {\HCode{</\a:mathml mtr>}}
2318 {\HCode{<\a:mathml mtd\Hnewline\mml:class="smallmatrix">}}
2319 {\HCode{</\a:mathml mtd>}}
2320 \Configure{bmatrix}
2321 {\bgroup\m:env{bmatrix}}
2322 {\endm:env\egroup}
2323 \Configure{vmatrix}{\bgroup\m:env{vmatrix}}{\endm:env\egroup}
2324 \Configure{Vmatrix}{\bgroup\m:env{Vmatrix}}{\endm:env\egroup}
2325 \Configure{aligned}
2326 {\HCode{<\a:mathml mtable\mml:class="aligned" \a:mathml displaystyle="true">}}
2327 {\HCode{</\a:mathml mtable>}}
2328 {\HCode{<\a:mathml mtr\Hnewline\mml:class="aligned">}}
2329 {\HCode{</\a:mathml mtr>}}
2330 {\HCode{<\a:mathml mtd\Hnewline\mml:class="aligned">}}
2331 {\HCode{</\a:mathml mtd>}}
2332 \Configure{xalignat}
2333 {\HCode{<\a:mathml mtable\mml:class="xalignat" \a:mathml displaystyle="true">}}
2334 {\HCode{</\a:mathml mtable>}}
2335 {\HCode{<\a:mathml mtr\Hnewline \mml:class="xalignat">}}
2336 {\HCode{</\a:mathml mtr>}}
2337 {\HCode{<\a:mathml mtd\Hnewline \mml:class="xalignat">}}
2338 {\HCode{</\a:mathml mtd>}}
2339 \Configure{xxalignat}
2340 {\HCode{<\a:mathml mtable \mml:class="xxalignat" \a:mathml displaystyle="true">}}
2341 {\HCode{</\a:mathml mtable>}}
2342 {\HCode{<\a:mathml mtr\Hnewline \mml:class="xxalignat">}}
2343 {\HCode{</\a:mathml mtr>}}
2344 {\HCode{<\a:mathml mtd\Hnewline \mml:class="xxalignat">}}
2345 {\HCode{</\a:mathml mtd>}}
2346 \Configure{alignedat}
2347 {\HCode{<\a:mathml mtable \mml:class="alignedat" \a:mathml displaystyle="true">}}
2348 {\HCode{</\a:mathml mtable>}}
2349 {\HCode{<\a:mathml mtr\Hnewline \mml:class="alignedat">}}
2350 {\HCode{</\a:mathml mtr>}}
2351 {\HCode{<\a:mathml mtd\Hnewline \mml:class="alignedat">}}
2352 {\HCode{</\a:mathml mtd>}}
2353 \Configure{gathered}
2354 {\HCode{<\a:mathml mtable \mml:class="gathered" \a:mathml displaystyle="true">}}
2355 {\HCode{</\a:mathml mtable>}}
2356 {\HCode{<\a:mathml mtr\Hnewline \mml:class="gathered">}}
2357 {\HCode{</\a:mathml mtr>}}
2358 {\HCode{<\a:mathml mtd\Hnewline \mml:class="gathered">}}
2359 {\HCode{</\a:mathml mtd>}}
2360 \NewConfigure{@mtext}{1}
2361 \Configure{@mtext}{ }
2362 \def\AA:text#1{\mtexttrue
2363 \HCode{<\a:mathml mstyle\Hnewline \mml:class="#1"><\a:mathml
2364 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
2365 \PauseMathClass
2366 \ifmmode\else
2367 \Configure{$}%
2368 {\EndPauseMathClass \mtextfalse
2369 \ht:special{t4ht@,}%
2370 \HCode{</\a:mathml mtext><\a:mathml
2371 mstyle\Hnewline \mml:class="math">}}%
2372 {\HCode{</\a:mathml mstyle><\a:mathml
2373 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
2374 \PauseMathClass
2375 \mtexttrue}%
2376 {}%
2377 \Configure{()}%
2378 {\EndPauseMathClass \mtextfalse
2379 \ht:special{t4ht@,}%
2380 \HCode{</\a:mathml mtext><\a:mathml
2381 mstyle\Hnewline \mml:class="math">}$}%
2382 {$\HCode{</\a:mathml mstyle><\a:mathml
2383 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
2384 \PauseMathClass
2385 \mtexttrue}%
2386 {}%
2387 %
2388 \fi
2389 }
2390 \def\BB:text{\mtextfalse\EndPauseMathClass\ht:special{t4ht@,}%
2391 \HCode
2392 {</\a:mathml mtext></\a:mathml mstyle>}%
2393 }
2394
2395 \Configure{text}{\AA:text{text}}{\BB:text}
2396 \Configure{format}
2397 {\HCode{<\a:mathml mtable \mml:class="format">}}
2398 {\HCode{</\a:mathml mtable>}}
2399 {\HCode{<\a:mathml mtr\Hnewline \mml:class="format">}}
2400 {\HCode{</\a:mathml mtr>}}
2401 {\HCode{<\a:mathml mtd\Hnewline \mml:class="format">}}
2402 {\HCode{</\a:mathml mtd>}}
2403 \Configure{multilimits}
2404 {\HCode{<\a:mathml mtable\Hnewline \mml:class="multilimits">}}
2405 {\HCode{</\a:mathml mtable>}}
2406 {\HCode{<\a:mathml mtr><\a:mathml mtd\Hnewline>}}
2407 {\HCode{</\a:mathml mtd></\a:mathml mtr>}}
2408 \Configure{smallmatrix}
2409 {\HCode{<\a:mathml mtable\Hnewline \mml:class="smallmatrix">}}
2410 {\HCode{</\a:mathml mtable>}}
2411 {\HCode{<\a:mathml mtr>}}
2412 {\HCode{</\a:mathml mtr>}}
2413 {\HCode{<\a:mathml mtd\Hnewline>}}
2414 {\HCode{</\a:mathml mtd>}}
2415 \Configure{matrix}
2416 {\HCode{<\a:mathml mtable\Hnewline \mml:class="matrix">}}
2417 {\HCode{</\a:mathml mtable>}}
2418 {\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
2419 {\HCode{\HCode{<\a:mathml mtd\Hnewline \mml:class="matrix"
2420 \ifnum 1<\HMultispan columnspan="\HMultispan"\fi}%
2421 \halignTD \HCode{>}%
2422 }} {\HCode{</\a:mathml mtd>}}
2423 \Configure{pmatrix}{\Tg<\a:mathml mrow \mml:class="pmatrix">}
2424 {\Tg</\a:mathml mrow>}
2425 \Configure{align}
2426 {\HCode{<\a:mathml mtable\Hnewline \mml:class="align">}}
2427 {\HCode{</\a:mathml mtable>}}
2428 {\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
2429 {\HCode{<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
2430 \Configure{aligned}
2431 {\HCode{<\a:mathml mtable\Hnewline \mml:class="aligned">}}
2432 {\HCode{</\a:mathml mtable>}}
2433 {\HCode{<\a:mathml mtr\Hnewline>}} {\HCode{</\a:mathml mtr>}}
2434 {\HCode{<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
2435 \Configure{cases}
2436 {\Tg<\a:mathml mrow \mml:class="cases">}
2437 {\Tg</\a:mathml mrow>}
2438 \Configure{alignat}
2439 {\HCode{<\a:mathml mtable \mml:class="alignat">}}
2440 {\HCode{</\a:mathml mtable>}}
2441 {\HCode{<\a:mathml mtr\Hnewline \mml:class="alignat">}}
2442 {\HCode{</\a:mathml mtr>}}
2443 {\HCode{<\a:mathml mtd\Hnewline \mml:class="alignat">}}
2444 {\HCode{</\a:mathml mtd>}}
2445 \Configure{gather}
2446 {\HCode{<\a:mathml mtable \mml:class="gather">}}
2447 {\HCode{</\a:mathml mtable>}}
2448 {\HCode{<\a:mathml mtr\Hnewline \mml:class="gather">}}
2449 {\HCode{</\a:mathml mtr>}}
2450 {\HCode{<\a:mathml mtd\Hnewline \mml:class="gather">}}
2451 {\HCode{</\a:mathml mtd>}}
2452
2453
2454 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2455
2456 \endinput\empty\empty\empty\empty\empty\empty
2457 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2458
2459
2460
2461
2462
2463
2464 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2465 \ConfigureHinput{plain}
2466 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2467 \:CheckOption{core}\if:Option \expandafter\endinput \fi
2468 \Configure{eqalign}
2469 {\HCode{<\a:mathml mtable \mml:class="eqalign">}}
2470 {\HCode{</\a:mathml mtable>}}
2471 {\HCode{<\a:mathml mtr \Hnewline \mml:class="eqalign">}}
2472 {\IgnorePar\HCode{</\a:mathml mtr>}}
2473 {\HCode{\ifnum \HCol=3 <\a:mathml mtd\Hnewline
2474 \mml:class="eqalign3"></\a:mathml mtd>\fi
2475 <\a:mathml mtd \Hnewline \mml:class="eqalign\HCol">}}
2476 {\HCode{</\a:mathml mtd>}}
2477 \Configure{overline}
2478 {\bgroup \HCode{<\a:mathml mover accent="false"\Hnewline
2479 \mml:class="mml-overline"><\a:mathml mrow>}%
2480 }
2481 {\HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
2482 accent="true">&\#x00AF;</\a:mathml mo>%
2483 </\a:mathml mover>}%
2484 \egroup}
2485 \Configure{underline}
2486 {\bgroup \ifmmode \HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline
2487 \mml:class="mml-underline"><\a:mathml mrow>}%
2488 \else
2489 \expandafter\everymath
2490 \expandafter{\expandafter\everymath
2491 \expandafter{\the\everymath}}%
2492 \let\o::@underline:\o:@@underline:
2493 \def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
2494 \fi}
2495 {\HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
2496 accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
2497 \egroup}
2498
2499
2500 \Configure{eqalignno}
2501 {\HCode{<\a:mathml mtable \mml:class="eqalignno">}}
2502 {\HCode{</\a:mathml mtable>}}
2503 {\HCode{<\a:mathml mtr\Hnewline \mml:class="eqalignno">}}
2504 {\HCode{</\a:mathml mtr>}}
2505 {\HCode{<\a:mathml mtd \Hnewline \mml:class="eqalignno-\HCol">}}
2506 {\HCode{</\a:mathml mtd>}}
2507 \def\:eqalignno:{\Configure{noalign}
2508 {\HCode{<\a:mathml mtr><\a:mathml mtd \mml:class="noalign" colspan="2">}}%
2509 {\HCode{</\a:mathml mtd></\a:mathml mtr>}}}
2510 \Configure{leqalignno}
2511 {\HCode{<\a:mathml mtable \mml:class="leqalignno">}}
2512 {\HCode{</\a:mathml mtable>}}
2513 {\HCode{<\a:mathml mtr\Hnewline \mml:class="leqalignno">}}
2514 {\HCode{</\a:mathml mtr>}}
2515 {\HCode{<\a:mathml mtd \Hnewline \mml:class="leqalignno-\HCol">}}
2516 {\HCode{</\a:mathml mtd>}}
2517 \def\:leqalignno:{\Configure{noalign}
2518 {\HCode{<\a:mathml mtr><\a:mathml mtd \mml:class="noalign" colspan="2">}}%
2519 {\HCode{</\a:mathml mtd></\a:mathml mtr>}}}
2520
2521 \expandafter\ifx \csname o@everypar\endcsname\relax \else
2522 \expandafter\ifx \csname ht:everypar\endcsname\relax
2523 \let\ht:everypar\o@everypar
2524 \fi\fi
2525
2526 \Configure{MathClass}{1}{}{}{}{
2527 \mathchar"1360
2528 \mathchar"1357
2529 \mathchar"1356
2530 \mathchar"1355
2531 \mathchar"1354
2532 \mathchar"1353
2533 \mathchar"1352
2534 \mathchar"1351
2535 \mathchar"1350
2536 \mathchar"134E
2537 \mathchar"134C
2538 \mathchar"134A
2539 \mathchar"1348
2540 \mathchar"1346
2541 \mathchar"1273
2542 \mathchar"3234
2543 \mathchar"3238
2544 \mathchar"3239
2545 \mathchar"323A
2546 \mathchar"323E
2547 \mathchar"323F
2548 \mathchar"3272
2549 \mathchar"3278
2550 \mathchar"327B
2551 \mathchar"327C
2552 \mathchar"327D
2553 \mathchar"327E
2554 \mathchar"327F
2555 %
2556 }
2557 \Configure{MathClass}{2}{}{}{}{
2558 *-+/
2559 \mathchar"212F
2560 \mathchar"212E
2561 \mathchar"2234
2562 \mathchar"2235
2563 \mathchar"225E
2564 \mathchar"225F
2565 \mathchar"225C
2566 \mathchar"225B
2567 \mathchar"227A
2568 \mathchar"2279
2569 \mathchar"2275
2570 \mathchar"2274
2571 \mathchar"225D
2572 \mathchar"2271
2573 \mathchar"2205
2574 \mathchar"220F
2575 \mathchar"226F
2576 \mathchar"2204
2577 \mathchar"220C
2578 \mathchar"220B
2579 \mathchar"220A
2580 \mathchar"2209
2581 \mathchar"2208
2582 \mathchar"2207
2583 \mathchar"2206
2584 \mathchar"220E
2585 \mathchar"220D
2586 \mathchar"226E
2587 \mathchar"2201
2588 \mathchar"2203
2589 \mathchar"2202
2590 \mathchar"213F
2591 \mathchar"6201 % cdot
2592 }
2593 \Configure{MathClass}{3}{}{}{}{
2594 \mathchar"3128
2595 \mathchar"3129
2596 \mathchar"312A
2597 \mathchar"312B
2598 \mathchar"315E
2599 \mathchar"315F
2600 \mathchar"3210
2601 \mathchar"3211
2602 \mathchar"3212
2603 \mathchar"3213
2604 \mathchar"3214
2605 \mathchar"3215
2606 \mathchar"3216
2607 \mathchar"3217
2608 \mathchar"3218
2609 \mathchar"3219
2610 \mathchar"321A
2611 \mathchar"321B
2612 \mathchar"321C
2613 \mathchar"321D
2614 \mathchar"321E
2615 \mathchar"321F
2616 \mathchar"3220
2617 \mathchar"3221
2618 \mathchar"3224
2619 \mathchar"3227
2620 \mathchar"3232
2621 \mathchar"3233
2622 \mathchar"3236
2623 \mathchar"3237
2624 \mathchar"323F
2625 :=><
2626 \mathchar"322F
2627 \mathchar"3276
2628 \mathchar"3277
2629 \mathchar"326B
2630 \mathchar"326A
2631 \mathchar"3261
2632 \mathchar"3260
2633 \mathchar"3225
2634 \mathchar"3226
2635 \mathchar"322D
2636 \mathchar"322E
2637 \mathchar"322C
2638 \mathchar"3228
2639 \mathchar"3229
2640 }
2641 \Configure{MathClass}{4}{}{}{}{}
2642 \Configure{MathDelimiters}{(}{)}
2643 \Configure{MathDelimiters}{[}{]}
2644 \Configure{MathDelimiters}{\mathchar"4262}{\mathchar"5263}
2645 \Configure{MathDelimiters}{\mathchar"4264}{\mathchar"5265}
2646 \Configure{MathDelimiters}{\mathchar"4266}{\mathchar"5267}
2647 \Configure{MathDelimiters}{\mathchar"4268}{\mathchar"5269}
2648 \Configure{MathDelimiters}{\mathchar"4300}{\mathchar"5301}
2649 \Configure{MathDelimiters}{\mathchar"4302}{\mathchar"5303}
2650 \Configure{MathDelimiters}{\mathchar"4304}{\mathchar"5305}
2651 \Configure{MathDelimiters}{\mathchar"4306}{\mathchar"5307}
2652 \Configure{MathDelimiters}{\mathchar"4308}{\mathchar"5309}
2653 \Configure{MathDelimiters}{\mathchar"430A}{\mathchar"530B}
2654 \Configure{MathClass}{6}{}{}{}{
2655 \mathchar"613A % ldot
2656 \mathchar"603A % colon
2657 !?; ,
2658 }
2659
2660 \Configure{overrightarrow}
2661 {\leavevmode\hbox\bgroup$\Tg<\a:mathml mover accent="true" class="overrightarrow">%
2662 \Tg<\a:mathml mrow\Hnewline>\:gobble}
2663 {\Tg</\a:mathml mrow>\HCode{<\a:mathml mo>&\#x2192;</\a:mathml mo>}%
2664 \Tg</\a:mathml mover>$\egroup}
2665 \Configure{overleftarrow}
2666 {\leavevmode\hbox\bgroup$\Tg<\a:mathml mover accent="true" class="overleftarrow">%
2667 \Tg<\a:mathml mrow\Hnewline>\:gobble}
2668 {\Tg</\a:mathml mrow>\HCode{<\a:mathml mo>&\#x2190;</\a:mathml mo>}%
2669 \Tg</\a:mathml mover>$\egroup}
2670 \Configure{big}
2671 {}{}
2672 {\HCode{<\a:mathml mstyle mathsize="1.19em">}}
2673 {\HCode{</\a:mathml mstyle>}}
2674 \Configure{Big}
2675 {}{}
2676 {\HCode{<\a:mathml mstyle mathsize="1.61em">}}
2677 {\HCode{</\a:mathml mstyle>}}
2678 \Configure{bigg}
2679 {}{}
2680 {\HCode{<\a:mathml mstyle mathsize="2.03em">}}
2681 {\HCode{</\a:mathml mstyle>}}
2682 \Configure{Bigg}
2683 {}{}
2684 {\HCode{<\a:mathml mstyle mathsize="2.45em">}}
2685 {\HCode{</\a:mathml mstyle>}}
2686 \def\:tempc#1{{\hbox{\a:big$\c:big
2687 \left#1\hbox{}\right.\n@space\d:big$\b:big}}}
2688 \HLet\big=\:tempc
2689 \def\:tempc#1{{\hbox{\a:Big$\c:Big
2690 \left#1\hbox{}\right.\n@space\d:Big$\b:Big}}}
2691 \HLet\Big=\:tempc
2692 \def\:tempc#1{{\hbox{\a:bigg$\c:bigg
2693 \left#1\hbox{}\right.\n@space\d:bigg$\b:bigg}}}
2694 \HLet\bigg=\:tempc
2695 \def\:tempc#1{{\hbox{\a:Bigg$\c:Bigg
2696 \left#1\hbox{}\right.\n@space\d:Bigg$\b:Bigg}}}
2697 \HLet\Bigg=\:tempc
2698 \Configure{overbrace}
2699 {\Configure{mathop*}{*}
2700 {<\a:mathml mover \a:mathml accent="false"><\a:mathml mrow>}
2701 {</\a:mathml mrow><\a:mathml mo>\string
2702 &\#xFE37;</\a:mathml mo></\a:mathml mover>}
2703 {\Configure{mathop}{}{}{}{}}%
2704 }
2705 {\let\o:overbrace:=\displaystyle}
2706 {}
2707 \Configure{underbrace}
2708 {\Configure{mathop*}{*}
2709 {<\a:mathml munder
2710 \a:mathml accentunder="false"><\a:mathml mrow>}
2711 {</\a:mathml mrow><\a:mathml mo>\string
2712 &\#x23DF;</\a:mathml mo></\a:mathml munder>}
2713 {\Configure{mathop}{}{}{}{}}%
2714 }
2715 {\let\o:underbrace:=\displaystyle}
2716 {}
2717 \Configure{MathClass}{0}{*}{<\a:mathml mi\Hnewline>}{</\a:mathml mi>}{}
2718 \Configure{MathClass}{1}{*}{<\a:mathml mi\Hnewline
2719 \mml:class="MathClass-op">}{</\a:mathml mi><\a:mathml mo> &\#x2061;<!--FUNCTION APPLICATION--></\a:mathml mo>}{}
2720 \Configure{MathClass}{2}{*}{<\a:mathml mo\Hnewline
2721 \mml:class="MathClass-bin" \a:mathml stretchy="false">}{</\a:mathml mo>}{}
2722 \Configure{MathClass}{3}{*}{<\a:mathml mo\Hnewline
2723 \mml:class="MathClass-rel" \a:mathml stretchy="false">}{</\a:mathml mo>}{}
2724 \Configure{MathClass}{4}{*}{<\a:mathml mo\Hnewline
2725 \mml:class="MathClass-open" \a:mathml stretchy="false">}
2726 {</\a:mathml mo>}{}
2727 \Configure{MathClass}{5}{*}{<\a:mathml mo\Hnewline
2728 \mml:class="MathClass-close" \a:mathml stretchy="false">}
2729 {</\a:mathml mo>}{}
2730 \Configure{MathClass}{6}{*}{<\a:mathml mo\Hnewline
2731 \mml:class="MathClass-punc" \a:mathml stretchy="false">}{</\a:mathml mo>}{}
2732 \Configure{MathClass}{7}{*}{<\a:mathml mn>}{</\a:mathml mn>}
2733 {0123456789}
2734 \ifx \mathordMathClass\:UnDef
2735 \NewMathClass\mathordMathClass
2736 \fi
2737 \Configure{MathClass}{\mathordMathClass}{*}{<\a:mathml mo\Hnewline
2738 \mml:class="MathClass-ord">}{</\a:mathml mo>}{}
2739 \Configure{FormulaClass}{0}{}{}{}
2740 \Configure{FormulaClass}{1}{}{}{}
2741 \Configure{FormulaClass}{2}{}{}{}
2742 \Configure{FormulaClass}{3}{}{}{}
2743 \Configure{FormulaClass}{4}{}{}{}
2744 \Configure{FormulaClass}{5}{}{}{}
2745 \Configure{FormulaClass}{6}{}{}{}
2746 \Css{mo.MathClass-op + mi{margin-left:0.3em}}
2747 \Css{mi + mo.MathClass-op{margin-left:0.3em}}
2748
2749
2750
2751 \let\A:displaylines\a:displaylines
2752 \let\B:displaylines\b:displaylines
2753 \let\C:displaylines\c:displaylines
2754 \let\D:displaylines\d:displaylines
2755 \Configure{displaylines}
2756 {\ifmmode
2757 \def\A:displaylines{\HCode{<\a:mathml mtable
2758 \mml:class="displaylines">}}%
2759 \def\B:displaylines{\HCode{</\a:mathml mtable>}}%
2760 \def\C:displaylines{\HCode{<\a:mathml mtr\Hnewline
2761 \mml:class="displaylines"><\a:mathml mtd>}}%
2762 \def\D:displaylines{\HCode{</\a:mathml mtd></\a:mathml mtr>}}%
2763 \fi
2764 \A:displaylines}
2765 {\B:displaylines} {\C:displaylines}{\D:displaylines}
2766 \let\mathml:on\relax
2767 \Configure{ }
2768 {\ifmathml \ifmtext \space \else\Tg<\a:mathml mspace
2769 width="0.33em" \mml:class="nbsp" />\fi
2770 \else \:nbsp\fi}
2771
2772 % redefine macro from unicode.4ht to produce better accents
2773 \def\unicode:mathop#1{\PauseMathClass\HCode{<\a:mathml mo accent="true">}#1\HCode{</\a:mathml mo>}\EndPauseMathClass}
2774
2775 \:CheckOption{new-accents} \if:Option \else
2776 \Configure{accent}\widetilde\widetilde{{}{}}
2777 {}
2778 {\HCode{<\a:mathml mover\Hnewline accent="true"><\a:mathml mrow\Hnewline>}#2\HCode{</\a:mathml mrow>}%
2779 \:widetilde:over \HCode{</\a:mathml mover>}}
2780 % this configuration caused problems with text accents.
2781 % we can use Unicode characters with tilde accents instead even in MathML
2782 % \Configure{accent}\tilde\tilde{{}{}}
2783 % {}
2784 % {\HCode{<\a:mathml mover\Hnewline accent="true"><\a:mathml mrow\Hnewline>}#2\HCode{</\a:mathml mrow>}%
2785 % \:tilde:over \HCode{</\a:mathml mover>}}
2786 \Configure{accent}\widehat\widehat{{}{}}
2787 {}
2788 {\HCode{<\a:mathml mover\Hnewline accent="true"><\a:mathml mrow\Hnewline>}#2\HCode{</\a:mathml mrow>}%
2789 \:widehat:over \HCode{</\a:mathml mover>}}
2790 \fi
2791 \:CheckOption{new-accents} \if:Option \else
2792 \ifx \mathml:on\:UnDef
2793 \Configure{accents}
2794 {\ifmmode \expandafter\mathord\fi
2795 {\leavevmode
2796 \if !#1!\ht:special{t4ht@+\string&{35}x#2;}%
2797 \else \expandafter \ifx\csname U#2#1\endcsname\relax
2798 \ht:special{t4ht@+\string&{35}x#2;}%
2799 \else
2800 \ht:special{t4ht@+\string&{35}x\csname U#2#1\endcsname;}%
2801 \fi \fi x%
2802 %
2803 \ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
2804 {\Tg<\a:mathml mrow
2805 \mml:class="accent#1">\mathord{#3}\Tg</\a:mathml mrow>%
2806 }%
2807 \fi
2808 \fi
2809 \let\mml:TeX\TeX
2810 \def\TeX{\ifmathml\ifmtext TeX\else
2811 \HCode{<\a:mathml mtext
2812 \mml:class="TeX">TeX</\a:mathml mtext>}\fi\else \mml:TeX\fi}
2813 \Configure{afterSUB}{'}{\def\SUB:prime{\SUB:SUP}}
2814 \Configure{'}
2815 {\let\:primes=\empty}
2816 {\relax \csname SUB:prime\endcsname\sp{%
2817 \global\let\SUB:prime=\:UnDef
2818 \def\:tempa{\prime\prime}\ifx \:tempa\:primes
2819 \mathop{\HCode{<\a:mathml mi>\string&\#x2033;</\a:mathml mi>}}\else
2820 \def\:tempa{\prime\prime\prime}\ifx \:tempa\:primes
2821 \mathop{\HCode{<\a:mathml mi>\string&\#x2034;</\a:mathml mi>}}\else
2822 \:primes \fi\fi}%
2823 }
2824 {\let\prime=\relax \xdef\:primes{\:primes\prime}}
2825 \def\:temp#1{\a:left{#1}\o:left:.\b:left{#1}} \HLet\left\:temp
2826 \def\:temp#1{\a:right{#1}\o:right:.\b:right{#1}}\HLet\right\:temp
2827 \Configure{left}
2828 {}
2829 {\HCode{<\a:mathml mrow><\a:mathml mo \a:mathml fence="true" \a:mathml form="prefix">%
2830 \expandafter
2831 \ifx \csname \string#1:lr del\endcsname\relax #1\else
2832 \csname \string#1:lr del\endcsname\fi
2833 </\a:mathml mo>}\bgroup
2834 \HCode{<\a:mathml mrow>}\bgroup}
2835 \Configure{right}
2836 {\egroup\egroup}%{\egroup\Send{GROUP}{0}{ \a:mathml close=""\space}\egroup}
2837 {\HCode{</\a:mathml mrow><\a:mathml mo \a:mathml fence="true" \a:mathml form="postfix">\expandafter
2838 \ifx \csname \string#1:lr del\endcsname\relax #1\else
2839 \csname \string#1:lr del\endcsname\fi
2840 </\a:mathml mo></\a:mathml mrow>}}
2841 \def\def:DEL#1{\def\:DEL{#1}}
2842 \def\check:DEL#1#2{\def\:tempa{#1}\ifx \:tempa\:DEL \def\:DEL{#2}\fi}
2843 \NewConfigure{mfenced}[2]{\append:defI\def:DEL{\check:DEL{#1}{#2}}}
2844 \NewConfigure{Biggl}{2}
2845 \NewConfigure{Biggm}{2}
2846 \NewConfigure{Biggr}{2}
2847 \NewConfigure{Bigl}{2}
2848 \NewConfigure{Bigm}{2}
2849 \NewConfigure{Bigr}{2}
2850 \NewConfigure{biggl}{2}
2851 \NewConfigure{biggm}{2}
2852 \NewConfigure{biggr}{2}
2853 \NewConfigure{bigl}{2}
2854 \NewConfigure{bigm}{2}
2855 \NewConfigure{bigr}{2}
2856 \Configure{Biggm}
2857 {\bgroup
2858 \Configure{Bigg}{}{}{}{}%
2859 \Configure{mathrel}{*}
2860 {<mo \mml:class="MathClass-rel"
2861 fence="true" mathsize="2.45em" >}
2862 {</mo>}
2863 {\Configure{mathrel}{}{}{}{}}%
2864 }
2865 {\egroup}
2866 \Configure{Bigm}
2867 {\bgroup
2868 \Configure{Big}{}{}{}{}%
2869 \Configure{mathrel}{*}
2870 {<mo \mml:class="MathClass-rel"
2871 fence="true" mathsize="1.61em" >}
2872 {</mo>}
2873 {\Configure{mathrel}{}{}{}{}}%
2874 }
2875 {\egroup}
2876 \Configure{biggm}
2877 {\bgroup
2878 \Configure{bigg}{}{}{}{}%
2879 \Configure{mathrel}{*}
2880 {<mo \mml:class="MathClass-rel"
2881 fence="true" mathsize="2.03em" >}
2882 {</mo>}
2883 {\Configure{mathrel}{}{}{}{}}%
2884 }
2885 {\egroup}
2886 \Configure{bigm}
2887 {\bgroup
2888 \Configure{big}{}{}{}{}%
2889 \Configure{mathrel}{*}
2890 {<mo \mml:class="MathClass-rel"
2891 fence="true" mathsize="1.19em" >}
2892 {</mo>}
2893 {\Configure{mathrel}{}{}{}{}}%
2894 }
2895 {\egroup}
2896
2897 \:CheckOption{mathml-} \if:Option
2898 \Configure{Biggl}
2899 {\bgroup
2900 \Configure{Bigg}{}{}{}{}%
2901 \Configure{mathopen}{*}
2902 {<mrow><mo \mml:class="MathClass-open"
2903 fence="true" mathsize="2.45em" >}
2904 {</mo>}
2905 {\Configure{mathopen}{}{}{}{}}%
2906 }
2907 {\egroup}
2908 \Configure{Biggr}
2909 {\bgroup
2910 \Configure{Bigg}{}{}{}{}%
2911 \Configure{mathclose}{*}
2912 {<mo \mml:class="MathClass-close"
2913 fence="true" mathsize="2.45em" >}
2914 {</mo></mrow>}
2915 {\Configure{mathclose}{}{}{}{}}%
2916 }
2917 {\egroup}
2918 \Configure{Bigl}
2919 {\bgroup
2920 \Configure{Big}{}{}{}{}%
2921 \Configure{mathopen}{*}
2922 {<mrow><mo \mml:class="MathClass-open"
2923 fence="true" mathsize="1.61em" >}
2924 {</mo>}
2925 {\Configure{mathopen}{}{}{}{}}%
2926 }
2927 {\egroup}
2928 \Configure{Bigr}
2929 {\bgroup
2930 \Configure{Big}{}{}{}{}%
2931 \Configure{mathclose}{*}
2932 {<mo \mml:class="MathClass-close"
2933 fence="true" mathsize="1.61em" >}
2934 {</mo></mrow>}
2935 {\Configure{mathclose}{}{}{}{}}%
2936 }
2937 {\egroup}
2938 \Configure{biggl}
2939 {\bgroup
2940 \Configure{bigg}{}{}{}{}%
2941 \Configure{mathopen}{*}
2942 {<mrow><mo \mml:class="MathClass-open"
2943 fence="true" mathsize="2.03em" >}
2944 {</mo>}
2945 {\Configure{mathopen}{}{}{}{}}%
2946 }
2947 {\egroup}
2948 \Configure{biggr}
2949 {\bgroup
2950 \Configure{bigg}{}{}{}{}%
2951 \Configure{mathclose}{*}
2952 {<mo \mml:class="MathClass-close"
2953 fence="true" mathsize="2.03em" >}
2954 {</mo></mrow>}
2955 {\Configure{mathclose}{}{}{}{}}%
2956 }
2957 {\egroup}
2958 \Configure{bigl}
2959 {\bgroup
2960 \Configure{big}{}{}{}{}%
2961 \Configure{mathopen}{*}
2962 {<mrow><mo \mml:class="MathClass-open"
2963 fence="true" mathsize="1.19em" >}
2964 {</mo>}
2965 {\Configure{mathopen}{}{}{}{}}%
2966 }
2967 {\egroup}
2968 \Configure{bigr}
2969 {\bgroup
2970 \Configure{big}{}{}{}{}%
2971 \Configure{mathclose}{*}
2972 {<mo \mml:class="MathClass-close"
2973 fence="true" mathsize="1.19em" >}
2974 {</mo></mrow>}
2975 {\Configure{mathclose}{}{}{}{}}%
2976 }
2977 {\egroup}
2978
2979 \else
2980 \Configure{Biggl}
2981 {\bgroup
2982 \Configure{Bigg}{}{}{}{}%
2983 \Configure{mathopen}{*}
2984 {<mrow><mo \mml:class="MathClass-open"
2985 fence="true" mathsize="2.45em" >}
2986 {</mo><mrow>}
2987 {\Configure{mathopen}{}{}{}{}}%
2988 }
2989 {\egroup}
2990 \Configure{Biggr}
2991 {\bgroup
2992 \Configure{Bigg}{}{}{}{}%
2993 \Configure{mathclose}{*}
2994 {</mrow><mo \mml:class="MathClass-close"
2995 fence="true" mathsize="2.45em" >}
2996 {</mo></mrow>}
2997 {\Configure{mathclose}{}{}{}{}}%
2998 }
2999 {\egroup}
3000 \Configure{Bigl}
3001 {\bgroup
3002 \Configure{Big}{}{}{}{}%
3003 \Configure{mathopen}{*}
3004 {<mrow><mo \mml:class="MathClass-open"
3005 fence="true" mathsize="1.61em" >}
3006 {</mo><mrow>}
3007 {\Configure{mathopen}{}{}{}{}}%
3008 }
3009 {\egroup}
3010 \Configure{Bigr}
3011 {\bgroup
3012 \Configure{Big}{}{}{}{}%
3013 \Configure{mathclose}{*}
3014 {</mrow><mo \mml:class="MathClass-close"
3015 fence="true" mathsize="1.61em" >}
3016 {</mo></mrow>}
3017 {\Configure{mathclose}{}{}{}{}}%
3018 }
3019 {\egroup}
3020 \Configure{biggl}
3021 {\bgroup
3022 \Configure{bigg}{}{}{}{}%
3023 \Configure{mathopen}{*}
3024 {<mrow><mo \mml:class="MathClass-open"
3025 fence="true" mathsize="2.03em" >}
3026 {</mo><mrow>}
3027 {\Configure{mathopen}{}{}{}{}}%
3028 }
3029 {\egroup}
3030 \Configure{biggr}
3031 {\bgroup
3032 \Configure{bigg}{}{}{}{}%
3033 \Configure{mathclose}{*}
3034 {</mrow><mo \mml:class="MathClass-close"
3035 fence="true" mathsize="2.03em" >}
3036 {</mo></mrow>}
3037 {\Configure{mathclose}{}{}{}{}}%
3038 }
3039 {\egroup}
3040 \Configure{bigl}
3041 {\bgroup
3042 \Configure{big}{}{}{}{}%
3043 \Configure{mathopen}{*}
3044 {<mrow><mo \mml:class="MathClass-open"
3045 fence="true" mathsize="1.19em" >}
3046 {</mo><mrow>}
3047 {\Configure{mathopen}{}{}{}{}}%
3048 }
3049 {\egroup}
3050 \Configure{bigr}
3051 {\bgroup
3052 \Configure{big}{}{}{}{}%
3053 \Configure{mathclose}{*}
3054 {</mrow><mo \mml:class="MathClass-close"
3055 fence="true" mathsize="1.19em" >}
3056 {</mo></mrow>}
3057 {\Configure{mathclose}{}{}{}{}}%
3058 }
3059 {\egroup}
3060
3061 \fi
3062 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
3063 \a:bigl\mathopen{\left:right\big{#1\:EMPTY}}\b:bigl\:EMPTY}
3064 \HLet\bigl=\:tempc
3065 \def\:tempc#1{\a:bigm\mathrel{\left:right\big{#1\:EMPTY}}\b:bigm}
3066 \HLet\bigm=\:tempc
3067 \def\:tempc#1{\:EMPTY
3068 \a:bigr\mathclose{\left:right\big{#1\:EMPTY}}\b:bigr%
3069 \ht:special{t4ht@[})\ht:special{t4ht@]}}
3070 \HLet\bigr=\:tempc
3071 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
3072 \a:Bigl\mathopen{\left:right\Big{#1}\:EMPTY}\b:Bigl\:EMPTY}
3073 \HLet\Bigl=\:tempc
3074 \def\:tempc#1{\a:Bigm\mathrel{\left:right\Big{#1\:EMPTY}}\b:Bigm}
3075 \HLet\Bigm=\:tempc
3076 \def\:tempc#1{\:EMPTY
3077 \a:Bigr\mathclose{\left:right\Big{#1\:EMPTY}}\b:Bigr%
3078 \ht:special{t4ht@[})\ht:special{t4ht@]}}
3079 \HLet\Bigr=\:tempc
3080 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
3081 \a:biggl\mathopen{\left:right\bigg{#1\:EMPTY}}\b:biggl\:EMPTY}
3082 \HLet\biggl=\:tempc
3083 \def\:tempc#1{\a:biggm\mathrel{\left:right\bigg{#1\:EMPTY}}\b:biggm}
3084 \HLet\biggm=\:tempc
3085 \def\:tempc#1{\:EMPTY
3086 \a:biggr\mathclose{\left:right\bigg{#1\:EMPTY}}\b:biggr%
3087 \ht:special{t4ht@[})\ht:special{t4ht@]}}
3088 \HLet\biggr=\:tempc
3089 \def\:tempc#1{\ht:special{t4ht@[}(\ht:special{t4ht@]}%
3090 \a:Biggl\mathopen{\left:right\Bigg{#1\:EMPTY}}\b:Biggl\:EMPTY}
3091 \HLet\Biggl=\:tempc
3092 \def\:tempc#1{\a:Biggm\mathrel{\left:right\Bigg{#1\:EMPTY}}\b:Biggm}
3093 \HLet\Biggm=\:tempc
3094 \def\:tempc#1{\:EMPTY
3095 \a:Biggr\mathclose{\left:right\Bigg{#1}\:EMPTY}\b:Biggr
3096 \ht:special{t4ht@[})\ht:special{t4ht@]}}
3097 \HLet\Biggr=\:tempc
3098 \def\:EMPTY{{\HCode{}}}
3099 \def\left:right{%
3100 \let\left\o:left:
3101 \let\right\o:right:
3102 \Configure{left}{}{}\Configure{right}{}{}}
3103
3104 \:CheckOption{new-accents} \if:Option \else
3105 \Configure{accents}
3106 {\ifmmode \expandafter\mathord\fi
3107 {\leavevmode
3108 \if !#1!\ht:special{t4ht@+\string&{35}x#2;}%
3109 \else \expandafter \ifx\csname U#2#1\endcsname\relax
3110 \ht:special{t4ht@+\string&{35}x#2;}%
3111 \else
3112 \ht:special{t4ht@+\string&{35}x\csname U#2#1\endcsname;}%
3113 \fi \fi x%
3114 %
3115 \ht:special{t4ht@[}\if!#1!x\else#2\fi
3116 \ht:special{t4ht@]}}}
3117 {\ifmathml
3118 \ifmtext \expandafter\ifx \csname :#1:over\endcsname\relax
3119 \expandafter\ifx \csname :#1:under\endcsname\relax
3120 \AccentMath{\expandafter\ifx \csname :#1:over\endcsname\relax
3121 \HCode{<\a:mathml munder\Hnewline
3122 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3123 \csname :#1:under\endcsname
3124 \HCode{</\a:mathml munder>}%
3125 %
3126 \else \expandafter\ifx \csname :#1:under\endcsname\relax
3127 \HCode{<\a:mathml mover\Hnewline
3128 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3129 \csname :#1:over\endcsname
3130 \HCode{</\a:mathml mover>}%
3131 %
3132 \else
3133 \HCode{<\a:mathml munderover\Hnewline
3134 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3135 \csname :#1:under\endcsname
3136 \csname :#1:over\endcsname
3137 \HCode{</\a:mathml munderover>}%
3138 %
3139 \fi \fi
3140 }%
3141 \else #3\csname :#1:under\endcsname \fi
3142 \else #3\csname :#1:over\endcsname \fi
3143 %
3144 \else \AccentMath{\expandafter\ifx \csname :#1:over\endcsname\relax
3145 \HCode{<\a:mathml munder\Hnewline
3146 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3147 \csname :#1:under\endcsname
3148 \HCode{</\a:mathml munder>}%
3149 %
3150 \else \expandafter\ifx \csname :#1:under\endcsname\relax
3151 \HCode{<\a:mathml mover\Hnewline
3152 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3153 \csname :#1:over\endcsname
3154 \HCode{</\a:mathml mover>}%
3155 %
3156 \else
3157 \HCode{<\a:mathml munderover\Hnewline
3158 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3159 \csname :#1:under\endcsname
3160 \csname :#1:over\endcsname
3161 \HCode{</\a:mathml munderover>}%
3162 %
3163 \fi \fi
3164 }\fi
3165 \else \expandafter\ifx \csname :#1:over\endcsname\relax
3166 \expandafter\ifx \csname :#1:under\endcsname\relax
3167 \AccentMath{\expandafter\ifx \csname :#1:over\endcsname\relax
3168 \HCode{<\a:mathml munder\Hnewline
3169 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3170 \csname :#1:under\endcsname
3171 \HCode{</\a:mathml munder>}%
3172 %
3173 \else \expandafter\ifx \csname :#1:under\endcsname\relax
3174 \HCode{<\a:mathml mover\Hnewline
3175 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3176 \csname :#1:over\endcsname
3177 \HCode{</\a:mathml mover>}%
3178 %
3179 \else
3180 \HCode{<\a:mathml munderover\Hnewline
3181 accent="true"><\a:mathml mrow\Hnewline>}#3\HCode{</\a:mathml mrow>}%
3182 \csname :#1:under\endcsname
3183 \csname :#1:over\endcsname
3184 \HCode{</\a:mathml munderover>}%
3185 %
3186 \fi \fi
3187 }%
3188 \else #3\csname :#1:under\endcsname \fi
3189 \else #3\csname :#1:over\endcsname \fi
3190 \fi
3191 }
3192
3193 \fi
3194 \def\mathinner#1{\Tg<\a:mathml mrow
3195 \mml:class="mathinner">#1\Tg</\a:mathml mrow>}
3196 \Configure{root}{\rev:root}{}{}
3197 \def\rev:root #1\b:root#2\c:root{
3198 \Tg<\a:mathml mroot>{\Tg<\a:mathml mrow\Hnewline>#2\Tg</\a:mathml mrow>}%
3199 {\Tg<\a:mathml mrow\Hnewline>#1\Tg</\a:mathml mrow>}\Tg</\a:mathml mroot>}
3200 \def\AccentMath#1{\relax\ifmmode #1\else $#1$\fi}
3201 \NewConfigure{mfenced}[2]{\expandafter
3202 \def\csname \string#1:lr del\endcsname{#2}}
3203 \Configure{mfenced}{\|}{\string&\#x2225;}
3204 \Configure{mfenced}{.}{}
3205 \Configure{mfenced}{\langle}{\string&\#x27E8;}
3206 \Configure{mfenced}{\rangle}{\string&\#x27E9;}
3207 \Configure{mfenced}{\vert}{|}
3208 \edef\:temp{\noexpand\Configure{mfenced}{\noexpand\{}{\string{}}\:temp
3209 \edef\:temp{\noexpand\Configure{mfenced}{\noexpand\}}{\string}}}\:temp
3210 \edef\:temp{\noexpand
3211 \Configure{mfenced}{\noexpand\lbrace}{\string{}}\:temp
3212 \edef\:temp{\noexpand
3213 \Configure{mfenced}{\noexpand\rbrace}{\string}}}\:temp
3214 \Configure{mfenced}{<}{\string&\#x003C;}
3215 \Configure{mfenced}{>}{\string&\#x003E;}
3216 \Configure{mfenced}{\lceil}{\string&\#x2308;}
3217 \Configure{mfenced}{\rceil}{\string&\#x2309;}
3218 \Configure{mfenced}{\lfloor}{\string&\#x230A;}
3219 \Configure{mfenced}{\rfloor}{\string&\#x230B;}
3220 \Configure{mfenced}{\Vert}{\string&\#x2225;}
3221 \Configure{mfenced}{\rgroup}{)}
3222 \Configure{mfenced}{\lgroup}{(}
3223 \Configure{mfenced}{\bracevert}{|}
3224 \Configure{mfenced}{\bracevert}{|}
3225 \Configure{mfenced}{\downarrow}{\string&\#x2193;}
3226 \Configure{mfenced}{\uparrow}{\string&\#x2191;}
3227 \Configure{mfenced}{\Uparrow}{\string&\#x21D1;}
3228 \Configure{mfenced}{\updownarrow}{\string&\#x2195;}
3229 \Configure{mfenced}{\Updownarrow}{\string&\#x21D5;}
3230 \Configure{mfenced}{\Downarrow}{\string&\#x21D3;}
3231 \Configure{mfenced}{\backslash}{\string&\#x2216;}
3232 \Configure{mfenced}{\rmoustache}{\string&\#x25DD;}
3233 \Configure{mfenced}{\lmoustache}{\string&\#x25DC;}
3234 \Configure{mfenced}{\Arrowvert}{\string&\#x2225;}
3235 \Configure{mfenced}{\arrowvert}{\string&\#x007C;}
3236
3237 \let\A:oalign\a:oalign
3238 \let\B:oalign\b:oalign
3239 \Configure{oalign}
3240 {\ifmmode \Configure{$}{\Tg<\a:mathml mrow\Hnewline>}%
3241 {\Tg</\a:mathml mrow>}{}%
3242 \let\halign\TeXhalign
3243 \Tg<\a:mathml mrow\Hnewline \mml:class="oalign">\else\A:oalign
3244 \fi}
3245 {\ifmmode \Tg</\a:mathml mrow>\else\B:oalign\fi}
3246 \def\mathop:prefix#1{%
3247 \Configure{mathop}{*}{<\a:mathml mo #1\Hnewline>}{</\a:mathml mo>}%
3248 {\Configure{mathop}{*}{<\a:mathml mo>}{</\a:mathml mo>}{}}}
3249 \ifdefined\protect%
3250 \def\:unicodespace{\protect\leavevmode\special{t4ht@+\string&{35}x00A0{59}}x}%
3251 \def\:unicodenspace{\protect\leavevmode\special{t4ht@+\string&{35}x2002{59}}x}%
3252 \else%
3253 \def\:unicodespace{\leavevmode\special{t4ht@+\string&{35}x00A0{59}}x}%
3254 \def\:unicodenspace{\leavevmode\special{t4ht@+\string&{35}x2002{59}}x}%
3255 \fi
3256 \def\:nbsp{\ifmtext \:unicodespace%
3257 \else\ifmathml
3258 \Tg<\a:mathml mspace />\else \:unicodespace%
3259 \fi\fi}
3260 \def\:ensp{\ifmtext \:unicodenspace%
3261 \else\ifmathml
3262 \Tg<\a:mathml mspace />\else \:unicodenspace%
3263 \fi\fi}
3264 \Configure{cases}
3265 {}{} {\Tg<\a:mathml mtable>}{\Tg</\a:mathml mtable>}
3266 {\Tg<\a:mathml mtr>}{\Tg</\a:mathml mtr>}
3267 {\Tg<\a:mathml mtd \mml:class="cases">}{\Tg</\a:mathml mtd>}
3268 \Configure{matrix}
3269 {\Tg<\a:mathml mtable
3270 \a:mathml equalrows="false" \a:mathml equalcolumns="false"\Hnewline
3271 \mml:class="matrix">}
3272 {\Tg</\a:mathml mtable>}
3273 {\Tg<\a:mathml mtr>}{\Tg</\a:mathml mtr>}
3274 {\HCode{<\a:mathml mtd\Hnewline \mml:class="matrix"
3275 \ifnum 1<\HMultispan columnspan="\HMultispan"\fi}%
3276 \halignTD \HCode{>}%
3277 }{\Tg</\a:mathml mtd>}
3278 \Configure{pmatrix} {\bgroup\Tg<\a:mathml mrow\Hnewline
3279 \mml:class="pmatrix">} {\Tg</\a:mathml mrow>\egroup}
3280 \Configure{quad}{{\ifmathml \ifmtext \o:quad:\else
3281 {\HCode{<\a:mathml mspace width="1em" \mml:class="quad"/>}}\fi
3282 \else \o:quad: \fi}}
3283 \Configure{qquad}{{\ifmathml \ifmtext \o:qquad:\else
3284 {\HCode{<\a:mathml mspace width="2em" \mml:class="qquad"/>}}\fi
3285 \else \o:qquad: \fi}}
3286 \Configure{,}
3287 {{\HCode{<\a:mathml mspace width="0.17em" \mml:class="thinspace"/>}}}
3288 \Configure{:}
3289 {{\HCode{<\a:mathml mspace width="0.22em" \mml:class="thinspace"/>}}}
3290 \Configure{;}
3291 {{\HCode{<\a:mathml mspace width="0.28em" \mml:class="thickpace"/>}}}
3292 \Configure{>}
3293 {{\HCode{<\a:mathml mspace width="0.30em" \mml:class="medspace"/>}}}
3294 \Configure{!}
3295 {{\HCode{<\a:mathml mspace width="-0.17em" \mml:class="negthinspace"/>}}}
3296
3297
3298 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3299
3300 \endinput\empty\empty\empty\empty\empty\empty
3301 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3302
3303 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3304 \ConfigureHinput{amsopn}
3305 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3306 \def\:tempc{{\underrightarrow\lim}} \HLet\varinjlim\:tempc
3307 \def\:tempc{{\underleftarrow\lim}} \HLet\varprojlim\:tempc
3308 \def\:tempc{{\overline\lim}} \HLet\varlimsup\:tempc
3309 \def\:tempc{{\underline\lim}} \HLet\varliminf\:tempc
3310 \def\:tempc#1#2#3{\hbox{{\mtexttrue
3311 \HCode{<\a:mathml mrow\Hnewline
3312 \mml:class="text"><\a:mathml mtext
3313 \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
3314 \PauseMathClass
3315 \Configure{$}{\EndPauseMathClass\mtextfalse
3316 \ht:special{t4ht@,}%
3317 \HCode{</\a:mathml mtext><\a:mathml
3318 mrow\Hnewline \mml:class="math">}}
3319 {\HCode{</\a:mathml mrow><\a:mathml mtext
3320 \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
3321 \mtexttrue\PauseMathClass}{#1}
3322 \let\f@size#2\selectfont #3}%
3323 \mtextfalse \EndPauseMathClass \ht:special{t4ht@,}%
3324 \HCode
3325 {</\a:mathml mtext></\a:mathml mrow>}}}
3326 \HLet\textdef@\:tempc
3327
3328 \def\:tempc{\qopname\relax m{\:limspaces{lim}{inf}}}
3329 \HLet\liminf=\:tempc
3330 \def\:tempc{\qopname\relax m{\:limspaces{lim}{sup}}}
3331 \HLet\limsup=\:tempc
3332 \def\:tempc{\qopname\relax m{\:limspaces{proj}{lim}}}
3333 \HLet\projlim=\:tempc
3334 \def\:tempc{\qopname\relax m{\:limspaces{inj}{lim}}}
3335 \HLet\injlim=\:tempc
3336 \Configure{qopname}
3337 {\Configure{mathop}{*}
3338 {<\a:mathml mi \mml:class="qopname">}
3339 {</\a:mathml mi><\a:mathml mo> &\#x2061;<!--FUNCTION APPLICATION--> </\a:mathml mo>}
3340 {}}
3341
3342 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3343
3344 \endinput\empty\empty\empty\empty\empty\empty
3345 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3372 \ConfigureHinput{array}
3373 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3374 \let\columnlines\empty
3375 \Configure{halignTB<>}{array}{\HCode{\Hnewline
3376 \a:mathml equalrows="false"
3377 \ifx\columnlines\empty\else\a:mathml columnlines="\columnlines" \fi
3378 \a:mathml equalcolumns="false" \a:mathml class="array" \a:mathml displaystyle="true"}<>\HAlign}
3379 \Configure{array}
3380 {\halignTB{array}}
3381 {\ifvmode \IgnorePar\fi \expandafter\tmp:toks\expandafter{\Clr}%
3382 \HCode{<!--\the\tmp:toks-->}%
3383 \Tg</\a:mathml mtable>}
3384 {\Tg<\a:mathml mtr \mml:class="array-row">}{\Tg</\a:mathml mtr>}
3385 {\HCode{<\a:mathml mtd\Hnewline \mml:class="array-td"
3386 \ifnum 1<\HMultispan columnspan="\HMultispan"\fi}%
3387 \halignTD \HCode{>}%
3388 }
3389 {\Tg</\a:mathml mtd>}
3390 \ConfigureEnv{array}
3391 {\bgroup\Configure{$}{}{}{}}
3392 {\egroup}
3393 {}{}
3394 \Configure{VBorder}
3395 {\HAssign\NewGroup = 0
3396 \HAssign\borderlines = 0
3397 \global\let\columnlines=\relax
3398 }
3399 {\ifx \columnlines\relax \gHAssign\borderlines = 1
3400 \else \gHAdvance\borderlines by 2 \fi
3401 %
3402 \HAssign\NewGroup = 0}
3403 {\Advance:\NewGroup by 1
3404 \ifnum \borderlines>1 \gHAdvance\borderlines by -2 \fi
3405 \ifx \columnlines\relax
3406 \global\let\columnlines\empty
3407 \else
3408 \ifnum \NewGroup=1
3409 \xdef\columnlines{\columnlines\ifx\columnlines\empty
3410 \else \space\fi solid}%
3411 \else
3412 \xdef\columnlines{\columnlines\ifx\columnlines\empty
3413 \else \space\fi none}%
3414 \fi
3415 \fi
3416 }
3417 {}
3418
3419
3420 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3421
3422 \endinput\empty\empty\empty\empty\empty\empty
3423 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3450 \ConfigureHinput{amscd}
3451 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3452 \ConfigureEnv{CD}{}{}{}{}
3453 \Configure{CD}
3454 {\HCode{<\a:mathml mtable class="CD"\Hnewline>}}
3455 {\HCode{</\a:mathml mtable>}}
3456 {\HCode{<\a:mathml mtr>}}
3457 {\HCode{</\a:mathml mtr>}}
3458 {\HCode{<\a:mathml mtd\Hnewline>}}
3459 {\HCode{</\a:mathml mtd>}}
3460 \Configure{ @>}
3461 {\Configure{mathrel*}{*}
3462 {<mrow \mml:class="rightarrow" >}
3463 {</mrow>}
3464 {}}
3465 \Configure{ @<}
3466 {\Configure{mathrel*}{*}
3467 {<mrow \mml:class="leftarrow" >}
3468 {</mrow>}
3469 {}}
3470 \Configure{ @V}
3471 {\HCode{<mphantom>}
3472 \hbox{$\m@th\vcenter{\hbox{$\scriptstyle#2$}}$}%%
3473 \HCode{</mphantom>}}
3474 {\HCode{<mphantom>}
3475 \hbox{$\m@th\vcenter{\hbox{$\m@th\vcenter{\hbox
3476 {$\scriptstyle#1$}}$}}$}%
3477 \HCode{</mphantom>}}
3478
3479 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3480
3481 \endinput\empty\empty\empty\empty\empty\empty
3482 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3512 \ConfigureHinput{vanilla}
3513 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3514 \Configure{align}
3515 {\EndP\HCode{<\a:mathml mtable\Hnewline \mml:class="align">}}
3516 {\HCode{</\a:mathml mtable>}}
3517 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
3518 {\HCode{<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
3519
3520
3521 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3522
3523 \endinput\empty\empty\empty\empty\empty\empty
3524 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3559 \ConfigureHinput{amssymb}
3560 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3561 \def\:tempa#1"#2#3///{%
3562 \edef\:next{\noexpand\Configure{MathClass}{\ifnum 0=#2
3563 \mathordMathClass \else #2\fi}}%
3564 \:next
3565 }
3566 % \def\:tempb#1{\:tempa#1///{}{}{}{#1}}
3567 % \def\:tempc#1"#2//{\:tempb{\mathchar"#2}}
3568 % \def\:temp#1{\expandafter\:tempc\meaning#1//}
3569 \def\:temp#1{\expandafter\:tempc\meaning#1//}
3570 \def\:tempb#1{\:tempa#1///{}{}{}{#1}}
3571 \def\:tempc#1"#2//{\:tempd#2...//}
3572 \def\:tempd#1#2#3#4#5//{%
3573 \if #4.\:tempb{\mathchar"0#1#2#3}\else
3574 \:tempb{\mathchar"#1#2#3#4}\fi
3575 }
3576 \:temp \boxdot
3577 \:temp \boxplus
3578 \:temp \boxtimes
3579 \:temp \centerdot
3580 \:temp \boxminus
3581 \:temp \veebar
3582 \:temp \barwedge
3583 \:temp \doublebarwedge
3584 \:temp \Cup
3585 \:temp \Cap
3586 \:temp \curlywedge
3587 \:temp \curlyvee
3588 \:temp \leftthreetimes
3589 \:temp \rightthreetimes
3590 \:temp \dotplus
3591 \:temp \intercal
3592 \:temp \circledcirc
3593 \:temp \circledast
3594 \:temp \circleddash
3595 \:temp \divideontimes
3596 \:temp \lessdot
3597 \:temp \gtrdot
3598 \:temp \ltimes
3599 \:temp \rtimes
3600 \:temp \smallsetminus
3601 \:temp \circlearrowright
3602 \:temp \circlearrowleft
3603 \:temp \leftrightharpoons
3604 \:temp \Vdash
3605 \:temp \Vvdash
3606 \:temp \vDash
3607 \:temp \twoheadrightarrow
3608 \:temp \twoheadleftarrow
3609 \:temp \leftleftarrows
3610 \:temp \rightrightarrows
3611 \:temp \upuparrows
3612 \:temp \downdownarrows
3613 \:temp \upharpoonright
3614 \:temp \downharpoonright
3615 \:temp \upharpoonleft
3616 \:temp \downharpoonleft
3617 \:temp \rightarrowtail
3618 \:temp \leftarrowtail
3619 \:temp \leftrightarrows
3620 \:temp \rightleftarrows
3621 \:temp \Lsh
3622 \:temp \Rsh
3623 \:temp \rightsquigarrow
3624 \:temp \leftrightsquigarrow
3625 \:temp \looparrowleft
3626 \:temp \looparrowright
3627 \:temp \circeq
3628 \:temp \succsim
3629 \:temp \gtrsim
3630 \:temp \gtrapprox
3631 \:temp \multimap
3632 \:temp \therefore
3633 \:temp \because
3634 \:temp \doteqdot
3635 \:temp \triangleq
3636 \:temp \precsim
3637 \:temp \lesssim
3638 \:temp \lessapprox
3639 \:temp \eqslantless
3640 \:temp \eqslantgtr
3641 \:temp \curlyeqprec
3642 \:temp \curlyeqsucc
3643 \:temp \preccurlyeq
3644 \:temp \leqq
3645 \:temp \leqslant
3646 \:temp \lessgtr
3647 \:temp \risingdotseq
3648 \:temp \fallingdotseq
3649 \:temp \succcurlyeq
3650 \:temp \geqq
3651 \:temp \geqslant
3652 \:temp \gtrless
3653 \:temp \vartriangleright
3654 \:temp \vartriangleleft
3655 \:temp \trianglerighteq
3656 \:temp \trianglelefteq
3657 \:temp \between
3658 \:temp \blacktriangleright
3659 \:temp \blacktriangleleft
3660 \:temp \vartriangle
3661 \:temp \eqcirc
3662 \:temp \lesseqgtr
3663 \:temp \gtreqless
3664 \:temp \lesseqqgtr
3665 \:temp \gtreqqless
3666 \:temp \Rrightarrow
3667 \:temp \Lleftarrow
3668 \:temp \varpropto
3669 \:temp \smallsmile
3670 \:temp \smallfrown
3671 \:temp \Subset
3672 \:temp \Supset
3673 \:temp \subseteqq
3674 \:temp \supseteqq
3675 \:temp \bumpeq
3676 \:temp \Bumpeq
3677 \:temp \lll
3678 \:temp \ggg
3679 \:temp \pitchfork
3680 \:temp \backsim
3681 \:temp \backsimeq
3682 \:temp \lvertneqq
3683 \:temp \gvertneqq
3684 \:temp \nleq
3685 \:temp \ngeq
3686 \:temp \nless
3687 \:temp \ngtr
3688 \:temp \nprec
3689 \:temp \nsucc
3690 \:temp \lneqq
3691 \:temp \gneqq
3692 \:temp \nleqslant
3693 \:temp \ngeqslant
3694 \@ifpackageloaded{program}{}{\:temp \lneq}
3695 \:temp \gneq
3696 \:temp \npreceq
3697 \:temp \nsucceq
3698 \:temp \precnsim
3699 \:temp \succnsim
3700 \:temp \lnsim
3701 \:temp \gnsim
3702 \:temp \nleqq
3703 \:temp \ngeqq
3704 \:temp \precneqq
3705 \:temp \succneqq
3706 \:temp \precnapprox
3707 \:temp \succnapprox
3708 \:temp \lnapprox
3709 \:temp \gnapprox
3710 \:temp \nsim
3711 \:temp \ncong
3712 \:temp \varsubsetneq
3713 \:temp \varsupsetneq
3714 \:temp \nsubseteqq
3715 \:temp \nsupseteqq
3716 \:temp \subsetneqq
3717 \:temp \supsetneqq
3718 \:temp \varsubsetneqq
3719 \:temp \varsupsetneqq
3720 \:temp \subsetneq
3721 \:temp \supsetneq
3722 \:temp \nsubseteq
3723 \:temp \nsupseteq
3724 \:temp \nparallel
3725 \:temp \nmid
3726 \:temp \nshortmid
3727 \:temp \nshortparallel
3728 \:temp \nvdash
3729 \:temp \nVdash
3730 \:temp \nvDash
3731 \:temp \nVDash
3732 \:temp \ntrianglerighteq
3733 \:temp \ntrianglelefteq
3734 \:temp \ntriangleleft
3735 \:temp \ntriangleright
3736 \:temp \nleftarrow
3737 \:temp \nrightarrow
3738 \:temp \nLeftarrow
3739 \:temp \nRightarrow
3740 \:temp \nLeftrightarrow
3741 \:temp \nleftrightarrow
3742 \:temp \eqsim
3743 \:temp \shortmid
3744 \:temp \shortparallel
3745 \:temp \thicksim
3746 \:temp \thickapprox
3747 \:temp \approxeq
3748 \:temp \succapprox
3749 \:temp \precapprox
3750 \:temp \curvearrowleft
3751 \:temp \curvearrowright
3752 \:temp \backepsilon
3753 \:temp \square
3754 \:temp \blacksquare
3755 \:temp \lozenge
3756 \:temp \blacklozenge
3757 \:temp \backprime
3758 \:temp \bigstar
3759 \:temp \blacktriangledown
3760 \:temp \blacktriangle
3761 \:temp \triangledown
3762 \:temp \measuredangle
3763 \:temp \sphericalangle
3764 \:temp \circledS
3765 \:temp \complement
3766 \:temp \diagup
3767 \:temp \diagdown
3768 \:temp \varnothing
3769 \:temp \nexists
3770 \:temp \Finv
3771 \:temp \Game
3772 \:temp \eth
3773 \:temp \beth
3774 \:temp \gimel
3775 \:temp \daleth
3776 \:temp \digamma
3777 \:temp \varkappa
3778 \:temp \Bbbk
3779 \:temp \hslash
3780
3781 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3782
3783 \endinput\empty\empty\empty\empty\empty\empty
3784 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3785
3786 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3787 \ConfigureHinput{gauss}
3788 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3789 \Configure{gmatrix}
3790 {\HCode{<\a:mathml mtable \mml:class="gmatrix-\g@environment">}}
3791 {\HCode{</\a:mathml mtable>}}
3792 {\HCode{<\a:mathml mtr\Hnewline \mml:class="gmatrix">}}
3793 {\HCode{</\a:mathml mtr>}}
3794 {\HCode{\Hnewline<\a:mathml mtd>}}
3795 {\HCode{</\a:mathml mtd>}}
3796 \Css{mtr.gmatrix mtd {margin-left:0em; margin-right:0em;
3797 padding-left:0em; padding-right:0em;
3798 text-indent:0pt;
3799 }}
3800 \Css{mfenced mtable {margin-left:0em; margin-right:0em;
3801 padding-left:0em; padding-right:0em;
3802 text-indent:0pt;
3803 }}
3804 \Configure{rowops}
3805 {\HCode{<mtable class="rowops">
3806 <mtr><mtd columnspan="3"><mtext>Row ops:</mtext></mtd></mtr>
3807 }}
3808 {\HCode{</mtable>}}
3809 \Configure{colops}
3810 {\HCode{<mtable class="colops">
3811 <mtr><mtd columnspan="3"><mtext>Col ops:</mtext></mtd></mtr>
3812 }}
3813 {\HCode{</mtable>}}
3814 \Css{mtable.rowops, mtable.colops {
3815 margin-left:0.2em;
3816 margin-right:0.2em;
3817 font-size:75\%;
3818 }}
3819 \Css{mtable.rowops mtr, mtable.colops mtr,
3820 mtable.rowops mtd, mtable.colops mtd
3821 {
3822 margin:0em; padding:0em;
3823 }}
3824 \Configure{add}
3825 {\HCode{<mtr><mtd>}\mbox{add }\HCode{</mtd><mtd>}}
3826 {,\HCode{</mtd><mtd>}}
3827 {\HCode{</mtd></mtr>}}
3828 \Configure{mult}
3829 {\HCode{<mtr><mtd>}\mbox{mult }\HCode{</mtd><mtd>}}
3830 {,\HCode{</mtd><mtd>}}
3831 {\HCode{</mtd></mtr>}}
3832 \Configure{swap}
3833 {\HCode{<mtr><mtd>}\mbox{swap }\HCode{</mtd><mtd>}}
3834 {,\HCode{</mtd><mtd>}}
3835 {\HCode{</mtd></mtr>}}
3836
3837 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3838
3839 \endinput\empty\empty\empty\empty\empty\empty
3840 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3841
3842
3843
3844
3845
3846
3847 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3848 \ConfigureHinput{rlbabel}
3849 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3850 \Configure{[]}
3851 {\Configure{@math}{%\a:mathml
3852 display="block"
3853 }\csname a:mathml[]\endcsname
3854 \DviMath\Tg<\a:mathml mrow\Hnewline>$$\DisplayMathtrue }
3855 {$$\Tg</\a:mathml mrow>\EndDviMath\csname b:mathml[]\endcsname
3856 \if@rl\else\beginR\fi }
3857
3858 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3859
3860 \endinput\empty\empty\empty\empty\empty\empty
3861 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3891 \ConfigureHinput{dcolumn}
3892 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3893 \Configure{dcolumn}
3894 {\NoFonts\Configure{$}{}{}{}}
3895 {\EndNoFonts}
3896
3897 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3898
3899 \endinput\empty\empty\empty\empty\empty\empty
3900 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3978 \ConfigureHinput{mathtools}
3979 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3980 \Configure{MT_gathered_env}
3981 {\HCode{<\a:mathml mtable\Hnewline \mml:class="MT-gathered-env">}}
3982 {\HCode{</\a:mathml mtable>}}
3983 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
3984 {\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}
3985 \ConfigureEnv{MT_gathered_env}{}{}{}{}
3986 \ConfigureEnv{gathered}
3987 {%
3988 \Configure{MT_gathered_env}
3989 {\HCode{<\a:mathml mtable\Hnewline
3990 \mml:class="gathered" columnalign="center" >}}
3991 {\HCode{</\a:mathml mtable>}}
3992 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
3993 {\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}%
3994 }
3995 {}{}{}
3996 \ConfigureEnv{lgathered}
3997 {%
3998 \Configure{MT_gathered_env}
3999 {\HCode{<\a:mathml mtable\Hnewline
4000 \mml:class="lgathered" columnalign="left" >}}
4001 {\HCode{</\a:mathml mtable>}}
4002 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
4003 {\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}%
4004 }
4005 {}{}{}
4006 \ConfigureEnv{rgathered}
4007 {%
4008 \Configure{MT_gathered_env}
4009 {\HCode{<\a:mathml mtable\Hnewline
4010 \mml:class="rgathered" columnalign="right" >}}
4011 {\HCode{</\a:mathml mtable>}}
4012 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
4013 {\HCode{\Hnewline<\a:mathml mtd>}} {\HCode{</\a:mathml mtd>}}%
4014 }
4015 {}{}{}
4016 \ConfigureEnv{cases}
4017 {\HCode{<\a:mathml mrow \mml:class="cases" >}}
4018 {\HCode{</\a:mathml mrow>}}
4019 {}{}
4020 \Configure{dcases}
4021 {\HCode{<\a:mathml mtable\Hnewline \mml:class="dcases">}}
4022 {\HCode{</\a:mathml mtable>}}
4023 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
4024 {\HCode{\Hnewline<\a:mathml mtd columnalign="left">}}
4025 {\HCode{</\a:mathml mtd>}}
4026 \Configure{dcases*}
4027 {\HCode{<\a:mathml mtable\Hnewline \mml:class="dcases-star">}}
4028 {\HCode{</\a:mathml mtable>}}
4029 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
4030 {\HCode{\Hnewline<\a:mathml mtd columnalign="left">}%
4031 \ifnum\HCol=2
4032 \PauseMathClass
4033 \HCode{<\a:mathml mtext>}%
4034 % the content of this environment is displayed as text, we must switch back to the normal math processing
4035 % in inline math
4036 \Configure{$}{\EndPauseMathClass\HCode{</\a:mathml mtext>}}{\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
4037 \Configure{()}{\HCode{</\a:mathml mtext>}\EndPauseMathClass$}{$\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
4038 \fi
4039 }
4040 {\ifnum\HCol=2
4041 \EndPauseMathClass
4042 \HCode{</\a:mathml mtext>}%
4043 \fi
4044 \HCode{</\a:mathml mtd>}}
4045 % support bidirectional harpoons
4046 \def\:leftrightharpoons{\HCode{<\a:mathml mo stretchy="true">}\PauseMathClass\x:unicode{21CC}\EndPauseMathClass\HCode{</\a:mathml mo>}}
4047 \def\:righleftharpoons{\HCode{<\a:mathml mo stretchy="true">}\PauseMathClass\x:unicode{21CB}\EndPauseMathClass\HCode{</\a:mathml mo>}}
4048
4049 \providecommand*\:xleftrightharpoons[2][]{%
4050 \ext@arrow 3095\:leftrightharpoons{#1}{#2}}
4051
4052 \providecommand*\:xrightleftharpoons[2][]{%
4053 \ext@arrow 3095\:leftrightharpoons{#1}{#2}}
4054
4055 \HLet\xleftrightharpoons\:xleftrightharpoons
4056 \HLet\xrightleftharpoons\:xrightleftharpoons
4057
4058 % correctly place text under and over arrows
4059 \def\:tempa#1#2#3#4#5#6#7{%
4060 \bgroup%
4061 \def\relbar{}% remove relbar in arrow fills
4062 \def\arrowfill@##1##2##3##4{##1##2##3##4}% remove arrowfill@, to prevent errors
4063 \@ifempty{#7}{%
4064 \HCode{<\a:mathml munder><\a:mathml mrow><\a:mathml mo stretchy="true">}\PauseMathClass#5{}\EndPauseMathClass\HCode{</\a:mathml mo></\a:mathml mrow><\a:mathml mrow>}#6\HCode{</\a:mathml mrow></\a:mathml munder>}%
4065 }{%
4066 \@ifempty{#6}{%
4067 \HCode{<\a:mathml mover><\a:mathml mrow><\a:mathml mo stretchy="true">}\PauseMathClass#5{}\EndPauseMathClass\HCode{</\a:mathml mo></\a:mathml mrow><\a:mathml mrow>}#7\HCode{</\a:mathml mrow></\a:mathml mover>}%
4068 }{%
4069 \HCode{<\a:mathml munderover><\a:mathml mrow><\a:mathml mo stretchy="true">}\PauseMathClass#5{}\EndPauseMathClass\HCode{</\a:mathml mo></\a:mathml mrow><\a:mathml mrow>}#6\HCode{</\a:mathml mrow><\a:mathml mrow>}#7\HCode{</\a:mathml mrow></\a:mathml munderover>}%
4070 }%
4071 }%
4072 \egroup
4073 }
4074
4075 \HLet\ext@arrow\:tempa
4076
4077 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4078
4079 \endinput\empty\empty\empty\empty\empty\empty
4080 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4169 \ConfigureHinput{accents}
4170 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4171 \Configure{accentset}
4172 {\HCode{<mover accent="true" class="accentset"><mrow>}}
4173 {\HCode{</mrow><mrow> }}
4174 {\HCode{</mrow></mover>}}
4175 \Configure{underaccent}
4176 {\HCode{<munder class="underaccent"><mrow>}}
4177 {\HCode{</mrow><mrow> }}
4178 {\HCode{</mrow></munder>}}
4179
4180 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4181
4182 \endinput\empty\empty\empty\empty\empty\empty
4183 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4184
4185
4186
4187
4188
4189
4190
4191 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4192 \ConfigureHinput{subeqnarray}
4193 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4194 \Configure{subeqnarray}
4195 {\HCode{<\a:mathml mtable\Hnewline \mml:class="subeqnarray\ifx
4196 \@seqncr\@eqncr\else-star\fi"
4197 \a:mathml columnalign="right center left" >}}%
4198 {\HCode{</\a:mathml mtable>}}
4199 {\HCode{<\a:mathml mtr>}} {\HCode{</\a:mathml mtr>}}
4200 {\Tg<\a:mathml mtd\Hnewline \mml:class="subeqnarray-\HCol">
4201 \ifnum \HCol=4
4202 \Tg<\a:mathml mtext
4203 \mml:class="subeqnarray">\ht:special{t4ht@,&\#x00A0;}%
4204 \PauseMathClass
4205 \mtexttrue
4206 \Configure{$}%
4207 {\EndPauseMathClass \mtextfalse
4208 \ht:special{t4ht@,}%
4209 \HCode{</\a:mathml mtext><\a:mathml
4210 mstyle\Hnewline \mml:class="math">}}%
4211 {\HCode{</\a:mathml mstyle><\a:mathml
4212 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
4213 \PauseMathClass
4214 \mtexttrue}%
4215 {}%
4216 \Configure{()}%
4217 {\EndPauseMathClass \mtextfalse
4218 \ht:special{t4ht@,}%
4219 \HCode{</\a:mathml mtext><\a:mathml
4220 mstyle\Hnewline \mml:class="math">}$}%
4221 {$\HCode{</\a:mathml mstyle><\a:mathml
4222 mtext \a:@mtext>}\ht:special{t4ht@,&\#x00A0;}%
4223 \PauseMathClass
4224 \mtexttrue}%
4225 {}%
4226 %
4227 \fi}
4228 {\ifnum \HCol=4 \mtextfalse
4229 \EndPauseMathClass\ht:special{t4ht@,}%
4230 \Tg</\a:mathml mtext>\fi
4231 \Tg</\a:mathml mtd>}
4232
4233 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4234
4235 \endinput\empty\empty\empty\empty\empty\empty
4236 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4237
4238
4239
4240
4241 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4242 \ConfigureHinput{siunitx}
4243 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4244 % redefinitions of Expl 3 syntax commands
4245 \ExplSyntaxOn
4246 % this fixes circle in degree celsius not printed as superscript
4247 \siunitx_declare_unit:Ne \degreeCelsius { \HCode{<\a:mathml msup><\a:mathml mrow /><\a:mathml mi>&\#x2218;</\a:mathml mi></\a:mathml msup>} C }
4248
4249 \ExplSyntaxOff
4250
4251 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4252
4253 \endinput\empty\empty\empty\empty\empty\empty
4254 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4255
4256 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4257 \ConfigureHinput{sistyle}
4258 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4259 \Configure{thousandsep}
4260 {\ifmathml
4261 \ifmtext\else \Tg<\a:mathml mspace width="0.25em"/>\fi
4262 \fi}
4263
4264 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4265
4266 \endinput\empty\empty\empty\empty\empty\empty
4267 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4268
4269 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4270 \ConfigureHinput{ushort}
4271 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4272 \Configure{ushort}
4273 {\bgroup
4274 \expandafter\ushort:data
4275 }
4276 {\egroup}
4277 \Configure{ushortw}
4278 {\bgroup
4279 \expandafter\ushort:data
4280 }
4281 {\egroup}
4282 \Configure{ushortd}
4283 {\bgroup
4284 \expandafter\ushortd:data
4285 }
4286 {\egroup}
4287 \Configure{ushortdw}
4288 {\bgroup
4289 \expandafter\ushortd:data
4290 }
4291 {\egroup}
4292 \Configure{ushortdline}
4293 {\bgroup\expandafter\ushortdline:data }
4294 {\egroup}
4295 \def\ushort:data#1#2{\underline{\:gobbleIII #2}}
4296 \def\ushortd:data#1#2{\underline{\underline{\:gobbleIII #2}}}
4297 \def\ushortdline:data#1#2{#1{#1{\:gobble #2}}}
4298
4299 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4300
4301 \endinput\empty\empty\empty\empty\empty\empty
4302 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4303
4304
4305
4306
4307 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4308 \ConfigureHinput{bm}
4309 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4310 \Configure{bm}
4311 {\bgroup\ifmmode \ifmtext \else
4312 \Tg<\a:mathml mstyle
4313 mathvariant="bold">%
4314 \expandafter\expandafter\expandafter\:gobble
4315 \fi\fi}
4316 {\ifmmode \ifmtext \else \Tg</\a:mathml mstyle>\fi\fi\egroup}
4317
4318 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4319
4320 \endinput\empty\empty\empty\empty\empty\empty
4321 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4358 \ConfigureHinput{ulem}
4359 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4360 \Configure{uline-math}
4361 {\HCode{<\a:mathml menclose class="uline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</\a:mathml menclose>}}
4362 \Configure{uuline-math}
4363 {\HCode{<\a:mathml menclose class="uuline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</\a:mathml menclose>}}
4364 \Css{.uuline-math{ border-bottom:3px double black; }}
4365 \Configure{sout-math}
4366 {\HCode{<\a:mathml menclose class="sout-math" notation="horizontalstrike">}\NoFonts} {\EndNoFonts\HCode{</\a:mathml menclose>}}
4367 \Configure{xout-math}
4368 {\HCode{<\a:mathml menclose class="xout-math" notation="horizontalstrike bottom">}\NoFonts}
4369 {\EndNoFonts\HCode{</\a:mathml menclose>}}
4370 \Configure{uwave-math}
4371 {\HCode{<\a:mathml menclose class="uwave-math" notation="bottom">}\NoFonts}
4372 {\EndNoFonts\HCode{</\a:mathml menclose>}}
4373 \Configure{dashuline-math}
4374 {\HCode{<\a:mathml mstyle class="dashuline-math" notation="bottom">}\NoFonts}
4375 {\EndNoFonts\HCode{</\a:mathml mstyle>}}
4376 \Css{.dashuline-math {border-bottom: 1px dashed black;}}
4377 \Configure{dotuline-math}
4378 {\HCode{<\a:mathml mstyle class="dotuline-math" notation="bottom">}\NoFonts}
4379 {\EndNoFonts\HCode{</\a:mathml mstyle>}}
4380 \Css{.dotuline-math {border-bottom: 1px dotted black;}}
4381
4382 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4383
4384 \endinput\empty\empty\empty\empty\empty\empty
4385 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4386
4387 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4388 \ConfigureHinput{cancel}
4389 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4390 \Configure{cancel-math}{\HCode{<\a:mathml menclose notation="updiagonalstrike">}}{\HCode{</\a:mathml menclose>}}
4391 \Configure{bcancel-math}{\HCode{<\a:mathml menclose notation="downdiagonalstrike">}}{\HCode{</\a:mathml menclose>}}
4392 \Configure{xcancel-math}{\HCode{<\a:mathml menclose notation="updiagonalstrike downdiagonalstrike">}}{\HCode{</\a:mathml menclose>}}
4393 \Configure{cancelto}
4394 {\HCode{<\a:mathml msup><\a:mathml menclose notation="updiagonalarrow"><\a:mathml mrow>}}
4395 {\HCode{</\a:mathml mrow></\a:mathml menclose><\a:mathml mrow>}}
4396 {\HCode{</\a:mathml mrow></\a:mathml msup>}}
4397
4398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4399
4400 \endinput\empty\empty\empty\empty\empty\empty
4401 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4433 \ConfigureHinput{stmaryrd}
4434 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4435
4436 \def\:tempa{\HCode{<\a:mathml mo fence="false">\string&\#x27E6;</\a:mathml mo>}}
4437 \HLet\llbracket\:tempa
4438 \def\:tempa{\HCode{<\a:mathml mo fence="false">\string&\#x27E7;</\a:mathml mo>}}
4439 \HLet\rrbracket\:tempa
4440 \Configure{mfenced}{\llbracket}{\string&\#x27E6;}
4441 \Configure{mfenced}{\rrbracket}{\string&\#x27E7;}
4442
4443 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4444
4445 \endinput\empty\empty\empty\empty\empty\empty
4446 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4558 \ConfigureHinput{mhchem}
4559 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4560 \Configure{mhchemcf}{\bgroup\HCode{<\:mhmathmlorhtml{mrow}{span}\space class="mhchem-cf">}}{\HCode{</\:mhmathmlorhtml{mrow}{span}>}\egroup}
4561 \Configure{mhchemce}{\bgroup\HCode{<\:mhmathmlorhtml{mrow}{span}\space class="mhchem-ce">}}{\HCode{</\:mhmathmlorhtml{mrow}{span}>}\egroup}
4562
4563 % we configure subscripts and superscripts to have empty bases. it is because if superscript followed subscript, we got wrong
4564 % MathML markup, with mismatched tags. For example: \ce{CrO4^2-}
4565 \Configure{mhchemsub}{%
4566 \:mhmathmlorhtml{%
4567 \HCode{<\a:mathml msub><mrow></mrow><\a:mathml mrow>}%
4568 }{%
4569 \HCode{<sub>}}%
4570 }{\:mhmathmlorhtml{\Tg</\a:mathml mrow>\TG</\a:mathml msub>}{\HCode{</sub>}}}
4571 \Configure{mhchemsup}{%
4572 \:mhmathmlorhtml{
4573 \HCode{<\a:mathml msup><mrow></mrow><\a:mathml mrow>}%
4574 }{%
4575 \HCode{<sup>}}%
4576 }{\:mhmathmlorhtml{\Tg</\a:mathml mrow>\TG</\a:mathml msup\Hnewline>}{\HCode{</sup>}}}
4577
4578
4579 \Configure{mhchemsupsub}{\setbox0=\hbox\bgroup$}{$\egroup\setbox1=\hbox\bgroup$}{$\egroup\HCode{<\a:mathml msubsup><\a:mathml mrow></\a:mathml mrow><\a:mathml mrow>}\box1\HCode{</\a:mathml mrow><\a:mathml mrow>}\box0\HCode{</\a:mathml mrow></\a:mathml msubsup>}}
4580 \Configure{mhchemisotope}{\setbox0=\hbox\bgroup$}{$\egroup\setbox1=\hbox\bgroup$}{$\egroup\HCode{<\a:mathml msubsup><\a:mathml mrow></\a:mathml mrow><\a:mathml mrow>}\box1\HCode{</\a:mathml mrow><\a:mathml mrow>}\box0\HCode{</\a:mathml mrow></\a:mathml msubsup>}}
4581
4582
4583
4584 % mhchemoperator is always used inside \HCode, so we need not to use \HCode in it's configuration
4585 \Configure{mhchemoperator}{<\:mhmathmlorhtml{mo \a:mathml stretchy="false" }{span} class="mhchem-operator">}{</\:mhmathmlorhtml{mo}{span}>}
4586
4587 \Configure{mhchemarrow}{\HCode {<\:mhmathmlorhtml{mrow}{span} class="mhchem-arrow">\:mhonlyinmathml{\a:mhchemoperator}}\PauseMathClass}{\EndPauseMathClass\HCode{\:mhonlyinmathml{\b:mhchemoperator}</\:mhmathmlorhtml{mrow}{span}>}}
4588 \Configure{mhchemarrowabove}{\HCode{<\:mhmathmlorhtml{mrow}{span} class="mhchem-above">\:mhonlyinmathml{\a:mhchemoperator}}\PauseMathClass}{\EndPauseMathClass\HCode{\:mhonlyinmathml{\b:mhchemoperator}</\:mhmathmlorhtml{mrow}{span}>}}
4589 \Configure{mhchemarrowyields}{\ensuremath{\HCode{<\:mhmathmlorhtml{mrow}{span} class="mhchem-arrow-normal">\:mhonlyinmathml{\a:mhchemoperator}&\#x27F6;\:mhonlyinmathml{\b:mhchemoperator}</\:mhmathmlorhtml{mrow}{span}>}}}
4590 \Configure{mhchemarrowyieldsLeft}{\ensuremath{\HCode{<\:mhmathmlorhtml{mrow}{span} class="mhchem-arrow-normal">\:mhonlyinmathml{\a:mhchemoperator}&\#x27F5;\:mhonlyinmathml{\b:mhchemoperator}</\:mhmathmlorhtml{mrow}{span}>}}}
4591 \Configure{mhchemarrowyieldsLeftRight}{\ensuremath{\HCode{<\a:mathml munder class="mhchem-arrow-larger"><\a:mathml mrow><\a:mathml mpadded height="0" depth="0.3em"><\a:mathml mo stretchy="false" >&\#x27F5;</\a:mathml mo></\a:mathml mpadded></\a:mathml mrow>
4592 <\a:mathml mrow><\a:mathml mpadded depth="0" height="0"><\a:mathml mo stretchy="false">&\#x27F6;</\a:mathml mo></\a:mathml mpadded></\a:mathml mrow></\a:mathml munder>}
4593 }}
4594 \Configure{mhchemarrowmesomerism}{\HCode{<\:mhmathmlorhtml{mrow}{span} class="mhchem-arrow-normal">\:mhonlyinmathml{\a:mhchemoperator}&\#x2194;\:mhonlyinmathml{\b:mhchemoperator}</\:mhmathmlorhtml{mrow}{span}>}} % todo: improve
4595 % \Configure{mhchemarrowequilibrium}{\ensuremath{\HCode{<\:mhmathmlorhtml{mrow}{span} class="mhchem-arrow-normal">\:mhonlyinmathml{\a:mhchemoperator}&\#x21cc;\:mhonlyinmathml{\b:mhchemoperator}</\:mhmathmlorhtml{mrow}{span}>}}} % todo: improve
4596 \Configure{mhchemarrowequilibrium}{\ensuremath{\HCode{<\a:mathml munder class="mhchem-arrow-larger"><\a:mathml mrow><\a:mathml mpadded height="0" depth="0" voffset="-0.1em" ><\a:mathml mo stretchy="true" >&\#x21c0;</\a:mathml mo></\a:mathml mpadded></\a:mathml mrow>
4597 <\a:mathml mpadded height="0" depth="0" ><\a:mathml mo stretchy="false">&\#x21bd;</\a:mathml mo></\a:mathml mpadded></\a:mathml munder>}
4598 }} % todo: improve
4599 % this configuration is inspired by the MathML code from MathJax. There is a problem with vertical positioning of arrows, so we need to use
4600 % the <mpadded> element to fix that. It is still not perfect, moreover, there is a difference in rendering between
4601 % vanilla Firefox and MathJax's MathML
4602 \Configure{mhchemarrowequilibriumRight}
4603 {\ensuremath{\HCode{<\a:mathml munder class="mhchem-arrow-larger"><\a:mathml mrow><\a:mathml mpadded height="0" depth="1" voffset="3px"><\a:mathml mo stretchy="true" >&\#x21c0;</\a:mathml mo></\a:mathml mpadded></\a:mathml mrow>
4604 <\a:mathml mpadded height="0" depth="1" voffset="2px"><\a:mathml mspace width="0.167em"></\a:mathml mspace><\a:mathml mo stretchy="false">&\#x21bd;</\a:mathml mo><\a:mathml mspace width="0.167em"></\a:mathml mspace></\a:mathml mpadded></\a:mathml munder>}
4605 }} % todo: improve
4606 \Configure{mhchemarrowequilibriumLeft}
4607 {\ensuremath{\HCode{<\a:mathml munder class="mhchem-arrow-larger"><\a:mathml mrow><\a:mathml mpadded height="0" depth="1" voffset="4px"><\a:mathml mspace width="0.167em"></\a:mathml mspace><\a:mathml mo stretchy="false">&\#x21c0;</\a:mathml mo><\a:mathml mspace width="0.167em"></\a:mathml mspace></\a:mathml mpadded></\a:mathml mrow>
4608 <\a:mathml mpadded height="0" depth="1" voffset="2px"><\a:mathml mo stretchy="true" >&\#x21bd;</\a:mathml mo></\a:mathml mpadded></\a:mathml munder>}
4609 }} % todo: improve
4610
4611 % this is not the right symbol
4612 % \Configure{mhchemarrowequilibriumRight}{\a:mhchemoperator\HCode{&\#x2942;}\b:mhchemoperator } % todo: improve
4613 % \Configure{mhchemarrowequilibriumLeft}{\a:mhchemoperator\HCode{&\#x2943;}\b:mhchemoperator} % todo: improve
4614 \Configure{mhchembondhalf}{\HCode{<span class="mhchem-bond-half-middle">&\#xfe4d;</span>}}
4615 \Configure{mhchembondoneandhalf}{\HCode{<span class="mhchem-rlap">&\#x2212;</span><span class="mhchem-bond-half-top">&\#xfe4d;</span>}}
4616 \Configure{mhchembondtwoandhalf}{\HCode{<span class="mhchem-rlap">=</span><span class="mhchem-bond-half-top">&\#xfe4d;</span>}}
4617 \Configure{mhchembondtwoandhalff}{\HCode{<span class="mhchem-rlap mhchem-bond-top">&\#x2212;</span><span class="mhchem-rlap mhchem-bond-bottom">&\#x2212;</span><span class="mhchem-bond-half-middle">&\#xfe4d;</span>}}
4618
4619 \ExplSyntaxOn
4620 \cs_set_protected:Npn \__mhchem_arrow_deployfourht:nnnnn #1#2#3#4#5
4621 {
4622 \bgroup
4623 \ensuremath{%
4624 % we need to test if the text is larger than arrow. if it is, the math operator needs to be stretchy.
4625 % otherwise, it must be not stretchy, otherwise the text over arrow will be aligned to the right
4626 \setbox0=\hbox{\tl_if_empty:nF {#3#5}
4627 {
4628 \str_case:nnF {#2}
4629 {
4630 { } { \ce{ #5 } }
4631 { M } { { #5 } }
4632 { T } { \text{ #5 } }
4633 { C } { \ce{ #5 } }
4634 }
4635 { \msg_error:nnn { mhchem } { unexpected-arrow-type } {#2} }
4636 }}
4637 \setbox1=\hbox{\tl_if_empty:nF {#3#5}
4638 {
4639 \str_case:nnF {#2}
4640 {
4641 { } { \ce{ #3 } }
4642 { M } { { #3 } }
4643 { T } { \text{ #3 } }
4644 { C } { \ce{ #3 } }
4645 }
4646 { \msg_error:nnn { mhchem } { unexpected-arrow-type } {#2} }
4647 }}
4648 % now compare dimensions of boxes and change math stretchines
4649 \ifdim \wd0>1em
4650 \Configure{mhchemoperator}{<\a:mathml mo~\a:mathml stretchy="true"~\a:mathml class="mhchem-operator">}{</\a:mathml mo>}
4651 \else
4652 \ifdim \wd1>1em
4653 \Configure{mhchemoperator}{<\a:mathml mo~\a:mathml stretchy="true"~\a:mathml class="mhchem-operator">}{</\a:mathml mo>}
4654 \fi
4655 \fi
4656 \a:mhchemmathlarrow
4657 \str_case:nnF {#1}
4658 {
4659 { yields } {\a:mhchemarrowyields }
4660 { yieldsLeft } {\a:mhchemarrowyieldsLeft }
4661 { yieldsLeftRight } {\a:mhchemarrowyieldsLeftRight } % todo: improve
4662 { esomerism } {\a:mhchemarrowesomerism } % todo: improve
4663 { equilibrium } {\a:mhchemarrowequilibrium } % todo: improve
4664 { equilibriumRight } {\a:mhchemarrowequilibriumRight } % todo: improve
4665 { equilibriumLeft } {\a:mhchemarrowequilibriumLeft } % todo: improve
4666 }
4667 { \msg_error:nnn { mhchem } { unexpected-arrow-type } {#1} }
4668 \b:mhchemmathlarrow
4669 \box0
4670 \c:mhchemmathlarrow
4671 \box1
4672 \d:mhchemmathlarrow
4673 }
4674 \egroup
4675 }
4676
4677 \HRestore\__mhchem_arrow_deploy:nnnnn
4678 \HLet\__mhchem_arrow_deploy:nnnnn\__mhchem_arrow_deployfourht:nnnnn
4679 \ExplSyntaxOff
4680
4681 \NewConfigure{mhchemmathlarrow}{4}
4682 \Configure{mhchemmathlarrow}{\HCode{<\a:mathml munderover><\a:mathml mrow>}}{\HCode{</\a:mathml mrow><\a:mathml mpadded>}}{\HCode{</\a:mathml mpadded><\a:mathml mpadded>}}{\HCode{</\a:mathml mpadded></\a:mathml munderover>}}
4683
4684
4685 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4686
4687 \endinput\empty\empty\empty\empty\empty\empty
4688 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4689
4690
4691
4692 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4693 \ConfigureHinput{esvect}
4694 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4695 \def\:tempa#1{%
4696 \bgroup\HCode{<\a:mathml mover><\a:mathml mrow>}#1\HCode{</\a:mathml mrow><\a:mathml mo \a:mathml stretchy="true">}
4697 \PauseMathClass\fldr\EndPauseMathClass%
4698 \HCode{</\a:mathml mo></\a:mathml mover>}\egroup
4699 }
4700
4701 \HRestore\ESV@vecteur
4702 \HLet\ESV@vecteur\:tempa
4703
4704 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4705
4706 \endinput\empty\empty\empty\empty\empty\empty
4707 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4708
4709
4710 \endinput
4711