Debian Codegraph @

texmf-dist/source/generic/tex4ht/tex4ht-mathltx.tex

raw
1 % $Id: tex4ht-mathltx.tex 184 2016-07-04 17:35:09Z karl $
2 % compile 3 times: latex tex4ht-mathltx
3 % or xhlatex tex4ht-mathltx "html,3,sections+"
4 %
5 % Copyright 2009-2016 TeX Users Group
6 % Copyright 2005-2009 Eitan M. Gurari
7 % Released under LPPL 1.3c+.
8 % See tex4ht-cpright.tex for license text.
9
10 \ifx \HTML\UnDef
11 \def\HTML{mathltx,html-mltx}
12 \def\CONFIG{\jobname}
13 \def\MAKETITLE{\author{Eitan M. Gurari}}
14 \def\next{\input mktex4ht.4ht \endinput}
15 \expandafter\next
16 \fi
17
18 \input{common-code}
19 \input{common}
20 \input{tex4ht-cpright}
21
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23 \chapter{Constructs}
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25
26
27 %%%%%%%%%%%%%%%%%%
28 \section{Background}
29 %%%%%%%%%%%%%%%%%%
30
31 \Link[http://www.math.union.edu/\string
32 ~dpvc/jsMath/welcome.html]{}{}jsmath\EndLink
33
34
35 \begin{verbatim}
36 <SCRIPT
37 SRC="http://www.math.union.edu/~dpvc/jsMath/jsMath/jsMath.js"></SCRIPT>
38 <NOSCRIPT>
39 <DIV STYLE="color:#CC0000; text-align:center">
40 <B>Warning: <A HREF="http://www.math.union.edu/locate/jsMath">jsMath</A>
41 requires JavaScript to process the mathematics on this page.<BR>
42 If your browser supports JavaScript, be sure it is enabled.</B>
43 </DIV>
44 <HR>
45 </NOSCRIPT>
46
47 <DIV CLASS="math">
48 \left(a^b\right)
49 </DIV>
50
51
52 <STYLE TYPE="text/css">
53 .math {font-size: 67%;}
54 </STYLE>
55
56 <SPAN CLASS="math">f(u)</SPAN>
57
58 \end{verbatim}
59
60 \begin{verbatim}
61 htlatex try "xhtml,mathltx" " -cmozhtf"
62 \end{verbatim}
63
64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
65 \section{The equation Environment}
66 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67
68
69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
70 \subsection{LaTeX}
71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
72
73
74 \<mathltx latex\><<<
75 \let\A:equation|=\a:equation
76 \let\B:equation|=\b:equation
77 \let\C:equation|=\c:equation
78 \Configure{equation}
79 {\A:equation|<math display in equation|>}
80 {\B:equation}{\C:equation}
81 >>>
82
83 \<configure html-mltx latex\><<<
84 \Configure{equation}
85 {\IgnorePar|<inline end-par comment|>\EndP
86 \HCode{<table class="equation"><tr><td>}\IgnorePar
87 |<math display in equation|>}
88 {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td class="eq-no">}}
89 {\HCode{</td></tr></table>}|<try inline par|>}
90 \Css{.equation td{text-align:center; vertical-align:middle; }}
91 \Css{td.eq-no{ width:5\%; }}
92 \Css{table.equation { width:100\%; } }
93 >>>
94
95 \<math display in equation\><<<
96 \csname a:equation\string$\string$\endcsname
97 >>>
98
99 \<mathltx latex\><<<
100 \NewConfigure{equation$$}{1}
101 \Configure{equation$$}
102 {\Configure{$$}
103 {\Configure{@math}{div}\IgnorePar\EndP\DviMath}
104 {\EndDviMath\EndP}
105 {\DisplayMathtrue}%
106 }
107 >>>
108
109
110
111
112 \<block display\><<<
113 display="block"
114 >>>
115
116
117 \<inline display\><<<
118 display="inline"
119 >>>
120
121 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
122 \subsection{AmsMath}
123 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
124
125
126
127 \<amsmath mathltx\><<<
128 \Configure{equation}
129 {\Configure{gather}
130 {\HCode{<mtable\Hnewline
131 \mml:class="equation"><mtr><mtd>}\IgnorePar }
132 {\HCode{</mtd></mtr></mtable>}}
133 {}
134 {}
135 {\ifnum\HCol=2 \IgnorePar
136 \HCode{</mtd><mtd>}\fi }
137 {}
138 }{}{}
139 \Configure{equation*}
140 {\Configure{gather*}
141 {\HCode{<mtable\Hnewline
142 \mml:class="equation-star"><mtr><mtd>}\IgnorePar }
143 {\HCode{</mtd></mtr></mtable>}}
144 {}
145 {}
146 {\ifnum\HCol=2 \IgnorePar
147 \HCode{</mtd><mtd>}\fi }
148 {}
149 }{}
150 \Css{.equation-star td{text-align:center; }}
151 \Css{table.equation-star { width:100\%; }}
152 >>>
153
154
155
156 \<amsmath html-mltx pre 2000\><<<
157 \Configure{equation}
158 {\ifvmode \IgnorePar\fi \EndP
159 \HCode{<table class="equation"><tr><td>}%
160 |<amsmath equation pre 2000|>%
161 \IgnorePar
162 }
163 {\ifvmode \IgnorePar\fi\EndP \HCode{</td><td class="eq-no">}}
164 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
165 \IgnoreIndent\par}
166 \Configure{equation*}
167 {\ifvmode \IgnorePar\fi \EndP
168 \HCode{<table class="equation-star"><tr><td>}%
169 |<amsmath equation pre 2000|>%
170 \IgnorePar
171 }
172 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
173 \IgnoreIndent\par}
174 >>>
175
176
177 \<amsmath html-mltx jan 2000\><<<
178 \Configure{equation}
179 {\ifvmode \IgnorePar\fi \EndP
180 \HCode{<table class="EQUATION"><tr><td>}%
181 |<amsmath equation jan 2000|>%
182 \IgnorePar
183 }
184 {\ifvmode \IgnorePar\fi\EndP
185 \HCode{</td><td class="eq-no">}%
186 }
187 {\ifvmode \IgnorePar\fi\EndP
188 \HCode{</td></tr></table>}%
189 \IgnoreIndent\par}
190 \Configure{equation*}
191 {\ifvmode \IgnorePar\fi \EndP
192 \HCode{<table class="EQUATION"><tr><td>}%
193 |<amsmath equation jan 2000|>%
194 \IgnorePar
195 }
196 {\ifvmode \IgnorePar\fi\EndP
197 \HCode{</td></tr></table>}%
198 \IgnoreIndent\par}
199 >>>
200
201
202 \<amsmath html-mltx july 2000\><<<
203 \Configure{equation}
204 {\ifvmode \IgnorePar\fi\EndP
205 \HCode{<table class="equation"><tr><td>}%
206 |<amsmath equation july 2000|>%
207 |<math display in amsmath equation|>%
208 }
209 {\ifvmode \IgnorePar\fi\EndP
210 \HCode{</td><td class="eq-no">}%
211 }
212 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
213 \ShowPar\IgnoreIndent\par}
214 \Configure{equation*}
215 {\ifvmode \IgnorePar\fi\EndP
216 \HCode{<table class="equation-star"><tr><td>}%
217 |<amsmath equation july 2000|>%
218 |<math display in amsmath equation|>%
219 }
220 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
221 \ShowPar\IgnoreIndent\par}
222 >>>
223
224
225
226 \<math display in amsmath equation\><<<
227 \csname a:equation\string$\string$\endcsname
228 >>>
229
230 \<configure html-mltx amsmath\><<<
231 \Configure{equation$$}
232 {\Configure{$$}
233 {\IgnorePar \Configure{@math}{div}\EndP\DviMath
234 \HCode{\string\begin{equation}}}
235 {\HCode{\string\end{equation}}\EndDviMath\EndP}
236 {\DisplayMathtrue}%
237 }
238 >>>
239
240
241 \<amsmath equation jan 2000\><<<
242 |<amsmath equation july 2000|>%
243 >>>
244
245
246
247
248
249
250
251 \<amsmath equation july 2000\><<<
252 \Configure{gather}
253 {}
254 {}
255 {}
256 {}
257 {}
258 {}%
259 >>>
260
261 \<amsmath equation pre 2000\><<<
262 \Configure{$$}{}{}{}%
263 \Configure{gather}
264 {\Configure{$$}
265 {\Configure{@math}{\mml:class="equation"}\IgnorePar\EndP\DviMath}
266 {\EndDviMath\EndP}%
267 {}%
268 \IgnorePar
269 }{}{}{}{}{}
270 >>>
271
272
273
274
275
276
277
278
279
280 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
281 \chapter{Mathltx}
282 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
283 %%%%%%%%%%%%%%%%%
284 \section{?????}
285 %%%%%%%%%%%%%%%%%
286
287
288
289 \<configure mathltx Preamble\><<<
290 \ifx \a:mathltx\:UnDef
291 \NewConfigure{mathltx}{1}
292 \Configure{mathltx}{}
293 \fi
294 \def\mml:class{class}
295 >>>
296
297
298 \<plain,latex mathltx\><<<
299 |<nolimit functions|>
300 |<limit functions|>
301 >>>
302
303
304 \<plain,latex mathltx\><<<
305 \let\A:displaylines|=\a:displaylines
306 \let\B:displaylines|=\b:displaylines
307 \let\C:displaylines|=\c:displaylines
308 \let\D:displaylines|=\d:displaylines
309 \Configure{displaylines}
310 {\ifmmode
311 \def\A:displaylines{\HCode{<mtable
312 \mml:class="displaylines">}}%
313 \def\B:displaylines{\HCode{</mtable>}}%
314 \def\C:displaylines{\HCode{<mtr\Hnewline
315 \mml:class="displaylines"><mtd>}}%
316 \def\D:displaylines{\HCode{</mtd></mtr>}}%
317 \fi
318 \A:displaylines}
319 {\B:displaylines} {\C:displaylines}{\D:displaylines}
320 >>>
321
322
323
324 \<mathltx m:env\><<<
325 \def\m:env#1{\HCode{<mtable
326 \mml:class="#1"><mtr><mtd>}%
327 \def\endm:env{\HCode
328 {</mtd></mtr></mtable>}}}
329 >>>
330
331
332 \<amstex.tex mathltx\><<<
333 \Configure{pmatrix}
334 {\bgroup\m:env{pmatrix}}
335 {\endm:env\egroup}
336 \Configure{multline}
337 {\HCode{<mtable\mml:class="multline">}} {\HCode{</mtable>}}
338 {\HCode{<mtr\Hnewline\mml:class="multline"><mtd>}}{\HCode{</mtd></mtr>}}
339 \Configure{smallmatrix}
340 {\HCode{<mtable\mml:class="smallmatrix">}}
341 {\HCode{</mtable>}}
342 {\HCode{<mtr\Hnewline\mml:class="smallmatrix">}}
343 {\HCode{</mtr>}}
344 {\HCode{<mtd\Hnewline\mml:class="smallmatrix">}}
345 {\HCode{</mtd>}}
346 \Configure{bmatrix}
347 {\bgroup\m:env{bmatrix}}
348 {\endm:env\egroup}
349 \Configure{vmatrix}{\bgroup\m:env{vmatrix}}{\endm:env\egroup}
350 \Configure{Vmatrix}{\bgroup\m:env{Vmatrix}}{\endm:env\egroup}
351 \Configure{aligned}
352 {\HCode{<mtable\mml:class="aligned">}}
353 {\HCode{</mtable>}}
354 {\HCode{<mtr\Hnewline\mml:class="aligned">}}
355 {\HCode{</mtr>}}
356 {\HCode{<mtd\Hnewline\mml:class="aligned">}}
357 {\HCode{</mtd>}}
358 \Configure{xalignat}
359 {\HCode{<mtable\mml:class="xalignat">}}
360 {\HCode{</mtable>}}
361 {\HCode{<mtr\Hnewline \mml:class="xalignat">}}
362 {\HCode{</mtr>}}
363 {\HCode{<mtd\Hnewline \mml:class="xalignat">}}
364 {\HCode{</mtd>}}
365 \Configure{xxalignat}
366 {\HCode{<mtable \mml:class="xxalignat">}}
367 {\HCode{</mtable>}}
368 {\HCode{<mtr\Hnewline \mml:class="xxalignat">}}
369 {\HCode{</mtr>}}
370 {\HCode{<mtd\Hnewline \mml:class="xxalignat">}}
371 {\HCode{</mtd>}}
372 \Configure{alignedat}
373 {\HCode{<mtable \mml:class="alignedat">}}
374 {\HCode{</mtable>}}
375 {\HCode{<mtr\Hnewline \mml:class="alignedat">}}
376 {\HCode{</mtr>}}
377 {\HCode{<mtd\Hnewline \mml:class="alignedat">}}
378 {\HCode{</mtd>}}
379 \Configure{gathered}
380 {\HCode{<mtable \mml:class="gathered">}}
381 {\HCode{</mtable>}}
382 {\HCode{<mtr\Hnewline \mml:class="gathered">}}
383 {\HCode{</mtr>}}
384 {\HCode{<mtd\Hnewline \mml:class="gathered">}}
385 {\HCode{</mtd>}}
386 >>>
387
388
389 \<mathltx\><<<
390 % mathltx.4ht (|version), generated from |jobname.tex
391 % Copyright 2009-2014 TeX Users Group
392 % Copyright |CopyYear.2005. Eitan M. Gurari
393 |<TeX4ht copywrite|>
394 >>>
395
396 \<html-mltx\><<<
397 % html-mltx.4ht (|version), generated from |jobname.tex
398 % Copyright 2009-2016 TeX Users Group
399 % Copyright |CopyYear.2005. Eitan M. Gurari
400 |<TeX4ht copywrite|>
401 >>>
402
403 \<configure mathltx tex4ht\><<<
404 |<tex compiler mathltx|>
405 |<sub, sup, subsup|>
406 |<limits sub, sup, subsup|>
407 >>>
408
409
410
411
412
413
414
415
416
417
418 \<html4 font decorations\><<<
419 \Configure{htf}{0}{+}{<span\Hnewline
420 class="}{\%s}{-\%s}{x-x-\%d}{}{">}{</span>}%
421 \Configure{htf}{1}{+}{<img\Hnewline
422 src="}{" alt="}{" class="}{\%s}{-\%d}{x-x-\%x}{"\xml:empty>}%
423 \Configure{htf}{3}{+}{<img\Hnewline
424 src="}{" alt="}{" class="\%s-}{\%s}{-\%d}{x-x-\%x}%
425 {" style="text-align:middle;"\xml:empty>}%
426 \Configure{htf}{4}{+}{<small\Hnewline
427 class="}{}{}{}{}{small-caps">}{</small>}%
428 \Configure{htf}{6}{+}{<u\Hnewline
429 class="}{}{}{}{}{underline">}{</u>}%
430 \Configure{htf}{8}{+}
431 {<sup class="htf"><strong>}{}{}{}{}{}{</strong></sup>}%
432 \Configure{htf}{10}{+}
433 {<span class="htf-cmbx">}{}{}{}{}{}{</span>}%
434 \Configure{htf}{12}{+}
435 {<span\Hnewline class="htf-calligraphy">}{}{}{}{}{}{</span>}%
436 >>>
437
438 \<no html4 font decorations\><<<
439 \Configure{htf}{0}{+}{}{}{}{}{}{}{}%
440 \Configure{htf}{1}{+}{}{}{}{}{}{}{}%
441 \Configure{htf}{3}{+}{}{}{}{}{}{}{}%
442 \Configure{htf}{4}{+}{}{}{}{}{}{}{}%
443 \Configure{htf}{6}{+}{}{}{}{}{}{}{}%
444 \Configure{htf}{8}{+}{}{}{}{}{}{}{}%
445 \Configure{htf}{10}{+}{}{}{}{}{}{}{}%
446 \Configure{htf}{12}{+}{}{}{}{}{}{}{}%
447 >>>
448
449
450
451
452
453 \<configure mathltx tex4ht\><<<
454 \def\mml:htfsym{\Configure
455 {htf}{254}{+}{<mglyph\Hnewline fontfamily="}{\%s"}{
456 index="\%s"}{ mathsize="\%d\%\%"}{}{ alt="}{"/>}}
457 \def\ext:htfsym{\Configure{htf}{254}{+}{}{}{}{}{}{}{}}
458 >>>
459
460
461 \<configure mathltx-mml tex4ht\><<<
462 \append:def\mml:htfsym{|<no html4 font decorations|>}
463 \append:def\ext:htfsym{|<html4 font decorations|>}
464 >>>
465
466
467 We reserve code 254 (and 255) for unknown symbols.
468
469
470
471 \<configure mathltx latex\><<<
472 \:CheckOption{core}\if:Option \expandafter\endinput \fi
473 |<mathltx latex|>
474 |<plain,latex mathltx|>
475 >>>
476
477 \<configure mathltx fontmath\><<<
478 |<mathltx plain,fontmath|>
479 >>>
480
481 \<configure mathltx plain\><<<
482 \:CheckOption{core}\if:Option \expandafter\endinput \fi
483 |<mathltx plain|>
484 |<mathltx plain,fontmath|>
485 |<plain,latex mathltx|>
486 >>>
487
488 \<mathltx plain,fontmath\><<<
489 |<rlbabel everypar|>
490 |<plain,fontmath math classes|>
491 >>>
492
493 \<configure mathltx amsmath\><<<
494 |<arr amsmath, amstex1|>
495 |<amsmath mathltx|>
496 |<amsmath symbols|>
497 >>>
498
499 \<configure mathltx amsmath\><<<
500 \Configure{intertext}
501 {\IgnorePar \ifinalign@
502 \HCode{</mtd></mtr><\a:mathltx
503 mtr><mtd columnspan="\HCol"
504 \mml:class="intertext">}%
505 \else \ifingather@
506 \HCode{<mtr><mtd columnspan="\HCol"
507 \mml:class="intertext">}%
508 \fi\fi
509 \AA:text{intertext}%
510 }
511 {\BB:text \ifvmode \IgnorePar \fi \EndP\ifinalign@
512 \HCode{</mtd></mtr><\a:mathltx
513 mtr><mtd>}%
514 \else \ifingather@
515 \HCode{</mtd></mtr>}%
516 \fi\fi
517 }
518 >>>
519
520
521
522 \<configure mathltx amsmath\><<<
523 \Configure{maketag}
524 {\ifmathltx
525 \ifmtext \expandafter\expandafter\expandafter\no:maketag\fi
526 \else \expandafter\no:maketag\fi
527 \AA:text{maketag}\hbox\bgroup\:gobbleIII :@:}
528 {\egroup\BB:text }
529 \def\no:maketag#1:@:#2\b:maketag{\hbox{#2}}
530 >>>
531
532
533 \<configure mathltx amstext\><<<
534 \Configure{text}{\AA:text{text}}{\BB:text}
535 >>>
536
537
538 \<amsmath symbols\><<<
539 \def\:tempc{\DOTSI\protect\:idotsint}
540 \HLet\idotsint|=\:tempc
541 \def\:idotsint{%
542 \mathop{\intop\cdotp\cdotp\cdotp\intop }\ilimits@
543 }
544 >>>
545
546 \<configure mathltx amsopn\><<<
547 |<amsopn / amstex.sty mathltx|>
548 >>>
549
550 \<configure mathltx amstex1\><<<
551 % amstex.sty
552 |<arr amsmath, amstex1|>
553 |<amstex.sty mathltx|>
554 |<amsopn / amstex.sty mathltx|>
555 >>>
556
557 \<configure mathltx amstex\><<<
558 % amstex.tex
559 |<mathltx m:env|>
560 |<amstex.tex mathltx|>
561 >>>
562
563 \<configure mathltx vanilla\><<<
564 |<vanilla mathltx|>
565 >>>
566
567 \<plain,latex mathltx\><<<
568 \let\mathltx:on|=\relax
569 \Configure{ }
570 {\ifmathltx \ifmtext \space \else\HCode{\string\ }\fi
571 \else \:nbsp\fi}
572 >>>
573
574
575 \<mathltx latex\><<<
576 \Configure{hspace}
577 {\ifmathltx\ifmtext\else
578 \HCode{\string\l:brace\the\tmp:dim\r:brace}\fi\fi}{}{ }
579 >>>
580
581
582
583
584 \<mathltx latex\><<<
585 \Configure{romannumeral}
586 {\ifmathltx\ifmtext\else \HCode{<mrow \mml:class="romannumeral">}\fi\fi}
587 {\ifmathltx\ifmtext\else \HCode{</mrow>}\fi\fi}
588 >>>
589
590 \<configure html-mltx latex\><<<
591 \Configure{romannumeral}
592 {\ifmtext\else
593 \HCode{<\ifmathltx mrow \else span \fi \mml:class="romannumeral">}\fi
594 }
595 {\ifmtext\else \HCode{</\ifmathltx mrow\else span\fi>}\fi }
596 >>>
597
598
599 \<configure html-mltx latex\><<<
600 \Configure{hspace}
601 {\ifmathltx \ifmtext \else
602 \HCode{\string\l:brace\the\tmp:dim\r:brace}\fi\fi}
603 {}{\ifmathltx \else \:nbsp\fi}
604 >>>
605
606
607 \<configure html-mltx plain\><<<
608 |<plain,latex html-mltx|>
609 >>>
610
611
612 \<configure html-mltx latex\><<<
613 |<plain,latex html-mltx|>
614 >>>
615
616 \<plain,latex mathltx\><<<
617 \def\:tempc#1{\HCode{\string\widehat\l:brace}#1\HCode{\r:brace}}
618 \HLet\widehat=\:tempc
619 \def\:tempc#1{\HCode{\string\widetilde\l:brace}#1\HCode{\r:brace}}
620 \HLet\widetilde=\:tempc
621 >>>
622
623 \<plain,latex html-mltx\><<<
624 \:CheckOption{new-accents} \if:Option \else
625 \ifx \mathltx:on\:UnDef
626 \Configure{accents}
627 {\ifmmode \expandafter\mathord\fi
628 {|<temp hcode accents|>%
629 \ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
630 {\ifmmode
631 \Tg<mrow
632 \mml:class="accent#1">\mathord{#3}\Tg</mrow>%
633 \else \HCode{<span class="accent#1">}#3\HCode{</span>}%
634 \fi
635 }%
636 \fi
637 \fi
638 >>>
639
640
641
642 \<plain,latex mathltx\><<<
643 \:CheckOption{new-accents} \if:Option \else
644 \ifx \mathltx:on\:UnDef
645 \Configure{accents}
646 {\ifmmode \expandafter\mathord\fi
647 {|<temp hcode accents|>%
648 \ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
649 {\Tg<mrow
650 \mml:class="accent#1">\mathord{#3}\Tg</mrow>%
651 }%
652 \fi
653 \fi
654 >>>
655
656
657
658
659
660
661
662 \<temp hcode accents\><<<
663 \leavevmode
664 \if !#1!\ht:special{t4ht@+&{35}x#2;}%
665 \else \expandafter \ifx\csname U#2#1\endcsname\relax
666 \ht:special{t4ht@+&{35}x#2;}%
667 \else
668 \ht:special{t4ht@+&{35}x\csname U#2#1\endcsname;}%
669 \fi \fi x%
670 >>>
671
672
673 The special replaces the `x' character.
674
675
676 \<configure mathltx Preamble\><<<
677 \Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
678 \:CheckOption{no-DOCTYPE} \if:Option
679 \Configure{PROLOG}{VERSION,*XML-STYLESHEET}
680 \fi
681 >>>
682
683
684 \<mathltx dtd\><<<
685 \Configure{DOCTYPE}{\HCode
686 {<!DOCTYPE html |<xhtml+mathltx dtd|>%
687 >\Hnewline
688 }}
689 >>>
690
691
692 \<xhtml+mathltx dtd\><<<
693 PUBLIC
694 "-//W3C//DTD XHTML 1.1 plus Mathltx 2.0//|<dtd lang|>"\Hnewline
695 "http://www.w3.org/Math/DTD/mathltx2/xhtml-math11-f.dtd"
696 >>>
697
698
699
700 \<dtd lang\><<<
701 \expandafter
702 \ifx \csname a:dtd-lang\endcsname\relax EN\else
703 \csname a:dtd-lang\endcsname
704 \fi
705 >>>
706
707
708 \<xmlns\><<<
709 xmlns="http://www.w3.org/1999/xhtml"
710 >>>
711
712
713 \<plain,latex mathltx\><<<
714 \let\mml:TeX|=\TeX
715 \def\TeX{\ifmathltx
716 \HCode{<mtext
717 \mml:class="TeX">TeX</mtext>}\else \mml:TeX\fi}
718 >>>
719
720 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
721 \subsection{TeX Engine}
722 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
723
724 \<sub, sup, subsup\><<<
725 \Configure{SUB}
726 {\Send{BACK}
727 {\l:brace}\HCode{\r:brace\string_\l:brace}\trap:base}
728 {\HCode{\r:brace}}
729 \Configure{SUP}
730 {\Send{BACK}
731 {\l:brace}\HCode{\r:brace\string^\l:brace}\trap:base}
732 {\HCode{\r:brace}}
733 \Configure{SUBSUP}
734 {\Send{BACK}
735 {\l:brace}\HCode{\r:brace\string_\l:brace}\trap:base}
736 {\HCode{\r:brace\string^\l:brace}\trap:base}
737 {\HCode{\r:brace}}
738 \def\trap:base{{\HCode{}}}
739 >>>
740
741 The \verb'\trap:base' is to catch empty bases of exponents like, e.g.,
742 in \verb'$a^{^b}$'.
743
744
745 \<mathltx Link\><<<
746 \LinkCommand\mtxt:link{mtext, xlink:href, id,,,}
747 \LinkCommand\msp:link{mstyle-3,%
748 xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href,
749 id, \mml:class="label",,}
750 \let\M:Link|=\Link
751 \def\Link{\ifmathltx
752 \ifmtext |<end mtext space|>\HCode{\%\Hnewline\%\string\begin{ref}}%
753 \bgroup \let\:newlnch\space
754 \expandafter\expandafter\expandafter\mtxt:link
755 \else \expandafter\expandafter\expandafter\msp:link\fi
756 \else \expandafter\M:Link\fi}
757 \let\M:EndLink|=\EndLink
758 \def\EndLink{\ifmathltx
759 \ifmtext |<end mtext space|>%
760 \egroup \HCode{\%\Hnewline\%}\Endmtxt:link
761 \HCode{\string\end{ref}\Hnewline}|<start mtext space|>%
762 \else \HCode{</mstyle-5><!--endlabel-->}\fi
763 \else \expandafter\M:EndLink\fi}
764 >>>
765
766
767
768
769
770
771 \<tex compiler mathltx\><<<
772 \Configure{DviMath}
773 {\HCode{<!--l. \the\inputlineno-->}%
774 \a:DviMathltx \mathltxtrue
775 \ifOption{mml-fonts}{}{|%\mml:htfsym|%\NoFonts}%
776 \IgnoreRule \a:math
777 |<sv dvimath par|>\HCode{<![CDATA[}\IgnorePar}
778 {\HCode{]]>}\EndIgnoreRule
779 \ifOption{mml-fonts}{}{|%\ext:htfsym|%\EndNoFonts}%
780 \mathltxfalse \After:Math \b:DviMathltx
781 |<recall dvimath par|>}
782 \NewConfigure{DviMathltx}{2}
783 >>>
784
785
786 \<tex compiler mathltx\><<<
787 \def\After:Math{\After:EndMath
788 \global\let\After:EndMath=\empty}
789 \let\After:EndMath=\empty
790 \def\AfterMath#1{\append:def\After:EndMath{#1}%
791 \global\let\After:EndMath=\After:EndMath}
792 >>>
793
794 \<configure mathltx latex\><<<
795 \let\m:Make:Label\Make:Label
796 \def\Make:Label#1#2{%
797 \ifmathltx \edef\:temp{#1}%
798 \expandafter\AfterMath\expandafter{\expandafter\Make:Label
799 \expandafter{\:temp}{#2}}%
800 \else \m:Make:Label{#1}{#2}%
801 \fi
802 }
803 >>>
804
805
806
807 \<tex compiler mathltx\><<<
808 \newif\ifmathltx \mathltxfalse
809 \newif\ifmtext \mtextfalse
810 |<mathltx Link|>
811 \NewConfigure{math}{1}
812 \NewConfigure{@math}{1}
813 \def\IgnoreRule{\ht:special{t4ht@\string_}}
814 \def\EndIgnoreRule{\ht:special{t4ht@\string_\string_}}
815 \Configure{$$}
816 {\Configure{@math}{|<block display|>}\IgnorePar
817 |<inline end-par comment|>\EndP\DviMath
818 \HCode{\string $\string $}}
819 {\HCode{\string $\string $}\EndDviMath
820 \ShowPar\par{\csname HCondtrue\endcsname\noindent}}
821 {\DisplayMathtrue}
822 \Configure{$}
823 {\Configure{@math}{|<inline display|>}\DviMath
824 \HCode{\string $}}
825 {\HCode{\string $}\EndDviMath}{}
826
827 \newif\ifDisplayMath \DisplayMathfalse
828 >>>
829
830
831 \<display math-\><<<
832 \Configure{$$}
833 {\Configure{@math}{|<block display|>}\IgnorePar
834 |<inline end-par comment|>\EndP\DviMath }
835 {\EndDviMath\ShowPar\csname par\endcsname
836 {\csname HCondtrue\endcsname\noindent}}
837 {\DisplayMathtrue}%
838 >>>
839
840
841
842
843 \<tex compiler mathltx\><<<
844 \Configure{radical}
845 {\HCode{\string\sqrt}
846 \special{t4ht\string~!e<\string{}%
847 \special{t4ht\string~!e>\string}}%
848 \special{t4ht\string~!ee/}%
849 \special{t4ht\string~!ese-}%
850 }
851 >>>
852
853
854
855
856 \<inline end-par comment\><<<
857 \ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
858 >>>
859
860
861 \<?\><<<
862 \def\MathRow#1{%
863 \Configure{\expandafter\:gobble\string#1*}{*}%
864 {<mrow\Hnewline
865 \mml:class="\expandafter\:gobble\string#1">}{</mrow>}%
866 {\Configure{\expandafter\:gobble\string#1}{}{}{}{}}#1}%
867 >>>
868
869
870 \<recall dvimath par\><<<
871 \sv:ignore
872 >>>
873
874 \<sv dvimath par\><<<
875 \edef\sv:ignore{\if:nopar
876 \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
877 >>>
878
879
880 The \verb'\MathRow' requests a \verb'<mrow\Hnewline>...</mrow>', instead of the contributions
881 of \verb'\mathop', \verb'\mathrel',...., for the next parameter.
882
883
884 \<tex compiler mathltx\><<<
885 \def\:MT{\ifmathltx m\fi}
886 \Configure{halignTB}{\HCode{<\:MT table }\halignTBL}{\HCode{>}}
887 \Configure{halignTBL}
888 {t}{\ifmathltx \HCode{ align="baseline 1" }\fi}
889 {b}{\ifmathltx \HCode{ align="baseline -1" }\fi}
890 {c}{\ifmathltx \HCode{ align="axis" }\fi}
891 {}
892 \def\t:HA{\HCode{</\:MT table>}}
893 \def\R:HA{\HCode{<\:MT tr \Hnewline style="vertical-align:baseline;">}}
894 \def\r:HA{\HCode{</\:MT tr>}}
895 \def\D:HA{\HCode{<\:MT td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
896 \halignTD \HCode{\Hnewline>}}
897 \def\d:HA{\HCode{</\:MT td>}}
898 >>>
899
900 %%%%%%%%%%%%%%%%%%%%%%%%
901 \subsection{latex.ltx}
902 %%%%%%%%%%%%%%%%%%%%%%%%
903
904 \<configure mathltx latex\><<<
905 \def\set:label#1{\ifmathltx
906 \HCode{\%\Hnewline\%\string\begin{label}}%
907 {\ht:special{t4ht@, }\let\:newlnch\space \mathltxfalse #1}%
908 \HCode{\string\end{label}\Hnewline}%
909 \else #1\fi
910 }
911 >>>
912
913
914 \<configure mathltx latexNO\><<<
915 \HAssign\set:labelN=0
916 \def\set:label#1{\ifmmode
917 \gHAdvance\set:labelN by 1
918 \expandafter\gdef\csname sl:\set:labelN\endcsname
919 {\set:label{#1}}%
920 \expandafter\aftergroup\csname sl:\set:labelN\endcsname
921 \else \gHAssign\set:labelN=0 #1\fi
922 }
923 >>>
924
925
926 \<start mtext space\><<<
927 \ht:special{t4ht@,&\#x00A0;}%
928 >>>
929
930 \<start mtext space\><<<
931 \ht:special{t4ht@, }%
932 >>>
933
934 \<end mtext space\><<<
935 \ht:special{t4ht@,}%
936 >>>
937
938
939 \<configure html-mltx latex\><<<
940 \Configure{newline}
941 {\ifmtext |<end mtext space|>\HCode{</mtext><mtext\Hnewline
942 \mml:class="newline">}%
943 |<start mtext space|>%
944 \else \Tg<br\Hnewline class="newline" />\fi}
945 >>>
946
947 \<mathltx latex\><<<
948 \Configure{newline}
949 {|<end mtext space|>\HCode{</mtext><\a:mathltx
950 mtext\Hnewline \mml:class="newline">}|<start mtext space|>}
951 >>>
952
953
954
955 \<mathltx latex\><<<
956 \Configure{[]}
957 {\Configure{@math}{|<block display|>}\csname a:mathltx[]\endcsname
958 \DviMath\HCode{\string\[}$$\DisplayMathtrue }
959 {$$\HCode{\string\]}\EndDviMath\csname b:mathltx[]\endcsname}
960 \Configure{()}
961 {\Configure{@math}{|<inline display|>}\csname a:mathltx()\endcsname
962 \DviMath\HCode{\string\(}$}
963 {$\HCode{\string\)}\EndDviMath\csname b:mathltx()\endcsname}
964 \NewConfigure{mathltx[]}{2}
965 \NewConfigure{mathltx()}{2}
966 |<config array|>
967 >>>
968
969 \<configure html-mltx latex\><<<
970 \Configure{mathltx[]}
971 {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\endgraf\EndP
972 \HCode{<div class="\MathPar math-display">}}
973 {\HCode{</div>}|<try inline par|>}
974 \Css{div.math-display, div.par-math-display{text-align:center;}}
975 >>>
976
977
978
979
980 \<configure mathltx rlbabel\><<<
981 \Configure{[]}
982 {\Configure{@math}{|<block display|>}\csname a:mathltx[]\endcsname
983 \DviMath\Tg<mrow\Hnewline>$$\DisplayMathtrue }
984 {$$\Tg</mrow>\EndDviMath\csname b:mathltx[]\endcsname
985 \if@rl\else\beginR\fi }
986 >>>
987
988
989
990
991
992 \<configure mathltx array\><<<
993 |<config array|>
994 >>>
995
996 \<config array\><<<
997 \Configure{halignTB<>}{array}{\HCode{\Hnewline
998 equalrows="false"
999 equalcolumns="false" class="array"}<>\HAlign}
1000 \Configure{array}
1001 {\expandafter\tmp:toks\expandafter{\Clr}%
1002 \HCode{\string\begin{array}{\the\tmp:toks}\Hnewline}}
1003 {\ifvmode \IgnorePar\fi \HCode{\string\end{array}}}
1004 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi}
1005 {}
1006 {|<mtd array|>}
1007 {}
1008 \ConfigureEnv{array}
1009 {\bgroup\Configure{$}{}{}{}}
1010 {\egroup}
1011 {}{}
1012 >>>
1013
1014 \<configure html-mltx latex\><<<
1015 \ConfigureEnv{array}
1016 {\PushStack\Col:Marg\AllColMargins
1017 \bgroup\Configure{$}{}{}{}}
1018 {\egroup \PopStack\Col:Marg\AllColMargins}
1019 {}{}
1020 >>>
1021
1022 \<configure html-mltx array\><<<
1023 \ConfigureEnv{array}
1024 {\PushStack\Col:Marg\AllColMargins
1025 \bgroup\Configure{$}{}{}{}}
1026 {\egroup \PopStack\Col:Marg\AllColMargins}
1027 {}{}
1028 >>>
1029
1030
1031 \<mtd array\><<<
1032 \HCode{\ifnum \HCol>1 \a:math:amp\fi
1033 \ifnum 1<\HMultispan
1034 \string\multicolumn\l:brace\HMultispan\r:brace \fi}%
1035 >>>
1036
1037 \<mtd matrix\><<<
1038 \HCode{\ifnum \HCol>1 \a:math:amp\fi
1039 \ifnum 1<\HMultispan
1040 \string\multicolumn\l:brace\HMultispan\r:brace \fi}%
1041 >>>
1042
1043 \<configure mathltx tex4ht\><<<
1044 \NewConfigure{math:amp}{1}
1045 \Configure{math:amp}{\string&}
1046 >>>
1047
1048
1049 \<insert Clr\><<<
1050 \expandafter\tmp:toks\expandafter{\Clr}%
1051 \HCode{<!---->}%
1052 >>>
1053
1054
1055
1056
1057
1058 \<mathltx latex\><<<
1059 \def\:MM{m}
1060 \Configure{HBorder}
1061 {<mtr\Hnewline \mml:class="hline">}
1062 {|<mml hline|>}
1063 {</mtr>}
1064 {<mtr\Hnewline \mml:class="cline">}
1065 {<mtd></mtd>}
1066 {|<mml hline|>}
1067 {</mtr>}
1068 {<mtr\Hnewline \mml:class="vspace" style="font-size:\HBorderspace">}
1069 {<mtd\Hnewline></mtd>}
1070 {</mtr>}
1071 >>>
1072
1073 \<configure html-mltx latex\><<<
1074 \def\:MM{\ifmathltx m\fi}
1075 \Configure{HBorder}
1076 {<\:MM tr\Hnewline
1077 \ifmathltx \expandafter\mml:class\else class\fi="hline">}
1078 {\ifmathltx|<mml hline|>\else
1079 <td><hr\xml:empty></td>\fi}
1080 {</\:MM tr>}
1081 {<\:MM tr\Hnewline
1082 \ifmathltx \expandafter\mml:class\else class\fi ="cline">}
1083 {<\:MM td></\:MM td>}
1084 {\ifmathltx|<mml hline|>\else
1085 <td><hr\xml:empty></td>\fi}
1086 {</\:MM tr>}
1087 {<\:MM tr\Hnewline
1088 \ifmathltx \expandafter\mml:class\else class\fi="vspace"
1089 style="font-size:\HBorderspace">}
1090 {<\:MM td\Hnewline>\ifmathltx\else\string&\#x00A0;\fi
1091 </\:MM td>}
1092 {</\:MM tr>}
1093 \Configure{halign}
1094 {\EndP\halignTB{halign}} \t:HA
1095 \R:HA\r:HA\D:HA\d:HA
1096 >>>
1097
1098
1099
1100 \<mml hline\><<<
1101 <mtd><mo> \string&\#x0332; </mo></mtd>
1102 >>>
1103
1104
1105
1106
1107 \<mathltx latex\><<<
1108 |<mathltx fonts|>
1109 \let\A:fbox=\a:fbox
1110 \let\B:fbox=\b:fbox
1111 \let\OLDf:box=\fbox
1112 \def\fbox{\relax\ifmmode
1113 \Configure{fbox}{\leavevmode\Configure{HtmlPar}{}{}{}{}\IgnoreRule
1114 \AA:text{fbox}}{\BB:text\EndIgnoreRule}\else
1115 \Configure{fbox}{\leavevmode
1116 \IgnoreRule\A:fbox}{\B:fbox\EndIgnoreRule}\fi
1117 \OLDf:box}
1118 \let\A:mbox|=\a:mbox
1119 \let\B:mbox|=\b:mbox
1120 \let\OLD:mbox|=\mbox
1121 \def\mbox{\relax\ifmmode \Configure{mbox}{\AA:text{mbox}}{\BB:text}\else
1122 \Configure{mbox}{\A:mbox}{\B:mbox}\fi\OLD:mbox}
1123 |<mathltx text util|>
1124 >>>
1125
1126
1127 \<mathltx text util\><<<
1128 \NewConfigure{@mtext}{1}
1129 \Configure{@mtext}{\string\text}
1130 \def\AA:text#1{|<config start mtext|>}
1131 \def\BB:text{|<config end mtext|>}
1132 >>>
1133
1134
1135 \<config start mtext\><<<
1136 \mtexttrue
1137 \HCode{\a:@mtext\l:brace}|<start mtext space|>\PauseMathClass
1138 |<config math within mtext|>%
1139 >>>
1140
1141
1142 \<config end mtext\><<<
1143 \mtextfalse\EndPauseMathClass|<end mtext space|>\HCode
1144 {\r:brace}%
1145 >>>
1146
1147 \<config math within mtext\><<<
1148 \Configure{$}%
1149 {\EndPauseMathClass \mtextfalse
1150 |<end mtext space|>\HCode{\string$}}%
1151 {\HCode{\string$}|<start mtext space|>\PauseMathClass \mtexttrue}%
1152 {}%
1153 >>>
1154
1155
1156
1157
1158
1159 \<amstex.tex mathltx\><<<
1160 |<mathltx text util|>
1161 \Configure{text}{\AA:text{text}}{\BB:text}
1162 \Configure{format}
1163 {\HCode{<mtable \mml:class="format">}}
1164 {\HCode{</mtable>}}
1165 {\HCode{<mtr\Hnewline \mml:class="format">}}
1166 {\HCode{</mtr>}}
1167 {\HCode{<mtd\Hnewline \mml:class="format">}}
1168 {\HCode{</mtd>}}
1169 >>>
1170
1171
1172
1173 \<amsmath mathltx\><<<
1174 \Configure{above}
1175 {\Send{GROUP}{0}{\l:brace}%
1176 \HCode{\string\above\space \the\tmp:dim\space}\o:@@over:\:gobbleII}
1177 {\Send{EndGROUP}{0}{\r:brace}}
1178 \def\overwithdelims:III#1#2#3{%
1179 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1180 \Send{GROUP}{0}{<mfrac-4 linethickness="0"><mrow>}%
1181 \HCode{</mrow>}\o:over:
1182 \HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}
1183 \else
1184 \Send{GROUP}{0}{<mfenced-1 separators=""\Hnewline
1185 open="|<lr del 2|>" close="|<lr del 3|>"><mfrac-5
1186 linethickness="0"><mrow>}%
1187 \HCode{</mrow>}\o:@@over:
1188 \HCode{<mrow>}\Send{EndGROUP}{0}{</\a:mathltx
1189 mrow></mfrac></mfenced>}
1190 \fi
1191 }
1192 >>>
1193
1194
1195 \<configure mathltx tex4ht\><<<
1196 \Configure{over}
1197 {\Send{GROUP}{0}{\string\bgroup\space}}
1198 {\HCode{\string\over\space}\Send{EndGROUP}{0}{\string\egroup\space}}
1199 \Configure{atop}
1200 {\Send{GROUP}{0}{\string\bgroup\space}}
1201 {\HCode{\string\atop\space}\Send{EndGROUP}{0}{\string\egroup\space}}
1202 \Configure{above}
1203 {\Send{GROUP}{0}{<mfrac-6 linethickness="\the\tmp:dim"><mrow>}%
1204 \HCode{</mrow>}\o:over:\:gobbleII}
1205 {\HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}}
1206 >>>
1207
1208 \<configure mathltx tex4ht\><<<
1209 \Configure{abovewithdelims}
1210 {\abovewithdelims:III}
1211 {}
1212 \def\abovewithdelims:III#1#2#3{%
1213 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1214 \Send{GROUP}{0}{<mfrac-7 linethickness="\the\tmp:dim"><mrow>}%
1215 \HCode{</mrow>}\o:over:
1216 \HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}
1217 \else
1218 \Send{GROUP}{0}{<mfenced-2 separators=""\Hnewline
1219 open="|<lr del 2|>" close="|<lr del 3|>"><mfrac-8
1220 linethickness="\the\tmp:dim"><mrow>}%
1221 \HCode{</mrow>}\o:over:
1222 \HCode{<mrow>}\Send{EndGROUP}{0}{</
1223 mrow></mfrac></mfenced>}
1224 \fi
1225 \tmp:dim
1226 }
1227 \Configure{atopwithdelims}
1228 {\atopwithdelims:III}
1229 {}
1230 \def\atopwithdelims:III#1#2#3{%
1231 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1232 \Send{GROUP}{0}{<mfrac-9 linethickness="0"><mrow>}%
1233 \HCode{</mrow>}\o:atop:
1234 \HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}
1235 \else
1236 \Send{GROUP}{0}{<mfenced-3 separators=""\Hnewline
1237 open="|<lr del 2|>" close="|<lr del 3|>"><mfrac-10
1238 linethickness="0"><mrow>}%
1239 \HCode{</mrow>}\o:atop:
1240 \HCode{<mrow>}\Send{EndGROUP}{0}{</\a:mathltx
1241 mrow></mfrac></mfenced>}
1242 \fi
1243 }
1244 \Configure{overwithdelims}
1245 {\overwithdelims:III}
1246 {}
1247 \def\overwithdelims:III#1#2#3{%
1248 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1249 \Send{GROUP}{0}{<mfrac11><mrow>}%
1250 \HCode{</mrow>}\o:over:
1251 \HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}
1252 \else
1253 \Send{GROUP}{0}{<mfenced-4 separators=""\Hnewline
1254 open="|<lr del 2|>" close="|<lr del 3|>"><mfrac-12><mrow>}%
1255 \HCode{</mrow>}\o:over:
1256 \HCode{<mrow>}\Send{EndGROUP}{0}{</
1257 mrow></mfrac></mfenced>}
1258 \fi
1259 }
1260 >>>
1261
1262
1263
1264 \<configure mathltx amsmath\><<<
1265 \Configure{abovewithdelims}
1266 {\abovewithdelims:III}
1267 {}
1268 \def\abovewithdelims:III#1#2#3{%
1269 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1270 \Send{GROUP}{0}{<mfra-13 linethickness="\the\tmp:dim"><mrow>}%
1271 \HCode{</mrow>}\o:@@over:
1272 \HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}
1273 \else
1274 \Send{GROUP}{0}{\l:brace}%
1275 \HCode{\string\abovewithdelims
1276 |<lr del 2|>|<lr del 3|>\the\tmp:dim\space}\o:@@over:
1277 \Send{EndGROUP}{0}{\r:brace}%
1278 \fi
1279 \tmp:dim
1280 }
1281 \Configure{atopwithdelims}
1282 {\atopwithdelims:III}
1283 {}
1284 \def\atopwithdelims:III#1#2#3{%
1285 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1286 \Send{GROUP}{0}{<mfrac-14 linethickness="0"><mrow>}%
1287 \HCode{</mrow>}\o:@@atop:
1288 \HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}
1289 \else
1290 \Send{GROUP}{0}{<mfenced-6 separators=""\Hnewline
1291 open="|<lr del 2|>" close="|<lr del 3|>"><mfrac-1
1292 linethickness="0"><mrow>}%
1293 \HCode{</mrow>}\o:@@atop:
1294 \HCode{<mrow>}\Send{EndGROUP}{0}{</\a:mathltx
1295 mrow></mfrac></mfenced>}
1296 \fi
1297 }
1298 \Configure{overwithdelims}
1299 {\overwithdelims:III}
1300 {}
1301 \def\overwithdelims:III#1#2#3{%
1302 \def\:temp{#2#3}\def\:tempa{..}\ifx \:temp\:tempa
1303 \Send{GROUP}{0}{<mfrac-2><mrow>}%
1304 \HCode{</mrow>}\o:@@over:
1305 \HCode{<mrow>}\Send{EndGROUP}{0}{</mrow></mfrac>}
1306 \else
1307 \Send{GROUP}{0}{\l:brace}%
1308 \HCode{\string\overwithdelims
1309 |<lr del 2|>|<lr del 3|>}\o:@@over:
1310 \Send{EndGROUP}{0}{\r:brace}%
1311 \fi
1312 }
1313 >>>
1314
1315
1316
1317 \<mathltx latex\><<<
1318 \Configure{frac}
1319 {\HCode{\string\frac\l:brace}}
1320 {\HCode{\r:brace}\Configure{over}{}{}}
1321 {\HCode{\l:brace}}
1322 {\HCode{\r:brace}}
1323 >>>
1324
1325
1326
1327 \<configure html-mltx amsmath\><<<
1328 \ifx \mathdisplay@@pop\:UnDef
1329 \ifx \emdf@La\:UnDef
1330 |<amsmath html-mltx pre 2000|>
1331 \else
1332 |<amsmath html-mltx jan 2000|>
1333 \fi
1334 \else
1335 |<amsmath html-mltx july 2000|>
1336 \fi
1337 >>>
1338
1339
1340
1341 \<amsmath mathltx\><<<
1342 \Configure{tmspace}
1343 {\HCode{\string\tmspace{\textspace}}}
1344 >>>
1345
1346
1347
1348
1349
1350 \<try inline par\><<<
1351 \ShowPar\par{\HCondtrue\noindent}%
1352 >>>
1353
1354
1355
1356
1357 \<mathltx fonts\><<<
1358 \Configure{texttt}
1359 {\ifmathltx \Configure{@mtext}{\string\texttt}\fi}
1360 {}%
1361 \Configure{textit}
1362 {\ifmathltx \Configure{@mtext}{\string\textit}\fi}
1363 {}%
1364 \Configure{textrm}
1365 {\ifmathltx \Configure{@mtext}{\string\textrm}\fi}
1366 {}%
1367 \Configure{textup}
1368 {\ifmathltx \Configure{@mtext}{\string\textup}\fi}
1369 {}%
1370 \Configure{textsl}
1371 {\ifmathltx \Configure{@mtext}{\string\textsl}\fi}
1372 {}%
1373 \Configure{textsf}
1374 {\ifmathltx \Configure{@mtext}{\string\textsf}\fi}
1375 {}%
1376 \Configure{textbf}
1377 {\ifmathltx \Configure{@mtext}{\string\textbf}\fi}
1378 {}%
1379 \Configure{textsc}
1380 {\ifmathltx \Configure{@mtext}{\string\textsc}\fi}
1381 {}%
1382 \Configure{emph}
1383 {\ifmathltx \Configure{@mtext}{\string\emph}\fi}
1384 {}%
1385 >>>
1386
1387
1388
1389
1390 \<configure html-mltx latex\><<<
1391 \:CheckOption{fonts} \if:Option
1392 \Configure{texttt}
1393 {\ifmathltx \Configure{@mtext}{\mml:class="texttt" mathvariant="monospace" }%
1394 \else \HCode{<span class="texttt">}\fi}
1395 {\ifmathltx \else \HCode{</span>}\fi}
1396 \Configure{textit}
1397 {\ifmathltx \Configure{@mtext}{\mml:class="textit" mathvariant="italic" }%
1398 \else \HCode{<span class="textit">}\fi}
1399 {\ifmathltx\else \HCode{</span>}\fi}
1400 \Configure{textrm}
1401 {\ifmathltx \Configure{@mtext}{ \mml:class="textrm" mathvariant="normal" }%
1402 \else \HCode{<span class="textrm">}\fi}
1403 {\ifmathltx\else \HCode{</span>}\fi}
1404 \Configure{textup}
1405 {\ifmathltx \Configure{@mtext}{ \mml:class="textup" mathvariant="normal" }%
1406 \else \HCode{<span class="textup">}\fi}
1407 {\ifmathltx\else \HCode{</span>}\fi}
1408 \Configure{textsl}
1409 {\ifmathltx \Configure{@mtext}{ \mml:class="textst" mathvariant="italic" }%
1410 \else \HCode{<span class="textsl">}\fi}
1411 {\ifmathltx\else \HCode{</span>}\fi}
1412 \Configure{textsf}
1413 {\ifmathltx \Configure{@mtext}{ \mml:class="textsf" mathvariant="sans-serif" }%
1414 \else \HCode{<span class="textsf">}\fi}
1415 {\ifmathltx\else \HCode{</span>}\fi}
1416 \Configure{textbf}
1417 {\ifmathltx \Configure{@mtext}{ \mml:class="textbf" mathvariant="bold" }%
1418 \else \HCode{<span class="textbf">}\fi}
1419 {\ifmathltx\else \HCode{</span>}\fi}
1420 \Configure{textsc}
1421 {\ifmathltx \Configure{@mtext}{ \mml:class="textsc" mathvariant="normal" }%
1422 \else \HCode{<span class="textsc">}\fi}
1423 {\ifmathltx\else \HCode{</span>}\fi}
1424 \Configure{emph}
1425 {\ifmathltx \Configure{@mtext}{ \mml:class="emph" mathvariant="italic" }%
1426 \else \HCode{<span class="emph">}\fi}
1427 {\ifmathltx\else \HCode{</span>}\fi}
1428 \fi
1429 >>>
1430
1431 The \verb+\bgroup...\egroup+ is to handle cases like
1432 \verb+\nathbf{a}^x+.
1433
1434
1435
1436 \<configure mathltx fontmath\><<<
1437 \def\bold:version{bold}
1438 \Configure{mathbf}%
1439 {\bgroup \HCode{\string\mathbf\l:brace}}%
1440 {\HCode{\r:brace}\egroup }%
1441 \Configure{mathit}%
1442 {\bgroup \HCode{\string\mathit\l:brace}}%
1443 {\HCode{\r:brace}\egroup }%
1444 \Configure{mathrm}%
1445 {\bgroup \HCode{\string\mathrm\l:brace}}%
1446 {\HCode{\r:brace}\egroup }%
1447 \Configure{mathsf}%
1448 {\bgroup \HCode{\string\mathsf\l:brace}}%
1449 {\HCode{\r:brace}\egroup }%
1450 \Configure{mathtt}%
1451 {\bgroup \HCode{\string\mathtt\l:brace}}%
1452 {\HCode{\r:brace}\egroup }%
1453 >>>
1454
1455 \<configure mathltx amsfonts\><<<
1456 \Configure{mathbb}{}{}
1457 \Configure{mathfrak}{}{}
1458 >>>
1459
1460
1461
1462 Used to be
1463
1464 \begin{verbatim}
1465 \Configure{mathrm}{\Tg<mi \mml:class="mathrm">\PauseMathClass}%
1466 {\EndPauseMathClass\Tg</mi>}%
1467 \Configure{mathbf}{\Tg<mi \mml:class="mathbf"
1468 mathvariant="bold">\PauseMathClass}%
1469 {\EndPauseMathClass\Tg</mi>}%
1470 \end{verbatim}
1471
1472
1473 \<configure html-mltx latex\><<<
1474 \Css{math .texttt { font-family: monospace; }}
1475 \Css{math .textit { font-style: italic; }}
1476 \Css{math .textsl { font-style: oblique; }}
1477 \Css{math .textsf { font-family: sans-serif; }}
1478 \Css{math .textbf { font-weight: bold; }}
1479 >>>
1480
1481
1482
1483
1484
1485 \<plain,latex mathltx\><<<
1486 \Configure{'}
1487 {\let\:primes=\empty}
1488 {\def\:tempa{\prime\prime}\ifx \:tempa\:primes
1489 \HCode{''}\else
1490 \def\:tempa{\prime\prime\prime}\ifx \:tempa\:primes
1491 \HCode{'''}\else
1492 \HCode{\:primes}\fi\fi
1493 }
1494 {\xdef\:primes{\:primes'}}
1495 >>>
1496
1497 LaTeX places the primes within superscript, and mathltx seems to follow
1498 suit (maybe because of the use of latex fonts in mozilla). However,
1499 unicode maps already seem to assume raised representation for the
1500 primes.
1501
1502 %%%%%%%%%%%%%%%%%%%%%%%%%%
1503 \subsection{plain.sty}
1504 %%%%%%%%%%%%%%%%%%%%%%%%%%
1505
1506
1507
1508
1509 \<mathltx plain\><<<
1510 \Configure{eqalign}
1511 {\HCode{<mtable \mml:class="eqalign">}}
1512 {\HCode{</mtable>}}
1513 {\HCode{<mtr \Hnewline \mml:class="eqalign">}}
1514 {\IgnorePar\HCode{</mtr>}}
1515 {\HCode{\ifnum \HCol=3 <mtd\Hnewline
1516 \mml:class="eqalign3"></mtd>\fi
1517 <mtd \Hnewline \mml:class="eqalign\HCol">}}
1518 {\HCode{</mtd>}}
1519 >>>
1520
1521 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1522 \subsection{Palin + LaTeX}
1523 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1524
1525 The default \verb'\left' and \verb'\right' in their default definition
1526 with tex produce multi-part delimiters, from cmex, on large
1527 subformulas. Hence, the `'.' below is needed.
1528
1529 \<plain,latex mathltx\><<<
1530 \def\left#1{\bgroup \a:left{#1}\b:left{#1}}
1531 \def\right#1{\a:right{#1}\b:right{#1}\egroup}
1532 \Configure{left}
1533 {}
1534 {\HCode{\string\left\space}#1\bgroup}
1535 \Configure{right}
1536 {\egroup\HCode{\string\right\space}#1}
1537 {}
1538 \def\{{{\HCode{\back:slash\l:brace}}}
1539 \def\}{{\HCode{\back:slash\r:brace}}}
1540 \let\lbrace\{
1541 \let\rbrace\}
1542 \def\def:DEL#1{\def\:DEL{#1}}
1543 \def\check:DEL#1#2{\def\:tempa{#1}\ifx \:tempa\:DEL \def\:DEL{#2}\fi}
1544 \NewConfigure{mfenced}[2]{\append:defI\def:DEL{\check:DEL{#1}{#2}}}
1545 |</bigl, /bigr,... for mathltx|>
1546 \:CheckOption{new-accents} \if:Option \else
1547 |<config mathltx accents|>
1548 \fi
1549 \def\mathinner#1{\HCode{\string\mathinner\l:brace}#1\HCode{\r:brace}}
1550 >>>
1551
1552
1553 \<configure mathltx etex4ht\><<<
1554 \def\:tempc#1{\a:middle\mathrel{\left:right#1\:EMPTY}\b:middle}
1555 \HLet\middle=\:tempc
1556 \NewConfigure{middle}{2}
1557 \Configure{middle}
1558 {\bgroup
1559 \Configure{mathrel}{*}
1560 {<mo \mml:class="MathClass-rel"
1561 fence="true" stretchy="true" >}
1562 {</mo>}
1563 {\Configure{mathrel}{}{}{}{}}%
1564 }
1565 {\egroup}
1566 >>>
1567
1568
1569 The \verb+\root ...\of {...}+ creates the following structure.
1570
1571 \begin{verbatim}
1572 PUSH
1573 ...root value...
1574 POP
1575 PUSH
1576 PUSH
1577 PUSH
1578 ...root sign characters with PUSH-POP...
1579 POP
1580 PUSH
1581 RIGHT4: 15213546
1582 DOWN3: -1553322
1583 PUT_RULE: height: 26213
1584 length: 1197667
1585 DOWN3: 1553322
1586 PUSH
1587 ...root content...
1588 POP
1589 POP
1590 POP
1591 POP
1592 \end{verbatim}
1593
1594
1595
1596 \<plain,latex mathltx\><<<
1597 \Configure{root}{\rev:root}{}{}
1598 \def\rev:root #1\b:root#2\c:root{%
1599 \HCode{\string\root\l:brace}{#1}%
1600 {\HCode{\r:brace\string \of\l:brace}#2}\HCode{\r:brace}}
1601 \def\AccentMath#1{\relax\ifmmode #1\else $#1$\fi}
1602 >>>
1603
1604
1605 \<lr del 2\><<<
1606 \expandafter
1607 \ifx \csname \string#2:lr del\endcsname\relax #2\else
1608 \csname \string#2:lr del\endcsname\fi
1609 >>>
1610
1611
1612 \<lr del 3\><<<
1613 \expandafter
1614 \ifx \csname \string#3:lr del\endcsname\relax #3\else
1615 \csname \string#3:lr del\endcsname\fi
1616 >>>
1617
1618
1619 \<plain,latex mathltx\><<<
1620 \NewConfigure{mfenced}[2]{\expandafter
1621 \def\csname \string#1:lr del\endcsname{#2}}
1622 |<plain,latex mfenced|>
1623 >>>
1624
1625 \<amsmath mathltx\><<<
1626 \Configure{mfenced}{\lvert}{\string\lvert} |%vertical line|%
1627 \Configure{mfenced}{\rvert}{\string\rvert} |%double vertical line|%
1628 \Configure{mfenced}{\lVert}{\string\lVert}
1629 \Configure{mfenced}{\rVert}{\string\rVert}
1630 >>>
1631
1632 \<amstex.sty mathltx\><<<
1633 \Configure{mfenced}{\lvert}{\string\lvert}
1634 \Configure{mfenced}{\rvert}{\string\rvert}
1635 \Configure{mfenced}{\lVert}{\string\lVert}
1636 \Configure{mfenced}{\rVert}{\string\rVert}
1637 >>>
1638
1639
1640
1641
1642
1643 \<plain,latex mfenced\><<<
1644 \Configure{mfenced}{\||}{\string&\#x2225;}
1645 \Configure{mfenced}{.}{}
1646 \Configure{mfenced}{\langle}{\string&\#x27E8;} |%lang|%
1647 \Configure{mfenced}{\rangle}{\string&\#x27E9;} |%rang|%
1648 \Configure{mfenced}{\vert}{||}
1649 \edef\:temp{\noexpand\Configure{mfenced}{\noexpand\{}{\string\{}}\:temp
1650 \edef\:temp{\noexpand\Configure{mfenced}{\noexpand\}}{\string\}}}\:temp
1651 \edef\:temp{\noexpand
1652 \Configure{mfenced}{\noexpand\lbrace}{\string\lbrace}}\:temp
1653 \edef\:temp{\noexpand
1654 \Configure{mfenced}{\noexpand\rbrace}{\string\rbrace}}\:temp
1655 \Configure{mfenced}{<}{\string&\#x003C;} |%lt|%
1656 \Configure{mfenced}{>}{\string&\#x003E;} |%gt|%
1657 \Configure{mfenced}{\lceil}{\string&\#x2308;}
1658 \Configure{mfenced}{\rceil}{\string&\#x2309;}
1659 \Configure{mfenced}{\lfloor}{\string&\#x230A;}
1660 \Configure{mfenced}{\rfloor}{\string&\#x230B;}
1661 \Configure{mfenced}{\Vert}{\string&\#x2225;}
1662 \Configure{mfenced}{\rgroup}{)}
1663 \Configure{mfenced}{\lgroup}{(}
1664 \Configure{mfenced}{\bracevert}{||}
1665 \Configure{mfenced}{\bracevert}{||}
1666 \Configure{mfenced}{\downarrow}{\string&\#x2193;}
1667 \Configure{mfenced}{\uparrow}{\string&\#x2191;}
1668 \Configure{mfenced}{\Uparrow}{\string&\#x21D1;}
1669 \Configure{mfenced}{\updownarrow}{\string&\#x2195;}
1670 \Configure{mfenced}{\Updownarrow}{\string&\#x21D5;}
1671 \Configure{mfenced}{\Downarrow}{\string&\#x21D3;}
1672 \Configure{mfenced}{\backslash}{\string&\#x2216;}
1673 \Configure{mfenced}{\rmoustache}{\string&\#x25DD;}
1674 \Configure{mfenced}{\lmoustache}{\string&\#x25DC;}
1675 \Configure{mfenced}{\Arrowvert}{\string&\#x2225;}
1676 \Configure{mfenced}{\arrowvert}{\string&\#x007C;}
1677 >>>
1678
1679 % \def\:tempa{\{}\ifx \:tempa\:DEL \let\:DEL\lbrc: \else
1680 % \def\:tempa{\}}\ifx \:tempa\:DEL \let\:DEL\rbrc: \else
1681 % \def\:tempa{<}\ifx \:tempa\:DEL \def\:DEL{\string&lt;}\else
1682 % \def\:tempa{>}\ifx \:tempa\:DEL \def\:DEL{\string&gt;}%
1683 % \fi\fi\fi\fi }
1684 % \edef\lbrc:{\string{} \edef\rbrc:{\string}}
1685
1686 % \HCode{\string&#2#1;}%
1687
1688 %%%%%%%%%%%%%%%%%%%%%
1689 \subsection{Amsmath}
1690 %%%%%%%%%%%%%%%%%%%%%
1691
1692
1693 \<amsmath mathltx\><<<
1694 \edef\:tempc{\hskip -\noexpand\arraycolsep
1695 \let\noexpand\@ifnextchar\noexpand\new@ifnextchar
1696 \noexpand\array{*{\the\c@MaxMatrixCols}c}}
1697 \HLet\env@matrix\:tempc
1698 >>>
1699
1700
1701 \<configure html-mltx amsmath\><<<
1702 \Configure{@begin}
1703 {split}
1704 {\let\tagform@=\:gobble }
1705 >>>
1706
1707
1708 \<amsmath mathltx\><<<
1709 \Configure{split}
1710 {\HCode{\string\begin\l:brace split\r:brace}}
1711 {\ifvmode\IgnorePar\fi
1712 \HCode{\string\end \l:brace split\r:brace}}
1713 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi} {}
1714 {|<mtd array|>} {}
1715 >>>
1716
1717 \<amsmath mathltx\><<<
1718 \ConfigureEnv{multline}
1719 {\bgroup |<display math-|>} {\egroup}
1720 {}{}
1721 \Configure{multline}
1722 {\HCode{\string\begin\l:brace multline\r:brace}}
1723 {\HCode{\string\end \l:brace multline\r:brace}}
1724 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi} {}
1725 {|<mtd array|>} {}
1726 \ConfigureEnv{multline*}
1727 {\bgroup |<display math-|>} {\egroup}
1728 {}{}
1729 \Configure{multline*}
1730 {\HCode{\string\begin\l:brace multline*\r:brace}}
1731 {\HCode{\string\end \l:brace multline*\r:brace}}
1732 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi}
1733 {}
1734 >>>
1735
1736
1737 \marginpar{?math delimiters not removed for gather*?}
1738
1739
1740 \<amsmath mathltx\><<<
1741 \ConfigureEnv{gather}
1742 {\bgroup |<display math-|>} {\egroup}
1743 {}{}
1744 \Configure{gather}
1745 {\HCode{\string\begin\l:brace gather\r:brace}}
1746 {\HCode{\string\end \l:brace gather\r:brace}}
1747 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi} {}
1748 {|<mtd array|>} {}
1749 \ConfigureEnv{gather*}
1750 {\bgroup |<display math-|>} {\egroup}
1751 {}{}
1752 \Configure{gather*}
1753 {\HCode{\string\begin\l:brace gather*\r:brace}}
1754 {\HCode{\string\end \l:brace gather*\r:brace}}
1755 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi} {}
1756 {|<mtd array|>} {}
1757 >>>
1758
1759 \<amsmath mathltx\><<<
1760 \Configure{subarray}
1761 {\HCode{\string\begin\l:brace subarray\r:brace
1762 \l:brace \Hlcr\r:brace}}
1763 {\HCode{\string\end \l:brace subarray\r:brace}}
1764 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi} {}
1765 \Configure{smallmatrix}
1766 {\HCode{\string\begin\l:brace smallmatrix\r:brace}}
1767 {\HCode{\string\end \l:brace smallmatrix\r:brace}}
1768 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi} {}
1769 {|<mtd array|>} {}
1770 >>>
1771
1772 \<amsmath mathltx\><<<
1773 \def\:tempc#1#2{%
1774 \ConfigureEnv{#1}
1775 {\def\end:al:env{}\ifmmode\else
1776 \ifvmode\else \def\end:al:env{\par\ShowPar\IgnoreIndent}\fi\fi}
1777 {\end:al:env }
1778 {}{}%
1779 \Configure{#1}
1780 {\IgnorePar
1781 \ifvmode \EndP \else \EndP \HCode{<!--tex4ht:inline-->}\fi
1782 \ifmathltx
1783 \Tg<mrow>\def\end:mathalign{\Tg</mrow>}%
1784 \else
1785 \Configure{@math}{|<block display|>}\DviMath
1786 \def\end:mathalign{\EndDviMath \DisplayMathfalse}%
1787 \DisplayMathtrue
1788 \fi
1789 \HCode{\string\begin\l:brace #2\r:brace}}
1790 {\HCode{\string\end \l:brace #2\r:brace}\end:mathalign }
1791 {\ifnum \HRow> 1\HCode{\string\\\Hnewline}\fi} {}
1792 {|<mtd array|>}
1793 {\HCode{|<extra align col sep|>}}}
1794 \:tempc{align}{align}
1795 \:tempc{alignat}{alignat}
1796 \:tempc{xalignat}{xalignat}
1797 \:tempc{xxalignat}{xxalignat}
1798 \:tempc{flalign}{flalign}
1799 \:tempc{align*}{align*}
1800 \:tempc{alignat*}{alignat*}
1801 \:tempc{xalignat*}{xalignat*}
1802 \:tempc{flalign*}{flalign*}
1803 >>>
1804
1805
1806 \<configure html-mltx amsmath\><<<
1807 \Css{mtd.align-odd{margin-left:2em; text-align:right;}}
1808 \Css{mtd.align-even{margin-right:2em; text-align:left;}}
1809 >>>
1810
1811 \<extra align col sep\><<<
1812 \ifodd\HCol\space\else \string\hspace\l:brace2em\r:brace\fi
1813 >>>
1814
1815 \<rightward align col\><<<
1816 \ifodd\HCol columnalign="right" \fi
1817 >>>
1818
1819 Setting \verb+#1+ below within mrow is problematic in the sense that
1820 arrows don't stretch over multi-characters content \verb+#2+.
1821 A \verb+accent="true"+ move the arrow lower, but also distribute the
1822 characters further apart.
1823
1824 \<under arrow\><<<
1825 \Tg<munder>%
1826 \Tg<mrow\Hnewline>#2\Tg</mrow>%
1827 #1%
1828 \Tg</munder>%
1829 >>>
1830
1831 \<over arrow\><<<
1832 \Tg<mover class="overarrow">%
1833 \Tg<mrow\Hnewline>{#2#3}\Tg</mrow>%
1834 #1%
1835 \Tg</mover-4>%
1836 >>>
1837
1838
1839
1840
1841 % \Tg<mrow\Hnewline>#1\Tg</mrow>%
1842 % \Tg<mrow>#1\Tg</mrow>%
1843
1844
1845 \<arr amsmath, amstex1\><<<
1846 \Configure{underarrow@}
1847 {\Tg<munder>\Tg<mrow\Hnewline>}
1848 {\Tg</mrow>\Tg<mrow\Hnewline>}
1849 {\Tg</mrow>\Tg</munder>}
1850 \Configure{overarrow@}
1851 {\Tg<mover accent="true">\Tg<mrow\Hnewline>}
1852 {\Tg</mrow>\Tg<mrow>}
1853 {\Tg</mrow>\Tg</mover-5>}
1854 \def\:tempc#1#2#3{\a:overarrow@
1855 \hbox{$\m@th#2#3$}\b:overarrow@
1856 \hbox{#1#2}\c:overarrow@
1857 }
1858 \HLet\overarrow@\:tempc
1859 >>>
1860
1861
1862
1863
1864
1865 \<configure mathltx amstex1\><<<
1866 \ifx \o:overrightarrow:\:UnDef\else
1867 \HRestore\overrightarrow
1868 \HRestore\overleftarrow
1869 \HRestore\overleftrightarrow
1870 \fi
1871 >>>
1872
1873
1874
1875 \<mathltx plain,fontmath\><<<
1876 \Configure{overrightarrow}
1877 {\HCode{\string\overrightarrow\l:brace}\:gobble}
1878 {\HCode{\r:brace}}
1879 \Configure{overleftarrow}
1880 {\HCode{\string\overleftarrow\l:brace}\:gobble}
1881 {\HCode{\r:brace}}
1882 >>>
1883
1884
1885 \<amsmath mathltx\><<<
1886 \Configure{underrightarrow}
1887 {\HCode{\string\underrightarrow\l:brace}\:gobble}
1888 {\HCode{\r:brace}}
1889 \Configure{underleftarrow}
1890 {\HCode{\string\underleftarrow\l:brace}\:gobble}
1891 {\HCode{\r:brace}}
1892 >>>
1893
1894
1895 \<amsmath mathltx\><<<
1896 \Configure{overleftrightarrow}
1897 {\HCode{\string\overleftrightarrow\l:brace}\:gobble}
1898 {\HCode{\r:brace}}
1899 \Configure{underleftrightarrow}
1900 {\HCode{\string\underleftrightarrow\l:brace}\:gobble}
1901 {\HCode{\r:brace}}
1902 >>>
1903
1904
1905
1906
1907
1908 \<amsmath mathltx\><<<
1909 |<mathltx m:env|>
1910 \renewcommand{\xrightarrow}[2][]{%
1911 \HCode{\string\xrightarrow[}#1\HCode{]\l:brace}%
1912 #2\HCode{\r:brace}}
1913 \renewcommand{\xleftarrow}[2][]{%
1914 \HCode{\string\xleftarrow[}#1\HCode{]\l:brace}%
1915 #2\HCode{\r:brace}}
1916
1917 \def\overset#1#2{{%
1918 \HCode{\string\overset\l:brace}#1\HCode{\r:brace\l:brace}%
1919 #2\HCode{\r:brace}}}
1920 \def\underset#1#2{{%
1921 \HCode{\string\underset\l:brace}#1\HCode{\r:brace\l:brace}%
1922 #2\HCode{\r:brace}}}
1923
1924 \def\sideset#1#2#3{{\HCode{\string\sideset\l:brace}%
1925 {\HCode{}}#1\HCode{\r:brace\l:brace}%
1926 {\HCode{}}#2\HCode{\r:brace}%
1927 {{\HCode{}}#3}%
1928 }}
1929
1930 \renewcommand{\hdotsfor}[1]{%
1931 \ifx[#1\@xp\shdots@for\else\hdots@for\@ne{#1}\fi}
1932 \def\shdots@for#1]{\hdots@for{#1}}
1933 \def\hdots@for#1#2{\multicolumn{#2}c%
1934 {\m@th\[email protected]\mkern-#1\dotsspace@
1935 \xleaders\hbox{$\m@th\mkern#1\dotsspace@.\mkern#1\dotsspace@$}%
1936 \hfill
1937 \mkern-#1\dotsspace@}%
1938 }
1939 \ConfigureEnv{eqxample}{}{}{}{}
1940 \ConfigureEnv{gather*}{}{}{}{}
1941 \ConfigureEnv{gathered}{}{}{}{}
1942 \ConfigureEnv{matrix}{}{}{}{}
1943 >>>
1944
1945 The \verb'\HCode{}' in \verb'\sideset' is for catching superscripts and subscripts
1946
1947
1948
1949
1950
1951 \<amsmath symbols\><<<
1952 \def\:tempc{\HCode{\string\mod\space}}
1953 \HLet\bmod\:tempc
1954 \def\:tempc#1{\HCode{\string\pod\l:brace}#1\HCode{\r:brace}}
1955 \HLet\pod=\:tempc
1956 \def\:tempc#1{\HCode{\string\pmod\l:brace}#1\HCode{\r:brace}}
1957 \HLet\pmod=\:tempc
1958 \def\:tempc#1{\HCode{\string\mod\l:brace}#1\HCode{\r:brace}}
1959 \HLet\mod=\:tempc
1960 >>>
1961
1962
1963 %%%%%%%%%%%%%%%%%%%%
1964 \subsection{amsopn}
1965 %%%%%%%%%%%%%%%%%%%%
1966
1967
1968 \<amsopn / amstex.sty mathltx\><<<
1969 \def\varinjlim{{\underrightarrow\lim}}
1970 \def\varprojlim{{\underleftarrow\lim}}
1971 \def\varlimsup{{\overline\lim}}
1972 \def\varliminf{{\underline\lim}}
1973 \def\:tempc#1#2#3{\hbox{{\mtexttrue
1974 \HCode{<mrow\Hnewline
1975 \mml:class="text"><mtext
1976 \a:@mtext>}|<start mtext space|>\PauseMathClass
1977 \Configure{$}{\EndPauseMathClass\mtextfalse
1978 |<end mtext space|>\HCode{</mtext><\a:mathltx
1979 mrow\Hnewline \mml:class="math">}}
1980 {|<start mtext space|>\HCode{</mrow><mtext
1981 \a:@mtext>}\mtexttrue\PauseMathClass}{#1}
1982 \let\f@size#2\selectfont #3}%
1983 \mtextfalse \EndPauseMathClass |<end mtext space|>\HCode
1984 {</mtext></mrow>}}}
1985 \HLet\textdef@\:tempc
1986 >>>
1987
1988
1989 The original definitions for the following macros contain small spaces
1990 \verb+\,+ in the names, and the spaces imply improper mathltx outcome
1991 of the form \verb+<mo>...<mspace.../>...</mo>+.
1992
1993
1994 \<configure mathltx amsopn\><<<
1995 \def\:tempc{\qopname\relax m{lim inf}}
1996 \HLet\liminf=\:tempc
1997 \def\:tempc{\qopname\relax m{lim sup}}
1998 \HLet\limsup=\:tempc
1999 \def\:tempc{\qopname\relax m{proj lim}}
2000 \HLet\projlim=\:tempc
2001 \def\:tempc{\qopname\relax m{inj lim}}
2002 \HLet\injlim=\:tempc
2003 >>>
2004
2005
2006
2007
2008
2009 Why originally the accents are defined within a group? (knuth answer
2010 this in the texbook.)
2011
2012 \<plain,latex mathltx\><<<
2013 \let\A:oalign|=\a:oalign
2014 \let\B:oalign|=\b:oalign
2015 \Configure{oalign}
2016 {\ifmmode \Configure{$}{\Tg<mrow\Hnewline>}{\Tg</mrow>}{}%
2017 \let\halign|=\TeXhalign
2018 \Tg<mrow\Hnewline \mml:class="oalign">\else\A:oalign
2019 \fi}
2020 {\ifmmode \Tg</mrow>\else\B:oalign\fi}
2021 >>>
2022
2023
2024 \<configure mathltx amsopn\><<<
2025 \Configure{qopname}
2026 {\Configure{mathop}{*}
2027 {\string\mathop\l:brace}
2028 {\r:brace}
2029 {}}
2030 >>>
2031
2032
2033
2034 %%%%%%%%%%%%%%%%%%%%
2035 \section{Eqnarray}
2036 %%%%%%%%%%%%%%%%%%%%
2037
2038 \<mathltx latex\><<<
2039 \Configure{eqnarray}
2040 {\HCode{\string\begin{eqnarray\ifx
2041 \@seqncr\@eqncr\else *\fi}}}
2042 {\HCode{\string\end{eqnarray\ifx
2043 \@seqncr\@eqncr\else *\fi}}}
2044 {}
2045 {\HCode{\string\\\Hnewline}}
2046 {\ifnum \HCol>1
2047 \ifnum \HCol=4
2048 \HCode{\%}%
2049 |<start mtext space|>\PauseMathClass
2050 \mtexttrue
2051 \fi \HCode{\a:math:amp}%
2052 \fi}
2053 {\ifnum \HCol=4 \mtextfalse
2054 \EndPauseMathClass |<end mtext space|>\fi }
2055 >>>
2056
2057
2058
2059
2060 \<configure html-mltx latex\><<<
2061 |<config multicolumn|>
2062 >>>
2063
2064
2065 \<configure html-mltx array\><<<
2066 |<config multicolumn|>
2067 >>>
2068
2069
2070 \<config multicolumn\><<<
2071 \Configure{multicolumn}
2072 {\let\sv:VBorder\VBorder
2073 \let\VBorder\empty
2074 \Configure{VBorder}{}{}{}{}%
2075 }
2076 {\let\VBorder\sv:VBorder}
2077 {\ifmmode \HCode{\l:brace}%
2078 {|<attributes of mml multicolumn|>\HColAlign}%
2079 \HCode{\r:brace\l:brace}\else
2080 \ifvmode\IgnorePar\fi
2081 \HCode{<div class="multicolumn" }\HColAlign\HCode{>}\fi }
2082 {\ifmmode \HCode{\r:brace}\else
2083 \ifvmode\IgnorePar\fi \EndP\HCode{</div>}\fi }
2084 \def\gob:sp#1{#1}
2085 >>>
2086
2087
2088 \<attributes of mml multicolumn\><<<
2089 \Configure{halignTD} {}{}
2090 {<}{\HCode{l}}
2091 {-}{\HCode{c}}
2092 {>}{\HCode{r}}
2093 {p}{\HCode{l}}
2094 {}%
2095 >>>
2096
2097
2098 \<configure html-mltx tex4ht\><<<
2099 \Configure{halignTD} {}{}
2100 {<}{\ifmathltx \HCode{ columnalign="left-0"}\else
2101 \HCode{ style="text-align:left; white-space:nowrap;"}\fi}
2102 {-}{\ifmathltx \HCode{ columnalign="center"}\else
2103 \HCode{ style="text-align:center; white-space:nowrap;"}\fi}
2104 {>}{\ifmathltx \HCode{ columnalign="right"}\else
2105 \HCode{ style="text-align:right; white-space:nowrap;"}\fi}
2106 {^}{\ifmathltx \HCode{ rowalign="top"}\else
2107 \HCode{ style="vertical-align:top; white-space:nowrap;"}\fi}
2108 {=}{\ifmathltx \HCode{ rowalign="baseline"}\else
2109 \HCode{ style="vertical-align:baseline; white-space:nowrap;"}\fi}
2110 {||}{\ifmathltx \HCode{ rowalign="center"}\else
2111 \HCode{ style="vertical-align:middle; white-space:nowrap;"}\fi}
2112 {_}{\ifmathltx \HCode{ rowalign="bottom"}\else
2113 \HCode{ style="vertical-align:bottom; white-space:nowrap;"}\fi}
2114 {p}{\ifmathltx \HCode{ columnalign="left-1"}\else
2115 \HCode{ style="text-align:left;"}\fi}
2116 {}
2117 >>>
2118
2119
2120
2121
2122 \<configure mathltx tex4ht\><<<
2123 \Configure{halignTD} {}{}
2124 {<}{\HCode{ columnalign="left-3"}}
2125 {-}{\HCode{ columnalign="center"}}
2126 {>}{\HCode{ columnalign="right"}}
2127 {^}{\HCode{ rowalign="top"}}
2128 {=}{\HCode{ rowalign="baseline"}}
2129 {||}{\HCode{ rowalign="center"}}
2130 {_}{\HCode{ rowalign="bottom"}}
2131 {p}{\HCode{ columnalign="left-4"}}
2132 {}
2133 >>>
2134 %%%%%%%%%%%%%%%%%%%%%%%%%
2135 \section{Big, BIG, ....}
2136 %%%%%%%%%%%%%%%%%%%%%%%%%
2137
2138
2139 \</bigl, /bigr,... for mathltx\><<<
2140 \def\:tempc#1{\HCode{\l:brace\string\bigl\space\string#1}}
2141 \HLet\bigl=\:tempc
2142 \def\:tempc#1{\HCode{\string\bigm\space\string#1}}
2143 \HLet\bigm=\:tempc
2144 \def\:tempc#1{\HCode{\string\bigr\space\string #1\r:brace}}
2145 \HLet\bigr=\:tempc
2146 \def\:tempc#1{\HCode{\l:brace\string\Bigl\space\string#1}}
2147 \HLet\Bigl=\:tempc
2148 \def\:tempc#1{\HCode{\string\Bigm\space\string#1}}
2149 \HLet\Bigm=\:tempc
2150 \def\:tempc#1{\HCode{\string\Bigr\space\string #1\r:brace}}
2151 \HLet\Bigr=\:tempc
2152 \def\:tempc#1{\HCode{\l:brace\string\biggl\space\string#1}}
2153 \HLet\biggl=\:tempc
2154 \def\:tempc#1{\HCode{\string\biggm\space\string#1}}
2155 \HLet\biggm=\:tempc
2156 \def\:tempc#1{\HCode{\string\biggr\space\string #1\r:brace}}
2157 \HLet\biggr=\:tempc
2158 \def\:tempc#1{\HCode{\l:brace\string\Biggl\space\string#1}}
2159 \HLet\Biggl=\:tempc
2160 \def\:tempc#1{\HCode{\string\Biggm\space\string#1}}
2161 \HLet\Biggm=\:tempc
2162 \def\:tempc#1{\HCode{\string\Biggr\space\string #1\r:brace}}
2163 \HLet\Biggr=\:tempc
2164 >>>
2165
2166
2167
2168 \<mathltx plain,fontmath\><<<
2169 \def\:tempc#1{{\HCode{\string\big\string{}\string#1\HCode{\string}}}}
2170 \HLet\big=\:tempc
2171 \def\:tempc#1{{\HCode{\string\Big\string{}\string#1\HCode{\string}}}}
2172 \HLet\Big=\:tempc
2173 \def\:tempc#1{{\HCode{\string\bigg\string{}\string#1\HCode{\string}}}}
2174 \HLet\bigg=\:tempc
2175 \def\:tempc#1{{\HCode{\string\Bigg\string{}\string #1\HCode{\string}}}}
2176 \HLet\Bigg=\:tempc
2177 >>>
2178
2179
2180 %%%%%%%%%%%%%%%%%%%%%%%%%
2181 \section{stackrel}
2182 %%%%%%%%%%%%%%%%%%%%%%%%%
2183
2184 \<mathltx latex\><<<
2185 \def\:temp#1#2{{\a:stackrel{#1}\b:stackrel {#2}\c:stackrel}}
2186 \HLet\stackrel|=\:temp
2187 \:CheckOption{stackrel-} \if:Option
2188 \Configure{stackrel}
2189 {\mathrel\bgroup \HCode{<mglyph\Hnewline
2190 alt="\string\stackrel}\afterassignment\put:arg\tmp:toks}
2191 {\afterassignment\put:arg\tmp:toks}
2192 {\HCode{" />}\egroup}
2193 \def\put:arg{\HCode{{\the\tmp:toks}}}
2194 \else
2195 \Configure{stackrel}
2196 {\HCode{\string\stackrel\l:brace}}%
2197 {\HCode{\r:brace\l:brace}|<mathop nested within stackrel|>\mathop}
2198 {\HCode{\r:brace}}
2199 \fi
2200 >>>
2201
2202 \<mathop nested within stackrel\><<<
2203 \Configure{mathop*}{*}
2204 {\string\mathop\l:brace}
2205 {\r:brace}
2206 {\Configure{mathop}{}{}{}{}}%
2207 >>>
2208
2209
2210 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2211 \subsection{fontmath.ltx}
2212 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2213
2214 \<configure mathltx Preamble\><<<
2215 \bgroup
2216 \catcode`\{=12 \catcode`\}=12
2217 \catcode`\[=1 \catcode`\]=2
2218 \catcode`\/=0 \catcode`\\=12
2219 /gdef/l:brace[{]
2220 /gdef/r:brace[}]
2221 /gdef/back:slash[\]
2222 /egroup
2223 >>>
2224
2225 \<mathltx plain,fontmath\><<<
2226 \Configure{overbrace}
2227 {\Configure{mathop*}{*}
2228 {\string\overbrace\l:brace}
2229 {\r:brace}
2230 {\Configure{mathop}{}{}{}{}}%
2231 }
2232 {\let\o:overbrace:=\displaystyle}
2233 {}
2234 \Configure{underbrace}
2235 {\Configure{mathop*}{*}
2236 {\string\underbrace\l:brace}
2237 {\r:brace}
2238 {\Configure{mathop}{}{}{}{}}%
2239 }
2240 {\let\o:underbrace:=\displaystyle}
2241 {}
2242 >>>
2243
2244
2245 \<mathltx plain,fontmath\><<<
2246 % \Configure{MathClass}{0}{*}{<mi\Hnewline>}{</mi>}{}
2247 \Configure{MathClass}{1}{*}{\string\mathop\l:brace}{\r:brace}{}
2248 % \Configure{MathClass}{2}{*}{<mo\Hnewline
2249 % \mml:class="MathClass-bin">}{</mo>}{}
2250 % \Configure{MathClass}{3}{*}{<mo\Hnewline
2251 % \mml:class="MathClass-rel">}{</mo>}{}
2252 \:CheckOption{mathltx-} \if:Option
2253 \Configure{MathClass}{4}{*}{}{}{}
2254 \Configure{MathClass}{5}{*}{}{}{}
2255 \else
2256 \Log:Note{for sources failing to produce
2257 clean mathltx code, try the command line option `mathltx-'}%
2258 \fi
2259
2260 %\Configure{MathClass}{6}{*}{<mo\Hnewline
2261 % \mml:class="MathClass-punc">}{</mo>}{}
2262 % \Configure{MathClass}{7}{*}{<mn>}{</mn>}
2263 % {0123456789}
2264 \Configure{FormulaClass}{0}{}{}{}
2265 \Configure{FormulaClass}{1}{}{}{}
2266 \Configure{FormulaClass}{2}{}{}{}
2267 \Configure{FormulaClass}{3}{}{}{}
2268 \Configure{FormulaClass}{4}{}{}{}
2269 \Configure{FormulaClass}{5}{}{}{}
2270 \Configure{FormulaClass}{6}{}{}{}
2271 >>>
2272
2273
2274 \<configure mathltx fontmathNO\><<<
2275 \def\:tempa#1{%
2276 \def\:temp{\HCode{\string\firstOfOne}\,\HCode{\string#1\space}}%
2277 \HLet#1\:temp }
2278 \:tempa\bigcap
2279 \:tempa\bigcirc
2280 \:tempa\bigcup
2281 \:tempa\bigodot
2282 \:tempa\bigoplus
2283 \:tempa\bigotimes
2284 \:tempa\bigsqcup
2285 \:tempa\bigtriangledown
2286 \:tempa\bigtriangleup
2287 \:tempa\biguplus
2288 \:tempa\bigvee
2289 \:tempa\bigwedge
2290 \:tempa\coprod
2291 \:tempa\int
2292 \:tempa\intop
2293 \:tempa\ointop
2294 \:tempa\prod
2295 \:tempa\sum
2296 >>>
2297
2298
2299
2300
2301
2302 \<configure mathltx fontmathNO\><<<
2303 \def\:tempa#1{%
2304 \def\:temp{\HCode{\string#1\space}}%
2305 \HLet#1\:temp }
2306 \:tempa\Delta
2307 \:tempa\Gamma
2308 \:tempa\Im
2309 \:tempa\Lambda
2310 \:tempa\Leftarrow
2311 \:tempa\Leftrightarrow
2312 \:tempa\Omega
2313 \:tempa\Phi
2314 \:tempa\Pi
2315 \:tempa\Psi
2316 \:tempa\Re
2317 \:tempa\Rightarrow
2318 \:tempa\Sigma
2319 \:tempa\Theta
2320 \:tempa\Upsilon
2321 \:tempa\Xi
2322 \:tempa\aleph
2323 \:tempa\alpha
2324 \:tempa\amalg
2325 \:tempa\angle
2326 \:tempa\approx
2327 \:tempa\ast
2328 \:tempa\asymp
2329 \:tempa\beta
2330 \:tempa\bot
2331 \:tempa\bullet
2332 \:tempa\cap
2333 \:tempa\cdot
2334 \:tempa\chi
2335 \:tempa\circ
2336 \:tempa\clubsuit
2337 \:tempa\coprod
2338 \:tempa\cup
2339 \:tempa\dagger
2340 \:tempa\dashv
2341 \:tempa\ddagger
2342 \:tempa\delta
2343 \:tempa\diamond
2344 \:tempa\diamondsuit
2345 \:tempa\div
2346 \:tempa\ell
2347 \:tempa\emptyset
2348 \:tempa\epsilon
2349 \:tempa\equiv
2350 \:tempa\eta
2351 \:tempa\exists
2352 \:tempa\flat
2353 \:tempa\forall
2354 \:tempa\frown
2355 \:tempa\gamma
2356 \:tempa\ge
2357 \:tempa\geq
2358 \:tempa\gg
2359 \:tempa\hbar
2360 \:tempa\heartsuit
2361 \:tempa\imath
2362 \:tempa\in
2363 \:tempa\infty
2364 \:tempa\intop
2365 \:tempa\iota
2366 \:tempa\jmath
2367 \:tempa\kappa
2368 \:tempa\lambda
2369 \:tempa\land
2370 \:tempa\le
2371 \:tempa\leftarrow
2372 \:tempa\leftharpoondown
2373 \:tempa\leftharpoonup
2374 \:tempa\leftrightarrow
2375 \:tempa\leq
2376 \:tempa\ll
2377 \:tempa\lnot
2378 \:tempa\lor
2379 \:tempa\mapstochar
2380 \:tempa\mid
2381 \:tempa\mp
2382 \:tempa\mu
2383 \:tempa\nabla
2384 \:tempa\natural
2385 \:tempa\ne
2386 \:tempa\nearrow
2387 \:tempa\neg
2388 \:tempa\neq
2389 \:tempa\ni
2390 \:tempa\not
2391 \:tempa\nu
2392 \:tempa\nwarrow
2393 \:tempa\odot
2394 \:tempa\oint
2395 \:tempa\ointop
2396 \:tempa\omega
2397 \:tempa\ominus
2398 \:tempa\oplus
2399 \:tempa\oslash
2400 \:tempa\otimes
2401 \:tempa\parallel
2402 \:tempa\partial
2403 \:tempa\perp
2404 \:tempa\phi
2405 \:tempa\pi
2406 \:tempa\pm
2407 \:tempa\prec
2408 \:tempa\preceq
2409 \:tempa\prime
2410 \:tempa\prod
2411 \:tempa\propto
2412 \:tempa\psi
2413 \:tempa\rho
2414 \:tempa\rightarrow
2415 \:tempa\rightharpoondown
2416 \:tempa\rightharpoonup
2417 \:tempa\searrow
2418 \:tempa\setminus
2419 \:tempa\sharp
2420 \:tempa\sigma
2421 \:tempa\sim
2422 \:tempa\sim
2423 \:tempa\simeq
2424 \:tempa\simeq
2425 \:tempa\smallint
2426 \:tempa\smile
2427 \:tempa\spadesuit
2428 \:tempa\sqcap
2429 \:tempa\sqcup
2430 \:tempa\sqsubseteq
2431 \:tempa\sqsupseteq
2432 \:tempa\star
2433 \:tempa\subset
2434 \:tempa\subseteq
2435 \:tempa\succ
2436 \:tempa\succeq
2437 \:tempa\sum
2438 \:tempa\supset
2439 \:tempa\supseteq
2440 \:tempa\surd
2441 \:tempa\swarrow
2442 \:tempa\tau
2443 \:tempa\theta
2444 \:tempa\times
2445 \:tempa\top
2446 \:tempa\triangle
2447 \:tempa\triangleleft
2448 \:tempa\triangleright
2449 \:tempa\uplus
2450 \:tempa\upsilon
2451 \:tempa\varbigtriangledown
2452 \:tempa\varbigtriangleup
2453 \:tempa\varepsilon
2454 \:tempa\varphi
2455 \:tempa\varpi
2456 \:tempa\varrho
2457 \:tempa\varsigma
2458 \:tempa\vartheta
2459 \:tempa\vdash
2460 \:tempa\vee
2461 \:tempa\wedge
2462 \:tempa\wp
2463 \:tempa\wr
2464 \:tempa\xi
2465 \:tempa\zeta
2466 >>>
2467
2468
2469
2470
2471 \<configure mathltx amsmath\><<<
2472 \def\:temp{\HCode{\string\firstOfOne}\,\HCode{\string\int
2473 \string\int\space}}
2474 \HLet\iint\:temp
2475 \def\:temp{\HCode{\string\firstOfOne}\,\HCode{\string\int
2476 \string\int\string\int\space}}
2477 \HLet\iiint\:temp
2478 \def\:temp{\HCode{\string\Rightarrow }}
2479 \HLet\implies\:temp
2480 \def\:temp{\HCode{\string\Leftarrow }}
2481 \HLet\impliedby\:temp
2482 >>>
2483
2484
2485
2486
2487
2488 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2489 \section{Limits of Sub- snd Super- Scripts}
2490 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2491
2492
2493 %%%%%%%%%%%%%%%%%%%%%%%%%
2494 \subsection{Outline}
2495 %%%%%%%%%%%%%%%%%%%%%%%%%
2496
2497
2498 \<limits sub, sup, subsup\><<<
2499 \Configure{nolimits}{\HCode{\string\nolimits\space}}
2500 \Configure{limits}
2501 {\let|<restore SUB|>=\:UnDef
2502 \let|<restore SUP|>=\:UnDef
2503 \ifx \:temp\sp |<conf limits SUP|>\else
2504 \ifx \:temp\sb |<conf limits SUB|>\fi\fi
2505 |<conf limits SUBSUP|>%
2506 }
2507 >>>
2508
2509
2510 %%%%%%%%%%%%%%%%%%%%%%%%%
2511 \subsection{Simultaneously Sub- and Super- Scripts}
2512 %%%%%%%%%%%%%%%%%%%%%%%%%
2513
2514
2515 \<conf limits SUBSUP\><<<
2516 |<save pre-limits SUBSUP|>%
2517 \Configure{SUBSUP}
2518 {\ifx |<restore SUB|>\:UnDef\else |<restore SUB|>\fi
2519 \ifx |<restore SUP|>\:UnDef\else |<restore SUP|>\fi
2520 |<restore pre-limits SUBSUP|>%
2521 \Send{BACK}{\l:brace}\HCode{\r:brace
2522 \string_\l:brace}\trap:base
2523 }
2524 {\HCode{\r:brace\string^\l:brace}\trap:base}
2525 {\HCode{\r:brace}}
2526 >>>
2527
2528
2529 \<save pre-limits SUBSUP\><<<
2530 \let\pl:SUBSUP=\SUBSUP:
2531 >>>
2532
2533 \<restore pre-limits SUBSUP\><<<
2534 \ifx \pl:SUBSUP\:UnDef \else
2535 \let\SUBSUP:=\pl:SUBSUP
2536 \fi
2537 >>>
2538
2539 \<limits sub, sup, subsup\><<<
2540 \ifx \a:putSUB\:UnDef \else
2541 \pend:def\a:putSUB{\ifx \pl:SUBSUP\:UnDef\else
2542 \let\SUBSUP:=\pl:SUBSUP
2543 \let\pl:SUBSUP=\:UnDef
2544 \fi}%
2545 \fi
2546 \ifx \a:putSUP\:UnDef \else
2547 \pend:def\a:putSUP{\ifx \pl:SUBSUP\:UnDef\else
2548 \let\SUBSUP:=\pl:SUBSUP
2549 \let\pl:SUBSUP=\:UnDef
2550 \fi}%
2551 \fi
2552 >>>
2553
2554
2555 %%%%%%%%%%%%%%%%%%%%%%%%%
2556 \subsection{Superscripts}
2557 %%%%%%%%%%%%%%%%%%%%%%%%%
2558
2559
2560
2561 \<conf limits SUP\><<<
2562 |<save pre-limits SUP|>%
2563 \Configure{SUP}
2564 {|<open external limits SUP|>\bgroup
2565 |<restore pre-limits SUBSUP|>%
2566 |<conf second limits SUP|>\trap:base}
2567 {}%
2568 >>>
2569
2570 \<save pre-limits SUP\><<<
2571 \def\pl:SUP{\Configure{SUP}}%
2572 \expandafter\append:def
2573 \expandafter\pl:SUP\expandafter{\expandafter{\a:SUP}}%
2574 \expandafter\append:def
2575 \expandafter\pl:SUP\expandafter{\expandafter{\b:SUP}}%
2576 >>>
2577
2578
2579 \<conf second limits SUP\><<<
2580 \Configure{SUP}
2581 {|<open intermediate limits SUP|>\bgroup
2582 |<conf third limit SUP|>\trap:base}
2583 {\egroup|<close external limits SUP|>}%
2584 >>>
2585
2586
2587 \<conf third limit SUP\><<<
2588 \Configure{SUP}
2589 {|<open internal limits SUP|>\bgroup \trap:base}
2590 {\egroup |<close internal limits SUP|>}%
2591 >>>
2592
2593
2594 \<open external limits SUP\><<<
2595 \Send{BACK}{\l:brace}\HCode{\r:brace\string^\l:brace}\trap:base
2596 >>>
2597
2598
2599 \<close external limits SUP\><<<
2600 \HCode{\r:brace}\aftergroup|<restore SUP|>%
2601 >>>
2602
2603 \<restore SUP\><<<
2604 \pl:SUP >>>
2605
2606
2607 \<open intermediate limits SUP\><<<
2608 \Send{BACK}{\l:brace}\HCode{\r:brace\string^\l:brace}\trap:base
2609 >>>
2610
2611 \<open internal limits SUP\><<<
2612 \Send{BACK}{\l:brace}\HCode{\r:brace\string^\l:brace}%
2613 >>>
2614
2615 \<close internal limits SUP\><<<
2616 \HCode{\r:brace}%
2617 >>>
2618
2619 %%%%%%%%%%%%%%%%%%%%%%%%%
2620 \subsection{Subscripts}
2621 %%%%%%%%%%%%%%%%%%%%%%%%%
2622
2623
2624
2625
2626
2627 \<conf limits SUB\><<<
2628 |<save pre-limits SUB|>%
2629 \Configure{SUB}
2630 {|<open external limits SUB|>\bgroup
2631 |<restore pre-limits SUBSUP|>%
2632 |<conf second limits SUB|>\trap:base}
2633 {}%
2634 >>>
2635
2636 \<save pre-limits SUB\><<<
2637 \def\pl:SUB{\Configure{SUB}}%
2638 \expandafter\append:def
2639 \expandafter\pl:SUB\expandafter{\expandafter{\a:SUB}}%
2640 \expandafter\append:def
2641 \expandafter\pl:SUB\expandafter{\expandafter{\b:SUB}}%
2642 >>>
2643
2644 \<conf second limits SUB\><<<
2645 \Configure{SUB}
2646 {|<open intermediate limits SUB|>\bgroup
2647 |<conf third limit SUB|>\trap:base}
2648 {\egroup|<close external limits SUB|>}%
2649 >>>
2650
2651
2652 \<conf third limit SUB\><<<
2653 \Configure{SUB}
2654 {|<open internal limits SUB|>\bgroup \trap:base}
2655 {\egroup |<close internal limits SUB|>}%
2656 >>>
2657
2658
2659 \<open external limits SUB\><<<
2660 \Send{BACK}{\l:brace}\HCode{\r:brace\string_\l:brace}%
2661 >>>
2662
2663 \<close external limits SUB\><<<
2664 \HCode{\r:brace}\aftergroup|<restore SUB|>%
2665 >>>
2666
2667 \<restore SUB\><<<
2668 \pl:SUB >>>
2669
2670 \<open intermediate limits SUB\><<<
2671 \Send{BACK}{\l:brace}\HCode{\r:brace\string_\l:brace}%
2672 >>>
2673
2674 \<open internal limits SUB\><<<
2675 \Send{BACK}{\l:brace}\HCode{\r:brace\string_\l:brace}%
2676 >>>
2677
2678 \<close internal limits SUB\><<<
2679 \HCode{\r:brace}%
2680 >>>
2681
2682
2683
2684 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2685 \section{Sized Operations}
2686 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2687
2688 \<plain,latex mathltx\><<<
2689 \def\mathop:prefix#1{%
2690 \Configure{mathop}{*}{}{}%
2691 {\Configure{mathop}{*}{\string\mathop\l:brace}{\r:brace}{}}}
2692 >>>
2693
2694 The nested configuration of mathop is needed for cases similar to that
2695 of \verb!\log! i.
2696 \verb/$$ \sum_a^b =\log 2 $$/
2697
2698
2699 \<configure mathltx amsmath\><<<
2700 \pend:def\n:iint:{\ifDisplayMath\mathop:prefix{mathsize="big"}\fi}
2701 \pend:def\n:iiint:{\ifDisplayMath\mathop:prefix{mathsize="big"}\fi}
2702 \pend:def\n:idotsint:{\ifDisplayMath\mathop:prefix{mathsize="big"}\fi}
2703 >>>
2704
2705 \<configure mathltx fontmath\><<<
2706 \def\:tempd#1#2{%
2707 \expandafter\def\csname #1\endcsname{\mathchar"13#2\relax}%
2708 \MathSymbol\mathop{#1}%
2709 \expandafter\def\csname #1:limits\endcsname{\expandafter
2710 \:same \math:sym\mathop{#1}\limits}%
2711 \expandafter\def\csname #1:nolimits\endcsname{\expandafter
2712 \:same \math:sym\mathop{#1}\nolimits}%
2713 \expandafter\edef\csname n:#1:\endcsname{\noexpand\ifDisplayMath
2714 \noexpand\expandafter \expandafter\noexpand
2715 \csname #1:limits\endcsname
2716 \noexpand\else \noexpand\expandafter
2717 \expandafter\noexpand
2718 \csname #1:nolimits\endcsname\noexpand\fi}%
2719 \expandafter\pend:def\csname n:#1:\endcsname{\ifDisplayMath
2720 \mathop:prefix{mathsize="big"}\fi}%
2721 }
2722 \:tempd{bigcap}{54}
2723 \:tempd{bigcup}{53}
2724 \:tempd{bigodot}{4A}
2725 \:tempd{bigoplus}{4C}
2726 \:tempd{bigotimes}{4E}
2727 \:tempd{bigsqcup}{46}
2728 \:tempd{biguplus}{55}
2729 \:tempd{bigvee}{57}
2730 \:tempd{bigwedge}{56}
2731 \:tempd{coprod}{60}
2732 \:tempd{intop}{52}
2733 \:tempd{ointop}{48}
2734 \:tempd{prod}{51}
2735 \:tempd{sum}{50}
2736 >>>
2737
2738 \<configure mathltx tex4ht\><<<
2739 \def\math:sym#1#2{{\relax\ifmmode \expandafter#1\fi
2740 {\ifmmode\HCode{\string#1\l:brace}\fi
2741 \csname a:#2\endcsname
2742 \ifmmode\HCode{\r:brace}\fi}}}
2743 >>>
2744
2745
2746 \<configure mathltx fontmath\><<<
2747 \ifx \ilimits@\o:nolimits:
2748 \let\ilimits@\nolimits
2749 \fi
2750 \ifx \ilimits@\o:nolimits:
2751 \let\slimits@\nolimits
2752 \fi
2753 >>>
2754
2755
2756
2757 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2758 \section{Accent through `accents' Configurations}
2759 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2760
2761 \<configure mathltx latex\><<<
2762 |<shared latex,amsmath math accents|>
2763 >>>
2764
2765 \<configure mathltx amsmath\><<<
2766 |<shared latex,amsmath math accents|>
2767 \def\:tempc#1{\HCode{\string\dddot\l:brace}#1\HCode{\r:brace}}
2768 \HLet\dddot=\:tempc
2769 \def\:tempc#1{\HCode{\string\ddddot\l:brace}#1\HCode{\r:brace}}
2770 \HLet\ddddot=\:tempc
2771 >>>
2772
2773 \<shared latex,amsmath math accents\><<<
2774 \def\:tempc#1{\HCode{\string\H\l:brace}#1\HCode{\r:brace}}
2775 \HLet\H=\:tempc
2776 \def\:tempc#1{\HCode{\string\acute\l:brace}#1\HCode{\r:brace}}
2777 \HLet\acute=\:tempc
2778 \def\:tempc#1{\HCode{\string\bar\l:brace}#1\HCode{\r:brace}}
2779 \HLet\bar=\:tempc
2780 \def\:tempc#1{\HCode{\string\breve\l:brace}#1\HCode{\r:brace}}
2781 \HLet\breve=\:tempc
2782 \def\:tempc#1{\HCode{\string\c\l:brace}#1\HCode{\r:brace}}
2783 \HLet\c=\:tempc
2784 \def\:tempc#1{\HCode{\string\cedil\l:brace}#1\HCode{\r:brace}}
2785 \HLet\cedil=\:tempc
2786 \def\:tempc#1{\HCode{\string\check\l:brace}#1\HCode{\r:brace}}
2787 \HLet\check=\:tempc
2788 \def\:tempc#1{\HCode{\string\d\l:brace}#1\HCode{\r:brace}}
2789 \HLet\d=\:tempc
2790 \def\:tempc#1{\HCode{\string\ddot\l:brace}#1\HCode{\r:brace}}
2791 \HLet\ddot=\:tempc
2792 \def\:tempc#1{\HCode{\string\dot\l:brace}#1\HCode{\r:brace}}
2793 \HLet\dot=\:tempc
2794 \def\:tempc#1{\HCode{\string\grave\l:brace}#1\HCode{\r:brace}}
2795 \HLet\grave=\:tempc
2796 \def\:tempc#1{\HCode{\string\hat\l:brace}#1\HCode{\r:brace}}
2797 \HLet\hat=\:tempc
2798 \def\:tempc#1{\HCode{\string\ring\l:brace}#1\HCode{\r:brace}}
2799 \HLet\ring=\:tempc
2800 \def\:tempc#1{\HCode{\string\t\l:brace}#1\HCode{\r:brace}}
2801 \HLet\t=\:tempc
2802 \def\:tempc#1{\HCode{\string\tilde\l:brace}#1\HCode{\r:brace}}
2803 \HLet\tilde=\:tempc
2804 \def\:tempc#1{\HCode{\string\udot\l:brace}#1\HCode{\r:brace}}
2805 \HLet\udot=\:tempc
2806 \def\:tempc#1{\HCode{\string\uml\l:brace}#1\HCode{\r:brace}}
2807 \HLet\uml=\:tempc
2808 \def\:tempc#1{\HCode{\string\vec\l:brace}#1\HCode{\r:brace}}
2809 \HLet\vec=\:tempc
2810 >>>
2811
2812 Can \verb=\r= appear in math mode? If not, the following is not needed.
2813
2814 \<shared latex,amsmath math accents\><<<
2815 \ifx\jsm:r\:UnDef
2816 \let\jsm:r\r
2817 \def\:tempc#1{\ifmmode\HCode{\string\r\l:brace}#1\HCode{\r:brace}%
2818 \else \jsm:r{#1}\fi }
2819 \HLet\r=\:tempc
2820 \fi
2821 >>>
2822
2823 \<config mathltx accents\><<<
2824 |<temp indirect accents|>
2825 \Configure{accents}
2826 {\ifmmode \expandafter\mathord\fi
2827 {|<temp hcode accents|>%
2828 \ht:special{t4ht@[}\if!#1!x\else#2\fi
2829 \ht:special{t4ht@]}}}
2830 {\ifmathltx
2831 \ifmtext |<accent in text mode|>%
2832 \else \AccentMath{|<under over accents|>}\fi
2833 \else |<accent in text mode|>\fi
2834 }
2835 >>>
2836
2837 \<accent in text mode\><<<
2838 \expandafter\ifx \csname :#1:over\endcsname\relax
2839 \expandafter\ifx \csname :#1:under\endcsname\relax
2840 \AccentMath{|<under over accents|>}%
2841 \else #3\csname :#1:under\endcsname \fi
2842 \else #3\csname :#1:over\endcsname \fi
2843 >>>
2844
2845 \<under over accents\><<<
2846 \expandafter\ifx \csname :#1:over\endcsname\relax
2847 |<under accents|>%
2848 \else \expandafter\ifx \csname :#1:under\endcsname\relax
2849 |<over accents|>%
2850 \else
2851 |<both accents|>%
2852 \fi \fi
2853 >>>
2854
2855 \<under accents\><<<
2856 \HCode{<munder\Hnewline
2857 accent="true"><mrow\Hnewline>}#3\HCode{</mrow>}%
2858 \csname :#1:under\endcsname
2859 \HCode{</munder>}%
2860 >>>
2861
2862 \<over accents\><<<
2863 \HCode{<mover\Hnewline
2864 accent="true"><mrow\Hnewline>}#3\HCode{</mrow>}%
2865 \csname :#1:over\endcsname
2866 \HCode{</mover-1>}%
2867 >>>
2868
2869 \<both accents\><<<
2870 \HCode{<munderover-3\Hnewline
2871 accent="true"><mrow\Hnewline>}#3\HCode{</mrow>}%
2872 \csname :#1:under\endcsname
2873 \csname :#1:over\endcsname
2874 \HCode{</munderover>}%
2875 >>>
2876
2877
2878
2879 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2880 \section{Underline and Overline}
2881 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2882
2883
2884 \<configure html-mltx latex\><<<
2885 \Configure{overline}
2886 {\bgroup\ifmathltx |<mathltx overline|>\else
2887 \HCode{<span class="overline">}\fi}
2888 {\ifmathltx |<end mathltx overline|>\else \HCode{</span>}\fi\egroup}
2889 \Configure{underline}
2890 {\bgroup
2891 \ifmathltx |<mathltx underline|>%
2892 \else |<nomath underline|>\HCode{<span class="underline">}\fi}
2893 {\ifmathltx |<end mathltx underline|>\else \HCode{</span>}\fi \egroup}
2894 >>>
2895
2896
2897 \<mathltx latex\><<<
2898 |<und/ov-erline|>
2899 >>>
2900
2901 \<mathltx plain\><<<
2902 |<und/ov-erline|>
2903 >>>
2904
2905
2906 \<und/ov-erline\><<<
2907 \Configure{overline}
2908 {\bgroup |<mathltx overline|>}
2909 {|<end mathltx overline|>\egroup}
2910 \Configure{underline}
2911 {\bgroup \ifmmode |<mathltx underline|>\else
2912 |<nomath underline|>\fi}
2913 {|<end mathltx underline|>\egroup}
2914 >>>
2915
2916 \<nomath underline\><<<
2917 \expandafter\everymath
2918 \expandafter{\expandafter\everymath
2919 \expandafter{\the\everymath}}%
2920 \let\o::@underline:\o:@@underline:
2921 \def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
2922 >>>
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934 \<mathltx overline\><<<
2935 \HCode{\string\overline\l:brace}%
2936 >>>
2937
2938 \<end mathltx overline\><<<
2939 \HCode{\r:brace}%
2940 >>>
2941
2942
2943 \<mathltx underline\><<<
2944 \HCode{\string\underline\l:brace}%
2945 >>>
2946
2947 \<end mathltx underline\><<<
2948 \HCode{\r:brace}%
2949 >>>
2950
2951
2952 \verb'&#x0332;' is the code of \verb'&UnderBar;'
2953
2954
2955
2956
2957
2958 \<mathltx plain\><<<
2959 |<arr: amsmath, amstex1|>
2960 >>>
2961
2962
2963
2964 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
2965 \section{Footnotes}
2966 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
2967
2968 \<configure html-mltx latex\><<<
2969 \Configure{footnote-mark}
2970 {\ifmathltx \ifmtext \else
2971 \HCode{<mrow \mml:class="footnote-mark">}\fi
2972 \else \HCode{<span class="footnote-mark">}\fi }
2973 {\ifmathltx \ifmtext \else \HCode{</mrow>}\fi
2974 \else \HCode{</span>}\fi }
2975 \Configure{thank-mark}
2976 {\HCode{<\ifmathltx mrow \expandafter\mml:class\else span class\fi
2977 ="thank-mark">}}
2978 {\HCode{</\ifmathltx mrow\else span\fi>}}
2979 >>>
2980
2981
2982
2983
2984
2985 The following code segments handle the different listed cases,
2986 with possible exception of the last.
2987
2988 \begin{verbatim}
2989 a\footnote{b c}
2990
2991 $a\footnote{b c}$
2992
2993 $a\footnote{\hbox{b c}}$
2994
2995 $a\footnote{\mbox{b c}}$
2996
2997 $a\mbox{\footnote{b c}}$
2998 \end{verbatim}
2999
3000
3001 We have the following hooks
3002
3003
3004 \begin{verbatim}
3005 \def\@footnotemark{...\a:@makefnmark\@makefnmark
3006 \b:@makefnmark...}
3007 \long\def\@footnotetext#1{...\a:footnote-text\a:@makefntext
3008 \@makefntext{\b:@makefntext
3009 \a:@makefnbody #1\b:@makefnbody
3010 }\c:@makefntext\b:footnote-text...}
3011 \end{verbatim}
3012
3013
3014
3015
3016
3017 \<configure html-mltx latex\><<<
3018 \:CheckOption{fn-in}\if:Option \else
3019 \expandafter\let\csname A:footnote-text\expandafter\endcsname
3020 \csname a:footnote-text\endcsname
3021 \expandafter\let\csname B:footnote-text\expandafter\endcsname
3022 \csname b:footnote-text\endcsname
3023 \NewConfigure{footnote-text}[2]{%
3024 \expandafter\def\csname a:footnote-text\endcsname{%
3025 #1%
3026 \ifmathltx
3027 \HCode{<\a:@math\Hnewline
3028 \csname a:math-xmlns\endcsname \Hnewline >%
3029 \ifmtext <mtext>\fi}
3030 \fi
3031 \ifmathltx \fi
3032 }%
3033 \expandafter\def\csname b:footnote-text\endcsname{%
3034 \ifmathltx
3035 \HCode{\ifmtext</mtext>\fi </\a:@math>}%
3036 \fi
3037 #2%
3038 }%
3039 }
3040 \Configure{footnote-text}
3041 {\csname A:footnote-text\endcsname}
3042 {\csname B:footnote-text\endcsname}
3043 \fi
3044 >>>
3045
3046
3047
3048 \<configure html-mltx latex\><<<
3049 \let\A:footnotetext=\a:footnotetext
3050 \let\B:footnotetext=\b:footnotetext
3051 \let\C:footnotetext=\c:footnotetext
3052 \NewConfigure{footnotetext}[3]{%
3053 \def\a:footnotetext{%
3054 \ifmathltx \ifmtext |<end mtext space|>\fi\fi
3055 #1%
3056 \ifmathltx \ifmtext |<end mtext space|>\fi\fi
3057 }%
3058 \def\b:footnotetext{%
3059 \ifmathltx \ifmtext |<end mtext space|>\fi\fi
3060 #2%
3061 \ifmathltx \ifmtext |<end mtext space|>\fi\fi
3062 }%
3063 \def\c:footnotetext{%
3064 \ifmathltx \ifmtext |<end mtext space|>\fi\fi
3065 #3%
3066 \ifmathltx \ifmtext |<start mtext space|>\fi\fi
3067 }%
3068 }
3069 \Configure{footnotetext}
3070 {\A:footnotetext}
3071 {\B:footnotetext}
3072 {\C:footnotetext}
3073 >>>
3074
3075 \<configure html-mltx latex\><<<
3076 \Configure{footnotebody}
3077 {\tmp:toks=}
3078 {\ifmathltx \ifmmode $\mbox{$\the\tmp:toks$}$
3079 \else $\mbox{\the\tmp:toks}$\fi
3080 \else \the\tmp:toks\fi}
3081 >>>
3082
3083
3084 \<configure html-mltx latex\><<<
3085 \:CheckOption{mouseover} \if:Option
3086 \pend:def\js:on{\ifmathltx \ifmtext |<end mtext space|>\fi\fi}
3087 \append:def\js:on{\ifmathltx \ifmtext |<start mtext space|>\fi\fi}
3088 \fi
3089 >>>
3090
3091 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3092 \section{Space Characters}
3093 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3094
3095
3096 \<plain,latex mathltx\><<<
3097 \def\:nbsp{\ifmtext |<unicode space|>\else\ifmathltx
3098 \Tg<mspace />\else |<unicode space|>\fi\fi}
3099 >>>
3100
3101 \<unicode space\><<<
3102 \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
3103 >>>
3104
3105 % \HCode{\string&}\HChar{-35}\HCode{x00A0;}%
3106
3107
3108 \<configure html-mltx frenchb\><<<
3109 \Configure{frenchb-nbsp}
3110 {\ifmtext |<unicode space|>\else\ifmathltx
3111 \Tg<mspace class="frenchb-nbsp" />%
3112 \else
3113 \ht:special{t4ht@?unhskip}\HCode{<span class="frenchb-thinspace">}%
3114 |<unicode space|>\HCode{</span>}%
3115 \fi\fi
3116 \setbox\tmp:bx=\hbox\bgroup}
3117 {\egroup}
3118 >>>
3119
3120
3121 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3122 \section{Matrices}
3123 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3124
3125 %%%%%%%%%%%%%
3126 \subsection{Aligned}
3127 %%%%%%%%%%%%%
3128
3129
3130
3131 \<configure mathltx amsmath\><<<
3132 \Configure{aligned}
3133 {\HCode{\string\begin{aligned}}}
3134 {\HCode{\string\end{aligned}}}
3135 {}
3136 {\HCode{\string\\}}
3137 {\ifnum \HCol>1\HCode{\a:math:amp}\fi} {}
3138 \Configure{alignedat}
3139 {\HCode{\string\begin{alignedat}}}
3140 {\HCode{\string\end{alignedat}}}
3141 {}
3142 {\HCode{\string\\}}
3143 {\ifnum \HCol>1\HCode{\a:math:amp}\fi} {}
3144 >>>
3145
3146
3147
3148 %%%%%%%%%%%%%%%%%%%%
3149 \subsection{Cases}
3150 %%%%%%%%%%%%%%%%%
3151
3152 \<plain,latex mathltx\><<<
3153 \Configure{cases}
3154 {}{}
3155 {\HCode{\string\cases\l:brace}}
3156 {\ifvmode \IgnorePar\fi \HCode{\r:brace}}
3157 {\ifnum \HRow>1 \HCode{\string\cr\space}\fi}
3158 {}
3159 {|<mtd matrix|>}
3160 {}
3161 >>>
3162
3163
3164 %%%%%%%%%%%%%%%%%%%%
3165 \subsection{matrix}
3166 %%%%%%%%%%%%%%%%%%%%
3167
3168 \<plain,latex mathltx\><<<
3169 \Configure{matrix}
3170 {\HCode{\string\matrix\l:brace}}
3171 {\HCode{\r:brace}}
3172 {\ifnum \HRow>1 \HCode{\string\cr\space}\fi}
3173 {}
3174 {|<mtd matrix|>}
3175 {}
3176 >>>
3177
3178
3179
3180 %%%%%%%%%%%%%%%%%%%%
3181 \subsection{pmatrix}
3182 %%%%%%%%%%%%%%%%%%%%
3183
3184
3185 The grouping below is handle the case that the matrix is a base of an
3186 exponent.
3187
3188
3189 \<plain,latex mathltx\><<<
3190 \Configure{pmatrix} {\bgroup} {\egroup}
3191 >>>
3192
3193
3194
3195 The grouping below is handle the case that the matrix is a base of an
3196 exponent. The \verb|\,| configurations is for facilitating the
3197 catching of left subscripts and superscripts.
3198
3199
3200 \<plain,latex mathltx\><<<
3201 \Configure{quad}{{\ifmathltx \ifmtext \o:quad:\else
3202 {\HCode{\string\quad\space}}\fi
3203 \else \o:quad: \fi}}
3204 \Configure{qquad}{{\ifmathltx \ifmtext \o:qquad:\else
3205 {\HCode{\string\qquad\space}}\fi
3206 \else \o:qquad: \fi}}
3207 \Configure{,}
3208 {{\HCode{\string\,}}}
3209 >>>
3210
3211
3212
3213
3214 %%%%%%%%%%%%%%%%%%%%
3215 \section{TeX}
3216 %%%%%%%%%%%%%%%%%%%%
3217
3218
3219 \<mathltx plain\><<<
3220 \Configure{eqalignno}
3221 {\HCode{<mtable \mml:class="eqalignno">}}
3222 {\HCode{</mtable>}}
3223 {\HCode{<mtr\Hnewline \mml:class="eqalignno">}}
3224 {\HCode{</mtr>}}
3225 {\HCode{<mtd \Hnewline \mml:class="eqalignno-\HCol">}}
3226 {\HCode{</mtd>}}
3227 \def\:eqalignno:{\Configure{noalign}
3228 {\HCode{<mtr><mtd \mml:class="noalign" colspan="2">}}%
3229 {\HCode{</mtd></mtr>}}}
3230 >>>
3231
3232
3233 \<mathltx plain\><<<
3234 \Configure{leqalignno}
3235 {\HCode{<mtable \mml:class="leqalignno">}}
3236 {\HCode{</mtable>}}
3237 {\HCode{<mtr\Hnewline \mml:class="leqalignno">}}
3238 {\HCode{</mtr>}}
3239 {\HCode{<mtd \Hnewline \mml:class="leqalignno-\HCol">}}
3240 {\HCode{</mtd>}}
3241 \def\:leqalignno:{\Configure{noalign}
3242 {\HCode{<mtr><mtd \mml:class="noalign" colspan="2">}}%
3243 {\HCode{</mtd></mtr>}}}
3244 >>>
3245
3246 \section{Fractions}
3247
3248
3249
3250
3251
3252
3253
3254 \<amstex.sty mathltx\><<<
3255 |<config mathltx amstex1|>
3256 >>>
3257
3258
3259 \<config mathltx amstex1\><<<
3260 \ConfigureEnv{aligned}{}{}{}{}
3261 \Configure{aligned}
3262 {\HCode{<mtable\Hnewline \mml:class="aligned">}}
3263 {\HCode{</mtable>}}
3264 {\HCode{<mtr\Hnewline>}} {\HCode{</mtr>}}
3265 {\HCode{<mtd>}} {\HCode{</mtd>}}
3266 >>>
3267
3268
3269 \<amstex.tex mathltx\><<<
3270 \Configure{multilimits}
3271 {\HCode{<mtable\Hnewline \mml:class="multilimits">}}
3272 {\HCode{</mtable>}}
3273 {\HCode{<mtr><mtd\Hnewline>}}
3274 {\HCode{</mtd></mtr>}}
3275 \Configure{smallmatrix}
3276 {\HCode{<mtable\Hnewline \mml:class="smallmatrix">}}
3277 {\HCode{</mtable>}}
3278 {\HCode{<mtr>}}
3279 {\HCode{</mtr>}}
3280 {\HCode{<mtd\Hnewline>}}
3281 {\HCode{</mtd>}}
3282 >>>
3283
3284 \<amstex.tex mathltx\><<<
3285 \Configure{matrix}
3286 {\HCode{<mtable\Hnewline \mml:class="matrix">}}
3287 {\HCode{</mtable>}}
3288 {\HCode{<mtr\Hnewline>}} {\HCode{</mtr>}}
3289 {\HCode{|<mtd matrix|>}} {\HCode{</mtd>}}
3290 >>>
3291
3292 \<amstex.tex mathltx\><<<
3293 \Configure{pmatrix}{\Tg<mrow \mml:class="pmatrix">}
3294 {\Tg</mrow>}
3295 >>>
3296
3297 \<amstex.tex mathltx\><<<
3298 \Configure{align}
3299 {\HCode{<mtable\Hnewline \mml:class="align">}}
3300 {\HCode{</mtable>}}
3301 {\HCode{<mtr\Hnewline>}} {\HCode{</mtr>}}
3302 {\HCode{<mtd>}} {\HCode{</mtd>}}
3303 \Configure{aligned}
3304 {\HCode{<mtable\Hnewline \mml:class="aligned">}}
3305 {\HCode{</mtable>}}
3306 {\HCode{<mtr\Hnewline>}} {\HCode{</mtr>}}
3307 {\HCode{<mtd>}} {\HCode{</mtd>}}
3308 >>>
3309
3310 \<amstex.tex mathltx\><<<
3311 \Configure{cases}
3312 {\Tg<mrow \mml:class="cases">}
3313 {\Tg</mrow>}
3314 \Configure{alignat}
3315 {\HCode{<mtable \mml:class="alignat">}}
3316 {\HCode{</mtable>}}
3317 {\HCode{<mtr\Hnewline \mml:class="alignat">}}
3318 {\HCode{</mtr>}}
3319 {\HCode{<mtd\Hnewline \mml:class="alignat">}}
3320 {\HCode{</mtd>}}
3321 \Configure{gather}
3322 {\HCode{<mtable \mml:class="gather">}}
3323 {\HCode{</mtable>}}
3324 {\HCode{<mtr\Hnewline \mml:class="gather">}}
3325 {\HCode{</mtr>}}
3326 {\HCode{<mtd\Hnewline \mml:class="gather">}}
3327 {\HCode{</mtd>}}
3328 >>>>
3329
3330 \<vanilla mathltx\><<<
3331 \Configure{align}
3332 {\EndP\HCode{<mtable\Hnewline \mml:class="align">}}
3333 {\HCode{</mtable>}}
3334 {\HCode{<mtr>}} {\HCode{</mtr>}}
3335 {\HCode{<mtd>}} {\HCode{</mtd>}}
3336 >>>
3337
3338
3339
3340
3341
3342
3343
3344 % {\mathchar"0403} % \square
3345 % {\mathchar"0404} % \blacksquare
3346 % {\mathchar"0406} % \lozenge
3347 % {\mathchar"0407} % \blacklozenge
3348 % {\mathchar"0438} % \backprime
3349 % {\mathchar"0446} % \bigstar
3350 % {\mathchar"0448} % \blacktriangledown
3351 % {\mathchar"044E} % \blacktriangle
3352 % {\mathchar"044F} % \triangledown
3353 % {\mathchar"045D} % \measuredangle
3354 % {\mathchar"045E} % \sphericalangle
3355 % {\mathchar"0473} % \circledS
3356 % {\mathchar"047B} % \complement
3357 % {\mathchar"051E} % \diagup
3358 % {\mathchar"051F} % \diagdown
3359 % {\mathchar"053F} % \varnothing
3360 % {\mathchar"0540} % \nexists
3361 % {\mathchar"0560} % \Finv
3362 % {\mathchar"0561} % \Game
3363 % {\mathchar"0567} % \eth
3364 % {\mathchar"0569} % \beth
3365 % {\mathchar"056A} % \gimel
3366 % {\mathchar"056B} % \daleth
3367 % {\mathchar"057A} % \digamma
3368 % {\mathchar"057B} % \varkappa
3369 % {\mathchar"057C} % \Bbbk
3370 % {\mathchar"057D} % \hslash
3371
3372
3373 \<configure mathltx amssymb\><<<
3374 \def\:tempa#1"#2#3///{\Configure{MathClass}{#2}}
3375 \def\:temp#1{\:tempa#1///{}{}{}{#1}}
3376 \:temp{\mathchar"2400} |% \boxdot |%
3377 \:temp{\mathchar"2401} |% \boxplus |%
3378 \:temp{\mathchar"2402} |% \boxtimes |%
3379 \:temp{\mathchar"2405} |% \centerdot |%
3380 \:temp{\mathchar"240C} |% \boxminus |%
3381 \:temp{\mathchar"2459} |% \veebar |%
3382 \:temp{\mathchar"245A} |% \barwedge |%
3383 \:temp{\mathchar"245B} |% \doublebarwedge |%
3384 \:temp{\mathchar"2464} |% \Cup |%
3385 \:temp{\mathchar"2465} |% \Cap |%
3386 \:temp{\mathchar"2466} |% \curlywedge |%
3387 \:temp{\mathchar"2467} |% \curlyvee |%
3388 \:temp{\mathchar"2468} |% \leftthreetimes |%
3389 \:temp{\mathchar"2469} |% \rightthreetimes |%
3390 \:temp{\mathchar"2475} |% \dotplus |%
3391 \:temp{\mathchar"247C} |% \intercal |%
3392 \:temp{\mathchar"247D} |% \circledcirc |%
3393 \:temp{\mathchar"247E} |% \circledast |%
3394 \:temp{\mathchar"247F} |% \circleddash |%
3395 \:temp{\mathchar"253E} |% \divideontimes |%
3396 \:temp{\mathchar"256C} |% \lessdot |%
3397 \:temp{\mathchar"256D} |% \gtrdot |%
3398 \:temp{\mathchar"256E} |% \ltimes |%
3399 \:temp{\mathchar"256F} |% \rtimes |%
3400 \:temp{\mathchar"2572} |% \smallsetminus |%
3401 \:temp{\mathchar"3408} |% \circlearrowright |%
3402 \:temp{\mathchar"3409} |% \circlearrowleft |%
3403 \:temp{\mathchar"340A} |% \rightleftharpoons |%
3404 \:temp{\mathchar"340B} |% \leftrightharpoons |%
3405 \:temp{\mathchar"340D} |% \Vdash |%
3406 \:temp{\mathchar"340E} |% \Vvdash |%
3407 \:temp{\mathchar"340F} |% \vDash |%
3408 \:temp{\mathchar"3410} |% \twoheadrightarrow |%
3409 \:temp{\mathchar"3411} |% \twoheadleftarrow |%
3410 \:temp{\mathchar"3412} |% \leftleftarrows |%
3411 \:temp{\mathchar"3413} |% \rightrightarrows |%
3412 \:temp{\mathchar"3414} |% \upuparrows |%
3413 \:temp{\mathchar"3415} |% \downdownarrows |%
3414 \:temp{\mathchar"3416} |% \upharpoonright |%
3415 \:temp{\mathchar"3417} |% \downharpoonright |%
3416 \:temp{\mathchar"3418} |% \upharpoonleft |%
3417 \:temp{\mathchar"3419} |% \downharpoonleft |%
3418 \:temp{\mathchar"341A} |% \rightarrowtail |%
3419 \:temp{\mathchar"341B} |% \leftarrowtail |%
3420 \:temp{\mathchar"341C} |% \leftrightarrows |%
3421 \:temp{\mathchar"341D} |% \rightleftarrows |%
3422 \:temp{\mathchar"341E} |% \Lsh |%
3423 \:temp{\mathchar"341F} |% \Rsh |%
3424 \:temp{\mathchar"3420} |% \rightsquigarrow |%
3425 \:temp{\mathchar"3421} |% \leftrightsquigarrow |%
3426 \:temp{\mathchar"3422} |% \looparrowleft |%
3427 \:temp{\mathchar"3423} |% \looparrowright |%
3428 \:temp{\mathchar"3424} |% \circeq |%
3429 \:temp{\mathchar"3425} |% \succsim |%
3430 \:temp{\mathchar"3426} |% \gtrsim |%
3431 \:temp{\mathchar"3427} |% \gtrapprox |%
3432 \:temp{\mathchar"3428} |% \multimap |%
3433 \:temp{\mathchar"3429} |% \therefore |%
3434 \:temp{\mathchar"342A} |% \because |%
3435 \:temp{\mathchar"342B} |% \doteqdot |%
3436 \:temp{\mathchar"342C} |% \triangleq |%
3437 \:temp{\mathchar"342D} |% \precsim |%
3438 \:temp{\mathchar"342E} |% \lesssim |%
3439 \:temp{\mathchar"342F} |% \lessapprox |%
3440 \:temp{\mathchar"3430} |% \eqslantless |%
3441 \:temp{\mathchar"3431} |% \eqslantgtr |%
3442 \:temp{\mathchar"3432} |% \curlyeqprec |%
3443 \:temp{\mathchar"3433} |% \curlyeqsucc |%
3444 \:temp{\mathchar"3434} |% \preccurlyeq |%
3445 \:temp{\mathchar"3435} |% \leqq |%
3446 \:temp{\mathchar"3436} |% \leqslant |%
3447 \:temp{\mathchar"3437} |% \lessgtr |%
3448 \:temp{\mathchar"343A} |% \risingdotseq |%
3449 \:temp{\mathchar"343B} |% \fallingdotseq |%
3450 \:temp{\mathchar"343C} |% \succcurlyeq |%
3451 \:temp{\mathchar"343D} |% \geqq |%
3452 \:temp{\mathchar"343E} |% \geqslant |%
3453 \:temp{\mathchar"343F} |% \gtrless |%
3454 \:temp{\mathchar"3442} |% \vartriangleright |%
3455 \:temp{\mathchar"3443} |% \vartriangleleft |%
3456 \:temp{\mathchar"3444} |% \trianglerighteq |%
3457 \:temp{\mathchar"3445} |% \trianglelefteq |%
3458 \:temp{\mathchar"3447} |% \between |%
3459 \:temp{\mathchar"3449} |% \blacktriangleright |%
3460 \:temp{\mathchar"344A} |% \blacktriangleleft |%
3461 \:temp{\mathchar"344D} |% \vartriangle |%
3462 \:temp{\mathchar"3450} |% \eqcirc |%
3463 \:temp{\mathchar"3451} |% \lesseqgtr |%
3464 \:temp{\mathchar"3452} |% \gtreqless |%
3465 \:temp{\mathchar"3453} |% \lesseqqgtr |%
3466 \:temp{\mathchar"3454} |% \gtreqqless |%
3467 \:temp{\mathchar"3456} |% \Rrightarrow |%
3468 \:temp{\mathchar"3457} |% \Lleftarrow |%
3469 \:temp{\mathchar"345F} |% \varpropto |%
3470 \:temp{\mathchar"3460} |% \smallsmile |%
3471 \:temp{\mathchar"3461} |% \smallfrown |%
3472 \:temp{\mathchar"3462} |% \Subset |%
3473 \:temp{\mathchar"3463} |% \Supset |%
3474 \:temp{\mathchar"346A} |% \subseteqq |%
3475 \:temp{\mathchar"346B} |% \supseteqq |%
3476 \:temp{\mathchar"346C} |% \bumpeq |%
3477 \:temp{\mathchar"346D} |% \Bumpeq |%
3478 \:temp{\mathchar"346E} |% \lll |%
3479 \:temp{\mathchar"346F} |% \ggg |%
3480 \:temp{\mathchar"3474} |% \pitchfork |%
3481 \:temp{\mathchar"3476} |% \backsim |%
3482 \:temp{\mathchar"3477} |% \backsimeq |%
3483 \:temp{\mathchar"3500} |% \lvertneqq |%
3484 \:temp{\mathchar"3501} |% \gvertneqq |%
3485 \:temp{\mathchar"3502} |% \nleq |%
3486 \:temp{\mathchar"3503} |% \ngeq |%
3487 \:temp{\mathchar"3504} |% \nless |%
3488 \:temp{\mathchar"3505} |% \ngtr |%
3489 \:temp{\mathchar"3506} |% \nprec |%
3490 \:temp{\mathchar"3507} |% \nsucc |%
3491 \:temp{\mathchar"3508} |% \lneqq |%
3492 \:temp{\mathchar"3509} |% \gneqq |%
3493 \:temp{\mathchar"350A} |% \nleqslant |%
3494 \:temp{\mathchar"350B} |% \ngeqslant |%
3495 \:temp{\mathchar"350C} |% \lneq |%
3496 \:temp{\mathchar"350D} |% \gneq |%
3497 \:temp{\mathchar"350E} |% \npreceq |%
3498 \:temp{\mathchar"350F} |% \nsucceq |%
3499 \:temp{\mathchar"3510} |% \precnsim |%
3500 \:temp{\mathchar"3511} |% \succnsim |%
3501 \:temp{\mathchar"3512} |% \lnsim |%
3502 \:temp{\mathchar"3513} |% \gnsim |%
3503 \:temp{\mathchar"3514} |% \nleqq |%
3504 \:temp{\mathchar"3515} |% \ngeqq |%
3505 \:temp{\mathchar"3516} |% \precneqq |%
3506 \:temp{\mathchar"3517} |% \succneqq |%
3507 \:temp{\mathchar"3518} |% \precnapprox |%
3508 \:temp{\mathchar"3519} |% \succnapprox |%
3509 \:temp{\mathchar"351A} |% \lnapprox |%
3510 \:temp{\mathchar"351B} |% \gnapprox |%
3511 \:temp{\mathchar"351C} |% \nsim |%
3512 \:temp{\mathchar"351D} |% \ncong |%
3513 \:temp{\mathchar"3520} |% \varsubsetneq |%
3514 \:temp{\mathchar"3521} |% \varsupsetneq |%
3515 \:temp{\mathchar"3522} |% \nsubseteqq |%
3516 \:temp{\mathchar"3523} |% \nsupseteqq |%
3517 \:temp{\mathchar"3524} |% \subsetneqq |%
3518 \:temp{\mathchar"3525} |% \supsetneqq |%
3519 \:temp{\mathchar"3526} |% \varsubsetneqq |%
3520 \:temp{\mathchar"3527} |% \varsupsetneqq |%
3521 \:temp{\mathchar"3528} |% \subsetneq |%
3522 \:temp{\mathchar"3529} |% \supsetneq |%
3523 \:temp{\mathchar"352A} |% \nsubseteq |%
3524 \:temp{\mathchar"352B} |% \nsupseteq |%
3525 \:temp{\mathchar"352C} |% \nparallel |%
3526 \:temp{\mathchar"352D} |% \nmid |%
3527 \:temp{\mathchar"352E} |% \nshortmid |%
3528 \:temp{\mathchar"352F} |% \nshortparallel |%
3529 \:temp{\mathchar"3530} |% \nvdash |%
3530 \:temp{\mathchar"3531} |% \nVdash |%
3531 \:temp{\mathchar"3532} |% \nvDash |%
3532 \:temp{\mathchar"3533} |% \nVDash |%
3533 \:temp{\mathchar"3534} |% \ntrianglerighteq |%
3534 \:temp{\mathchar"3535} |% \ntrianglelefteq |%
3535 \:temp{\mathchar"3536} |% \ntriangleleft |%
3536 \:temp{\mathchar"3537} |% \ntriangleright |%
3537 \:temp{\mathchar"3538} |% \nleftarrow |%
3538 \:temp{\mathchar"3539} |% \nrightarrow |%
3539 \:temp{\mathchar"353A} |% \nLeftarrow |%
3540 \:temp{\mathchar"353B} |% \nRightarrow |%
3541 \:temp{\mathchar"353C} |% \nLeftrightarrow |%
3542 \:temp{\mathchar"353D} |% \nleftrightarrow |%
3543 \:temp{\mathchar"3568} |% \eqsim |%
3544 \:temp{\mathchar"3570} |% \shortmid |%
3545 \:temp{\mathchar"3571} |% \shortparallel |%
3546 \:temp{\mathchar"3573} |% \thicksim |%
3547 \:temp{\mathchar"3574} |% \thickapprox |%
3548 \:temp{\mathchar"3575} |% \approxeq |%
3549 \:temp{\mathchar"3576} |% \succapprox |%
3550 \:temp{\mathchar"3577} |% \precapprox |%
3551 \:temp{\mathchar"3578} |% \curvearrowleft |%
3552 \:temp{\mathchar"3579} |% \curvearrowright |%
3553 \:temp{\mathchar"357F} |% \backepsilon |%
3554 >>>>
3555
3556
3557
3558
3559 %%%%%%%%%%%%%%%%%%
3560 \chapter{Loose Ends}
3561 %%%%%%%%%%%%%%%%%%
3562
3563
3564 %%%%%%%%%%%%%%%%%%
3565 \section{Right-to-Left Babel}
3566 %%%%%%%%%%%%%%%%%%
3567
3568
3569
3570 \<rlbabel everypar\><<<
3571 \expandafter\ifx \csname o@everypar\endcsname\relax \else
3572 \expandafter\ifx \csname ht:everypar\endcsname\relax
3573 \let\ht:everypar\o@everypar
3574 \fi\fi
3575 >>>
3576
3577
3578
3579
3580
3581
3582 \<dir ltr/rtl\><<<
3583 dir="\if@rl rtl\else ltr\fi"
3584 >>>
3585
3586
3587 \<configure html-mltx rlbabel\><<<
3588 \Configure{moreL}
3589 {\ifmathltx |<ltr rlbabel mtext|>%
3590 \else
3591 \ifvmode \let\end:moreRL=\empty
3592 \else\HCode{<span dir="ltr" >}%
3593 \def\end:moreRL{\HCode{</span>}}%
3594 \fi
3595 \fi
3596 }
3597 {\end:moreRL}
3598 \Configure{moreR}
3599 {\ifmathltx |<rtl rlbabel mtext|>%
3600 \else
3601 \ifvmode \let\end:moreRL=\empty
3602 \else\HCode{<span dir="rtl" >}\def\end:moreRL{\HCode{</span>}}\fi
3603 \fi
3604 }
3605 {\end:moreRL}
3606 \Css{.rtl {direction: rtl}
3607 .ltr {direction: ltr} }
3608 >>>
3609
3610
3611
3612 \<ltr rlbabel mtext\><<<
3613 \ifmtext
3614 \leavevmode\special{t4ht@+</mtext><mtext{32}\mml:class="ltr">}x%
3615 \def\end:moreRL{\HCode{</mtext><mtext>}}%
3616 \else
3617 \let\end:moreRL=\empty
3618 \fi
3619 >>>
3620
3621
3622
3623 \<rtl rlbabel mtext\><<<
3624 \ifmtext
3625 \leavevmode\special{t4ht@+</mtext><mtext{32}\mml:class="rtl">}x%
3626 \def\end:moreRL{\HCode{</mtext><mtext>}}%
3627 \else
3628 \let\end:moreRL=\empty
3629 \fi
3630 >>>
3631
3632
3633 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3634 \section{openmath}
3635 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3636
3637
3638 \<itemitem 0.0\><<<
3639 \Configure{itemitem}{}{}{\par\leavevmode}{}
3640 >>>
3641
3642
3643
3644
3645 Used to have also a \verb'\special{t4ht@[}...\special{t4ht@]}',
3646 where the specials asked to igore the enclosed
3647 content. It is provided for getting `realistic' measurements in mathltx
3648 applets. a candidadte for delition.
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3659 \chapter{Shared}
3660 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3661 >>>
3662
3663
3664 \<par del\><<<
3665 !*?: >>>
3666
3667
3668 \<tag of Tag\><<<
3669 cw:>>>
3670
3671 \<tail\><<<
3672 tail>>>
3673
3674 \<addr for Tag and Ref of Sec\><<<
3675 \xdef\:cursec{|<section html addr|>}%
3676 >>>
3677
3678
3679 \<save catcodes\><<<
3680 \expandafter\edef\csname :RestoreCatcodes\endcsname{%
3681 \expandafter\ifx \csname :RestoreCatcodes\endcsname\relax\else
3682 \csname :RestoreCatcodes\endcsname \fi
3683 \catcode`\noexpand :|=\the\catcode`:%
3684 \let\expandafter\noexpand\csname :RestoreCatcodes\endcsname|=
3685 \noexpand\UnDefcS}
3686 \catcode`\:|=11
3687 >>>
3688
3689
3690
3691
3692
3693
3694 %%%%%%%%%%%%%%%%%%
3695 \section{Boxed}
3696 %%%%%%%%%%%%%%%%%%
3697
3698 \<configure html-mltx amsmath\><<<
3699 \Configure{boxed}
3700 {\ifmathltx \HCode{\string\boxed\l:brace}%
3701 \else \HCode{<span class="boxed">}\IgnorePar\fi}
3702 {\ifmathltx \HCode{\r:brace}%
3703 \else \HCode{</span>}\fi}
3704 \Css{.boxed{border: 1px solid black; padding-left:2px;
3705 padding-right:2px;}}
3706 >>>
3707
3708 %%%%%%%%%%%%%%%%%%
3709 \section{fontmath}
3710 %%%%%%%%%%%%%%%%%%
3711
3712
3713
3714
3715 \<fontmath mathord symbols as ?\><<<
3716 \mathchar"3230 |%\prime|%
3717 \mathchar"3231 |%\infty|%
3718 \mathchar"323B |%\emptyset|%
3719 \mathchar"323C |%\Re|%
3720 \mathchar"323D |%\Im|%
3721 \mathchar"3240 |%\aleph|%
3722 >>>
3723
3724 \<fontmath mathord symbols as op\><<<
3725 \mathchar"3234 |%\triangle|%
3726 \mathchar"3238 |%\forall|%
3727 \mathchar"3239 |%\exists|%
3728 \mathchar"323A |%\neg|%
3729 \mathchar"323E |%\top|%
3730 \mathchar"323F |%\bot|%
3731 \mathchar"3272 |%\nabla|%
3732 \mathchar"3278 |%\mathsection|%
3733 \mathchar"327B |%\mathparagraph|%
3734 \mathchar"327C |%\clubsuit|%
3735 \mathchar"327D |%\diamondsuit|%
3736 \mathchar"327E |%\heartsuit|%
3737 \mathchar"327F |%\spadesuit|%
3738 >>>
3739
3740
3741
3742 \subsection{1: Large Operators}
3743
3744 \begin{verbatim}
3745 \mathchardef\coprod="1360
3746 \mathchardef\bigvee="1357
3747 \mathchardef\bigwedge="1356
3748 \mathchardef\biguplus="1355
3749 \mathchardef\bigcap="1354
3750 \mathchardef\bigcup="1353
3751 \mathchardef\intop="1352 \def\int{\intop\nolimits}
3752 \mathchardef\prod="1351
3753 \mathchardef\sum="1350
3754 \mathchardef\bigotimes="134E
3755 \mathchardef\bigoplus="134C
3756 \mathchardef\bigodot="134A
3757 \mathchardef\ointop="1348 \def\oint{\ointop\nolimits}
3758 \mathchardef\bigsqcup="1346
3759 \mathchardef\smallint="1273
3760 \end{verbatim}
3761
3762 \<plain,fontmath math classes\><<<
3763 \Configure{MathClass}{1}{}{}{}{
3764 \mathchar"1360
3765 \mathchar"1357
3766 \mathchar"1356
3767 \mathchar"1355
3768 \mathchar"1354
3769 \mathchar"1353
3770 \mathchar"1352
3771 \mathchar"1351
3772 \mathchar"1350
3773 \mathchar"134E
3774 \mathchar"134C
3775 \mathchar"134A
3776 \mathchar"1348
3777 \mathchar"1346
3778 \mathchar"1273
3779 |<fontmath mathord symbols as op|>%
3780 }
3781 >>>
3782
3783 % \mathchar"230 |%math prime|%
3784
3785 A prime is typically placed on letters and digits.
3786
3787
3788 \subsection{2: Binary Operations}
3789
3790 \begin{verbatim}
3791 \mathchardef\triangleleft="212F
3792 \mathchardef\triangleright="212E
3793 \mathchardef\bigtriangleup="2234
3794 \mathchardef\bigtriangledown="2235
3795 \mathchardef\wedge="225E \let\land=\wedge
3796 \mathchardef\vee="225F \let\lor=\vee
3797 \mathchardef\cap="225C
3798 \mathchardef\cup="225B
3799 \mathchardef\ddagger="227A
3800 \mathchardef\dagger="2279
3801 \mathchardef\sqcap="2275
3802 \mathchardef\sqcup="2274
3803 \mathchardef\uplus="225D
3804 \mathchardef\amalg="2271
3805 \mathchardef\diamond="2205
3806 \mathchardef\bullet="220F
3807 \mathchardef\wr="226F
3808 \mathchardef\div="2204
3809 \mathchardef\odot="220C
3810 \mathchardef\oslash="220B
3811 \mathchardef\otimes="220A
3812 \mathchardef\ominus="2209
3813 \mathchardef\oplus="2208
3814 \mathchardef\mp="2207
3815 \mathchardef\pm="2206
3816 \mathchardef\circ="220E
3817 \mathchardef\bigcirc="220D
3818 \mathchardef\setminus="226E % for set difference A\setminus B
3819 \mathchardef\cdot="2201
3820 \mathchardef\ast="2203
3821 \mathchardef\times="2202
3822 \mathchardef\star="213F
3823 \mathcode`\*="2203 % \ast
3824 \mathcode`\+="202B
3825 \mathcode`\-="2200
3826 \end{verbatim}
3827
3828 \<plain,fontmath math classes\><<<
3829 \Configure{MathClass}{2}{}{}{}{
3830 *-+/
3831 \mathchar"212F
3832 \mathchar"212E
3833 \mathchar"2234
3834 \mathchar"2235
3835 \mathchar"225E
3836 \mathchar"225F
3837 \mathchar"225C
3838 \mathchar"225B
3839 \mathchar"227A
3840 \mathchar"2279
3841 \mathchar"2275
3842 \mathchar"2274
3843 \mathchar"225D
3844 \mathchar"2271
3845 \mathchar"2205
3846 \mathchar"220F
3847 \mathchar"226F
3848 \mathchar"2204
3849 \mathchar"220C
3850 \mathchar"220B
3851 \mathchar"220A
3852 \mathchar"2209
3853 \mathchar"2208
3854 \mathchar"2207
3855 \mathchar"2206
3856 \mathchar"220E
3857 \mathchar"220D
3858 \mathchar"226E
3859 \mathchar"2201
3860 \mathchar"2203
3861 \mathchar"2202
3862 \mathchar"213F
3863 }
3864 >>>
3865
3866
3867 \subsection{3: Relational Operations}
3868
3869 The catcode is needed because 303A is \verb':'.
3870
3871 \<plain,fontmath math classes\><<<
3872 \Configure{MathClass}{3}{}{}{}{
3873 \mathchar"3128
3874 \mathchar"3129
3875 \mathchar"312A
3876 \mathchar"312B
3877 \mathchar"315E
3878 \mathchar"315F
3879 \mathchar"3210
3880 \mathchar"3211
3881 \mathchar"3212
3882 \mathchar"3213
3883 \mathchar"3214
3884 \mathchar"3215
3885 \mathchar"3216
3886 \mathchar"3217
3887 \mathchar"3218
3888 \mathchar"3219
3889 \mathchar"321A
3890 \mathchar"321B
3891 \mathchar"321C
3892 \mathchar"321D
3893 \mathchar"321E
3894 \mathchar"321F
3895 \mathchar"3220
3896 \mathchar"3221
3897 \mathchar"3224
3898 \mathchar"3227
3899 \mathchar"3232
3900 \mathchar"3233
3901 \mathchar"3236
3902 \mathchar"3237
3903 \mathchar"323F
3904 :=><
3905 \mathchar"322F
3906 \mathchar"3276
3907 \mathchar"3277
3908 \mathchar"326B
3909 \mathchar"326A
3910 \mathchar"3261
3911 \mathchar"3260
3912 \mathchar"3225
3913 \mathchar"3226
3914 \mathchar"322D
3915 \mathchar"322E
3916 \mathchar"322C
3917 \mathchar"3228
3918 \mathchar"3229
3919 }
3920 >>>
3921
3922 % \mathchar"327C |%clubsuit|%
3923 % \mathchar"327D |%diamondsuit|%
3924 % \mathchar"327E |%heartsuit|%
3925 % \mathchar"327F |%spadesuit|%
3926
3927
3928
3929 % \mathchar"340A % rightleftharpoons
3930 % \mathchar"340B % leftrightharpoons
3931 %
3932
3933 \begin{verbatim}
3934 \mathcode`\>="313E
3935 \mathcode`\<="313C
3936 \mathcode`\=="303D
3937 \mathcode`\:="303A
3938 \mathchardef\leq="3214 \let\le=\leq
3939 \mathchardef\geq="3215 \let\ge=\geq
3940 \mathchardef\succ="321F
3941 \mathchardef\prec="321E
3942 \mathchardef\approx="3219
3943 \mathchardef\succeq="3217
3944 \mathchardef\preceq="3216
3945 \mathchardef\supset="321B
3946 \mathchardef\set="321A
3947 \mathchardef\supseteq="3213
3948 \mathchardef\seteq="3212
3949 \mathchardef\in="3232
3950 \mathchardef\ni="3233 \let\owns=\ni
3951 \mathchardef\gg="321D
3952 \mathchardef\ll="321C
3953 \mathchardef\not="3236
3954 \mathchardef\leftrightarrow="3224
3955 \mathchardef\leftarrow="3220 \let\gets=\leftarrow
3956 \mathchardef\rightarrow="3221 \let\to=\rightarrow
3957 \mathchardef\mapstochar="3237 \def\mapsto{\mapstochar\rightarrow}
3958 \mathchardef\sim="3218
3959 \mathchardef\simeq="3227
3960 \mathchardef\perp="323F
3961 \mathchardef\equiv="3211
3962 \mathchardef\asymp="3210
3963 \mathchardef\smile="315E
3964 \mathchardef\frown="315F
3965 \mathchardef\leftharpoonup="3128
3966 \mathchardef\leftharpoondown="3129
3967 \mathchardef\rightharpoonup="312A
3968 \mathchardef\rightharpoondown="312B
3969 \mathchardef\propto="322F
3970 \mathchardef\sqsubseteq="3276
3971 \mathchardef\sqsupseteq="3277
3972 \mathchardef\parallel="326B
3973 \mathchardef\mid="326A
3974 \mathchardef\dashv="3261
3975 \mathchardef\vdash="3260
3976 \mathchardef\nearrow="3225
3977 \mathchardef\searrow="3226
3978 \mathchardef\nwarrow="322D
3979 \mathchardef\swarrow="322E
3980 \mathchardef\Leftrightarrow="322C
3981 \mathchardef\Leftarrow="3228
3982 \mathchardef\Rightarrow="3229
3983 \end{verbatim}
3984
3985
3986 \subsection{4/5: Delimiters}
3987
3988 \begin{verbatim}
3989 \mathcode`\(="4028
3990 \mathcode`\)="5029
3991 \mathcode`\[="405B
3992 \mathcode`\]="505D
3993 \mathcode`\{="4266
3994 \mathcode`\}="5267
3995 \delcode`\(="028300
3996 \delcode`\)="029301
3997 \delcode`\[="05B302
3998 \delcode`\]="05D303
3999 \def\lmoustache{\delimiter"437A340 } % top from (, bottom from )
4000 \def\rmoustache{\delimiter"537B341 } % top from ), bottom from (
4001 \def\lgroup{\delimiter"462833A } % extensible ( with sharper tips
4002 \def\rgroup{\delimiter"562933B } % extensible ) with sharper tips
4003 \def\backslash{\delimiter"26E30F } % for double coset G\backslash H
4004 \def\rangle{\delimiter"526930B }
4005 \def\langle{\delimiter"426830A }
4006 \def\rbrace{\delimiter"5267309 } \let\}=\rbrace
4007 \def\lbrace{\delimiter"4266308 } \let\{=\lbrace
4008 \def\rceil{\delimiter"5265307 }
4009 \def\lceil{\delimiter"4264306 }
4010 \def\rfloor{\delimiter"5263305 }
4011 \def\lfloor{\delimiter"4262304 }
4012 \def\arrowvert{\delimiter"26A33C } % arrow without arrowheads
4013 \def\Arrowvert{\delimiter"26B33D } % double arrow without arrowheads
4014 \def\bracevert{\delimiter"77C33E } % the vertical bar that extends braces
4015 \def\Vert{\delimiter"26B30D } \let\|=\Vert How should these be treated?
4016 \def\vert{\delimiter"26A30C } " " " " "
4017 \def\uparrow{\delimiter"3222378 }
4018 \def\downarrow{\delimiter"3223379 }
4019 \def\updownarrow{\delimiter"326C33F }
4020 \def\Uparrow{\delimiter"322A37E }
4021 \def\Downarrow{\delimiter"322B37F }
4022 \def\Updownarrow{\delimiter"326D377 }
4023 \end{verbatim}
4024
4025 The comamnds \verb'\Configure{MathClass}{4}...'
4026 and \verb'\Configure{MathClass}{5}...'
4027 are for unmatched delimiters, and the comamnd
4028 \verb'\Configure{MathDelimiters}{(}{)}' is for matched ones.
4029
4030
4031 \<plain,fontmath math classes\><<<
4032 \Configure{MathClass}{4}{}{}{}{}
4033 \Configure{MathDelimiters}{(}{)}
4034 \Configure{MathDelimiters}{[}{]}
4035 \Configure{MathDelimiters}{\mathchar"4262}{\mathchar"5263}
4036 \Configure{MathDelimiters}{\mathchar"4264}{\mathchar"5265}
4037 \Configure{MathDelimiters}{\mathchar"4266}{\mathchar"5267}
4038 \Configure{MathDelimiters}{\mathchar"4268}{\mathchar"5269}
4039 \Configure{MathDelimiters}{\mathchar"4300}{\mathchar"5301}
4040 \Configure{MathDelimiters}{\mathchar"4302}{\mathchar"5303}
4041 \Configure{MathDelimiters}{\mathchar"4304}{\mathchar"5305}
4042 \Configure{MathDelimiters}{\mathchar"4306}{\mathchar"5307}
4043 \Configure{MathDelimiters}{\mathchar"4308}{\mathchar"5309}
4044 \Configure{MathDelimiters}{\mathchar"430A}{\mathchar"530B}
4045 >>>
4046
4047 \begin{verbatim}
4048 \mathcode`\?="503F
4049 \end{verbatim}
4050
4051
4052 \subsection{6: Punctuation Marks}
4053
4054 \begin{verbatim}
4055 \mathcode`\;="603B
4056 \mathcode`\,="613B
4057 \end{verbatim}
4058
4059 \<plain,fontmath math classes\><<<
4060 \Configure{MathClass}{6}{}{}{}{
4061 \mathchar"613A % ldot
4062 \mathchar"6201 % cdot
4063 \mathchar"603A % colon
4064 ?; ,
4065 }
4066 >>>
4067
4068
4069 \subsection{Questions}
4070
4071 \begin{verbatim}
4072
4073
4074 \delcode`\<="26830A
4075 \delcode`\>="26930B
4076 \delcode`\|="26A30C
4077 \delcode`\\="26E30F
4078
4079 % N.B. { and } should NOT get delcodes; otherwise parameter grouping fails!
4080
4081 \def\mathhexbox#1#2#3{\leavevmode
4082 \hbox{$\m@th \mathchar"#1#2#3$}}
4083 \def\dag{\mathhexbox279}
4084 \def\ddag{\mathhexbox27A}
4085 \def\S{\mathhexbox278}
4086 \def\P{\mathhexbox27B}
4087 \end{verbatim}
4088
4089
4090 \subsection{Type 4: Math Open}
4091
4092
4093 latex.ltx, fontmath.ltx, plain.tex
4094
4095
4096 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4097 \chapter{Notes}
4098 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4099
4100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4101 \chapter{To Do}
4102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4103
4104 \begin{itemize}
4105 \item Parametric commands as Superscripts or Subscripts:
4106 \verb+$E^\frac{1}{2}$+ (instead of \verb+$E^{\frac{1}{2}}$+).
4107
4108 \item
4109 Numbering is not right justified:
4110
4111 \begin{verbatim}
4112 \documentclass{amsart}
4113 \begin{document}
4114
4115 \begin{eqnarray}
4116 A &=& B + C
4117 \end{eqnarray}
4118
4119 \begin{align}
4120 A &= B + C \qquad & N &= G + F
4121 \end{align}
4122
4123 \begin{alignat}{2}
4124 A &= B + C \qquad \qquad & N & = G + F
4125 \end{alignat}
4126
4127 \begin{gather}
4128 A = B + C \tag{my equation} \\
4129 B = \text{variable unknown} \notag \\
4130 Y = \max X + \log 10
4131 \end{gather}
4132
4133 \end{document}
4134 \end{verbatim}
4135
4136
4137 \item
4138 \begin{verbatim}
4139 \begin{align}
4140 e &= a + b \\
4141 \intertext{this should be located on the left browser hand margin}
4142 a &= u
4143 \end{align}
4144
4145 \end{verbatim}
4146
4147 \end{itemize}
4148
4149 \endinput