| 1 |
% $Id: tex4ht-mkht.tex 1367 2023-09-10 15:49:40Z karl $ |
| 2 |
% (1) latex tex4ht-mkht |
| 3 |
% (2) perl -c mk4ht.perl (checking correctness) |
| 4 |
% (3) latex mkht-scripts.4ht |
| 5 |
% |
| 6 |
% Copyright 2009-2023 TeX Users Group |
| 7 |
% Copyright 1997-2009 Eitan M. Gurari |
| 8 |
% Released under LPPL 1.3c+. |
| 9 |
% See tex4ht-cpright.tex for license text. |
| 10 |
|
| 11 |
\documentclass{article} |
| 12 |
\usepackage{url} |
| 13 |
\def\CodeDel{{<<<-}{->>>}} |
| 14 |
\ifx \HCode\UnDef |
| 15 |
\input tex4ht.sty |
| 16 |
\Preamble{xhtml} |
| 17 |
\input ProTex.sty |
| 18 |
\AlProTex{4ht,<<<>>>,?,title,list} |
| 19 |
\AtBeginDocument{\EndPreamble} |
| 20 |
\else |
| 21 |
\Configure{ProTex}{4ht,<<<>>>,?,title,list,[[]]} |
| 22 |
\fi |
| 23 |
|
| 24 |
\begin{document} |
| 25 |
|
| 26 |
%%%%%%%%%%%%%%%%%%%%% definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 27 |
|
| 28 |
\input{common} |
| 29 |
|
| 30 |
\def\mkhtNote{ |
| 31 |
|
| 32 |
} |
| 33 |
\newtoks\ourtoks |
| 34 |
|
| 35 |
\expandafter\ourtoks\expandafter{\mkhtNote} |
| 36 |
|
| 37 |
%%%%%%%%%%%%%%%%%%%%% end definitions %%%%%%%%%%%%%%%%%%%%%%%%% |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
%%%%%%%%%%%%%%%%%% |
| 42 |
\section{TeX Dialects} |
| 43 |
%%%%%%%%%%%%%%%%%% |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 48 |
\subsection{\LaTeX} |
| 49 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
\<def script\><<<- |
| 54 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 55 |
\section{LaTeX} |
| 56 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 57 |
|
| 58 |
|
| 59 |
\<htlatex ...\><<< |
| 60 |
|<unix line|>|<windows line|> |
| 61 |
|<latex|> |
| 62 |
|<latex|> |
| 63 |
|<latex|> |
| 64 |
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|> |
| 65 |
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|> |
| 66 |
|
| 67 |
>>> |
| 68 |
|
| 69 |
|
| 70 |
\<latex\><<< |
| 71 |
latex |<@|>5 |<'|>|<definitions|>|<get parameters|>|empty>>> |
| 72 |
|
| 73 |
\<get parameters\><<< |
| 74 |
\HCode |<'|>|<@|>2|<'|>.a.b.c.\input |<'|> |<@|>1>>> |
| 75 |
|
| 76 |
|
| 77 |
\<definitions\><<< |
| 78 |
\makeatletter|<get 2nd arg|>|<2e + 209|>\makeatother>>> |
| 79 |
|
| 80 |
\<get 2nd arg\><<< |
| 81 |
\def\HCode{\futurelet\HCode\HChar}\def\HChar{|<double quotes??|>}>>> |
| 82 |
|
| 83 |
\<double quotes??\><<< |
| 84 |
\ifx"\HCode|<remove qts|>\expandafter\HCode\else\expandafter\Link\fi>>> |
| 85 |
|
| 86 |
\<remove qts\><<< |
| 87 |
\def\HCode"##1"{\Link##1}>>> |
| 88 |
|
| 89 |
|
| 90 |
\<2e + 209\><<< |
| 91 |
\def\Link#1.a.b.c.{|<2e|>|<209|>}>>> |
| 92 |
|
| 93 |
\<2e\><<< |
| 94 |
\g@addto@macro\@documentclasshook{|<require package|>}>>> |
| 95 |
|
| 96 |
\<209\><<< |
| 97 |
|<save|>\def\documentstyle{|<recall|>|<options|>|<209+tex4ht|>}>>> |
| 98 |
|
| 99 |
\<require package\><<< |
| 100 |
\RequirePackage[#1|<II|>|<,html|>]{tex4ht}>>> |
| 101 |
|
| 102 |
|
| 103 |
\<options\><<< |
| 104 |
|<def tex4ht|>{#1|<II|>|<,html|>}>>> |
| 105 |
|
| 106 |
|
| 107 |
\<209+tex4ht\><<< |
| 108 |
|<209+tex4ht+...|>\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}>>> |
| 109 |
|
| 110 |
\<209+tex4ht+...\><<< |
| 111 |
\def\HCode####1{\documentstyle[tex4ht,}>>> |
| 112 |
|
| 113 |
|
| 114 |
\<save\><<< |
| 115 |
\let\HCode\documentstyle>>> |
| 116 |
|
| 117 |
\<recall\><<< |
| 118 |
\let\documentstyle\HCode>>> |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
\<htlatex 2e...\><<< |
| 123 |
|<unix line|>|<windows line|>|<latex2e|> |
| 124 |
|<latex2e|> |
| 125 |
|<latex2e|> |
| 126 |
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|> |
| 127 |
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|> |
| 128 |
|
| 129 |
>>> |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
\<latex2e\><<< |
| 135 |
latex |<@|>5 |<'|>|<definitions2e|>|<get parameters|>|empty>>> |
| 136 |
|
| 137 |
\<definitions2e\><<< |
| 138 |
\makeatletter|<get 2nd arg|>|<2e only|>\makeatother>>> |
| 139 |
|
| 140 |
|
| 141 |
\<2e only\><<< |
| 142 |
\def\Link#1.a.b.c.{|<2e|>}>>> |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
\<htlatex 209...\><<< |
| 149 |
|<unix line|>|<windows line|>|<latex209|> |
| 150 |
|<latex209|> |
| 151 |
|<latex209|> |
| 152 |
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|> |
| 153 |
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|> |
| 154 |
|
| 155 |
>>> |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
\<latex209\><<< |
| 161 |
latex |<@|>5 |<'|>|<definitions209|>|<get parameters|>|empty>>> |
| 162 |
|
| 163 |
\<definitions209\><<< |
| 164 |
\makeatletter|<get 2nd arg|>|<209 only|>\makeatother>>> |
| 165 |
|
| 166 |
|
| 167 |
\<209 only\><<< |
| 168 |
\def\Link#1.a.b.c.{|<209|>}>>> |
| 169 |
|
| 170 |
->>> |
| 171 |
|
| 172 |
|
| 173 |
\<add script\><<<- |
| 174 |
\OutputCodE\<\pref latex\latex.\ext\> \script{\pref latex}{\ext} % |
| 175 |
\expandafter\let\csname\pref latex\latex\endcsname=\UnDef |
| 176 |
% |
| 177 |
->>> |
| 178 |
|
| 179 |
|
| 180 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 181 |
\subsection{\TeX} |
| 182 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
\<def script\><<<- |
| 187 |
|
| 188 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 189 |
\section{TeX} |
| 190 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 191 |
|
| 192 |
|
| 193 |
\<httex...\><<< |
| 194 |
|<unix line|>|<windows line|>|<tex|> |
| 195 |
|<tex|> |
| 196 |
|<tex|> |
| 197 |
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|> |
| 198 |
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|> |
| 199 |
|
| 200 |
>>> |
| 201 |
|
| 202 |
\<tex\><<< |
| 203 |
etex |<@|>5 |<'|>|<tex definitions|>|<get parameters|>|empty>>> |
| 204 |
|
| 205 |
|
| 206 |
\<tex definitions\><<< |
| 207 |
|<set hook|>|<get 2nd arg|>|empty>>> |
| 208 |
|
| 209 |
\<set hook\><<< |
| 210 |
\def\Link#1.a.b.c.{|<def tex4ht|>{|<options|>\input tex4ht.sty }}>>> |
| 211 |
|
| 212 |
|
| 213 |
\<def tex4ht\><<< |
| 214 |
\expandafter\def\csname tex4ht\endcsname>>> |
| 215 |
|
| 216 |
->>> |
| 217 |
|
| 218 |
|
| 219 |
\<add script\><<<- |
| 220 |
\<\pref tex.\ext\><<< |
| 221 |
\<httex...\> |
| 222 |
>>> % |
| 223 |
% |
| 224 |
\OutputCodE\<\pref tex.\ext\> \script{\pref tex}{\ext} % |
| 225 |
% |
| 226 |
->>> |
| 227 |
|
| 228 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 229 |
\subsection{Texinfo} |
| 230 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 231 |
|
| 232 |
|
| 233 |
\<def script\><<<- |
| 234 |
%%%%%%%%%%%%%%%%%%%% |
| 235 |
\section{Texinfo} |
| 236 |
%%%%%%%%%%%%%%%%%%%% |
| 237 |
|
| 238 |
The loading of tex4ht takes place at the @rm command at the end of the |
| 239 |
texinfo.tex file. |
| 240 |
|
| 241 |
\<httexi...\><<< |
| 242 |
|<unix line|>|<windows line|>|<texinfo|> |
| 243 |
|<texinfo|> |
| 244 |
|<texinfo|> |
| 245 |
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|> |
| 246 |
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|> |
| 247 |
|<Rem|> texindex ?? |
| 248 |
|
| 249 |
>>> |
| 250 |
|
| 251 |
\<texinfo\><<< |
| 252 |
etex |<@|>5 |<'|>|<texinfo definitions|>|<get parameters|>|empty>>> |
| 253 |
|
| 254 |
|
| 255 |
\<texinfo definitions\><<< |
| 256 |
|<tex definitions|>\let\svrm=\rm\def\rm{\svrm|<tex4ht into texinfo|>}>>> |
| 257 |
|
| 258 |
\<tex4ht into texinfo\><<< |
| 259 |
\ifx\c\comment\def\rm{\let\rm=\svrm|<load into texinfo|>}\expandafter\rm\fi>>> |
| 260 |
|
| 261 |
\<load into texinfo\><<< |
| 262 |
|<change cats|>\csname tex4ht\endcsname|<restore cats|>|empty>>> |
| 263 |
|
| 264 |
\<change cats\><<< |
| 265 |
\catcode`\@=12\catcode`\\=0 >>> |
| 266 |
|
| 267 |
\<restore cats\><<< |
| 268 |
\catcode`\@=0\catcode`\\=13 >>> |
| 269 |
->>> |
| 270 |
|
| 271 |
|
| 272 |
\<add script\><<<- |
| 273 |
\<\pref texi.\ext\><<< |
| 274 |
\<httexi...\> |
| 275 |
>>> % |
| 276 |
% |
| 277 |
\OutputCodE\<\pref texi.\ext\> \script{\pref texi}{\ext} % |
| 278 |
% |
| 279 |
->>> |
| 280 |
|
| 281 |
|
| 282 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 283 |
\subsection{XeTeX} |
| 284 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 285 |
|
| 286 |
\<def script\><<<- |
| 287 |
|
| 288 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 289 |
\section{XeTeX} |
| 290 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 291 |
|
| 292 |
|
| 293 |
\<htxetex...\><<< |
| 294 |
|<unix line|>|<windows line|>|<xetex|> |
| 295 |
|<xetex|> |
| 296 |
|<xetex|> |
| 297 |
|<base|>tex4ht -.xdv |<dir ch|>|<@|>1 |<III|> |
| 298 |
|<base|>t4ht -.xdv |<dir ch|>|<@|>1 |<IV|> |
| 299 |
|
| 300 |
>>> |
| 301 |
|
| 302 |
\<xetex\><<< |
| 303 |
xetex -no-pdf |<@|>5 |<'|>|<tex definitions|>|<get parameters|>|empty>>> |
| 304 |
->>> |
| 305 |
|
| 306 |
|
| 307 |
\<add script\><<<- |
| 308 |
\<\pref xetex.\ext\><<< |
| 309 |
\<htxetex...\> |
| 310 |
>>> % |
| 311 |
% |
| 312 |
\OutputCodE\<\pref xetex.\ext\> \script{\pref xetex}{\ext} % |
| 313 |
% |
| 314 |
->>> |
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
\<def script\><<<- |
| 319 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 320 |
\section{XeLaTeX} |
| 321 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 322 |
|
| 323 |
|
| 324 |
\<htxelatex...\><<< |
| 325 |
|<unix line|>|<windows line|>|<xelatex|> |
| 326 |
|<xelatex|> |
| 327 |
|<xelatex|> |
| 328 |
|<base|>tex4ht -.xdv |<dir ch|>|<@|>1 |<III|> |
| 329 |
|<base|>t4ht -.xdv |<dir ch|>|<@|>1 |<IV|> |
| 330 |
|
| 331 |
>>> |
| 332 |
|
| 333 |
|
| 334 |
\<xelatex\><<< |
| 335 |
xelatex -no-pdf |<@|>5 |<'|>|<definitions|>|<get parameters|>|empty>>> |
| 336 |
->>> |
| 337 |
|
| 338 |
\<add script\><<<- |
| 339 |
\<\pref xelatex.\ext\><<< |
| 340 |
\<htxelatex...\> |
| 341 |
>>> % |
| 342 |
% |
| 343 |
\OutputCodE\<\pref xelatex.\ext\> \script{\pref xelatex}{\ext} % |
| 344 |
% |
| 345 |
->>> |
| 346 |
|
| 347 |
|
| 348 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 349 |
\subsection{Mex} |
| 350 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 351 |
|
| 352 |
|
| 353 |
\<def script\><<<- |
| 354 |
|
| 355 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 356 |
\section{MeX} |
| 357 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 358 |
|
| 359 |
\<htmex...\><<< |
| 360 |
|<unix line|>|<windows line|>|<mex|> |
| 361 |
|<mex|> |
| 362 |
|<mex|> |
| 363 |
|<base|>tex4ht |<dir ch|>|<@|>1 |<III|> |
| 364 |
|<base|>t4ht |<dir ch|>|<@|>1 |<IV|> |
| 365 |
|
| 366 |
>>> |
| 367 |
|
| 368 |
\<mex\><<< |
| 369 |
mex |<@|>5 |<'|>|<tex definitions|>|<get parameters|>|empty>>> |
| 370 |
|
| 371 |
->>> |
| 372 |
|
| 373 |
|
| 374 |
\<add script\><<<- |
| 375 |
\<\pref mex.\ext\><<< |
| 376 |
\<htmex...\> |
| 377 |
>>> % |
| 378 |
% |
| 379 |
\OutputCodE\<\pref mex.\ext\> \script{\pref mex}{\ext} % |
| 380 |
% |
| 381 |
->>> |
| 382 |
|
| 383 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 384 |
% \subsection{Mex} |
| 385 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 386 |
% |
| 387 |
% |
| 388 |
% \<def script\><<<- |
| 389 |
% |
| 390 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 391 |
% \subsection{MeX il2-pl} |
| 392 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 393 |
% |
| 394 |
% \<htmex-pl...\><<< |
| 395 |
% |<unix line|>|<windows line|>|<mex-pl|> |
| 396 |
% |<mex-pl|> |
| 397 |
% |<mex-pl|> |
| 398 |
% |<base|>tex4ht |<dir ch|>|<@|>1 |<III|> |
| 399 |
% |<base|>t4ht |<dir ch|>|<@|>1 |<IV|> |
| 400 |
% |
| 401 |
% >>> |
| 402 |
% |
| 403 |
% \<mex-pl\><<< |
| 404 |
% mex-pl -translate-file=il2-pl |<'|>|<tex definitions|>|<get parameters|>|empty>>> |
| 405 |
% |
| 406 |
% ->>> |
| 407 |
% |
| 408 |
% |
| 409 |
% \<add script\><<<- |
| 410 |
% \<\pref mex-pl.\ext\><<< |
| 411 |
% \<htmex-pl...\> |
| 412 |
% >>> % |
| 413 |
% % |
| 414 |
% \OutputCodE\<\pref mex-pl.\ext\> \script{\pref mex-pl}{\ext} % |
| 415 |
% % |
| 416 |
% ->>> |
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
%%%%%%%%%%%%%%%%%% |
| 421 |
\section{Markup Dialects} |
| 422 |
%%%%%%%%%%%%%%%%%% |
| 423 |
|
| 424 |
%%%%%%%%%%%%% |
| 425 |
\subsection{HTML: ht} |
| 426 |
%%%%%%%%%%%%% |
| 427 |
|
| 428 |
|
| 429 |
WARNING: Don't include `-cvalidatehtml' in the htlatex script as it will |
| 430 |
be required by every script called with mk4ht. For instance, `mk4ht |
| 431 |
dblatex file'. |
| 432 |
|
| 433 |
\<unix scripts\><<<- |
| 434 |
\Ii{,html} |
| 435 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1} |
| 436 |
\Iv{#1 ## -d~/WWW/temp/ -m644 } |
| 437 |
|
| 438 |
\make{ht} |
| 439 |
->>> |
| 440 |
|
| 441 |
\<ms scripts\><<<- |
| 442 |
\Ii{,html} |
| 443 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 444 |
-ewin32/tex4ht.env} |
| 445 |
\Iv{#1 -ewin32/tex4ht.env } |
| 446 |
|
| 447 |
\make{ht} |
| 448 |
->>> |
| 449 |
|
| 450 |
The first line is for `ht ... ...' scripts. |
| 451 |
|
| 452 |
\<perl options\><<<- |
| 453 |
"", "ht", "", "", "", "-cvalidatehtml", |
| 454 |
"ht", "htlatex", "latex", "", "", "-cvalidatehtml", |
| 455 |
"ht", "httex", "tex", "", "", "-cvalidatehtml", |
| 456 |
"ht", "httexi", "texi", "", "", "-cvalidatehtml", |
| 457 |
"ht", "htxetex", "xetex", "", "", "-cvalidatehtml", |
| 458 |
"ht", "htxelatex", "xelatex", "", "", "-cvalidatehtml", |
| 459 |
->>> |
| 460 |
|
| 461 |
|
| 462 |
\<unix scripts\><<<- |
| 463 |
\<ht.unix\><<< |
| 464 |
|<unix line|>|<windows line|>$1 $2 |
| 465 |
$1 $2 |
| 466 |
$1 $2 |
| 467 |
tex4ht $2 |
| 468 |
t4ht $2 $3 |
| 469 |
>>> |
| 470 |
\OutputCodE\<ht.unix\> \script{ht}{unix} % |
| 471 |
->>> |
| 472 |
|
| 473 |
|
| 474 |
\<ms scripts\><<<- |
| 475 |
\<ht.bat\><<< |
| 476 |
|<windows line|> |
| 477 |
%1 %2 |
| 478 |
%1 %2 |
| 479 |
%1 %2 |
| 480 |
tex4ht %2 |
| 481 |
t4ht %2 %3 |
| 482 |
>>> |
| 483 |
\OutputCodE\<ht.bat\> \script{ht}{bat} % |
| 484 |
->>> |
| 485 |
|
| 486 |
|
| 487 |
%%%%%%%%%%%%% |
| 488 |
\subsection{XHTML: xh} |
| 489 |
%%%%%%%%%%%%% |
| 490 |
|
| 491 |
\<unix scripts\><<<- |
| 492 |
\Ii{,xhtml} |
| 493 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1} |
| 494 |
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 } |
| 495 |
\make{xh} |
| 496 |
->>> |
| 497 |
|
| 498 |
\<ms scripts\><<<- |
| 499 |
\Ii{,xhtml} |
| 500 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 501 |
-ewin32/tex4ht.env} |
| 502 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate } |
| 503 |
\make{xh} |
| 504 |
->>> |
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
\<perl options\><<<- |
| 509 |
"xh", "xhlatex", "latex", "xhtml", "", "-cvalidate", |
| 510 |
"xh", "xhtex", "tex", "xhtml", "", "-cvalidate", |
| 511 |
"xh", "xhtexi", "texi", "xhtml", "", "-cvalidate", |
| 512 |
"xh", "xhxelatex", "xelatex", "xhtml", "", "-cvalidate", |
| 513 |
"xh", "xhxetex", "xetex", "xhtml", "", "-cvalidate", |
| 514 |
->>> |
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
%%%%%%%%%%%%% |
| 519 |
\subsection{Unicode XHTML: uxh} |
| 520 |
%%%%%%%%%%%%% |
| 521 |
|
| 522 |
\<unix scripts\><<<- |
| 523 |
\Ii{,xhtml,uni-html4} |
| 524 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf} |
| 525 |
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 } |
| 526 |
\make{uxh} |
| 527 |
->>> |
| 528 |
|
| 529 |
\<ms scripts\><<<- |
| 530 |
\Ii{,xhtml,uni-html4} |
| 531 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 532 |
-ewin32/tex4ht.env |
| 533 |
-cunihtf} |
| 534 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate } |
| 535 |
\make{uxh} |
| 536 |
->>> |
| 537 |
|
| 538 |
\<perl options\><<<- |
| 539 |
"uxh", "uxhlatex", "latex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", |
| 540 |
"uxh", "uxhtex", "tex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", |
| 541 |
"uxh", "uxhtexi", "texi", "xhtml,uni-html4", " -cunihtf", "-cvalidate", |
| 542 |
"uxh", "uxhxelatex", "xelatex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", |
| 543 |
"uxh", "uxhxetex", "xetex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", |
| 544 |
->>> |
| 545 |
|
| 546 |
%%%%%%%%%%%%% |
| 547 |
\subsection{XHTML+MathML: xhm} |
| 548 |
%%%%%%%%%%%%% |
| 549 |
|
| 550 |
\<unix scripts\><<<- |
| 551 |
\Ii{,xhtml,mathml} |
| 552 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf} |
| 553 |
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 } |
| 554 |
\make{xhm} |
| 555 |
->>> |
| 556 |
|
| 557 |
\<ms scripts\><<<- |
| 558 |
\Ii{,xhtml,mathml} |
| 559 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 560 |
-ewin32/tex4ht.env -cunihtf} |
| 561 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate } |
| 562 |
\make{xhm} |
| 563 |
->>> |
| 564 |
|
| 565 |
|
| 566 |
\<perl options\><<<- |
| 567 |
"xhm", "xhmlatex", "latex", "xhtml,mathml", " -cunihtf", "-cvalidate", |
| 568 |
"xhm", "xhmtex", "tex", "xhtml,mathml", " -cunihtf", "-cvalidate", |
| 569 |
"xhm", "xhmtexi", "texi", "xhtml,mathml", " -cunihtf", "-cvalidate", |
| 570 |
"xhm", "xhmxelatex", "xelatex", "xhtml,mathml", " -cunihtf", "-cvalidate", |
| 571 |
"xhm", "xhmxetex", "xetex", "xhtml,mathml", " -cunihtf", "-cvalidate", |
| 572 |
->>> |
| 573 |
|
| 574 |
|
| 575 |
%%%%%%%%%%%%% |
| 576 |
\subsection{Mozilla XHTML+MathML: mz} |
| 577 |
%%%%%%%%%%%%% |
| 578 |
|
| 579 |
\<unix scripts\><<<- |
| 580 |
\Ii{,xhtml,mozilla} |
| 581 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf} |
| 582 |
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 } |
| 583 |
\make{mz} |
| 584 |
->>> |
| 585 |
|
| 586 |
\<ms scripts\><<<- |
| 587 |
\Ii{,xhtml,mozilla} |
| 588 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 589 |
-ewin32/tex4ht.env -cmozhtf} |
| 590 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate } |
| 591 |
\make{mz} |
| 592 |
->>> |
| 593 |
|
| 594 |
|
| 595 |
\<perl options\><<<- |
| 596 |
"mz", "mzlatex", "latex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", |
| 597 |
"mz", "mztex", "tex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", |
| 598 |
"mz", "mztexi", "texi", "xhtml,mozilla", " -cmozhtf", "-cvalidate", |
| 599 |
"mz", "mzxelatex", "xelatex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", |
| 600 |
"mz", "mzxetex", "xetex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", |
| 601 |
->>> |
| 602 |
|
| 603 |
|
| 604 |
%%%%%%%%%%%%% |
| 605 |
\subsection{OpenOffice: oo} |
| 606 |
%%%%%%%%%%%%% |
| 607 |
|
| 608 |
\<unix scripts\><<<- |
| 609 |
\Ii{,xhtml,ooffice} |
| 610 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf} |
| 611 |
\Iv{#1 -cooxtpipes -coo } |
| 612 |
\make{oo} |
| 613 |
->>> |
| 614 |
|
| 615 |
\<ms scripts\><<<- |
| 616 |
\Ii{,xhtml,ooffice} |
| 617 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 618 |
-ewin32/tex4ht.env -cmozhtf} |
| 619 |
\Iv{#1 -cooxtpipes -coo -ewin32/tex4ht.env -cvalidate } |
| 620 |
\make{oo} |
| 621 |
->>> |
| 622 |
|
| 623 |
|
| 624 |
\<perl options\><<<- |
| 625 |
"oo", "oolatex", "latex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", |
| 626 |
"oo", "ootex", "tex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", |
| 627 |
"oo", "ootexi", "texi", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", |
| 628 |
"oo", "ooxelatex", "xelatex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", |
| 629 |
"oo", "ooxetex", "xetex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", |
| 630 |
->>> |
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
%%%%%%%%%%%%% |
| 637 |
\subsection{EmacSpeak: es} |
| 638 |
%%%%%%%%%%%%% |
| 639 |
|
| 640 |
\<unix scripts\><<<- |
| 641 |
\Ii{,xhtml,emspk} |
| 642 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cemspkhtf -s4es} |
| 643 |
\Iv{#1 -cemspk ## -d~/WWW/temp/ -m644 } |
| 644 |
\make{es} |
| 645 |
->>> |
| 646 |
|
| 647 |
\<ms scripts\><<<- |
| 648 |
\Ii{,xhtml,emspk} |
| 649 |
\Iii{-itex4ht/ht-fonts/#1 |
| 650 |
-ewin32/tex4ht.env -cemspkhtf -s4es} |
| 651 |
\Iv{#1 -ewin32/tex4ht.env -cemspk } |
| 652 |
\make{es} |
| 653 |
->>> |
| 654 |
|
| 655 |
|
| 656 |
\<perl options\><<<- |
| 657 |
"es", "eslatex", "latex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", |
| 658 |
"es", "estex", "tex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", |
| 659 |
"es", "estexi", "texi", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", |
| 660 |
"es", "esxelatex", "xelatex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", |
| 661 |
"es", "esxetex", "xetex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", |
| 662 |
->>> |
| 663 |
|
| 664 |
|
| 665 |
|
| 666 |
|
| 667 |
|
| 668 |
%%%%%%%%%%%%% |
| 669 |
\subsection{JSML: js} |
| 670 |
%%%%%%%%%%%%% |
| 671 |
|
| 672 |
\<unix scripts\><<<- |
| 673 |
\Ii{,xhtml,jsml} |
| 674 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cjsmlhtf } |
| 675 |
\Iv{#1 -cjsml ## -d~/WWW/temp/ -m644 } |
| 676 |
\make{js} |
| 677 |
->>> |
| 678 |
|
| 679 |
\<ms scripts\><<<- |
| 680 |
\Ii{,xhtml,jsml} |
| 681 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 682 |
-ewin32/tex4ht.env -cjsmlhtf } |
| 683 |
\Iv{#1 -ewin32/tex4ht.env -cjsml } |
| 684 |
\make{js} |
| 685 |
->>> |
| 686 |
|
| 687 |
|
| 688 |
\<perl options\><<<- |
| 689 |
"js", "jslatex", "latex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", |
| 690 |
"js", "jstex", "tex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", |
| 691 |
"js", "jstexi", "texi", "xhtml,jsml", " -cjsmlhtf", "-cjsml", |
| 692 |
"js", "jsxelatex", "xelatex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", |
| 693 |
"js", "jsxetex", "xetex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", |
| 694 |
->>> |
| 695 |
|
| 696 |
|
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
%%%%%%%%%%%%% |
| 701 |
\subsection{jsMath: jm} |
| 702 |
%%%%%%%%%%%%% |
| 703 |
|
| 704 |
\<unix scripts\><<<- |
| 705 |
\Ii{,xhtml,jsmath} |
| 706 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf } |
| 707 |
\Iv{#1 ## -d~/WWW/temp/ -m644 } |
| 708 |
\make{jm} |
| 709 |
->>> |
| 710 |
|
| 711 |
\<ms scripts\><<<- |
| 712 |
\Ii{,xhtml,jsmath} |
| 713 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 714 |
-ewin32/tex4ht.env -cmozhtf } |
| 715 |
\Iv{#1 -ewin32/tex4ht.env } |
| 716 |
\make{jm} |
| 717 |
->>> |
| 718 |
|
| 719 |
|
| 720 |
\<perl options\><<<- |
| 721 |
"jm", "jmlatex", "latex", "xhtml,jsmath", " -cmozhtf", "", |
| 722 |
"jm", "jmtex", "tex", "xhtml,jsmath", " -cmozhtf", "", |
| 723 |
"jm", "jmtexi", "texi", "xhtml,jsmath", " -cmozhtf", "", |
| 724 |
"jm", "jmxelatex", "xelatex", "xhtml,jsmath", " -cmozhtf", "", |
| 725 |
"jm", "jmxetex", "xetex", "xhtml,jsmath", " -cmozhtf", "", |
| 726 |
->>> |
| 727 |
|
| 728 |
|
| 729 |
|
| 730 |
|
| 731 |
|
| 732 |
|
| 733 |
|
| 734 |
|
| 735 |
%%%%%%%%%%%%% |
| 736 |
\subsection{TEI: tei, teim} |
| 737 |
%%%%%%%%%%%%% |
| 738 |
|
| 739 |
\<unix scripts\><<<- |
| 740 |
\Ii{,xhtml,tei} |
| 741 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf} |
| 742 |
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 } |
| 743 |
\make{tei} |
| 744 |
|
| 745 |
\Ii{,xhtml,tei-mml} |
| 746 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf} |
| 747 |
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 } |
| 748 |
\make{teim} |
| 749 |
->>> |
| 750 |
|
| 751 |
\<ms scripts\><<<- |
| 752 |
\Ii{,xhtml,tei} |
| 753 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 754 |
-ewin32/tex4ht.env -cunihtf} |
| 755 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate } |
| 756 |
\make{tei} |
| 757 |
|
| 758 |
\Ii{,xhtml,tei-mml} |
| 759 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 760 |
-ewin32/tex4ht.env -cunihtf} |
| 761 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate } |
| 762 |
\make{teim} |
| 763 |
->>> |
| 764 |
|
| 765 |
|
| 766 |
\<perl options\><<<- |
| 767 |
"tei", "teilatex", "latex", "xhtml,tei", " -cunihtf", "-cvalidate", |
| 768 |
"tei", "teitex", "tex", "xhtml,tei", " -cunihtf", "-cvalidate", |
| 769 |
"tei", "teitexi", "texi", "xhtml,tei", " -cunihtf", "-cvalidate", |
| 770 |
"teim", "teimlatex", "latex", "xhtml,tei-mml"," -cunihtf", "-cvalidate", |
| 771 |
"teim", "teimtex", "tex", "xhtml,tei-mml"," -cunihtf", "-cvalidate", |
| 772 |
"teim", "teimtexi", "texi", "xhtml,tei-mml"," -cunihtf", "-cvalidate", |
| 773 |
"tei", "teixelatex", "xelatex", "xhtml,tei", " -cunihtf", "-cvalidate", |
| 774 |
"tei", "teixetex", "xetex", "xhtml,tei", " -cunihtf", "-cvalidate", |
| 775 |
->>> |
| 776 |
|
| 777 |
|
| 778 |
%%%%%%%%%%%%% |
| 779 |
\subsection{DocBook: db, dbm} |
| 780 |
%%%%%%%%%%%%% |
| 781 |
|
| 782 |
\<unix scripts\><<<- |
| 783 |
\Ii{,xhtml,docbook} |
| 784 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf} |
| 785 |
\Iv{#1 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 } |
| 786 |
\make{db} |
| 787 |
|
| 788 |
\Ii{,xhtml,docbook-mml} |
| 789 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf} |
| 790 |
\Iv{#1 -cdocbk ## -d~/WWW/temp/ -m644 } |
| 791 |
\make{dbm} |
| 792 |
->>> |
| 793 |
|
| 794 |
\<ms scripts\><<<- |
| 795 |
\Ii{,xhtml,docbook} |
| 796 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 797 |
-ewin32/tex4ht.env -cunihtf} |
| 798 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate -cdocbk } |
| 799 |
\make{db} |
| 800 |
|
| 801 |
\Ii{,xhtml,docbook-mml} |
| 802 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 803 |
-ewin32/tex4ht.env -cunihtf} |
| 804 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate -cdocbk } |
| 805 |
\make{dbm} |
| 806 |
->>> |
| 807 |
|
| 808 |
|
| 809 |
|
| 810 |
\<perl options\><<<- |
| 811 |
"db", "dblatex", "latex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", |
| 812 |
"db", "dbtex", "tex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", |
| 813 |
"db", "dbtexi", "texi", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", |
| 814 |
"dbm", "dbmlatex", "latex", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", |
| 815 |
"dbm", "dbmtex", "tex", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", |
| 816 |
"dbm", "dbmtexi", "texi", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", |
| 817 |
"db", "dbxelatex", "xelatex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", |
| 818 |
"db", "dbxetex", "xetex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", |
| 819 |
->>> |
| 820 |
|
| 821 |
|
| 822 |
|
| 823 |
%%%%%%%%%%%%% |
| 824 |
\subsection{MS Word HTML: w} |
| 825 |
%%%%%%%%%%%%% |
| 826 |
|
| 827 |
|
| 828 |
\<unix scripts\><<<- |
| 829 |
\Ii{,xhtml,word} |
| 830 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -csymhtf} |
| 831 |
\Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 } |
| 832 |
\make{w} |
| 833 |
->>> |
| 834 |
|
| 835 |
\<ms scripts\><<<- |
| 836 |
\Ii{,xhtml,word} |
| 837 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 838 |
-ewin32/tex4ht.env -csymhtf} |
| 839 |
\Iv{#1 -ewin32/tex4ht.env -cvalidate } |
| 840 |
\make{w} |
| 841 |
->>> |
| 842 |
|
| 843 |
|
| 844 |
|
| 845 |
|
| 846 |
\<perl options\><<<- |
| 847 |
"w", "wlatex", "latex", "xhtml,word", " -csymhtf", "", |
| 848 |
"w", "wtex", "tex", "xhtml,word", " -csymhtf", "", |
| 849 |
"w", "wtexi", "texi", "xhtml,word", " -csymhtf", "", |
| 850 |
"w", "wxelatex", "xelatex", "xhtml,word", " -csymhtf", "", |
| 851 |
"w", "wxetex", "xetex", "xhtml,word", " -csymhtf", "", |
| 852 |
->>> |
| 853 |
|
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
%%%%%%%%%%%%% |
| 858 |
\subsection{JavaHelp: jh} |
| 859 |
%%%%%%%%%%%%% |
| 860 |
|
| 861 |
\<unix scripts\><<<- |
| 862 |
\Ii{,html,javahelp,xml,3.2,unicode} |
| 863 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf -u10} |
| 864 |
\Iv{#1 -d$1-doc/ -cjavahelp -cvalidatehtml -m644} |
| 865 |
\make{jh} |
| 866 |
->>> |
| 867 |
|
| 868 |
\<ms scripts\><<<- |
| 869 |
\Ii{,html,javahelp,xml,3.2,unicode} |
| 870 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 871 |
-ewin32/tex4ht.env |
| 872 |
-cmozhtf -u10} |
| 873 |
\Iv{#1 -ewin32/tex4ht.env -d%1-doc\ -cjavahelp } |
| 874 |
\make{jh} |
| 875 |
->>> |
| 876 |
|
| 877 |
|
| 878 |
\<perl options\><<<- |
| 879 |
"jh", "jhlatex", "latex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", |
| 880 |
"jh", "jhtex", "tex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", |
| 881 |
"jh", "jhtexi", "texi", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", |
| 882 |
"jh", "jhxelatex", "xelatex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", |
| 883 |
"jh", "jhxetex", "xetex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", |
| 884 |
->>> |
| 885 |
|
| 886 |
|
| 887 |
\<unix scripts\><<<- |
| 888 |
\Ii{,html,javahelp,xml,3.2,unicode,jh1.0} |
| 889 |
\Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf -u10} |
| 890 |
\Iv{#1 -d$texFile-doc/ -cjavahelp1 -m644 } |
| 891 |
\make{jh1} |
| 892 |
->>> |
| 893 |
|
| 894 |
\<ms scripts\><<<- |
| 895 |
\Ii{,html,javahelp,xml,3.2,unicode,jh1.0} |
| 896 |
\Iii{-i/tex4ht/ht-fonts/#1 |
| 897 |
-ewin32/tex4ht.env |
| 898 |
-cmozhtf -u10} |
| 899 |
\Iv{#1 -ewin32/tex4ht.env -d%1-doc\ -cjavahelp1 } |
| 900 |
\make{jh1} |
| 901 |
->>> |
| 902 |
|
| 903 |
|
| 904 |
\<perl options\><<<- |
| 905 |
"jh1", "jh1latex", "latex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", |
| 906 |
"jh1", "jh1tex", "tex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", |
| 907 |
"jh1", "jh1texi", "texi", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", |
| 908 |
"jh1", "jh1xelatex", "xelatex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", |
| 909 |
"jh1", "jh1xetex", "xetex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", |
| 910 |
->>> |
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
The xml declaration at |
| 915 |
\url{http://java.sun.com/products/javahelp/toc_1_0.dtd} |
| 916 |
doesn't start at row/col=1 make it impossible to validate |
| 917 |
against that file. |
| 918 |
|
| 919 |
|
| 920 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 921 |
\section{mkht.4ht} |
| 922 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 923 |
|
| 924 |
\<mkht\><<<- |
| 925 |
% mkht.4ht (?version), generated from ?jobname.tex |
| 926 |
% Copyright 2009-2023 TeX Users Group |
| 927 |
% Copyright ?CopyYear.1997. Eitan M. Gurari |
| 928 |
?<TeX4ht copyright?> |
| 929 |
\immediate\write-1{version ?version} |
| 930 |
|
| 931 |
\def\exit{\documentclass{article}\begin{document}\end{document}\endinput} |
| 932 |
\bgroup |
| 933 |
\def\missing#1{\aftergroup\exit |
| 934 |
\immediate\write16{---------------------------- error |
| 935 |
---------------------------- |
| 936 |
^^JRequires #1ProTex.sty from |
| 937 |
https://tug.org/tex4ht^^J% |
| 938 |
---------------------------------------------------------------}} |
| 939 |
\openin15=ProTex.sty \ifeof15 \missing{}\else \closein15 \fi |
| 940 |
\openin15=AlProTex.sty \ifeof15 \missing{Al}\else \closein15 \fi |
| 941 |
\egroup |
| 942 |
|
| 943 |
\let\ScriptFileName\relax |
| 944 |
\let\AddExtn\relax |
| 945 |
|
| 946 |
\documentclass{article} |
| 947 |
|
| 948 |
\ifx \HCode\UnDef |
| 949 |
\input tex4ht.sty |
| 950 |
\Preamble{xhtml} |
| 951 |
\input ProTex.sty |
| 952 |
\AlProTex{foo,<<<>>>,|,title,list} |
| 953 |
\begin{document} |
| 954 |
\EndPreamble |
| 955 |
\else |
| 956 |
\Configure{ProTex}{foo,<<<>>>,|,title,list,[[]]} |
| 957 |
\begin{document} |
| 958 |
\fi |
| 959 |
|
| 960 |
\catcode`\:=11 |
| 961 |
\def\OutputCodE\<#1.#2\>{{\xdef\ScriptFileName{#1} |
| 962 |
\:DoName\def{#1}{\<#1.#2\>} |
| 963 |
\OutputCode[#2]\<#1\>}} |
| 964 |
\def\winextn{bat} |
| 965 |
\def\AddExtn{\ifx\ext\winextn .bat\fi} |
| 966 |
|
| 967 |
\tableofcontents |
| 968 |
|
| 969 |
?<def script?> |
| 970 |
|
| 971 |
%%%%%%%%%%%%%%%%%%%%%% |
| 972 |
\section{Script Components} |
| 973 |
%%%%%%%%%%%%%%%%%%%%%% |
| 974 |
|
| 975 |
\def\setcats{\catcode`\\=12 \catcode`\%=12 \catcode`\~=12 |
| 976 |
\catcode`\_=12 |
| 977 |
} |
| 978 |
|
| 979 |
\def\Remark{\bgroup \catcode`\#=12 \setcats \Rema} \def\Rema#1{\egroup\def\Rem{#1}} |
| 980 |
\def\Ii{\def\II} |
| 981 |
\def\Iii{\bgroup \setcats \Iiicont} \def\Iiicont#1{\egroup\def\III.##1.{#1}} |
| 982 |
\def\Iv{\bgroup \setcats \Ivcont} \def\Ivcont#1{\egroup\def\IV.##1.{#1}} |
| 983 |
\def\Quote{\bgroup \setcats \Qcont} \def\Qcont#1{\egroup\def\quote{#1}} |
| 984 |
\def\Argchar{\bgroup \setcats \Acont}\def\Acont#1{\egroup\def\argchar{#1}} |
| 985 |
\def\Dirchar{\bgroup \setcats \Dicont}\def\Dicont#1{\egroup\def\dirchar{#1}} |
| 986 |
\def\Echooff{\bgroup \setcats \Dcont}\def\Dcont#1{\egroup\def\echoOff{#1}} |
| 987 |
\def\Ext{\bgroup \setcats \Econt} \def\Econt#1{\egroup\def\ext{#1}% |
| 988 |
?<unix shebang line?>} |
| 989 |
\def\Base{\bgroup \setcats \Bcont} \def\Bcont#1{\egroup\def\base{#1}} |
| 990 |
\def\Script{\def\script##1##2} % #1 -- file #2 -- extension |
| 991 |
\def\Options#1{\ifx \OPTIONS\UnDef \def\OPTIONS{#1}\fi} |
| 992 |
\def\Latex#1{\ifx \latex\UnDef \def\latex{#1}\fi} |
| 993 |
|
| 994 |
\let\Rem=\relax |
| 995 |
\let\II=\relax |
| 996 |
\let\III=\relax |
| 997 |
\let\IV=\relax |
| 998 |
\let\quote=\relax |
| 999 |
\let\argchar=\relax |
| 1000 |
\let\dirchar=\relax |
| 1001 |
\let\echoOff=\relax |
| 1002 |
\let\ext=\relax |
| 1003 |
\ifx \script\UnDef \let\script=\relax \fi |
| 1004 |
\let\base=\relax |
| 1005 |
\let\firstln=\relax |
| 1006 |
|
| 1007 |
\<Rem\><<< |
| 1008 |
|Rem>>> |
| 1009 |
|
| 1010 |
\<II\><<< |
| 1011 |
|II>>> |
| 1012 |
|
| 1013 |
\<III\><<< |
| 1014 |
|III.|<@|>3.>>> |
| 1015 |
|
| 1016 |
\<IV\><<< |
| 1017 |
|IV.|<@|>4.>>> |
| 1018 |
|
| 1019 |
\<'\><<< |
| 1020 |
|quote>>> |
| 1021 |
|
| 1022 |
\<@\><<< |
| 1023 |
|argchar>>> |
| 1024 |
|
| 1025 |
\<dir ch\><<< |
| 1026 |
|dirchar>>> |
| 1027 |
|
| 1028 |
\<base\><<< |
| 1029 |
|base>>> |
| 1030 |
|
| 1031 |
\<echo off\><<< |
| 1032 |
|echoOff>>> |
| 1033 |
|
| 1034 |
\<unix line\><<< |
| 1035 |
|firstln#!/bin/sh |
| 1036 |
# stop at first error |
| 1037 |
set -e |
| 1038 |
|
| 1039 |
# No interaction on the TeX runs is desirable. |
| 1040 |
# Simpler to do that here than on the individual commands; |
| 1041 |
# let's hope exec redirections are portable enough. |
| 1042 |
exec </dev/null |
| 1043 |
endfirstln |
| 1044 |
>>> |
| 1045 |
|
| 1046 |
Despite the name, this macro is not for Windows. It is unconditionally |
| 1047 |
included in all the scripts. It should only be the copyright notice, |
| 1048 |
which somehow gets transformed for Unix. Thus we go to lots of trouble |
| 1049 |
to insert the at-echo off only for Windows. |
| 1050 |
|
| 1051 |
\<windows line\><<< |
| 1052 |
|<echo off|> |
| 1053 |
?<MYcopyrightnotice?> |
| 1054 |
>>> |
| 1055 |
|
| 1056 |
|
| 1057 |
\def\IfExt#1,#2//{\def\next{#1}% |
| 1058 |
\ifx \next\ext \def\next{\csname iftrue\endcsname}% |
| 1059 |
\else \ifx \next\empty \def\next{\csname iffalse\endcsname}% |
| 1060 |
\else \def\next{\IfExt#2,,//}\fi\fi \next} |
| 1061 |
|
| 1062 |
\begingroup |
| 1063 |
\catcode`\:=11 \catcode`\^=7 \catcode`\^^M=13% |
| 1064 |
% |
| 1065 |
\gdef\make#1{% |
| 1066 |
\expandafter\IfExt\OPTIONS,,//% |
| 1067 |
% |
| 1068 |
\subsection{#1}% |
| 1069 |
\def\temp##1{\par{\tt\string##1: \meaning##1}}% |
| 1070 |
\temp\quote |
| 1071 |
\temp\argchar |
| 1072 |
\temp\dirchar |
| 1073 |
\temp\echoOff |
| 1074 |
\temp\ext |
| 1075 |
\temp\script |
| 1076 |
\temp\base |
| 1077 |
\temp\firstln |
| 1078 |
\temp\latex |
| 1079 |
\temp\Rem |
| 1080 |
\temp\II |
| 1081 |
\temp\III |
| 1082 |
\temp\IV |
| 1083 |
\def\pref{#1} % |
| 1084 |
\<\pref latex\latex.\ext\><<< |
| 1085 |
\<htlatex \latex...\> |
| 1086 |
>>> % |
| 1087 |
?<add script?>% |
| 1088 |
\fi |
| 1089 |
} % |
| 1090 |
\endgroup |
| 1091 |
|
| 1092 |
\ifx \JOBNAME\UnDefined |
| 1093 |
?<user's made scripts?> |
| 1094 |
\expandafter\endinput |
| 1095 |
\fi |
| 1096 |
|
| 1097 |
\input \JOBNAME |
| 1098 |
|
| 1099 |
\end{document} |
| 1100 |
\endinput |
| 1101 |
->>> |
| 1102 |
|
| 1103 |
\<user's made scripts\><<<- |
| 1104 |
\def\one{\Ii} |
| 1105 |
\def\two{\Iii} |
| 1106 |
\def\three{\Iv} |
| 1107 |
\Latex{} % {}, {2e}, {209} |
| 1108 |
\def\temp{unix}\ifx\script\temp |
| 1109 |
\Options{unix} % {unix,bat}, {unix}, {bat} |
| 1110 |
?<unix setup?> |
| 1111 |
\else |
| 1112 |
\def\temp{bat}\ifx\script\temp |
| 1113 |
\Options{bat} |
| 1114 |
?<ms setup?> |
| 1115 |
\else |
| 1116 |
\bgroup |
| 1117 |
\def\1{\space\space\space} |
| 1118 |
\def\2{\space\space\space\space\space\space} |
| 1119 |
\catcode`\%=12 |
| 1120 |
\catcode`\#=12 |
| 1121 |
\catcode`\~=12 |
| 1122 |
\catcode`\@=0 |
| 1123 |
\catcode`\\=12 |
| 1124 |
@immediate@write16{|-------------------------------------------------------------} |
| 1125 |
@immediate@write16{|@2@1 A sample of a scripts generator file } |
| 1126 |
@immediate@write16{|} |
| 1127 |
@immediate@write16{|@1 Creates a foolatex script for commands} |
| 1128 |
@immediate@write16{|} |
| 1129 |
@immediate@write16{|@2 foolatex file} |
| 1130 |
@immediate@write16{|} |
| 1131 |
@immediate@write16{|@1 similar to htlatex for commands} |
| 1132 |
@immediate@write16{|} |
| 1133 |
@immediate@write16{|@2 htlatex file "html,...1..." " ...2..." "...3..."} |
| 1134 |
@immediate@write16{|} |
| 1135 |
@immediate@write16{|@1 with the arguments ...1..., ...2..., and ...3... } |
| 1136 |
@immediate@write16{|@1 embedded in the new script. General usage} |
| 1137 |
@immediate@write16{|} |
| 1138 |
@immediate@write16{|@2 foolatex file "..." "..." "..."} |
| 1139 |
@immediate@write16{|} |
| 1140 |
@immediate@write16{|----------------- sample.tex --------------------------------} |
| 1141 |
@immediate@write16{|% latex sample} |
| 1142 |
@immediate@write16{|} |
| 1143 |
@immediate@write16{| \def\script{bat} } |
| 1144 |
@immediate@write16{| % \def\script{unix} } |
| 1145 |
@immediate@write16{|} |
| 1146 |
@immediate@write16{| \input ./mkht.4ht } |
| 1147 |
@immediate@write16{|} |
| 1148 |
@immediate@write16{| \one{,html,...1...}} |
| 1149 |
@immediate@write16{| \two{-i/tex4ht/ht-fonts/#1 ...2...} % bat } |
| 1150 |
@immediate@write16{| % \two{-i~/tex4ht/texmf/tex4ht/ht-fonts/#1 ...2...} % unix } |
| 1151 |
@immediate@write16{| \three{#1 ...3...}} |
| 1152 |
@immediate@write16{| \make{foo}} |
| 1153 |
@immediate@write16{|} |
| 1154 |
@immediate@write16{| \end{document} } |
| 1155 |
@immediate@write16{-------------------------------------------------------------} |
| 1156 |
@egroup |
| 1157 |
\def\next{\csname fi\endcsname |
| 1158 |
\csname fi\endcsname |
| 1159 |
\csname fi\endcsname\end{document}} |
| 1160 |
\fi \fi |
| 1161 |
->>> |
| 1162 |
|
| 1163 |
The script should have an explicit shebang (\#!/bin/sh) line for the |
| 1164 |
systems where csh-like shells are the foundation. If there is no |
| 1165 |
shebang line, the defaul shell (which can be anything) is used. |
| 1166 |
|
| 1167 |
|
| 1168 |
\<unix shebang line\><<<- |
| 1169 |
\def\firstln{unix}\ifx \firstln\ext |
| 1170 |
\def\firstln##1endfirstln{##1}% |
| 1171 |
\else \def\firstln##1endfirstln{}\fi |
| 1172 |
->>> |
| 1173 |
|
| 1174 |
|
| 1175 |
|
| 1176 |
|
| 1177 |
|
| 1178 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1179 |
\section{mkht-scripts.4ht} |
| 1180 |
%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1181 |
|
| 1182 |
\<mkht-scripts\><<<- |
| 1183 |
% mkht-scripts.4ht (?version), generated from ?jobname.tex |
| 1184 |
% Copyright 2009-2023 TeX Users Group |
| 1185 |
% Copyright ?CopyYear.2000. Eitan M. Gurari |
| 1186 |
?<TeX4ht copyright?> |
| 1187 |
|
| 1188 |
\ifx \JOBNAME\UnDef |
| 1189 |
\def\JOBNAME{mkht-scripts.4ht} |
| 1190 |
\def\next{\input ./mkht.4ht \endinput} |
| 1191 |
\expandafter\next |
| 1192 |
\fi |
| 1193 |
|
| 1194 |
\Options{unix,bat} % {unix,bat}, {unix}, {bat} |
| 1195 |
\Latex{} % {}, {2e}, {209} |
| 1196 |
|
| 1197 |
%%%%%%%%%%%%%%%%%% |
| 1198 |
\section{Unix Scripts} |
| 1199 |
%%%%%%%%%%%%%%%%%% |
| 1200 |
?<unix setup?> |
| 1201 |
\ifOption{Needs}{% |
| 1202 |
\Script{% #1 -- file #2 -- extension |
| 1203 |
\Needs{"sed -e 's/\#\# -d/ -d/g' < #1.#2 > /opt/cvr/gurari/tex4ht.dir/bin/solaris/#1"}% |
| 1204 |
\Needs{"chmod 700 /opt/cvr/gurari/tex4ht.dir/bin/solaris/#1"}% |
| 1205 |
\Needs{"mkdir -p mn.dir/ht-unix"}% |
| 1206 |
\Needs{"cp #1.#2 mn.dir/ht-unix/#1"}% |
| 1207 |
}}{} |
| 1208 |
\Script{% #1 -- file #2 -- extension |
| 1209 |
\Needs{"mkdir -p /opt/cvr/gurari/tex4ht.dir/bin/ht"}% |
| 1210 |
\Needs{"mkdir -p /opt/cvr/gurari/tex4ht.dir/bin/ht/unix"}% |
| 1211 |
\Needs{"mv #1.#2 /opt/cvr/gurari/tex4ht.dir/bin/ht/unix/#1"}% |
| 1212 |
\Needs{"chmod 744 /opt/cvr/gurari/tex4ht.dir/bin/ht/unix/#1"}% |
| 1213 |
} |
| 1214 |
|
| 1215 |
?<unix scripts?> |
| 1216 |
|
| 1217 |
%%%%%%%%%%%%%%%%%% |
| 1218 |
\section{MS Window Scripts} |
| 1219 |
%%%%%%%%%%%%%%%%%% |
| 1220 |
?<ms setup?> |
| 1221 |
\ifOption{Needs}{\Script{% |
| 1222 |
\Needs{"mkdir -p mn.dir/ht-win32"}% |
| 1223 |
\Needs{"cp #1.#2 mn.dir/ht-win32/."}% |
| 1224 |
}}{} |
| 1225 |
\Script{% #1 -- file #2 -- extension |
| 1226 |
\Needs{"mkdir -p /opt/cvr/gurari/tex4ht.dir/bin/ht/win32"}% |
| 1227 |
\Needs{"mv #1.#2 /opt/cvr/gurari/tex4ht.dir/bin/ht/win32/#1.#2"}% |
| 1228 |
\Needs{"chmod 744 /opt/cvr/gurari/tex4ht.dir/bin/ht/win32/#1.#2"}% |
| 1229 |
} |
| 1230 |
|
| 1231 |
?<ms scripts?> |
| 1232 |
?<mkht note?> |
| 1233 |
|
| 1234 |
\end{document} |
| 1235 |
->>> |
| 1236 |
|
| 1237 |
\<unix setup\><<<- |
| 1238 |
%%%%%%%%%% |
| 1239 |
\Ext{unix} |
| 1240 |
%%%%%%%%%% |
| 1241 |
\Base{} |
| 1242 |
\Quote{'} |
| 1243 |
\Argchar{$} |
| 1244 |
\Dirchar{-f/} |
| 1245 |
\Echooff{} |
| 1246 |
\Remark{#} |
| 1247 |
->>> |
| 1248 |
|
| 1249 |
\<ms setup\><<<- |
| 1250 |
%%%%%%%%%%%%%%%%%% |
| 1251 |
\Options{bat} |
| 1252 |
%%%%%%%%%%%%%%%%%% |
| 1253 |
%%%%%%%%% |
| 1254 |
\Ext{bat} |
| 1255 |
%%%%%%%%% |
| 1256 |
\Base{} |
| 1257 |
\Quote{} |
| 1258 |
\Argchar{%} |
| 1259 |
\Dirchar{} |
| 1260 |
\Echooff{@echo off} |
| 1261 |
\Remark{Rem } |
| 1262 |
->>> |
| 1263 |
|
| 1264 |
|
| 1265 |
|
| 1266 |
The htlatex-oriented scripts have the following outline. |
| 1267 |
|
| 1268 |
\begin{verbatim} |
| 1269 |
latex $5 $1 |
| 1270 |
latex $5 $1 |
| 1271 |
latex $5 $1 |
| 1272 |
tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 |
| 1273 |
t4ht -f/$1 $4 |
| 1274 |
\end{verbatim} |
| 1275 |
|
| 1276 |
The latex command may be introduced with a filename residing out of |
| 1277 |
the work directory. However, it produces the dvi code in the work |
| 1278 |
directory. Consequently, when activated by htlatex-oriented scripts, |
| 1279 |
the tex4ht.c and t4ht.c utilities need to look for the dvi code in the |
| 1280 |
work directory. The -f prefix asks these utilities to ignore the |
| 1281 |
paths possibly appearing in \verb!$1!. A path is recognized by |
| 1282 |
determining whether the character immediately after \verb'-f' is a |
| 1283 |
directory indicator character `\verb+\+' or `\verb+/+'. |
| 1284 |
|
| 1285 |
|
| 1286 |
|
| 1287 |
|
| 1288 |
|
| 1289 |
|
| 1290 |
%%%%%%%%%%%%%%%%%% |
| 1291 |
\section{Perl Script} |
| 1292 |
%%%%%%%%%%%%%%%%%% |
| 1293 |
|
| 1294 |
|
| 1295 |
%%%%%%%%%%%%% |
| 1296 |
\subsection{Core} |
| 1297 |
%%%%%%%%%%%%% |
| 1298 |
|
| 1299 |
|
| 1300 |
|
| 1301 |
\<mk4ht.perl\><<<- |
| 1302 |
#!/usr/bin/env perl |
| 1303 |
?<perl copyright notice?> |
| 1304 |
use strict; |
| 1305 |
$^W=1; # turn warning on |
| 1306 |
my $texFile = ''; |
| 1307 |
if( @ARGV ){ |
| 1308 |
my(@array) = split('\.',@ARGV[1]); |
| 1309 |
$texFile = @array[0]; |
| 1310 |
} |
| 1311 |
?<available options?> |
| 1312 |
?<help info?> |
| 1313 |
print "mk4ht (?version)\n"; |
| 1314 |
if( !@ARGV ){ |
| 1315 |
print "improper command\n"; |
| 1316 |
showInstrucions(); exit(1); |
| 1317 |
} |
| 1318 |
my @command=("","","","",""); |
| 1319 |
my $i=0; |
| 1320 |
my $j=0; |
| 1321 |
my $param; |
| 1322 |
?<mk4ht.cfg vars?> |
| 1323 |
foreach $param (@ARGV) { |
| 1324 |
if( $i == 0 ){ |
| 1325 |
?<load mk4ht.cfg?> |
| 1326 |
for( $j=1; $j<$#options; $j+=6 ){ |
| 1327 |
if( $param eq $options[$j] ){ |
| 1328 |
if( $name ){ |
| 1329 |
?<use cfg command?> |
| 1330 |
} else { |
| 1331 |
?<use cfg+built in command?> |
| 1332 |
} |
| 1333 |
?<insert cfg extras?> |
| 1334 |
last; |
| 1335 |
} } |
| 1336 |
if( $j>$#options ){ |
| 1337 |
if( $name ){ ?<use cfg command?> } |
| 1338 |
else { |
| 1339 |
print "improper command: $param \n"; |
| 1340 |
showInstrucions(); exit(1); |
| 1341 |
} } |
| 1342 |
} elsif ( $i== 1 ) { |
| 1343 |
$command[1] = $param; |
| 1344 |
} elsif ( $i== 2 ) { |
| 1345 |
if( $command[2] eq "" ){ |
| 1346 |
$command[2] = $param; |
| 1347 |
} else { |
| 1348 |
$command[2] = $param. "," . $command[2]; |
| 1349 |
} |
| 1350 |
} elsif ( $i== 3 ) { |
| 1351 |
$command[3] = $param . $command[3]; |
| 1352 |
} else { |
| 1353 |
$command[4] = $param. " " .$command[4]; |
| 1354 |
} |
| 1355 |
$i++; |
| 1356 |
} |
| 1357 |
my $cmd; |
| 1358 |
?<cmd = search command with kpsewhich?> |
| 1359 |
my $commando = $cmd . " " . $command[1] . " \"". |
| 1360 |
$command[2] . "\" \"". $command[3] . "\" \"" . |
| 1361 |
$command[4] . "\""; |
| 1362 |
print "$commando\n"; |
| 1363 |
my $rtrn; |
| 1364 |
if( $rtrn = system($commando) ){ |
| 1365 |
print "--- error --- failed to execute command\n"; |
| 1366 |
} else { |
| 1367 |
?<clean files?> |
| 1368 |
} |
| 1369 |
exit( $rtrn ); |
| 1370 |
->>> |
| 1371 |
|
| 1372 |
|
| 1373 |
\<ensure initialized command[*]MOPE\><<<- |
| 1374 |
if( !$command[1] ){ $command[1] = ""; } |
| 1375 |
if( !$command[2] ){ $command[2] = ""; } |
| 1376 |
if( !$command[3] ){ $command[3] = ""; } |
| 1377 |
if( !$command[4] ){ $command[4] = ""; } |
| 1378 |
->>> |
| 1379 |
|
| 1380 |
|
| 1381 |
|
| 1382 |
\<cmd = search command with kpsewhich\><<<- |
| 1383 |
open (KPSEA, "kpsewhich " . $command[0] . " |"); |
| 1384 |
if ($cmd = <KPSEA>){ |
| 1385 |
$cmd =~ s/\s+$//; |
| 1386 |
} else { |
| 1387 |
$cmd = $command[0]; |
| 1388 |
} |
| 1389 |
close KPSEA; |
| 1390 |
->>> |
| 1391 |
|
| 1392 |
|
| 1393 |
\<available options\><<<- |
| 1394 |
my @options = ( |
| 1395 |
?<perl options?> |
| 1396 |
); |
| 1397 |
->>> |
| 1398 |
|
| 1399 |
|
| 1400 |
Safety guards: |
| 1401 |
|
| 1402 |
\begin{itemize} |
| 1403 |
\item The `use strict' should be employed when not |
| 1404 |
dynamically exporting variables. |
| 1405 |
\item Put `my' on local declarations. |
| 1406 |
\item The `W' (?) |
| 1407 |
|
| 1408 |
\end{itemize} |
| 1409 |
|
| 1410 |
|
| 1411 |
%%%%%%%%%%%%% |
| 1412 |
\subsection{Load Command} |
| 1413 |
%%%%%%%%%%%%% |
| 1414 |
|
| 1415 |
|
| 1416 |
\<use cfg command\><<<- |
| 1417 |
$command[0] = "ht".$compiler; |
| 1418 |
if( $tex ){ $command[2] = $tex; } else { $command[2] = ""; } |
| 1419 |
if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = ""; } |
| 1420 |
if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = ""; } |
| 1421 |
->>> |
| 1422 |
|
| 1423 |
|
| 1424 |
\<use cfg+built in command\><<<- |
| 1425 |
if( $options[$j-1] eq "" ){ |
| 1426 |
$command[0] = $options[$j]; |
| 1427 |
} else { |
| 1428 |
$command[0] = "ht".$options[$j+1]; |
| 1429 |
} |
| 1430 |
if( $tex ){ $command[2] = $tex; } else { $command[2] = $options[$j+2]; } |
| 1431 |
if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = $options[$j+3]; } |
| 1432 |
if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = $options[$j+4]; } |
| 1433 |
->>> |
| 1434 |
|
| 1435 |
|
| 1436 |
|
| 1437 |
\<insert cfg extras\><<<- |
| 1438 |
if( $texp ){ $command[2] = $command[2] . "," . $texp; } |
| 1439 |
if( $tex4htp){ $command[3] = $command[3] . " " . $tex4htp; } |
| 1440 |
if( $t4htp ){ $command[4] = $command[4] . " " . $t4htp; } |
| 1441 |
->>> |
| 1442 |
|
| 1443 |
|
| 1444 |
%%%%%%%%%%%%% |
| 1445 |
\subsection{Commands from Configuration File} |
| 1446 |
%%%%%%%%%%%%% |
| 1447 |
|
| 1448 |
|
| 1449 |
A configuration file may contain records of the following kinds. |
| 1450 |
|
| 1451 |
\begin{description} |
| 1452 |
\item[\#] Comment |
| 1453 |
\item[name = type] Defines a ht*tex like command, and assocites to it |
| 1454 |
the TeX compiler of the specified type. Examples of TeX types: latex, tex, |
| 1455 |
texi. |
| 1456 |
\item[name.tex = options] Command line options for the compilation under |
| 1457 |
the (la)tex compiler |
| 1458 |
\item[name.tex4ht = options] Command line options for tex4ht.c |
| 1459 |
\item[name.t4ht = options] Command line options for t4ht.c |
| 1460 |
\end{description} |
| 1461 |
|
| 1462 |
|
| 1463 |
Each record should appear in a different line. |
| 1464 |
The variants `name.tex += options', `name.tex4ht += options', |
| 1465 |
`name.t4ht += options' ask to add the listed options to the base |
| 1466 |
values. |
| 1467 |
|
| 1468 |
|
| 1469 |
|
| 1470 |
|
| 1471 |
|
| 1472 |
Example: |
| 1473 |
|
| 1474 |
|
| 1475 |
\begin{verbatim} |
| 1476 |
foohlatex = latex |
| 1477 |
foohlatex.tex = xhtml,uni-html4 |
| 1478 |
foohlatex.tex4ht += -cunihtf |
| 1479 |
foohlatex.t4ht = -cvalidate |
| 1480 |
htlatex.t4ht += -d./ |
| 1481 |
\end{verbatim} |
| 1482 |
|
| 1483 |
|
| 1484 |
|
| 1485 |
|
| 1486 |
\<load mk4ht.cfg\><<<- |
| 1487 |
?<inf = cfg handler?> |
| 1488 |
if( $inf ){ |
| 1489 |
print "(mk4ht cfg)\n"; |
| 1490 |
while(<$inf>) { |
| 1491 |
my($line) = $_; |
| 1492 |
chomp($line); # remove eoln char |
| 1493 |
if ($line =~ m|\s*#.*|) {} |
| 1494 |
elsif($line =~ m|^\s*(\S*)\.(\S*)\s*\+=\s*(.*\S)\s*$|) { |
| 1495 |
if( ($param."tex4ht") eq ($1.$2) ){ |
| 1496 |
$tex4htp = $tex4htp . " " . $3; |
| 1497 |
} |
| 1498 |
elsif( ($param."t4ht") eq ($1.$2) ){ |
| 1499 |
$t4htp = $t4htp . " " . $3; |
| 1500 |
} |
| 1501 |
elsif( ($param."tex") eq ($1.$2) ){ |
| 1502 |
$texp = $texp . "," . $3; |
| 1503 |
} |
| 1504 |
} |
| 1505 |
elsif($line =~ m|^\s*(\S*)\.(\S*)\s*=\s*(.*\S)\s*$|) { |
| 1506 |
if( ($param."tex4ht") eq ($1.$2) ){ |
| 1507 |
$tex4ht = $3 . " "; |
| 1508 |
$tex4htp = ""; |
| 1509 |
} |
| 1510 |
elsif( ($param."t4ht") eq ($1.$2) ){ |
| 1511 |
$t4ht = $3 . " "; |
| 1512 |
$t4htp = ""; |
| 1513 |
} |
| 1514 |
elsif( ($param."tex") eq ($1.$2) ){ |
| 1515 |
$tex = $3 . ","; |
| 1516 |
$texp = ""; |
| 1517 |
} |
| 1518 |
} |
| 1519 |
elsif($line =~ m|^\s*(\S*)\s*=\s*(.*\S)\s*$|) { |
| 1520 |
if( $param eq $1 ){ |
| 1521 |
$name = $1; |
| 1522 |
$compiler = $2; |
| 1523 |
} |
| 1524 |
} |
| 1525 |
?<elsif get ext?> |
| 1526 |
elsif ($line) { print "--- Error --- " . $line . "\n"; } |
| 1527 |
} |
| 1528 |
close $inf; |
| 1529 |
} |
| 1530 |
->>> |
| 1531 |
|
| 1532 |
|
| 1533 |
\<inf = cfg handler\><<<- |
| 1534 |
my $inf; |
| 1535 |
open $inf, "<mk4ht.cfg" |
| 1536 |
or |
| 1537 |
( open $inf, "<.mk4ht" |
| 1538 |
or |
| 1539 |
( |
| 1540 |
open $inf, "<" . $ENV{HOME} . "/mk4ht.cfg" |
| 1541 |
or |
| 1542 |
( |
| 1543 |
open $inf, "<" . $ENV{HOME} . "/.mk4ht" |
| 1544 |
or $inf = "" |
| 1545 |
) ) ) |
| 1546 |
; |
| 1547 |
->>> |
| 1548 |
|
| 1549 |
\<mk4ht.cfg vars\><<<- |
| 1550 |
my $name; |
| 1551 |
my $compiler; |
| 1552 |
my $tex; |
| 1553 |
my $tex4ht; |
| 1554 |
my $t4ht; |
| 1555 |
my $texp; |
| 1556 |
my $tex4htp = ""; |
| 1557 |
my $t4htp = ""; |
| 1558 |
->>> |
| 1559 |
|
| 1560 |
|
| 1561 |
|
| 1562 |
|
| 1563 |
%%%%%%%%%%%%% |
| 1564 |
\subsection{Cleaning Temporary files} |
| 1565 |
%%%%%%%%%%%%% |
| 1566 |
|
| 1567 |
Requested in the mk4ht.cfg file through records of the following form |
| 1568 |
|
| 1569 |
\begin{description} |
| 1570 |
\item[clean ext1 ext2 ...] |
| 1571 |
The extension names of the files to be removed. |
| 1572 |
|
| 1573 |
\item[clean.name ext1 ext2 ...] |
| 1574 |
|
| 1575 |
The `name' refers to the ht*tex like command in use. |
| 1576 |
|
| 1577 |
\end{description} |
| 1578 |
|
| 1579 |
|
| 1580 |
|
| 1581 |
|
| 1582 |
|
| 1583 |
|
| 1584 |
Example: |
| 1585 |
|
| 1586 |
|
| 1587 |
\begin{verbatim} |
| 1588 |
clean dvi idv |
| 1589 |
clean.foohlatex lg |
| 1590 |
clean.htlatex lg tmp |
| 1591 |
\end{verbatim} |
| 1592 |
|
| 1593 |
|
| 1594 |
|
| 1595 |
\<mk4ht.cfg vars\><<<- |
| 1596 |
my @ext; |
| 1597 |
->>> |
| 1598 |
|
| 1599 |
\<clean files\><<<- |
| 1600 |
my $file; |
| 1601 |
my $ext; |
| 1602 |
opendir(DIR,".") ; |
| 1603 |
while ($file = readdir(DIR) ){ |
| 1604 |
if(index($file,$texFile) == 0 ){ |
| 1605 |
foreach $ext(@ext){ |
| 1606 |
if (index($file,$ext,length($file)-length($ext)) != -1){ |
| 1607 |
if( stat($file)){ |
| 1608 |
unlink($file); |
| 1609 |
print "Deleted: ". $file . "\n"; |
| 1610 |
} } } } } |
| 1611 |
closedir(DIR); |
| 1612 |
->>> |
| 1613 |
|
| 1614 |
|
| 1615 |
|
| 1616 |
|
| 1617 |
\<elsif get ext\><<<- |
| 1618 |
elsif($line =~ m|^\s*clean\s+(.+)|){ |
| 1619 |
my(@array) = split(' ',$1); |
| 1620 |
push(@ext,@array); |
| 1621 |
} elsif($line =~ m|^\s*clean\.(\S+)\s+(.+)|){ |
| 1622 |
if( $1 eq @ARGV[0] ){ |
| 1623 |
my(@array) = split(' ',$2); |
| 1624 |
push(@ext,@array); |
| 1625 |
} } |
| 1626 |
->>> |
| 1627 |
|
| 1628 |
|
| 1629 |
|
| 1630 |
|
| 1631 |
%%%%%%%%%%%%% |
| 1632 |
\subsection{Info} |
| 1633 |
%%%%%%%%%%%%% |
| 1634 |
|
| 1635 |
|
| 1636 |
|
| 1637 |
|
| 1638 |
\<help info\><<<- |
| 1639 |
sub showInstrucions(){ |
| 1640 |
print " option1: mk4ht #1 \"#2\" \"#3\" \"#4\" \"#5\"\n"; |
| 1641 |
print " \n"; |
| 1642 |
print " #1: htlatex, xhlatex, mzlatex, oolatex, dblatex, dbmlatex,\n"; |
| 1643 |
print " jhlatex, eslatex, teilatex, teimlatex, uxhlatex, \n"; |
| 1644 |
print " wlatex, xhmlatex\n"; |
| 1645 |
print " \n"; |
| 1646 |
print " also 'tex', 'texi', 'xetex', and 'xelatex'\n"; |
| 1647 |
print " instead of 'latex'\n"; |
| 1648 |
print " \n"; |
| 1649 |
print " #2: file name\n"; |
| 1650 |
print " #3: optional arguments for latex/tex/... \n"; |
| 1651 |
print " #4: optional arguments for tex4ht.c\n"; |
| 1652 |
print " #5: optional arguments for t4ht.c\n"; |
| 1653 |
print " \n"; |
| 1654 |
print " option2: mk4ht ht #2 #3 \"#4\" \"#5\"\n"; |
| 1655 |
print " \n"; |
| 1656 |
print " #1: ht\n"; |
| 1657 |
print " #2: latex, tex\n"; |
| 1658 |
print " #3: file name\n"; |
| 1659 |
print " #4: optional arguments for tex4ht.c\n"; |
| 1660 |
print " #5: optional arguments for t4ht.c\n"; |
| 1661 |
print " \n"; |
| 1662 |
print " Within the program, in column three of the options\n"; |
| 1663 |
print " variable, the requests for the commands \"latex\",\n"; |
| 1664 |
print " \"tex\", etc. can be replaced with other equivalent\n"; |
| 1665 |
print " commands (e.g., \"tex -fmt=latex\").\n"; |
| 1666 |
|
| 1667 |
?<help cfg info?> |
| 1668 |
|
| 1669 |
?<clean info?> |
| 1670 |
} |
| 1671 |
->>> |
| 1672 |
|
| 1673 |
|
| 1674 |
|
| 1675 |
|
| 1676 |
|
| 1677 |
|
| 1678 |
\<help cfg info\><<<- |
| 1679 |
print "--------------------------------------------------------------------------\n"; |
| 1680 |
print " Private configuration file: mk4ht.cfg\n"; |
| 1681 |
print "--------------------------------------------------------------------------\n"; |
| 1682 |
print "\n"; |
| 1683 |
print "A private configuration file mk4ht.cfg or .mk4ht may be placed at the\n"; |
| 1684 |
print "work or home directory, to update existing commands and introduce new\n"; |
| 1685 |
print "ones. The configuration file may contain records of the following\n"; |
| 1686 |
print "kinds.\n"; |
| 1687 |
print "\n"; |
| 1688 |
print " # Comment\n"; |
| 1689 |
print " \n"; |
| 1690 |
print " name = type\n"; |
| 1691 |
print " Defines a ht*tex like command, and assocites to it the \n"; |
| 1692 |
print " TeX compiler of the specified type. Examples of TeX \n"; |
| 1693 |
print " types: latex, tex, texi, xetex, xelatex.\n"; |
| 1694 |
print " \n"; |
| 1695 |
print " name.tex = options\n"; |
| 1696 |
print " Command line options for the compilation under\n"; |
| 1697 |
print " the (la)tex compiler\n"; |
| 1698 |
print " \n"; |
| 1699 |
print " name.tex4ht = options\n"; |
| 1700 |
print " Command line options for tex4ht.c \n"; |
| 1701 |
print " \n"; |
| 1702 |
print " name.t4ht = options\n"; |
| 1703 |
print " Command line options for t4ht.c\n"; |
| 1704 |
print " \n"; |
| 1705 |
print "Each record should appear in a different line. Variants\n"; |
| 1706 |
print "`name.tex += options', `name.tex4ht += options',\n"; |
| 1707 |
print "`name.t4ht += options' of the above records are also allowed.\n"; |
| 1708 |
print "They append the listed options to the base values.\n"; |
| 1709 |
print "\n"; |
| 1710 |
print "Example:\n"; |
| 1711 |
print "\n"; |
| 1712 |
print " foohlatex = latex\n"; |
| 1713 |
print " foohlatex.tex = xhtml,uni-html4\n"; |
| 1714 |
print " foohlatex.tex4ht += -cunihtf\n"; |
| 1715 |
print " foohlatex.t4ht = -cvalidate\n"; |
| 1716 |
print " htlatex.t4ht += -d./\n"; |
| 1717 |
->>> |
| 1718 |
|
| 1719 |
|
| 1720 |
|
| 1721 |
|
| 1722 |
\<clean info\><<<- |
| 1723 |
print "--------------------------------------------------------------------------\n"; |
| 1724 |
print " Deleting files\n"; |
| 1725 |
print "--------------------------------------------------------------------------\n"; |
| 1726 |
print "\n"; |
| 1727 |
print "The configuration file mk4ht.cfg may also contain requests for\n"; |
| 1728 |
print "removing files created in the work directory during the compilation.\n"; |
| 1729 |
print "The requests are to be made through records of the following forms.\n"; |
| 1730 |
print "\n"; |
| 1731 |
print " clean ext1 ext2 ...\n"; |
| 1732 |
print " The extensions of the file name to be removed.\n"; |
| 1733 |
print " \n"; |
| 1734 |
print " clean.name ext1 ext2 ...\n"; |
| 1735 |
print " Conditional request. The `name' refers to the ht*tex \n"; |
| 1736 |
print " like command in use.\n"; |
| 1737 |
print "\n"; |
| 1738 |
print "Example:\n"; |
| 1739 |
print " clean dvi idv\n"; |
| 1740 |
print " clean.foohlatex lg \n"; |
| 1741 |
print " clean.htlatex lg tmp\n"; |
| 1742 |
->>> |
| 1743 |
|
| 1744 |
|
| 1745 |
|
| 1746 |
|
| 1747 |
|
| 1748 |
%%%%%%%%%%%%%%%%%% |
| 1749 |
\section{Info} |
| 1750 |
%%%%%%%%%%%%%%%%%% |
| 1751 |
|
| 1752 |
|
| 1753 |
|
| 1754 |
\<mkht note\><<<- |
| 1755 |
\immediate\write16{--------------------------------------------------------} |
| 1756 |
\immediate\write16{* Compile mkht-scripts.4ht with latex to get the |
| 1757 |
full scripts.} |
| 1758 |
\immediate\write16{* For shorter latex2e scripts, compile a file whose |
| 1759 |
content is:} |
| 1760 |
\immediate\write16{\space\space\space\space\def\string\latex{2e} |
| 1761 |
\string\input\space mkht-scripts.4ht } |
| 1762 |
\immediate\write16{* For shorter latex209 scripts, compile a file whose |
| 1763 |
content is:} |
| 1764 |
\immediate\write16{\space\space\space\space\def\string\latex{209} |
| 1765 |
\string\input\space mkht-scripts.4ht } |
| 1766 |
\immediate\write16{* Remove the extension .unix from the file names } |
| 1767 |
\immediate\write16{--------------------------------------------------------} |
| 1768 |
->>> |
| 1769 |
|
| 1770 |
% The - at the end of the first line prevents us from using tex4ht-cpright.tex. |
| 1771 |
\<TeX4ht copyright\><<<- |
| 1772 |
% |
| 1773 |
% This work may be distributed and/or modified under the |
| 1774 |
% conditions of the LaTeX Project Public License, either |
| 1775 |
% version 1.3c of this license or (at your option) any |
| 1776 |
% later version. The latest version of this license is in |
| 1777 |
% http://www.latex-project.org/lppl.txt |
| 1778 |
% and version 1.3c or later is part of all distributions |
| 1779 |
% of LaTeX version 2005/12/01 or later. |
| 1780 |
% |
| 1781 |
% This work has the LPPL maintenance status "maintained". |
| 1782 |
% |
| 1783 |
% The Current Maintainer of this work |
| 1784 |
% is the TeX4ht Project <https://tug.org/tex4ht>. |
| 1785 |
% |
| 1786 |
% If you modify this program, changing the |
| 1787 |
% version identification would be appreciated. |
| 1788 |
% |
| 1789 |
\immediate\write-1{version \ifx \JOBNAME\UnDefined ?version\else |version\fi} |
| 1790 |
->>> |
| 1791 |
|
| 1792 |
\<perl copyright notice\><<<- |
| 1793 |
# mk4ht (?version), generated from ?jobname.tex |
| 1794 |
# Copyright 2009-2020 TeX Users Group |
| 1795 |
# Copyright ?CopyYear.2003. Eitan M. Gurari |
| 1796 |
# |
| 1797 |
# This work may be distributed and/or modified under the |
| 1798 |
# conditions of the LaTeX Project Public License, either |
| 1799 |
# version 1.3 of this license or (at your option) any |
| 1800 |
# later version. The latest version of this license is in |
| 1801 |
# http://www.latex-project.org/lppl.txt |
| 1802 |
# and version 1.3 or later is part of all distributions |
| 1803 |
# of LaTeX version 2003/12/01 or later. |
| 1804 |
# |
| 1805 |
# This work has the LPPL maintenance status "maintained". |
| 1806 |
# |
| 1807 |
# The Current Maintainer of this work |
| 1808 |
# is the TeX4ht Project <https://tug.org/tex4ht>. |
| 1809 |
# |
| 1810 |
# If you modify this file, changing the |
| 1811 |
# version identification be appreciated. |
| 1812 |
->>> |
| 1813 |
|
| 1814 |
% used in the generated scripts. |
| 1815 |
\<MYcopyrightnotice\><<<- |
| 1816 |
|Rem |ScriptFileName|AddExtn (?version), generated from ?jobname.tex |
| 1817 |
|Rem Copyright 2009-2020 TeX Users Group |
| 1818 |
|Rem Copyright ?CopyYear.2003. Eitan M. Gurari |
| 1819 |
|Rem |
| 1820 |
|Rem This work may be distributed and/or modified under the |
| 1821 |
|Rem conditions of the LaTeX Project Public License, either |
| 1822 |
|Rem version 1.3 of this license or (at your option) any |
| 1823 |
|Rem later version. The latest version of this license is in |
| 1824 |
|Rem http://www.latex-project.org/lppl.txt |
| 1825 |
|Rem and version 1.3 or later is part of all distributions |
| 1826 |
|Rem of LaTeX version 2003/12/01 or later. |
| 1827 |
|Rem |
| 1828 |
|Rem This work has the LPPL maintenance status "maintained". |
| 1829 |
|Rem |
| 1830 |
|Rem The Current Maintainer of this work |
| 1831 |
|Rem is the TeX4ht Project <https://tug.org/tex4ht>. |
| 1832 |
|Rem |
| 1833 |
|Rem If you modify this file, changing the |
| 1834 |
|Rem version identification be appreciated. |
| 1835 |
->>> |
| 1836 |
|
| 1837 |
|
| 1838 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1839 |
|
| 1840 |
\OutputCode\<mkht\> |
| 1841 |
\OutputCode\<mkht-scripts\> |
| 1842 |
|
| 1843 |
\OutputCodE\<mk4ht.perl\> |
| 1844 |
%"mv mk4ht.perl mk4ht" |
| 1845 |
|
| 1846 |
|
| 1847 |
\Needs{"mkdir -p /opt/cvr/gurari/tex4ht.dir/bin/ht/perl"}% |
| 1848 |
\Needs{"cp mk4ht.perl /opt/cvr/gurari/tex4ht.dir/bin/ht/perl/mk4ht.perl"}% |
| 1849 |
\Needs{"chmod 744 /opt/cvr/gurari/tex4ht.dir/bin/ht/perl/mk4ht.perl"}% |
| 1850 |
|
| 1851 |
|
| 1852 |
\immediate\write16{--------------------------------------------------------} |
| 1853 |
\immediate\write16{Compile mkht-scripts.4ht with latex to get the |
| 1854 |
full scripts.} |
| 1855 |
\immediate\write16{Use the option `Needs' to automatically move the |
| 1856 |
files to private directories.} |
| 1857 |
\immediate\write16{--------------------------------------------------------} |
| 1858 |
|
| 1859 |
\end{document} |
| 1860 |
\endinput |