| 1 |
% ooffice-mml.4ht (2025-04-06-00:00), generated from tex4ht-ooffice.tex |
| 2 |
% Copyright 2009-2025 TeX Users Group |
| 3 |
% Copyright 2001-2009 Maarten Wisse, James Naughton, Eitan M. Gurari |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3c of this license or (at your option) any |
| 8 |
% later version. The latest version of this license is in |
| 9 |
% https://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions |
| 11 |
% of LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status "maintained". |
| 14 |
% |
| 15 |
% The Current Maintainer of this work |
| 16 |
% is the TeX4ht Project <https://tug.org/tex4ht>. |
| 17 |
% |
| 18 |
% If you modify this program, changing the |
| 19 |
% version identification would be appreciated. |
| 20 |
\immediate\write-1{version 2025-04-06-00:00} |
| 21 |
|
| 22 |
\exit:ifnot{Preamble,% |
| 23 |
amsmath,% |
| 24 |
array,% |
| 25 |
latex,% |
| 26 |
mhchem,% |
| 27 |
rlbabel,% |
| 28 |
tex4ht} |
| 29 |
|
| 30 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 31 |
\ConfigureHinput{Preamble} |
| 32 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 33 |
\Configure{mathml}{} |
| 34 |
|
| 35 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 36 |
|
| 37 |
\endinput\empty\empty\empty\empty\empty\empty |
| 38 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 39 |
|
| 40 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 41 |
\ConfigureHinput{tex4ht} |
| 42 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 43 |
\Configure{math-xmlns} |
| 44 |
{ |
| 45 |
xmlns="http://www.w3.org/1998/Math/MathML"\Hnewline |
| 46 |
xmlns:xlink="http://www.w3.org/1999/xlink" |
| 47 |
} |
| 48 |
\HAssign\math:obj=0 |
| 49 |
\Configure{DviMath} |
| 50 |
{\a:DviMathML \mathmltrue |
| 51 |
\ifOption{mml-fonts}{}{\NoFonts}% |
| 52 |
\HCode{<!--l. \the\inputlineno-->% |
| 53 |
}\IgnoreRule |
| 54 |
\gHAdvance\math:obj by 1 |
| 55 |
\NextFile{\jobname-m\math:obj |
| 56 |
.4om}% |
| 57 |
\bgroup |
| 58 |
\HCode{\ifCenteredFrame |
| 59 |
<draw:frame |
| 60 |
draw:style-name="mml-display" |
| 61 |
draw:name="mobj-\math:obj"\Hnewline |
| 62 |
\ifTab\else text:anchor-type="paragraph" \fi |
| 63 |
draw:z-index="0" |
| 64 |
>% |
| 65 |
<draw:object\Hnewline |
| 66 |
xlink:href="./\jobname-m\math:obj |
| 67 |
"\Hnewline |
| 68 |
xlink:type="simple" |
| 69 |
xlink:show="embed" |
| 70 |
xlink:actuate="onLoad" |
| 71 |
/>% |
| 72 |
</draw:frame>% |
| 73 |
\else |
| 74 |
<draw:frame |
| 75 |
draw:style-name="mml-inline" |
| 76 |
draw:name="mobj-\math:obj"\Hnewline |
| 77 |
text:anchor-type="as-char" |
| 78 |
draw:z-index="0" |
| 79 |
>% |
| 80 |
<draw:object\Hnewline |
| 81 |
xlink:href="./\jobname-m\math:obj |
| 82 |
"\Hnewline |
| 83 |
xlink:type="simple" |
| 84 |
xlink:show="embed" |
| 85 |
xlink:actuate="onLoad" |
| 86 |
/>% |
| 87 |
</draw:frame>% |
| 88 |
\fi |
| 89 |
}% |
| 90 |
\OOmanifest{<manifest:file-entry |
| 91 |
manifest:media-type="text/xml" |
| 92 |
manifest:full-path="\jobname-m\math:obj |
| 93 |
/content.xml"/>\Hnewline |
| 94 |
<manifest:file-entry |
| 95 |
manifest:media-type="text/xml" |
| 96 |
manifest:full-path="\jobname-m\math:obj |
| 97 |
/settings.xml"/>\Hnewline |
| 98 |
<manifest:file-entry |
| 99 |
manifest:media-type="application/vnd.oasis.opendocument.formula" |
| 100 |
manifest:full-path="\jobname-m\math:obj |
| 101 |
/"/> |
| 102 |
}% |
| 103 |
\ht:special{t4ht@(}% For some strange reason, spurious space is produced |
| 104 |
% for inline math. We use TeX4ht specials to remove it. |
| 105 |
\Configure{DOCTYPE}{\HCode{<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">}}% |
| 106 |
\:CheckOption{-xtpipes} \if:Option |
| 107 |
\Log:Note{Use the `-xtpipes' command line option to |
| 108 |
avoid xtpipes post processing} |
| 109 |
\else |
| 110 |
\Configure{DOCTYPE}{%% |
| 111 |
\HCode{<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">\Hnewline |
| 112 |
<?xtpipes file="oo-math.4xt" ?>\Hnewline |
| 113 |
<!-- \jobname-m\math:obj |
| 114 |
\space |
| 115 |
by TeX4ht from \jobname.tex line \the\inputlineno\space |
| 116 |
2025-04-06-00:00\Hnewline |
| 117 |
(http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) |
| 118 |
-->\Hnewline |
| 119 |
}% |
| 120 |
}% |
| 121 |
\fi |
| 122 |
% |
| 123 |
\Configure{HTML}{}{\noindent}% |
| 124 |
\Configure{BODY}{}{}% |
| 125 |
\ht:special{t4ht@)}% |
| 126 |
% |
| 127 |
\edef\sv:ignore{\if:nopar |
| 128 |
\noexpand\IgnorePar\else \noexpand\ShowPar\fi}% |
| 129 |
\IgnorePar |
| 130 |
\HPage{}% |
| 131 |
\Tg<\a:mathml math\Hnewline |
| 132 |
\csname a:math-xmlns\endcsname \Hnewline |
| 133 |
>\a:math |
| 134 |
} |
| 135 |
{\Tg</\a:mathml math>% |
| 136 |
\EndHPage{}\sv:ignore |
| 137 |
\egroup |
| 138 |
\EndIgnoreRule |
| 139 |
\ifOption{mml-fonts}{}{\EndNoFonts}% |
| 140 |
\mathmlfalse \b:DviMathML } |
| 141 |
\Configure{$$} |
| 142 |
{\Configure{@math}{% \a:mathml display="block" |
| 143 |
}\IgnorePar |
| 144 |
\ifvmode\EndP |
| 145 |
\else\EndP \HCode{<!--tex4ht:inline-->}\fi |
| 146 |
\HCode{<text:p text:style-name="display-math">}% |
| 147 |
\CenteredFrametrue \DviMath \CenteredFramefalse } |
| 148 |
{\EndDviMath |
| 149 |
\HCode{</text:p>} |
| 150 |
\ShowPar\par |
| 151 |
{\csname HCondtrue\endcsname\noindent}} |
| 152 |
{\DisplayMathtrue} |
| 153 |
|
| 154 |
\Configure{halignTD} {}{} |
| 155 |
{<}{\ifmathml \HCode{ columnalign="left"}\else |
| 156 |
L\fi} |
| 157 |
{-}{\ifmathml \HCode{ columnalign="center"}\else |
| 158 |
C\fi} |
| 159 |
{>}{\ifmathml \HCode{ columnalign="right"}\else |
| 160 |
R\fi} |
| 161 |
{^}{\ifmathml \HCode{ rowalign="top"}\else |
| 162 |
T\fi} |
| 163 |
{=}{\ifmathml \HCode{ rowalign="baseline"}\else |
| 164 |
N\fi} |
| 165 |
{|}{\ifmathml \HCode{ rowalign="center"}\else |
| 166 |
M\fi} |
| 167 |
{_}{\ifmathml \HCode{ rowalign="bottom"}\else |
| 168 |
B\fi} |
| 169 |
{p}{\ifmathml \HCode{ columnalign="left"}\else |
| 170 |
L\fi} % this used to be empty, but it could lead to XML errors - https://tex.stackexchange.com/q/707918/2891 |
| 171 |
{m}{\ifmathml\else m\fi} %{\HCode{valign-middle align-left}} |
| 172 |
{b}{\ifmathml\else n\fi} %{\HCode{valign-baseline align-left}} |
| 173 |
{} |
| 174 |
\NewConfigureOO{display-math} |
| 175 |
\ConfigureOO{display-math} |
| 176 |
{<style:style style:name="display-math" |
| 177 |
style:family="paragraph" |
| 178 |
style:parent-style-name="Text-body">\Hnewline |
| 179 |
<style:paragraph-properties |
| 180 |
fo:text-align="center" |
| 181 |
style:auto-text-indent="false" |
| 182 |
style:justify-single-word="false"/>\Hnewline |
| 183 |
</style:style>\Hnewline} |
| 184 |
|
| 185 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 186 |
|
| 187 |
\endinput\empty\empty\empty\empty\empty\empty |
| 188 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 195 |
\ConfigureHinput{latex} |
| 196 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 197 |
\OOstyles{\Hnewline |
| 198 |
<style:style style:name="mml-inline" |
| 199 |
style:family="graphic" |
| 200 |
style:parent-style-name="Formula" |
| 201 |
>\Hnewline |
| 202 |
<style:graphic-properties |
| 203 |
style:vertical-pos="middle" |
| 204 |
style:vertical-rel="text"/>\Hnewline |
| 205 |
</style:style>\Hnewline} |
| 206 |
\OOstyles{\Hnewline |
| 207 |
<style:style style:name="mml-display" |
| 208 |
style:family="graphic" |
| 209 |
style:parent-style-name="Formula"> |
| 210 |
<style:graphic-properties |
| 211 |
style:wrap="none" |
| 212 |
% style:vertical-pos="center" |
| 213 |
% style:vertical-rel="paragraph-content" |
| 214 |
style:horizontal-pos="center" |
| 215 |
style:horizontal-rel="paragraph-content" |
| 216 |
fo:background-color="transparent" |
| 217 |
style:background-transparency="100\prcnt:ch" |
| 218 |
fo:margin-left="5\prcnt:ch" |
| 219 |
> |
| 220 |
</style:graphic-properties> |
| 221 |
</style:style>\Hnewline |
| 222 |
} |
| 223 |
|
| 224 |
\OOstyles{\Hnewline |
| 225 |
<style:style style:name="Formula" |
| 226 |
style:family="graphic"> |
| 227 |
<style:graphic-properties |
| 228 |
text:anchor-type="as-char" |
| 229 |
svg:y="0in" |
| 230 |
fo:margin-left="0.1mm" |
| 231 |
fo:margin-right="0.1mm" |
| 232 |
style:vertical-pos="middle" |
| 233 |
style:vertical-rel="text" |
| 234 |
/> |
| 235 |
</style:style>\Hnewline |
| 236 |
} |
| 237 |
\let\:VBorder=\empty |
| 238 |
\let\:AllColBars=\empty |
| 239 |
\let\AllColMargins=\empty |
| 240 |
|
| 241 |
\Configure{VBorder} |
| 242 |
{\HAssign\NewGroup = 0 |
| 243 |
\gHAdvance\Next:TableNo by 1 |
| 244 |
\global\let\TableNo=\Next:TableNo |
| 245 |
% |
| 246 |
\let\:VBorder=\empty |
| 247 |
\let\:AllColBars=\empty |
| 248 |
\let\AllColMargins=\empty |
| 249 |
% |
| 250 |
} |
| 251 |
{\xdef\:VBorder{\:VBorder |
| 252 |
\ifnum \NewGroup> 0 |
| 253 |
<!--/table:table-column-group-->\remove:eog <</ >>\fi}% |
| 254 |
\xdef\:AllColBars{\:AllColBars |
| 255 |
\ifx\:AllColBars\empty \else ,\fi \ar:cnt}% |
| 256 |
\HAssign\NewGroup = 0 } |
| 257 |
{\Advance:\NewGroup by 1 |
| 258 |
\ifnum \NewGroup=1 \xdef\:VBorder{\:VBorder |
| 259 |
<!--table:table-column-group ???="TBL-\TableNo-\ar:cnt g"-->}% |
| 260 |
\fi |
| 261 |
\xdef\:VBorder{\:VBorder<table:table-column\Hnewline |
| 262 |
\csname a:table-column-style\endcsname\Hnewline |
| 263 |
/>}% |
| 264 |
% |
| 265 |
\xdef\AllColMargins{\AllColMargins 1}% |
| 266 |
% |
| 267 |
} |
| 268 |
{\xdef\AllColMargins{\AllColMargins 0}% |
| 269 |
} |
| 270 |
\let\AllColMargins\empty |
| 271 |
\ConfigureEnv{array} |
| 272 |
{\PushStack\Col:Marg\AllColMargins |
| 273 |
\bgroup\Configure{$}{}{}{}} |
| 274 |
{\egroup \PopStack\Col:Marg\AllColMargins} |
| 275 |
{}{} |
| 276 |
\Configure{HBorder} |
| 277 |
{\ifmathml <\a:mathml mtr\Hnewline class="hline"> |
| 278 |
\else <table:table-row \Hnewline table:style-name="hline-row">% |
| 279 |
\fi} |
| 280 |
{\ifmathml <\a:mathml mtd><\a:mathml mo> \string&\#x0332; </\a:mathml mo></\a:mathml mtd> |
| 281 |
|
| 282 |
\else <table:table-cell table:style-name="hline-cell" >% |
| 283 |
<text:p text:style-name="hline-p-hr" />% |
| 284 |
</table:table-cell>\Hnewline |
| 285 |
\fi} |
| 286 |
{\ifmathml </\a:mathml mtr> |
| 287 |
\else </table:table-row>\Hnewline |
| 288 |
\fi} |
| 289 |
% |
| 290 |
{\ifmathml <\a:mathml mtr\Hnewline class="cline"> |
| 291 |
\else <table:table-row \Hnewline table:style-name="cline-row">\Hnewline |
| 292 |
\fi} |
| 293 |
{\ifmathml <\a:mathml mtd></\a:mathml mtd> |
| 294 |
\else <table:table-cell table:style-name="cline-cell">% |
| 295 |
<text:p text:style-name="cline-p" />% |
| 296 |
</table:table-cell>\Hnewline |
| 297 |
\fi } |
| 298 |
{\ifmathml <\a:mathml mtd><\a:mathml mo> \string&\#x0332; </\a:mathml mo></\a:mathml mtd> |
| 299 |
|
| 300 |
\else <table:table-cell table:style-name="cline-cell">% |
| 301 |
<text:p text:style-name="cline-p-hr" />% |
| 302 |
</table:table-cell>\Hnewline |
| 303 |
\fi} |
| 304 |
{\ifmathml </\a:mathml mtr> |
| 305 |
\else </table:table-row>\Hnewline |
| 306 |
\fi} |
| 307 |
% |
| 308 |
{\ifmathml <\a:mathml mtr\Hnewline class="vspace" style="font-size:\HBorderspace"> |
| 309 |
\else <tr\Hnewline class="vspace" style="font-size:\HBorderspace">% |
| 310 |
\fi} |
| 311 |
{\ifmathml <\a:mathml mtd\Hnewline></\a:mathml mtd> |
| 312 |
\else <td\Hnewline>\string&\csname :sharp\endcsname xA0;</td>% |
| 313 |
\fi} |
| 314 |
{\ifmathml </\a:mathml mtr> |
| 315 |
\else </tr>% |
| 316 |
\fi} |
| 317 |
% |
| 318 |
\:CheckOption{tab-eq}\if:Option |
| 319 |
\Configure{equation} |
| 320 |
{\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi |
| 321 |
\EndP \HCode{<text:p text:style-name="equ-p-tab"><text:tab/>}% |
| 322 |
\Tabtrue |
| 323 |
\Configure{$$} |
| 324 |
{\Configure{@math}{}\IgnorePar\EndP |
| 325 |
\CenteredFrametrue \DviMath \CenteredFramefalse } |
| 326 |
{\EndDviMath\EndP}{}% |
| 327 |
% |
| 328 |
\IgnorePar} |
| 329 |
{\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{<text:tab/>}} |
| 330 |
{\HCode{</text:p>}\ShowPar\par{\HCondtrue\noindent}% |
| 331 |
% |
| 332 |
} |
| 333 |
\OOstyles{% |
| 334 |
<style:style |
| 335 |
style:name="equ-p-tab" |
| 336 |
style:family="paragraph" |
| 337 |
style:parent-style-name="Standard">\Hnewline |
| 338 |
<style:paragraph-properties |
| 339 |
fo:text-align="center" |
| 340 |
style:justify-single-word="false">\Hnewline |
| 341 |
<style:tab-stops> |
| 342 |
<style:tab-stop |
| 343 |
style:position="7.5cm" |
| 344 |
style:type="center"/> |
| 345 |
<style:tab-stop |
| 346 |
style:position="17cm" |
| 347 |
style:type="right"/> |
| 348 |
</style:tab-stops>\Hnewline |
| 349 |
</style:paragraph-properties> |
| 350 |
</style:style>\Hnewline |
| 351 |
} |
| 352 |
|
| 353 |
\else |
| 354 |
\Log:Note{for tab-based layoutof equation environment |
| 355 |
use the command line option `tab-eq'} |
| 356 |
\Configure{equation} |
| 357 |
{\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi |
| 358 |
\EndP \HCode{<table:table table:style-name="equation">% |
| 359 |
<table:table-column table:style-name="equ-col" />\Hnewline |
| 360 |
<table:table-column table:style-name="equ-num-col" />\Hnewline |
| 361 |
<table:table-row>% |
| 362 |
<table:table-cell table:style-name="equ-cell">% |
| 363 |
<text:p text:style-name="equ-p">}% |
| 364 |
% |
| 365 |
\Configure{$$} |
| 366 |
{\Configure{@math}{}\IgnorePar\EndP |
| 367 |
\CenteredFrametrue \DviMath \CenteredFramefalse } |
| 368 |
{\EndDviMath\EndP}{}% |
| 369 |
% |
| 370 |
\IgnorePar} |
| 371 |
{\ifvmode \IgnorePar\fi\EndP |
| 372 |
\HCode{</text:p></table:table-cell>\Hnewline |
| 373 |
<table:table-cell table:style-name="equ-num-cell">% |
| 374 |
<text:p text:style-name="equ-num-p">}% |
| 375 |
} |
| 376 |
{\HCode{</text:p></table:table-cell>\Hnewline |
| 377 |
</table:table-row></table:table>}% |
| 378 |
\ShowPar\par{\HCondtrue\noindent}% |
| 379 |
% |
| 380 |
} |
| 381 |
|
| 382 |
\fi |
| 383 |
\OOstyles{% |
| 384 |
<style:style |
| 385 |
style:name="equ-p" |
| 386 |
style:family="paragraph" |
| 387 |
style:parent-style-name="Standard">\Hnewline |
| 388 |
<style:paragraph-properties |
| 389 |
fo:text-align="center" |
| 390 |
style:justify-single-word="false"/>\Hnewline |
| 391 |
</style:style>\Hnewline |
| 392 |
} |
| 393 |
\OOstyles{% |
| 394 |
<style:style |
| 395 |
style:name="equ-num-p" |
| 396 |
style:family="paragraph" |
| 397 |
style:parent-style-name="Standard">\Hnewline |
| 398 |
<style:paragraph-properties |
| 399 |
fo:text-align="end" |
| 400 |
style:justify-single-word="false"/>\Hnewline |
| 401 |
</style:style>\Hnewline |
| 402 |
} |
| 403 |
\OOstyles{% |
| 404 |
<style:style style:name="equation" |
| 405 |
style:family="table">\Hnewline |
| 406 |
<\style:tableproperties |
| 407 |
style:rel-width="88\prcnt:ch" |
| 408 |
fo:margin-left="1cm" |
| 409 |
fo:margin-right="0cm" |
| 410 |
fo:margin-top="0.3cm" |
| 411 |
fo:margin-bottom="0.3cm" |
| 412 |
table:align="margins"/>\Hnewline |
| 413 |
</style:style>\Hnewline |
| 414 |
} |
| 415 |
\Configure{[]} |
| 416 |
{\Configure{@math}{% \a:mathml display="block" |
| 417 |
}\IgnorePar |
| 418 |
\ifvmode\EndP |
| 419 |
\else\EndP \HCode{<!--tex4ht:inline-->}\fi |
| 420 |
\HCode{<text:p text:style-name="display-math">}% |
| 421 |
\CenteredFrametrue \DviMath \CenteredFramefalse |
| 422 |
$$\DisplayMathtrue} |
| 423 |
{$$\EndDviMath\HCode{</text:p>}\ShowPar\par |
| 424 |
{\csname HCondtrue\endcsname\noindent}} |
| 425 |
{} |
| 426 |
\Configure{newline} |
| 427 |
{\ifmtext \ht:special{t4ht@,}% |
| 428 |
\HCode{</\a:mathml mtext><\a:mathml |
| 429 |
mtext class="newline">}% |
| 430 |
\ht:special{t4ht@,&\#x00A0;}% |
| 431 |
% |
| 432 |
\else \HCode{<text:line-break\Hnewline/>}\fi} |
| 433 |
\def\:nbsp{\ifmtext \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x% |
| 434 |
\else\ifmathml |
| 435 |
\Tg<\a:mathml mspace />\else \ht:special{t4ht@+\string&{35}x00A0{59}}x% |
| 436 |
\fi\fi} |
| 437 |
\Configure{overline} |
| 438 |
{\bgroup\ifmathml \HCode{<\a:mathml mover accent="false"\Hnewline |
| 439 |
\mml:class="mml-overline"><\a:mathml mrow>}% |
| 440 |
\else |
| 441 |
\HCode{<text:span text:style-name="overline" >}\fi} |
| 442 |
{\ifmathml \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline |
| 443 |
accent="true">&\#x00AF;</\a:mathml mo>% |
| 444 |
</\a:mathml mover>}% |
| 445 |
\else \HCode{</text:span>}\fi\egroup} |
| 446 |
\Configure{underline} |
| 447 |
{\bgroup |
| 448 |
\ifmathml \HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline |
| 449 |
\mml:class="mml-underline"><\a:mathml mrow>}% |
| 450 |
% |
| 451 |
\else \expandafter\everymath |
| 452 |
\expandafter{\expandafter\everymath |
| 453 |
\expandafter{\the\everymath}}% |
| 454 |
\let\o::@underline:\o:@@underline: |
| 455 |
\def\o:@@underline:{\let\o:@@underline:\o::@underline:}% |
| 456 |
\HCode{<text:span text:style-name="underline" >}\fi} |
| 457 |
{\ifmathml \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline |
| 458 |
accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% |
| 459 |
\else \HCode{</text:span>}\fi \egroup} |
| 460 |
|
| 461 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 462 |
|
| 463 |
\endinput\empty\empty\empty\empty\empty\empty |
| 464 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 493 |
\ConfigureHinput{amsmath} |
| 494 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 495 |
\def\eq:mathopen#1{\ifx\relax#1\relax\else\a:mathopen\fi\o:mathopen:{#1}} |
| 496 |
|
| 497 |
\:CheckOption{tab-eq}\if:Option |
| 498 |
\Configure{equation} |
| 499 |
{\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi |
| 500 |
\EndP \HCode{<text:p text:style-name="equ-p-tab"><text:tab/>}% |
| 501 |
\Tabtrue |
| 502 |
\Configure{gather} |
| 503 |
{\HCode{<\a:mathml mtable\Hnewline |
| 504 |
class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar |
| 505 |
} |
| 506 |
{\HCode{</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}} |
| 507 |
{} |
| 508 |
{} |
| 509 |
{\ifnum\HCol=2 \IgnorePar |
| 510 |
\HCode{</\a:mathml mtd><\a:mathml mtd>}\fi } |
| 511 |
{}% |
| 512 |
% |
| 513 |
\let\mathopen\eq:mathopen% |
| 514 |
% |
| 515 |
\IgnorePar} |
| 516 |
{\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{<text:tab/>}} |
| 517 |
{\HCode{</text:p>}\ShowPar\par{\HCondtrue\noindent}% |
| 518 |
% |
| 519 |
} |
| 520 |
|
| 521 |
\else |
| 522 |
\Log:Note{for tab-based layout of equation environment |
| 523 |
use the command line option `tab-eq'} |
| 524 |
\Configure{equation} |
| 525 |
{\ifvmode \IgnorePar\fi\EndP |
| 526 |
\HCode{<table:table table:style-name="equation">% |
| 527 |
<table:table-column table:style-name="equ-col" />\Hnewline |
| 528 |
<table:table-column table:style-name="equ-num-col" />\Hnewline |
| 529 |
<table:table-row>% |
| 530 |
<table:table-cell table:style-name="equ-cell">% |
| 531 |
<text:p text:style-name="equ-p">}% |
| 532 |
% |
| 533 |
\Configure{gather} |
| 534 |
{\HCode{<\a:mathml mtable\Hnewline |
| 535 |
class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar |
| 536 |
} |
| 537 |
{\HCode{</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}} |
| 538 |
{} |
| 539 |
{} |
| 540 |
{\ifnum\HCol=2 \IgnorePar |
| 541 |
\HCode{</\a:mathml mtd><\a:mathml mtd>}\fi } |
| 542 |
{}% |
| 543 |
% |
| 544 |
\Configure{$$} |
| 545 |
{\Configure{@math}{}\IgnorePar\EndP |
| 546 |
\CenteredFrametrue \DviMath \CenteredFramefalse } |
| 547 |
{\EndDviMath\EndP}{}% |
| 548 |
% |
| 549 |
\let\mathopen\eq:mathopen% |
| 550 |
% |
| 551 |
} |
| 552 |
{\ifvmode \IgnorePar\fi\EndP \HCode{</text:p></table:table-cell>\Hnewline |
| 553 |
<table:table-cell table:style-name="equ-num-cell">% |
| 554 |
<text:p text:style-name="equ-num-p">}% |
| 555 |
} |
| 556 |
{\ifvmode \IgnorePar\fi\EndP \HCode{</text:p></table:table-cell>\Hnewline |
| 557 |
</table:table-row></table:table>}% |
| 558 |
% |
| 559 |
\ShowPar\par{\HCondtrue\noindent}% |
| 560 |
} |
| 561 |
|
| 562 |
\fi |
| 563 |
\Configure{equation*} |
| 564 |
{\ifvmode \IgnorePar\fi \EndP |
| 565 |
\HCode{<text:p text:style-name="display-math">}% |
| 566 |
% |
| 567 |
\Configure{$$} |
| 568 |
{\Configure{@math}{}\IgnorePar\EndP |
| 569 |
\CenteredFrametrue \DviMath \CenteredFramefalse } |
| 570 |
{\EndDviMath\EndP}{}% |
| 571 |
% |
| 572 |
\IgnorePar |
| 573 |
} |
| 574 |
{\ifvmode \IgnorePar\fi\EndP |
| 575 |
\HCode{</text:p>}% |
| 576 |
% |
| 577 |
\IgnoreIndent\par} |
| 578 |
\ConfigureEnv{align} |
| 579 |
{\ifmathml\else |
| 580 |
\ifvmode \IgnorePar\fi \EndP |
| 581 |
\IgnorePar |
| 582 |
\HCode{<text:p text:style-name="display-math">}% |
| 583 |
\fi |
| 584 |
} |
| 585 |
{\ifmathml\else |
| 586 |
\ifvmode \IgnorePar\fi\EndP |
| 587 |
\HCode{</text:p>}% |
| 588 |
\IgnoreIndent\par |
| 589 |
\fi |
| 590 |
} |
| 591 |
{} {} |
| 592 |
\ConfigureEnv{align*} |
| 593 |
{\ifmathml\else |
| 594 |
\ifvmode \IgnorePar\fi \EndP |
| 595 |
\IgnorePar |
| 596 |
\HCode{<text:p text:style-name="display-math">}% |
| 597 |
\fi |
| 598 |
} |
| 599 |
{\ifmathml\else |
| 600 |
\ifvmode \IgnorePar\fi\EndP |
| 601 |
\HCode{</text:p>}% |
| 602 |
\IgnoreIndent\par |
| 603 |
\fi |
| 604 |
} |
| 605 |
{} {} |
| 606 |
|
| 607 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 608 |
|
| 609 |
\endinput\empty\empty\empty\empty\empty\empty |
| 610 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 611 |
|
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
|
| 644 |
|
| 645 |
|
| 646 |
|
| 647 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 648 |
\ConfigureHinput{array} |
| 649 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 650 |
\let\:VBorder=\empty |
| 651 |
\let\:AllColBars=\empty |
| 652 |
\let\AllColMargins=\empty |
| 653 |
|
| 654 |
\Configure{VBorder} |
| 655 |
{\HAssign\NewGroup = 0 |
| 656 |
\gHAdvance\Next:TableNo by 1 |
| 657 |
\global\let\TableNo=\Next:TableNo |
| 658 |
% |
| 659 |
\let\:VBorder=\empty |
| 660 |
\let\:AllColBars=\empty |
| 661 |
\let\AllColMargins=\empty |
| 662 |
% |
| 663 |
} |
| 664 |
{\xdef\:VBorder{\:VBorder |
| 665 |
\ifnum \NewGroup> 0 |
| 666 |
<!--/table:table-column-group-->\remove:eog <</ >>\fi}% |
| 667 |
\xdef\:AllColBars{\:AllColBars |
| 668 |
\ifx\:AllColBars\empty \else ,\fi \ar:cnt}% |
| 669 |
\HAssign\NewGroup = 0 } |
| 670 |
{\Advance:\NewGroup by 1 |
| 671 |
\ifnum \NewGroup=1 \xdef\:VBorder{\:VBorder |
| 672 |
<!--table:table-column-group ???="TBL-\TableNo-\ar:cnt g"-->}% |
| 673 |
\fi |
| 674 |
\xdef\:VBorder{\:VBorder<table:table-column\Hnewline |
| 675 |
\csname a:table-column-style\endcsname\Hnewline |
| 676 |
/>}% |
| 677 |
% |
| 678 |
\xdef\AllColMargins{\AllColMargins 1}% |
| 679 |
% |
| 680 |
} |
| 681 |
{\xdef\AllColMargins{\AllColMargins 0}% |
| 682 |
} |
| 683 |
\ConfigureEnv{array} |
| 684 |
{\PushStack\Col:Marg\AllColMargins |
| 685 |
\bgroup\Configure{$}{}{}{}} |
| 686 |
{\egroup \PopStack\Col:Marg\AllColMargins} |
| 687 |
{}{} |
| 688 |
|
| 689 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 690 |
|
| 691 |
\endinput\empty\empty\empty\empty\empty\empty |
| 692 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 693 |
|
| 694 |
|
| 695 |
|
| 696 |
|
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
|
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
|
| 711 |
|
| 712 |
|
| 713 |
|
| 714 |
|
| 715 |
|
| 716 |
|
| 717 |
|
| 718 |
|
| 719 |
|
| 720 |
|
| 721 |
|
| 722 |
|
| 723 |
|
| 724 |
|
| 725 |
|
| 726 |
|
| 727 |
|
| 728 |
|
| 729 |
|
| 730 |
|
| 731 |
|
| 732 |
|
| 733 |
|
| 734 |
|
| 735 |
|
| 736 |
|
| 737 |
|
| 738 |
|
| 739 |
|
| 740 |
|
| 741 |
|
| 742 |
|
| 743 |
|
| 744 |
|
| 745 |
|
| 746 |
|
| 747 |
|
| 748 |
|
| 749 |
|
| 750 |
|
| 751 |
|
| 752 |
|
| 753 |
|
| 754 |
|
| 755 |
|
| 756 |
|
| 757 |
|
| 758 |
|
| 759 |
|
| 760 |
|
| 761 |
|
| 762 |
|
| 763 |
|
| 764 |
|
| 765 |
|
| 766 |
|
| 767 |
|
| 768 |
|
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
|
| 775 |
|
| 776 |
|
| 777 |
|
| 778 |
|
| 779 |
|
| 780 |
|
| 781 |
|
| 782 |
|
| 783 |
|
| 784 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 785 |
\ConfigureHinput{rlbabel} |
| 786 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 787 |
\Configure{[]} |
| 788 |
{\Configure{@math}{% \a:mathml display="block" |
| 789 |
}\IgnorePar |
| 790 |
\ifvmode\EndP |
| 791 |
\else\EndP \HCode{<!--tex4ht:inline-->}\fi |
| 792 |
\HCode{<text:p text:style-name="display-math">}% |
| 793 |
\CenteredFrametrue \DviMath \CenteredFramefalse |
| 794 |
$$\DisplayMathtrue} |
| 795 |
{$$\EndDviMath\HCode{</text:p>}\ShowPar\par |
| 796 |
{\csname HCondtrue\endcsname\noindent}} |
| 797 |
{} |
| 798 |
|
| 799 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 800 |
|
| 801 |
\endinput\empty\empty\empty\empty\empty\empty |
| 802 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 803 |
|
| 804 |
|
| 805 |
|
| 806 |
|
| 807 |
|
| 808 |
|
| 809 |
|
| 810 |
|
| 811 |
|
| 812 |
|
| 813 |
|
| 814 |
|
| 815 |
|
| 816 |
|
| 817 |
|
| 818 |
|
| 819 |
|
| 820 |
|
| 821 |
|
| 822 |
|
| 823 |
|
| 824 |
|
| 825 |
|
| 826 |
|
| 827 |
|
| 828 |
|
| 829 |
|
| 830 |
|
| 831 |
|
| 832 |
|
| 833 |
|
| 834 |
|
| 835 |
|
| 836 |
|
| 837 |
|
| 838 |
|
| 839 |
|
| 840 |
|
| 841 |
|
| 842 |
|
| 843 |
|
| 844 |
|
| 845 |
|
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
|
| 850 |
|
| 851 |
|
| 852 |
|
| 853 |
|
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
|
| 858 |
|
| 859 |
|
| 860 |
|
| 861 |
|
| 862 |
|
| 863 |
|
| 864 |
|
| 865 |
|
| 866 |
|
| 867 |
|
| 868 |
|
| 869 |
|
| 870 |
|
| 871 |
|
| 872 |
|
| 873 |
|
| 874 |
|
| 875 |
|
| 876 |
|
| 877 |
|
| 878 |
|
| 879 |
|
| 880 |
|
| 881 |
|
| 882 |
|
| 883 |
|
| 884 |
|
| 885 |
|
| 886 |
|
| 887 |
|
| 888 |
|
| 889 |
|
| 890 |
|
| 891 |
|
| 892 |
|
| 893 |
|
| 894 |
|
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
|
| 899 |
|
| 900 |
|
| 901 |
|
| 902 |
|
| 903 |
|
| 904 |
|
| 905 |
|
| 906 |
|
| 907 |
|
| 908 |
|
| 909 |
|
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
|
| 915 |
|
| 916 |
|
| 917 |
|
| 918 |
|
| 919 |
|
| 920 |
|
| 921 |
|
| 922 |
|
| 923 |
|
| 924 |
|
| 925 |
|
| 926 |
|
| 927 |
|
| 928 |
|
| 929 |
|
| 930 |
|
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
|
| 935 |
|
| 936 |
|
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
|
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
|
| 946 |
|
| 947 |
|
| 948 |
|
| 949 |
|
| 950 |
|
| 951 |
|
| 952 |
|
| 953 |
|
| 954 |
|
| 955 |
|
| 956 |
|
| 957 |
|
| 958 |
|
| 959 |
|
| 960 |
|
| 961 |
|
| 962 |
|
| 963 |
|
| 964 |
|
| 965 |
|
| 966 |
|
| 967 |
|
| 968 |
|
| 969 |
|
| 970 |
|
| 971 |
|
| 972 |
|
| 973 |
|
| 974 |
|
| 975 |
|
| 976 |
|
| 977 |
|
| 978 |
|
| 979 |
|
| 980 |
|
| 981 |
|
| 982 |
|
| 983 |
|
| 984 |
|
| 985 |
|
| 986 |
|
| 987 |
|
| 988 |
|
| 989 |
|
| 990 |
|
| 991 |
|
| 992 |
|
| 993 |
|
| 994 |
|
| 995 |
|
| 996 |
|
| 997 |
|
| 998 |
|
| 999 |
|
| 1000 |
|
| 1001 |
|
| 1002 |
|
| 1003 |
|
| 1004 |
|
| 1005 |
|
| 1006 |
|
| 1007 |
|
| 1008 |
|
| 1009 |
|
| 1010 |
|
| 1011 |
|
| 1012 |
|
| 1013 |
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
|
| 1019 |
|
| 1020 |
|
| 1021 |
|
| 1022 |
|
| 1023 |
|
| 1024 |
|
| 1025 |
|
| 1026 |
|
| 1027 |
|
| 1028 |
|
| 1029 |
|
| 1030 |
|
| 1031 |
|
| 1032 |
|
| 1033 |
|
| 1034 |
|
| 1035 |
|
| 1036 |
|
| 1037 |
|
| 1038 |
|
| 1039 |
|
| 1040 |
|
| 1041 |
|
| 1042 |
|
| 1043 |
|
| 1044 |
|
| 1045 |
|
| 1046 |
|
| 1047 |
|
| 1048 |
|
| 1049 |
|
| 1050 |
|
| 1051 |
|
| 1052 |
|
| 1053 |
|
| 1054 |
|
| 1055 |
|
| 1056 |
|
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
|
| 1061 |
|
| 1062 |
|
| 1063 |
|
| 1064 |
|
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
|
| 1071 |
|
| 1072 |
|
| 1073 |
|
| 1074 |
|
| 1075 |
|
| 1076 |
|
| 1077 |
|
| 1078 |
|
| 1079 |
|
| 1080 |
|
| 1081 |
|
| 1082 |
|
| 1083 |
|
| 1084 |
|
| 1085 |
|
| 1086 |
|
| 1087 |
|
| 1088 |
|
| 1089 |
|
| 1090 |
|
| 1091 |
|
| 1092 |
|
| 1093 |
|
| 1094 |
|
| 1095 |
|
| 1096 |
|
| 1097 |
|
| 1098 |
|
| 1099 |
|
| 1100 |
|
| 1101 |
|
| 1102 |
|
| 1103 |
|
| 1104 |
|
| 1105 |
|
| 1106 |
|
| 1107 |
|
| 1108 |
|
| 1109 |
|
| 1110 |
|
| 1111 |
|
| 1112 |
|
| 1113 |
|
| 1114 |
|
| 1115 |
|
| 1116 |
|
| 1117 |
|
| 1118 |
|
| 1119 |
|
| 1120 |
|
| 1121 |
|
| 1122 |
|
| 1123 |
|
| 1124 |
|
| 1125 |
|
| 1126 |
|
| 1127 |
|
| 1128 |
|
| 1129 |
|
| 1130 |
|
| 1131 |
|
| 1132 |
|
| 1133 |
|
| 1134 |
|
| 1135 |
|
| 1136 |
|
| 1137 |
|
| 1138 |
|
| 1139 |
|
| 1140 |
|
| 1141 |
|
| 1142 |
|
| 1143 |
|
| 1144 |
|
| 1145 |
|
| 1146 |
|
| 1147 |
|
| 1148 |
|
| 1149 |
|
| 1150 |
|
| 1151 |
|
| 1152 |
|
| 1153 |
|
| 1154 |
|
| 1155 |
|
| 1156 |
|
| 1157 |
|
| 1158 |
|
| 1159 |
|
| 1160 |
|
| 1161 |
|
| 1162 |
|
| 1163 |
|
| 1164 |
|
| 1165 |
|
| 1166 |
|
| 1167 |
|
| 1168 |
|
| 1169 |
|
| 1170 |
|
| 1171 |
|
| 1172 |
|
| 1173 |
|
| 1174 |
|
| 1175 |
|
| 1176 |
|
| 1177 |
|
| 1178 |
|
| 1179 |
|
| 1180 |
|
| 1181 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1182 |
\ConfigureHinput{mhchem} |
| 1183 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1184 |
% redefine this command to add the text: prefix for the text commands |
| 1185 |
\renewcommand\:mhmathmlorhtml[2]{\ifmathml\a:mathml #1\else text:#2\fi} |
| 1186 |
|
| 1187 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1188 |
|
| 1189 |
\endinput\empty\empty\empty\empty\empty\empty |
| 1190 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1191 |
|
| 1192 |
|
| 1193 |
|
| 1194 |
|
| 1195 |
\endinput |
| 1196 |
|