| 1 |
% $Id: tex4ht-moz.tex 65 2010-11-17 19:16:45Z karl $ |
| 2 |
% compile 3 times: latex tex4ht-moz |
| 3 |
% or xhlatex tex4ht-moz "html,3,sections+" |
| 4 |
% |
| 5 |
% Copyright (C) 2009-2010 TeX Users Group |
| 6 |
% Copyright (C) 2000-2009 Eitan M. Gurari |
| 7 |
% Released under LPPL 1.3c+. |
| 8 |
% See tex4ht-cpright.tex for license text. |
| 9 |
|
| 10 |
%%%%%%%%%%%%%%%%%% load style files %%%%%%%%%%%%%%%%%%%%%%%%%% |
| 11 |
|
| 12 |
\ifx \HTML\UnDef |
| 13 |
\def\HTML{mozilla} |
| 14 |
\def\CONFIG{\jobname} |
| 15 |
\def\MAKETITLE{\author{Eitan M. Gurari}} |
| 16 |
\def\next{\input mktex4ht.4ht \endinput} |
| 17 |
\expandafter\next |
| 18 |
\fi |
| 19 |
|
| 20 |
\input{common.tex} |
| 21 |
\input{tex4ht-cpright.tex} |
| 22 |
|
| 23 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 24 |
\chapter{Preamble} |
| 25 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 26 |
|
| 27 |
\<mozilla\><<< |
| 28 |
% mozilla.4ht (|version), generated from |jobname.tex |
| 29 |
% Copyright (C) 2009-2010 TeX Users Group |
| 30 |
% Copyright (C) |CopyYear.2000. Eitan M. Gurari, Paul Gartside |
| 31 |
% [email protected] |
| 32 |
|<TeX4ht copywrite|> |
| 33 |
>>> |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 40 |
\chapter{Start Here} |
| 41 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 42 |
|
| 43 |
\<configure mozilla Preamble\><<< |
| 44 |
\:CheckOption{xht} \if:Option |
| 45 |
\Configure{ext}{xht} |
| 46 |
\else |
| 47 |
\Configure{ext}{xml} |
| 48 |
\fi |
| 49 |
>>> |
| 50 |
|
| 51 |
It looks like frames on (just current?) browsers require |
| 52 |
html extension fot file names. |
| 53 |
|
| 54 |
Mozilla complaints about version 1.1 :-( |
| 55 |
|
| 56 |
|
| 57 |
%\Configure{VERSION} |
| 58 |
% {\IgnorePar \HCode{<?xml version="1.0"?>\Hnewline}} |
| 59 |
|
| 60 |
\<configure mozilla tex4ht\><<< |
| 61 |
\:CheckOption{frames} \if:Option |
| 62 |
\Configure{frames-altDOCTYPE}{|<no frames DOCTYPE|>} |
| 63 |
\else |
| 64 |
|<no frames DOCTYPE|> |
| 65 |
\fi |
| 66 |
\:CheckOption{-css} \if:Option \else |
| 67 |
\Configure{XML-STYLESHEET} |
| 68 |
{\HCode{<?xml-stylesheet type="text/css" |
| 69 |
href="\aa:CssFile"?>\Hnewline}} |
| 70 |
\fi |
| 71 |
>>> |
| 72 |
|
| 73 |
|
| 74 |
\<no frames DOCTYPE\><<< |
| 75 |
\:CheckOption{pmathml} \if:Option |
| 76 |
|<pmathml dtd|> |
| 77 |
\else |
| 78 |
|<non pmathml dtd|> |
| 79 |
\fi |
| 80 |
>>> |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
\<non pmathml dtd\><<< |
| 85 |
\Configure{DOCTYPE} |
| 86 |
{\IgnorePar |
| 87 |
\HCode{<!DOCTYPE html |
| 88 |
PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//|<dtd lang|>"\Hnewline |
| 89 |
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" |
| 90 |
>\Hnewline |
| 91 |
% "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [\Hnewline |
| 92 |
% <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">\Hnewline |
| 93 |
% ]>\Hnewline |
| 94 |
}} |
| 95 |
>>> |
| 96 |
|
| 97 |
|
| 98 |
\<dtd lang\><<< |
| 99 |
\expandafter |
| 100 |
\ifx \csname a:dtd-lang\endcsname\relax EN\else |
| 101 |
\csname a:dtd-lang\endcsname |
| 102 |
\fi |
| 103 |
>>> |
| 104 |
|
| 105 |
|
| 106 |
% \Configure{@HEAD}{\HCode{<meta \Hnewline |
| 107 |
% http-equiv="Content-Type" content="text/html; |
| 108 |
% \ifx \a:charset\:UnDef \A:charset |
| 109 |
% \else \a:charset\fi " \xml:empty>}} |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
\<xmlns\><<< |
| 114 |
xmlns="http://www.w3.org/1999/xhtml" |
| 115 |
>>> |
| 116 |
|
| 117 |
|
| 118 |
\<configure mozilla tex4ht\><<< |
| 119 |
\Configure{HTML} |
| 120 |
{\IgnorePar\HCode{<html \a:@HTML\Hnewline |
| 121 |
\:xhtml{|<xmlns|>}\Hnewline>}} |
| 122 |
{\HCode{\Hnewline</html>\Hnewline}} |
| 123 |
>>> |
| 124 |
|
| 125 |
% |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
\<configure mozilla tex4ht\><<< |
| 132 |
\Configure{DviMath} |
| 133 |
{\mathmltrue |
| 134 |
\ifOption{mml-fonts}{|<mml fonts|>}{\NoFonts}\IgnoreRule\HCode{<!--l. |
| 135 |
\the\inputlineno-->}{\Tg<\a:mathml math\Hnewline |
| 136 |
|<math xmlns|>\a:@math>}\a:math |
| 137 |
|<sv dvimath par|>\IgnorePar} |
| 138 |
{\Tg</\a:mathml math>\EndIgnoreRule |
| 139 |
\ifOption{mml-fonts}{|<html fonts|>}{\EndNoFonts}% |
| 140 |
|<recall dvimath par|>\mathmlfalse} |
| 141 |
>>> |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
\<html fonts\><<< |
| 147 |
\Configure{htf}{0}{+}{<span\Hnewline |
| 148 |
class="}{\%s}{-\%s}{x-x-\%d}{}{">}{</span>}% |
| 149 |
>>> |
| 150 |
|
| 151 |
\<mml fonts\><<< |
| 152 |
\Configure{htf}{0}{+}{<mstyle\Hnewline |
| 153 |
class="}{\%s}{-\%s}{x-x-\%d}{}{">}{</mstyle>}% |
| 154 |
>>> |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
\<recall dvimath par\><<< |
| 159 |
\sv:ignore |
| 160 |
>>> |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
\<sv dvimath par\><<< |
| 165 |
\edef\sv:ignore{\if:nopar |
| 166 |
\noexpand\IgnorePar\else \noexpand\ShowPar\fi}% |
| 167 |
>>> |
| 168 |
|
| 169 |
|
| 170 |
\<math xmlns\><<< |
| 171 |
\csname a:math-xmlns\endcsname |
| 172 |
>>> |
| 173 |
|
| 174 |
The amphersand chracter must be embeded within group parentheses, to |
| 175 |
hide it in tables from halign. |
| 176 |
|
| 177 |
|
| 178 |
\<configure mozilla tex4htDEPRECATED\><<< |
| 179 |
\Configure{$$} |
| 180 |
{\Configure{@math}{mode="display"}\IgnorePar\EndP\DviMath} |
| 181 |
{\EndDviMath\ShowPar\par{\HCondtrue\noindent}}{} |
| 182 |
\Configure{$} |
| 183 |
{\Configure{@math}{mode="inline"}\DviMath} |
| 184 |
{\EndDviMath}{} |
| 185 |
>>> |
| 186 |
|
| 187 |
\<configure mozilla latexDEPRECATED\><<< |
| 188 |
\Configure{[]} |
| 189 |
{\Configure{@math}{mode="display"}\csname a:mathml[]\endcsname |
| 190 |
\DviMath\Tg<\a:mathml mrow\Hnewline>$$} |
| 191 |
{$$\Tg</\a:mathml mrow>\EndDviMath\csname b:mathml[]\endcsname} |
| 192 |
>>> |
| 193 |
|
| 194 |
\<configure mozilla latexDEPRECATED\><<< |
| 195 |
\Configure{()} |
| 196 |
{\Configure{@math}{mode="inline"}\csname a:mathml()\endcsname |
| 197 |
\DviMath\Tg<\a:mathml mrow\Hnewline>$} |
| 198 |
{$\Tg</\a:mathml mrow>\EndDviMath\csname b:mathml()\endcsname} |
| 199 |
\Css{math[mode="display"] |
| 200 |
{margin-top:0.8em; margin-bottom:0.8em; display:block; text-align:center;}} |
| 201 |
>>> |
| 202 |
|
| 203 |
\<configure mozilla latex\><<< |
| 204 |
\Configure{Roman}{I}{V}{X}{L}{C}{D}{M} |
| 205 |
\Configure{roman}{i}{v}{x}{l}{c}{d}{m} |
| 206 |
>>> |
| 207 |
|
| 208 |
\<configure mozilla latex\><<< |
| 209 |
\Configure{underline} |
| 210 |
{\bgroup\ifmathml |<mathml underline|>% |
| 211 |
\else |<nomath underline|>\HCode{<span class="underline">}\fi} |
| 212 |
{\ifmathml |<end mathml underline|>\else \HCode{</span>}\fi\egroup} |
| 213 |
>>> |
| 214 |
|
| 215 |
\<configure mozilla plain\><<< |
| 216 |
\Configure{underline} |
| 217 |
{\bgroup |<mathml underline|>} |
| 218 |
{|<end mathml underline|>\egroup} |
| 219 |
>>> |
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
\<mathml underline\><<< |
| 226 |
\HCode{<\a:mathml munder |
| 227 |
class="mml-underline"><\a:mathml mrow>}% |
| 228 |
>>> |
| 229 |
|
| 230 |
\<end mathml underline\><<< |
| 231 |
\HCode{</\a:mathml mrow><\a:mathml mo\Hnewline |
| 232 |
accent="true">&\#x00AF;</\a:mathml mo></\a:mathml munder>}% |
| 233 |
>>> |
| 234 |
|
| 235 |
The code 0332 for underbar is not recognized. Hence, we use the code |
| 236 |
00AF of overbar (\verb+‾+ is not recognized anymore). |
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
\<nomath underline\><<< |
| 242 |
\expandafter\everymath |
| 243 |
\expandafter{\expandafter\everymath |
| 244 |
\expandafter{\the\everymath}}% |
| 245 |
\let\o::@underline:\o:@@underline: |
| 246 |
\def\o:@@underline:{\let\o:@@underline:\o::@underline:}% |
| 247 |
>>> |
| 248 |
|
| 249 |
|
| 250 |
\<configure mozilla latex\><<< |
| 251 |
\Configure{equation} |
| 252 |
{\ifmmode\else\par \IgnorePar\fi \EndP |
| 253 |
\HCode{<table\Hnewline class="equation"><tr><td>}\IgnorePar |
| 254 |
} |
| 255 |
{\IgnorePar\EndP\HCode{</td><td class="eq-no">}} |
| 256 |
{\end:TTT \ifmmode\else \ShowPar\par{\HCondtrue\noindent}\fi} |
| 257 |
>>> |
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
Mozilla has problem dealing with double and triple unicode prime characters. |
| 263 |
|
| 264 |
\<configure mozilla latex\><<< |
| 265 |
|<plain,latex math|> |
| 266 |
>>> |
| 267 |
|
| 268 |
\<configure mozilla plain\><<< |
| 269 |
|<plain,latex math|> |
| 270 |
>>> |
| 271 |
|
| 272 |
\<plain,latex math\><<< |
| 273 |
\Configure{'} |
| 274 |
{\let\:primes=\empty} |
| 275 |
{\relax \csname SUB:prime\endcsname |
| 276 |
\sp{\global\let\SUB:prime=\:UnDef \:primes}} |
| 277 |
{\let\prime=\relax \xdef\:primes{\:primes\prime}} |
| 278 |
>>> |
| 279 |
|
| 280 |
|
| 281 |
%%%%%%%%%%%%%%%%%% |
| 282 |
\section{Spaces after mtext} |
| 283 |
%%%%%%%%%%%%%%%%%% |
| 284 |
|
| 285 |
|
| 286 |
\<configure mozilla latex\><<< |
| 287 |
|<mathml text util|> |
| 288 |
>>> |
| 289 |
|
| 290 |
\<configure mathml amstex\><<< |
| 291 |
|<mathml text util|> |
| 292 |
>>> |
| 293 |
|
| 294 |
\<mathml text util\><<< |
| 295 |
\def\AA:text#1{\mtexttrue |
| 296 |
\HCode{<!--mstyle\Hnewline |
| 297 |
class="#1"--><\a:mathml |
| 298 |
mtext \a:@mtext>}|<start mtext space|>\PauseMathClass |
| 299 |
|<math within mtext|>} |
| 300 |
\def\BB:text{\mtextfalse\EndPauseMathClass|<end mtext space|>\HCode |
| 301 |
{</\a:mathml mtext><!--/mstyle-->}} |
| 302 |
>>> |
| 303 |
|
| 304 |
\<math within mtext\><<< |
| 305 |
\Configure{$}{\EndPauseMathClass \mtextfalse |
| 306 |
|<end mtext space|>\HCode{</\a:mathml |
| 307 |
mtext><!--mstyle\Hnewline class="math"-->}} |
| 308 |
{\HCode{<!--/mstyle--><\a:mathml mtext |
| 309 |
\a:@mtext>}|<start mtext space|>\PauseMathClass |
| 310 |
\mtexttrue}{} |
| 311 |
>>> |
| 312 |
|
| 313 |
\<math within mtext\><<< |
| 314 |
\Configure{()}% |
| 315 |
{\EndPauseMathClass \mtextfalse |
| 316 |
|<end mtext space|>\HCode{</\a:mathml mtext><\a:mathml |
| 317 |
mstyle\Hnewline \mml:class="math">}$}% |
| 318 |
{$\HCode{</\a:mathml mstyle><\a:mathml |
| 319 |
mtext \a:@mtext>}|<start mtext space|>\PauseMathClass |
| 320 |
\mtexttrue}% |
| 321 |
{}% |
| 322 |
>>> |
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
\<start mtext space\><<< |
| 327 |
\ht:special{t4ht@,&\#x00A0;}% |
| 328 |
>>> |
| 329 |
\<end mtext space\><<< |
| 330 |
\ht:special{t4ht@,}% |
| 331 |
>>> |
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
%%%%%%%%%%%%%%%%%% |
| 339 |
\section{Accents} |
| 340 |
%%%%%%%%%%%%%%%%%% |
| 341 |
|
| 342 |
See test file at tex4ht-mathml |
| 343 |
|
| 344 |
\begin{verbatim} |
| 345 |
> There is a problem in \dot{x}: it is never build well, but \dot{k} or |
| 346 |
> \dot{V} are correctly arranged. |
| 347 |
|
| 348 |
It is a mozilla problem--it doesnt recognizes the unicode character |
| 349 |
ẋ of \dot{x}. I modified the defintion to get a simulation of |
| 350 |
the same effect, as is the case for \dot{k} and \dot{V}. |
| 351 |
|
| 352 |
> I detected that symbols \tilde and \widetilde are not being generated |
| 353 |
> by TeX4ht |
| 354 |
|
| 355 |
I'm getting the same problem here. Tex4ht produces the combining |
| 356 |
tilde U0303, but mozilla fails to recognize it. Changing it |
| 357 |
to the small tilde character U02DC fixes the problem (now in the bug |
| 358 |
fixes page of tex4ht). |
| 359 |
|
| 360 |
However, that is an improper behavior of mozilla. It can be seen with |
| 361 |
the hat and widehat operations. There U0302 does the right job and |
| 362 |
U02C6 doesn't. |
| 363 |
\end{verbatim} |
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
\<old unicode accents\><<< |
| 368 |
\expand:after{\Configure{accent}}\csname OT1\string\.\endcsname |
| 369 |
\dot{{}{}} |
| 370 |
{\a:accents{}{#1}} {\b:accents{dot}{#1}{#2}} |
| 371 |
\expand:after{\Configure{accent}}\csname OT1\string\"\endcsname |
| 372 |
\ddot{{}{}} |
| 373 |
{\a:accents{}{#1}} {\b:accents{uml}{#1}{#2}} |
| 374 |
>>> |
| 375 |
|
| 376 |
|
| 377 |
\<configure mozilla latex\><<< |
| 378 |
\:CheckOption{new-accents} \if:Option \else |
| 379 |
\def\:widetilde:over{\ifmmode \expandafter\mathop\fi |
| 380 |
{\x:unicode{02DC}}} |
| 381 |
% \def\:tilde:over{\mathop{\x:unicode{02DC}}} |
| 382 |
\fi |
| 383 |
>>> |
| 384 |
|
| 385 |
\<configure mozilla plain\><<< |
| 386 |
\:CheckOption{new-accents} \if:Option \else |
| 387 |
\def\:widetilde:over{\mathop{\ifmmode \expandafter\x:unicode\fi |
| 388 |
{02DC}}} |
| 389 |
% \def\:tilde:over{\mathop{\x:unicode{02DC}}} |
| 390 |
\fi |
| 391 |
>>> |
| 392 |
|
| 393 |
|
| 394 |
\<old unicode accents\><<< |
| 395 |
\:CheckOption{uniaccents} \if:Option \else |
| 396 |
\Configure{accent}\dot\dot{|<dot above codes|>{}{}} |
| 397 |
{}{} |
| 398 |
\expand:after{\Configure{accent}}\csname OT1\string\.\expandafter |
| 399 |
\endcsname |
| 400 |
\csname OT1\string\.\endcsname{|<dot above codes|>{}{}} |
| 401 |
{}{} |
| 402 |
\expand:after{\Configure{accent}}\csname OT1\string\v\endcsname |
| 403 |
\check{|<caron codes|>{}{}} |
| 404 |
{}{} |
| 405 |
\expand:after{\Configure{accent}}\csname OT1\string\=\endcsname |
| 406 |
\bar{|<macron codes|>{}{}} |
| 407 |
{}{} |
| 408 |
\expand:after{\Configure{accent}}\csname OT1\string\`\endcsname |
| 409 |
\grave{|<grave codes|>{}{}} |
| 410 |
{\a:accents{}{#1}} {\b:accents{grave}{#1}{#2}} |
| 411 |
\expand:after{\Configure{accent}}\csname OT1\string\^\endcsname |
| 412 |
\hat{|<circumflex codes|>{}{}} |
| 413 |
{}{} |
| 414 |
\expand:after{\Configure{accent}}\csname OT1\string\~\endcsname |
| 415 |
\tilde{|<tilde codes|>{}{}} |
| 416 |
{}{} |
| 417 |
\Configure{accent}\ddot\ddot{|<diaeresis codes|>{}{34}} |
| 418 |
{}{} |
| 419 |
\expand:after{\Configure{accent}}\csname OT1\string\"\expandafter |
| 420 |
\endcsname |
| 421 |
\csname OT1\string\"\endcsname{|<diaeresis codes|>{}{34}} |
| 422 |
{}{} |
| 423 |
% \expand:after{\expand:after{\Configure{accent}}% |
| 424 |
% \csname OT1\string\r\endcsname}% |
| 425 |
% \csname OT1\string\r\endcsname{|<ring codes|>{}{}} |
| 426 |
% {}{} |
| 427 |
\expand:after{\Configure{accent}}\csname OT1\string\b\endcsname |
| 428 |
\b{|<bar below codes|>{}{}} |
| 429 |
{}{} |
| 430 |
\expand:after{\expand:after{\Configure{accent}}% |
| 431 |
\csname OT1\string\d\endcsname}% |
| 432 |
\csname OT1\string\d\endcsname{|<dot below codes|>{}{}} |
| 433 |
{}{} |
| 434 |
\expand:after{\expand:after{\Configure{accent}}% |
| 435 |
\csname OT1\string\c\endcsname}% |
| 436 |
\csname OT1\string\c\endcsname{|<cedilla codes|>{}{}} |
| 437 |
{}{} |
| 438 |
\expand:after{\expand:after{\Configure{accent}}% |
| 439 |
\csname OT1\string\H\endcsname}% |
| 440 |
\csname OT1\string\H\endcsname{|<double acute code|>{}{}} |
| 441 |
{}{} |
| 442 |
\fi |
| 443 |
>>> |
| 444 |
|
| 445 |
|
| 446 |
\<dot above codes\><<< |
| 447 |
C{010A}c{010B}E{0116}e{0117}G{0120}g{0121}% |
| 448 |
I{0130}Z{017B}z{017C}A{0226}a{0227}O{022E}% |
| 449 |
o{022F}B{1E02}b{1E03}D{1E0A}d{1E0B}F{1E1E}% |
| 450 |
f{1E1F}H{1E22}h{1E23}M{1E40}m{1E41}N{1E44}% |
| 451 |
n{1E45}P{1E56}p{1E57}R{1E58}r{1E59}S{1E60}% |
| 452 |
s{1E61}T{1E6A}t{1E6B}W{1E86}w{1E87}X{1E8A}% |
| 453 |
x{1E8B}Y{1E8E}y{1E8F}% |
| 454 |
>>> |
| 455 |
|
| 456 |
\<caron codes\><<< |
| 457 |
C{010C}c{010D}D{010E}d{010F}% |
| 458 |
E{011A}e{011B}L{013D}l{013E}N{0147}n{0148}R{0158}r{0159}% |
| 459 |
S{0160}s{0161}T{0164}t{0165}Z{017D}z{017E}A{01CD}a{01CE}I{01CF}% |
| 460 |
i{01D0}O{01D1}o{01D2}U{01D3}u{01D4}G{01E6}g{01E7}K{01E8}k{01E9}% |
| 461 |
j{01F0}\i{01D0}\j{01F0}% |
| 462 |
>>> |
| 463 |
|
| 464 |
\<macron codes\><<< |
| 465 |
A{0100}a{0101}E{0112}% |
| 466 |
e{0113}I{012A}i{012B}O{014C}o{014D}U{016A}u{016B}% |
| 467 |
G{1E20}g{1E21}% |
| 468 |
>>> |
| 469 |
|
| 470 |
\<grave codes\><<< |
| 471 |
A{00C0}E{00C8}I{00CC}N{01F8}O{00D2}U{00D9}W{1E80}% |
| 472 |
Y{1EF2}a{00E0}e{00E8}o{00F2}u{00F9}% |
| 473 |
w{1E81}y{1EF3}\i{00EC}% |
| 474 |
>>> |
| 475 |
|
| 476 |
\<circumflex codes\><<< |
| 477 |
A{00C2}E{00CA}I{00CE}O{00D4}U{00DB}a{00E2}e{00EA}% |
| 478 |
i{00EE}o{00F4}u{00FB}C{0108}c{0109}G{011C}g{011D}% |
| 479 |
H{0124}h{0125}J{0134}j{0135}S{015C}s{015D}W{0174}% |
| 480 |
w{0175}Y{0176}y{0177}\i{00EE}\j{0135}% |
| 481 |
>>> |
| 482 |
|
| 483 |
\<tilde codes\><<< |
| 484 |
A{00C3}N{00D1}O{00D5}a{00E3}n{00F1}o{00F5}I{0128}% |
| 485 |
i{0129}U{0168}u{0169}E{1EBC}e{1EBD}% |
| 486 |
Y{1EF8}y{1EF9}\i{0129}% |
| 487 |
>>> |
| 488 |
|
| 489 |
\<diaeresis codes\><<< |
| 490 |
A{00C4}E{00CB}I{00CF}O{00D6}U{00DC}% |
| 491 |
a{00E4}e{00EB}i{00EF}o{00F6}u{00FC}y{00FF}% |
| 492 |
Y{0178}\i{00EF}% |
| 493 |
>>> |
| 494 |
|
| 495 |
\<bar below codes\><<< |
| 496 |
D{1E0E}d{1E0F}K{1E34}k{1E35}L{1E3A}l{1E3B}N{1E48}n{1E49}% |
| 497 |
R{1E5E}r{1E5F}T{1E6E}t{1E6F}Z{1E94}z{1E95}h{1E96}% |
| 498 |
>>> |
| 499 |
|
| 500 |
|
| 501 |
\<cedilla codes\><<< |
| 502 |
K{0136}k{0137}L{013B}l{013C}N{0145}n{0146}% |
| 503 |
R{0156}r{0157}S{015E}s{015F}T{0162}t{0163}% |
| 504 |
E{0228}e{0229}H{1E28}h{1E29}% |
| 505 |
C{00C7}c{00E7}G{0122}g{0123}% |
| 506 |
>>> |
| 507 |
|
| 508 |
|
| 509 |
\<dot below codes\><<< |
| 510 |
A{1EA0}a{1Ea1}D{1E0C}d{1E0D}% |
| 511 |
E{1EB8}e{1EB9}H{1E24}h{1E25}I{1ECA}i{1ECB}% |
| 512 |
K{1E32}k{1E33}L{1E36}l{1E37}M{1E42}m{1E43}% |
| 513 |
N{1E46}n{1E47}O{1ECC}o{1ECD}R{1E5A}r{1E5B}% |
| 514 |
S{1E62}s{1E63}T{1E6C}t{1E6D}U{1EE4}u{1EE5}% |
| 515 |
V{1E7E}v{1E7F}W{1E88}w{1E89}Y{1EF4}y{1EF5}% |
| 516 |
>>> |
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
\<old unicode accentsNO\><<< |
| 526 |
\expand:after{\Configure{accent}}\csname OT1\string\`\endcsname |
| 527 |
\grave{|<grave codes|>{}{}} |
| 528 |
{\a:accents{}{#1}} {\b:accents{grave}{#1}{#2}} |
| 529 |
\expand:after{\Configure{accent}}\csname OT1\string\'\endcsname |
| 530 |
\acute{|<acute codes|>{}{}} |
| 531 |
{\a:accents{}{#1}} {\b:accents{acute}{#1}{#2}} |
| 532 |
\expand:after{\Configure{accent}}\csname OT1\string\^\endcsname |
| 533 |
\hat{|<circumflex codes|>{}{}} |
| 534 |
{\a:accents{}{#1}} {\b:accents{hat}{#1}{#2}} |
| 535 |
\expand:after{\Configure{accent}}\csname OT1\string\~\endcsname |
| 536 |
\tilde{|<tilde codes|>{}{}} |
| 537 |
{\a:accents{}{#1}} {\b:accents{tilde}{#1}{#2}} |
| 538 |
\Configure{accent}\ddot\ddot{|<diaeresis codes|>{}{34}} |
| 539 |
{\a:accents{}{#1}} {\b:accents{uml}{#1}{#2}} |
| 540 |
\expand:after{\Configure{accent}}\csname OT1\string\"\expandafter |
| 541 |
\endcsname |
| 542 |
\csname OT1\string\"\endcsname{|<diaeresis codes|>{}{34}} |
| 543 |
{\a:accents{}{#1}} {\b:accents{uml}{#1}{#2}} |
| 544 |
>>> |
| 545 |
|
| 546 |
\<\><<< |
| 547 |
\expand:after{\expand:after{\Configure{accent}}% |
| 548 |
\csname OT1\string\r\endcsname}% |
| 549 |
\csname OT1\string\r\endcsname{|<ring codes|>{}{}} |
| 550 |
{\a:accents{}{#1}} {\b:accents{ring}{#1}{#2}} |
| 551 |
>>> |
| 552 |
|
| 553 |
\<old unicode accentsNO\><<< |
| 554 |
\expand:after{\expand:after{\Configure{accent}}% |
| 555 |
\csname OT1\string\d\endcsname}% |
| 556 |
\csname OT1\string\d\endcsname{|<dot below codes|>{}{}} |
| 557 |
{\a:accents{}{#1}} {\b:accents{d}{#1}{#2}} |
| 558 |
>>> |
| 559 |
|
| 560 |
|
| 561 |
|
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
\<configure mozilla plain\><<< |
| 571 |
\:CheckOption{new-accents} \if:Option \else |
| 572 |
|<old unicode accents|> |
| 573 |
\fi |
| 574 |
>>> |
| 575 |
|
| 576 |
|
| 577 |
\<configure mozilla latex\><<< |
| 578 |
\:CheckOption{new-accents} \if:Option \else |
| 579 |
|<old unicode accents|> |
| 580 |
\fi |
| 581 |
>>> |
| 582 |
|
| 583 |
|
| 584 |
|
| 585 |
|
| 586 |
\<configure mozilla croatian\><<< |
| 587 |
\:CheckOption{new-accents} \if:Option \else |
| 588 |
|<old unicode accents|> |
| 589 |
\fi |
| 590 |
>>> |
| 591 |
|
| 592 |
|
| 593 |
|
| 594 |
\<configure mozilla romanian\><<< |
| 595 |
\:CheckOption{new-accents} \if:Option \else |
| 596 |
|<old unicode accents|> |
| 597 |
\fi |
| 598 |
>>> |
| 599 |
|
| 600 |
|
| 601 |
\<configure mozilla slovak\><<< |
| 602 |
\:CheckOption{new-accents} \if:Option \else |
| 603 |
|<old unicode accents|> |
| 604 |
\fi |
| 605 |
>>> |
| 606 |
|
| 607 |
|
| 608 |
\<configure mozilla slovene\><<< |
| 609 |
\:CheckOption{new-accents} \if:Option \else |
| 610 |
|<old unicode accents|> |
| 611 |
\fi |
| 612 |
>>> |
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
%%%%%%%%%%%%%%%%%%%%% |
| 618 |
\section{Thin Spaces} |
| 619 |
%%%%%%%%%%%%%%%%%%%%% |
| 620 |
|
| 621 |
|
| 622 |
\<configure mozilla latex\><<< |
| 623 |
\Configure{,}{\mskip\thinmuskip} |
| 624 |
>>> |
| 625 |
|
| 626 |
\<configure mozilla plain\><<< |
| 627 |
\Configure{,}{\mskip\thinmuskip} |
| 628 |
>>> |
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
%%%%%%%%%%%%%%%%%%%%% |
| 635 |
\section{Fonts} |
| 636 |
%%%%%%%%%%%%%%%%%%%%% |
| 637 |
|
| 638 |
\<configure mozilla fontmath\><<< |
| 639 |
|<math fonts utilities|> |
| 640 |
|<set mathcal class|> |
| 641 |
|<set mathcal symbols|> |
| 642 |
|<set Re/Im class|> |
| 643 |
|<set Re/Im symbols|> |
| 644 |
|<set math sf class|> |
| 645 |
|<set math sf symbols|> |
| 646 |
>>> |
| 647 |
|
| 648 |
|
| 649 |
\<configure mozilla euler\><<< |
| 650 |
|<math fonts utilities|> |
| 651 |
|<set fraktur class|> |
| 652 |
|<set fraktur symbols|> |
| 653 |
|<set math script class|> |
| 654 |
|<set math script symbols|> |
| 655 |
|<set math sf class|> |
| 656 |
|<set math sf symbols|> |
| 657 |
>>> |
| 658 |
|
| 659 |
\<configure mozilla eucal\><<< |
| 660 |
|<set mathcal class|> |
| 661 |
|<set mathcal symbols|> |
| 662 |
>>> |
| 663 |
|
| 664 |
\<configure mozilla amsfonts\><<< |
| 665 |
|<math fonts utilities|> |
| 666 |
|<set mathbb class|> |
| 667 |
|<set mathbb symbols|> |
| 668 |
|<set fraktur class|> |
| 669 |
|<set fraktur symbols at amsfonts|> |
| 670 |
>>> |
| 671 |
|
| 672 |
|
| 673 |
\<configure mozilla dsfont\><<< |
| 674 |
|<math fonts utilities|> |
| 675 |
|<configure mathds mathclass|> |
| 676 |
>>> |
| 677 |
|
| 678 |
|
| 679 |
\<math fonts utilities\><<< |
| 680 |
\ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi |
| 681 |
\def\find:set:mgroup#1#2#3{\bgroup |
| 682 |
\def\use@mathgroup##1##2##3{\relax |
| 683 |
\tmp:cnt=##2% |
| 684 |
\xdef\:temp####1{\noexpand\Configure{MathClass}{#2}% |
| 685 |
{}{}{}{\mathchar"0\the\tmp:cnt ####1}}% |
| 686 |
}% |
| 687 |
\setbox\tmp:bx=\hbox{$#1$}\setbox\tmp:bx=\hbox{}% |
| 688 |
\set:mgroup#3{}{}% |
| 689 |
\egroup |
| 690 |
} |
| 691 |
\def\set:mgroup#1#2{\if :#1#2:\else |
| 692 |
\:temp{#1#2}\expandafter\set:mgroup \fi} |
| 693 |
>>> |
| 694 |
|
| 695 |
|
| 696 |
|
| 697 |
\<set mathbb class\><<< |
| 698 |
\ifx \mathbbMathClass\:UnDef |
| 699 |
\NewMathClass\mathbbMathClass |
| 700 |
\fi |
| 701 |
\Configure{MathClass}{\mathbbMathClass}{*} |
| 702 |
{<\a:mathml mi mathvariant="double-struck">}{</\a:mathml mi>}{} |
| 703 |
>>> |
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
\<set mathbb symbols\><<< |
| 708 |
\find:set:mgroup{\mathbb{A}}{\mathbbMathClass}% |
| 709 |
{414244454647494A4B4C4D4F535455565758597C} |%A--Z (not CHNPQRZ),k|% |
| 710 |
>>> |
| 711 |
|
| 712 |
The characters CHNPQRZ bet a \verb+<mi mathvariant="double-struck">+ decoration. |
| 713 |
|
| 714 |
|
| 715 |
|
| 716 |
Mathfrak might be conditionally loaded by latex, upon encountering |
| 717 |
the mathfrak command. Hence, the indirect setting of math classes. |
| 718 |
|
| 719 |
\<set fraktur symbols at amsfonts\><<< |
| 720 |
\expandafter\ifx \csname sv:@mathfrak:\endcsname\relax |
| 721 |
\let\sv:@mathfrak:=\n:@mathfrak: |
| 722 |
\fi |
| 723 |
\def\n:@mathfrak:{\global\let\n:@mathfrak:=\sv:@mathfrak: |
| 724 |
\global\let\sv:@mathfrak:=\:UnDef |
| 725 |
|<set fraktur symbols|>% |
| 726 |
} |
| 727 |
\n:@mathfrak: |
| 728 |
>>> |
| 729 |
|
| 730 |
|
| 731 |
In version 1.4b \verb+<mi mathvariant="fraktur">𝔏</mi>+ |
| 732 |
is needed. The representations |
| 733 |
\verb+<mi>𝔏</mi>+ and |
| 734 |
\verb+<mi mathvariant="fraktur">L</mi>+ |
| 735 |
don't work. |
| 736 |
|
| 737 |
\<set fraktur class\><<< |
| 738 |
\ifx \mathfrakMathClass\:UnDef |
| 739 |
\NewMathClass\mathfrakMathClass |
| 740 |
\fi |
| 741 |
\Configure{MathClass}{\mathfrakMathClass}{*} |
| 742 |
{<\a:mathml mi\Hnewline |
| 743 |
mathvariant="fraktur">}{</\a:mathml mi>}{} |
| 744 |
>>> |
| 745 |
|
| 746 |
\<set fraktur symbols\><<< |
| 747 |
\find:set:mgroup{\mathfrak{A}}{\mathfrakMathClass}% |
| 748 |
{4142434445464748494A4B4C4D4E4F505152535455565758595A% |%A--Z|% |
| 749 |
6162636465666768696A6B6C6D6E6F707172737475767778797A% |%a--z|% |
| 750 |
30313233343536373839}% |%0--9|% |
| 751 |
>>> |
| 752 |
|
| 753 |
|
| 754 |
|
| 755 |
\<set fraktur class\><<< |
| 756 |
\ifx \mathboldfrakMathClass\:UnDef |
| 757 |
\NewMathClass\mathboldfrakMathClass |
| 758 |
\fi |
| 759 |
\Configure{MathClass}{\mathboldfrakMathClass}{*} |
| 760 |
{<\a:mathml mi\Hnewline |
| 761 |
mathvariant="bold-fraktur">}{</\a:mathml mi>}{} |
| 762 |
>>> |
| 763 |
|
| 764 |
\<set fraktur symbols\><<< |
| 765 |
\expandafter\ifx\csname mv@bold\endcsname\relax \else |
| 766 |
\bgroup |
| 767 |
\mathversion{bold}% |
| 768 |
\find:set:mgroup{\mathfrak{A}}{\mathboldfrakMathClass}% |
| 769 |
{4142434445464748494A4B4C4D4E4F505152535455565758595A% |%A--Z|% |
| 770 |
6162636465666768696A6B6C6D6E6F707172737475767778797A% |%a--z|% |
| 771 |
}% |
| 772 |
\egroup |
| 773 |
\fi |
| 774 |
>>> |
| 775 |
|
| 776 |
|
| 777 |
|
| 778 |
\<set math script class\><<< |
| 779 |
\ifx \mathscrMathClass\:UnDef |
| 780 |
\NewMathClass\mathscrMathClass |
| 781 |
\fi |
| 782 |
\Configure{MathClass}{\mathscrMathClass}{*} |
| 783 |
{<\a:mathml mi\Hnewline |
| 784 |
mathvariant="script">}{</\a:mathml mi>}{} |
| 785 |
>>> |
| 786 |
|
| 787 |
\<set math script symbols\><<< |
| 788 |
\find:set:mgroup{\mathscr{A}}{\mathscrMathClass}% |
| 789 |
{4142434445464748494A4B4C4D4E4F505152535455565758595A} |%A--Z|% |
| 790 |
>>> |
| 791 |
|
| 792 |
\<set math script class\><<< |
| 793 |
\ifx \mathboldscrMathClass\:UnDef |
| 794 |
\NewMathClass\mathboldscrMathClass |
| 795 |
\fi |
| 796 |
\Configure{MathClass}{\mathboldscrMathClass}{*} |
| 797 |
{<\a:mathml mi\Hnewline |
| 798 |
mathvariant="bold-script">}{</\a:mathml mi>}{} |
| 799 |
>>> |
| 800 |
|
| 801 |
\<set math script symbols\><<< |
| 802 |
\expandafter\ifx\csname mv@bold\endcsname\relax \else |
| 803 |
\bgroup |
| 804 |
\mathversion{bold}% |
| 805 |
\find:set:mgroup{\mathscr{A}}{\mathboldscrMathClass}% |
| 806 |
{4142434445464748494A4B4C4D4E4F505152535455565758595A} |%A--Z|% |
| 807 |
\egroup |
| 808 |
\fi |
| 809 |
>>> |
| 810 |
|
| 811 |
\<set mathcal class\><<< |
| 812 |
\ifx \mathcalMathClass\:UnDef |
| 813 |
\NewMathClass\mathcalMathClass |
| 814 |
\fi |
| 815 |
\Configure{MathClass}{\mathcalMathClass}{*} |
| 816 |
{<\a:mathml mi\Hnewline |
| 817 |
mathvariant="script">}{</\a:mathml mi>}{} |
| 818 |
>>> |
| 819 |
|
| 820 |
\<set mathcal symbols\><<< |
| 821 |
\find:set:mgroup{\mathcal{A}}{\mathcalMathClass}% |
| 822 |
{4142434445464748494A4B4C4D4E4F505152535455565758595A} |%A--Z|% |
| 823 |
>>> |
| 824 |
|
| 825 |
\<set mathcal class\><<< |
| 826 |
\ifx \mathboldcalMathClass\:UnDef |
| 827 |
\NewMathClass\mathboldcalMathClass |
| 828 |
\fi |
| 829 |
\Configure{MathClass}{\mathboldcalMathClass}{*} |
| 830 |
{<\a:mathml mi\Hnewline |
| 831 |
mathvariant="bold-script">}{</\a:mathml mi>}{} |
| 832 |
>>> |
| 833 |
|
| 834 |
\<set mathcal symbols\><<< |
| 835 |
\expandafter\ifx\csname mv@bold\endcsname\relax \else |
| 836 |
\bgroup |
| 837 |
\mathversion{bold}% |
| 838 |
\find:set:mgroup{\mathcal{A}}{\mathboldcalMathClass}% |
| 839 |
{4142434445464748494A4B4C4D4E4F505152535455565758595A} |%A--Z|% |
| 840 |
\egroup |
| 841 |
\fi |
| 842 |
>>> |
| 843 |
|
| 844 |
|
| 845 |
|
| 846 |
|
| 847 |
\<set math sf classBROKEN\><<< |
| 848 |
\ifx \boldmathsfMathClass\:UnDef |
| 849 |
\NewMathClass\boldmathsfMathClass |
| 850 |
\fi |
| 851 |
\Configure{MathClass}{\boldmathsfMathClass}{*} |
| 852 |
{<\a:mathml mi mathvariant="bold-sans-serif">}{</\a:mathml mi>}{} |
| 853 |
>>> |
| 854 |
|
| 855 |
\<set math sf symbolsBROKEN\><<< |
| 856 |
\find:set:mgroup{{\boldmath\mathsf{A}}}{\boldmathsfMathClass}% |
| 857 |
{4142434445464748494A4B4C4D4E4F505152535455565758595A% |%A--Z|% |
| 858 |
6162636465666768696A6B6C6D6E6F707172737475767778797A% |%a--z|% |
| 859 |
}% |
| 860 |
>>> |
| 861 |
|
| 862 |
\<set math sf classBROKEN\><<< |
| 863 |
\ifx \boldmathsfDigitMathClass\:UnDef |
| 864 |
\NewMathClass\boldmathsfDigitMathClass |
| 865 |
\fi |
| 866 |
\Configure{MathClass}{\boldmathsfDigitMathClass}{*} |
| 867 |
{<\a:mathml mn mathvariant="bold-sans-serif">}{</\a:mathml mn>}{} |
| 868 |
>>> |
| 869 |
|
| 870 |
\<set math sf symbolsBROKEN\><<< |
| 871 |
\find:set:mgroup{{\boldmath\mathsf{A}}}{\boldmathsfDigitMathClass}% |
| 872 |
{30313233343536373839}% |%0--9|% |
| 873 |
>>> |
| 874 |
|
| 875 |
|
| 876 |
BROKEN: The above, for instance, fail for the prima math code: |
| 877 |
|
| 878 |
\begin{verbatim} |
| 879 |
\documentclass{article} |
| 880 |
\tracingmacros=2 |
| 881 |
\begin{document} |
| 882 |
|
| 883 |
prima {\boldmath $\mathrm{{\csname HCode\endcsname{}}^{14}C}$} |
| 884 |
|
| 885 |
seconda {\boldmath $\mathsf{{\csname HCode\endcsname{}}^{15}C}$} |
| 886 |
|
| 887 |
terza {\boldmath $\mathrm{{\csname HCode\endcsname{}}^{16}C}$} |
| 888 |
|
| 889 |
quarta {\boldmath $\mathsf{{\csname HCode\endcsname{}}^{17}C}$} |
| 890 |
|
| 891 |
quinta {$\mathtt{{\csname HCode\endcsname{}}^{18}C}$} |
| 892 |
\end{document} |
| 893 |
\end{verbatim} |
| 894 |
|
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
|
| 899 |
|
| 900 |
Double strike: |
| 901 |
|
| 902 |
\<configure mathds mathclass\><<< |
| 903 |
\ifx \mathdsMathClass\:UnDef |
| 904 |
\NewMathClass\mathdsMathClass |
| 905 |
\fi |
| 906 |
\Configure{MathClass}{\mathdsMathClass}{*} |
| 907 |
{<\a:mathml mi mathvariant="double-struck">}{</\a:mathml mi>}{} |
| 908 |
\find:set:mgroup{\mathds{A}}{\mathdsMathClass}% |%1,A--Z,A,h,k|% |
| 909 |
{314142434445464748494A4B4C4D4E4F505152535455565758595A61686B} |
| 910 |
>>> |
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
|
| 915 |
|
| 916 |
|
| 917 |
|
| 918 |
\<set Re/Im class\><<< |
| 919 |
\ifx \mathReImMathClass\:UnDef |
| 920 |
\NewMathClass\mathboldReImMathClass |
| 921 |
\fi |
| 922 |
\Configure{MathClass}{\mathboldReImMathClass}{*} |
| 923 |
{<\a:mathml mi\Hnewline |
| 924 |
fontweight="bold">}{</\a:mathml mi>}{} |
| 925 |
>>> |
| 926 |
|
| 927 |
\<set Re/Im symbols\><<< |
| 928 |
\expandafter\ifx\csname mv@bold\endcsname\relax \else |
| 929 |
\bgroup |
| 930 |
\mathversion{bold}% |
| 931 |
\find:set:mgroup{\mathcal{A}}{\mathboldReImMathClass}% |
| 932 |
{3C3D} |
| 933 |
\egroup |
| 934 |
\fi |
| 935 |
>>> |
| 936 |
|
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
%%%%%%%%%%%%%%% |
| 941 |
\chapter{pmathml.xsl} |
| 942 |
%%%%%%%%%%%%%%% |
| 943 |
|
| 944 |
%%%%%%%%%%%%%%%%%%%%% |
| 945 |
\section{Header Part} |
| 946 |
%%%%%%%%%%%%%%%%%%%%% |
| 947 |
|
| 948 |
\<pmathml dtd\><<< |
| 949 |
\Configure{DOCTYPE}{} |
| 950 |
>>> |
| 951 |
|
| 952 |
|
| 953 |
|
| 954 |
|
| 955 |
\<configure mozilla tex4ht\><<< |
| 956 |
\:CheckOption{pmathml} \if:Option |
| 957 |
|<pmathml configurations|> |
| 958 |
\:CheckOption{pmathml-css} \if:Option \else |
| 959 |
\Log:Note{If css rendering is preferred |
| 960 |
for MathML, use option `pmathml-css' instead of `pmathml'.} |
| 961 |
|<pmathml but not pmathml-css|> |
| 962 |
\fi |
| 963 |
\else |
| 964 |
\:CheckOption{pmathml-css} \if:Option \else |
| 965 |
\Log:Note{For multi-platform MathML |
| 966 |
through stylesheet transforms, use the command line option |
| 967 |
`pmathml'. If css rendering is preferred, use `pmathml-css'.} |
| 968 |
\fi \fi |
| 969 |
>>> |
| 970 |
|
| 971 |
|
| 972 |
\<pmathml configurations\><<< |
| 973 |
\:CheckOption{pmathml-css} \if:Option |
| 974 |
\Configure{XML-STYLESHEET} |
| 975 |
{\HCode{% |
| 976 |
<?xml-stylesheet type="text/xsl" |
| 977 |
href="pmathmlcss.xsl"?>\Hnewline |
| 978 |
<!--http://www.w3.org/Math/XSL/pmathmlcss.xsl-->\Hnewline |
| 979 |
}} |
| 980 |
\else |
| 981 |
\Configure{XML-STYLESHEET} |
| 982 |
{\HCode{% |
| 983 |
<?xml-stylesheet type="text/xsl" |
| 984 |
href="pmathml.xsl"?>\Hnewline |
| 985 |
<!--http://www.w3.org/Math/XSL/pmathml.xsl-->\Hnewline |
| 986 |
}} |
| 987 |
\fi |
| 988 |
>>> |
| 989 |
|
| 990 |
\<pmathml configurations\><<< |
| 991 |
\:CheckOption{pmathml-css} \if:Option |
| 992 |
\Configure{@HTML} |
| 993 |
{xmlns:math="http://www.w3.org/1998/Math/MathML"\Hnewline |
| 994 |
xmlns:pref="http://www.w3.org/2002/Math/preference"\Hnewline |
| 995 |
pref:renderer="css" |
| 996 |
} |
| 997 |
\fi |
| 998 |
>>> |
| 999 |
|
| 1000 |
|
| 1001 |
\<configure mozilla Preamble\><<< |
| 1002 |
\:CheckOption{pmathml-css} \if:Option |
| 1003 |
\edef\Preamble{\Preamble,pmathml} |
| 1004 |
\fi |
| 1005 |
>>> |
| 1006 |
|
| 1007 |
|
| 1008 |
\Link[http://www.w3.org/Math/XSL/Overview.html]{}{}% |
| 1009 |
http://www.w3.org/Math/XSL/Overview.html\EndLink{} and |
| 1010 |
\Link[http://www.w3.org/Math/XSL/Overview-tech.html]{}{}% |
| 1011 |
http://www.w3.org/Math/XSL/Overview-tech.html\EndLink{} explains how |
| 1012 |
to make .xml pages (in fact, Tex4ht option MOZILLA) to Explorer 6 even |
| 1013 |
WITHOUT Mathplayer: it requires two .xsl style sheets (pmathml.xsl and |
| 1014 |
pmathmlcss.xsl, they can be retrieved there) and replacing |
| 1015 |
\verb+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//|<dtd lang|>" "mathml.dtd">+ |
| 1016 |
with |
| 1017 |
\verb+<?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>+. |
| 1018 |
Moreover, if one has Mathplayer installed, one must keep it away, for |
| 1019 |
check purposes, by replacing \verb+<html...>+ with |
| 1020 |
|
| 1021 |
\begin{verbatim} |
| 1022 |
<html |
| 1023 |
xmlns="http://www.w3.org/1999/xhtml" |
| 1024 |
xmlns:math="http://www.w3.org/1998/Math/MathML" |
| 1025 |
xmlns:pref="http://www.w3.org/2002/Math/preference" |
| 1026 |
pref:renderer="css" |
| 1027 |
> |
| 1028 |
\end{verbatim} |
| 1029 |
|
| 1030 |
|
| 1031 |
%%%%%%%%%%%%%%%%% |
| 1032 |
\section{Tables} |
| 1033 |
%%%%%%%%%%%%%%%%% |
| 1034 |
|
| 1035 |
|
| 1036 |
The attribute \verb+nowrap="nowrap"+ in table cells prevents |
| 1037 |
Mathplayer from displaying them its own way, and one gets minimal |
| 1038 |
cells, overlapped: it ought to be avoided altogether. |
| 1039 |
|
| 1040 |
It reappears in the option pmathml - as soon as Mathplayer is called |
| 1041 |
upon to deal with a table, the cells overlap from left to right, and |
| 1042 |
the last row is reduced almost to nothing. Pmathml-css, NOT calling on |
| 1043 |
Mathplayer, gives no trouble that way. |
| 1044 |
|
| 1045 |
\<pmathml but not pmathml-css\><<< |
| 1046 |
\Configure{halignTD} {}{} |
| 1047 |
{<}{\ifmathml \HCode{ columnalign="left"}\else |
| 1048 |
\HCode{ style="text-align:left" }\fi} |
| 1049 |
{-}{\ifmathml \HCode{ columnalign="center"}\else |
| 1050 |
\HCode{ style="text-align:center" }\fi} |
| 1051 |
{>}{\ifmathml \HCode{ columnalign="right"}\else |
| 1052 |
\HCode{ style="text-align:right" }\fi} |
| 1053 |
{^}{\ifmathml \HCode{ rowalign="top"}\else |
| 1054 |
\HCode{ style="vertical-align:top" }\fi} |
| 1055 |
{=}{\ifmathml \HCode{ rowalign="baseline"}\else |
| 1056 |
\HCode{ style="vertical-align:baseline" }\fi} |
| 1057 |
{||}{\ifmathml \HCode{ rowalign="center"}\else |
| 1058 |
\HCode{ style="vertical-align:middle" }\fi} |
| 1059 |
{_}{\ifmathml \HCode{ rowalign="bottom"}\else |
| 1060 |
\HCode{ style="vertical-align:bottom" }\fi} |
| 1061 |
{p}{\ifmathml \HCode{ columnalign="left"}\else |
| 1062 |
\HCode{ style="text-align:left"}\fi} |
| 1063 |
{} |
| 1064 |
>>> |
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
|
| 1071 |
\endinput |