1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html
><head><!--mn2.html from mn.tex (TeX4ht, 1999-03-31 04:46:00)-->
<title>mn2.html</title><link
rel="stylesheet" type="text/css" href="mn.css"></head><body
> [<a
href="mn.html" >up</a>] <h1 class="PartHead"><a
name="QQ1-2-3"></a>Features of TeX4ht</h1>
<div class="TableOfContents"><span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-4" name="QQ2-2-4">From LaTeX to HTML</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-5" name="QQ2-2-5">Low-Level Features</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-6" name="QQ2-2-6">Sectioning and Tables of
Contents</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-7" name="QQ2-2-7">Tables</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-8" name="QQ2-2-8">Lists and Environments</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-9" name="QQ2-2-9">Pictures</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-10" name="QQ2-2-10">Mathematical
Formulas</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-11" name="QQ2-2-11">Paragraphs</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-12" name="QQ2-2-12">Configuration Files</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-13" name="QQ2-2-13">Cascade Style Sheets
(CSS)</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-14" name="QQ2-2-14">Xml</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-15" name="QQ2-2-15">HTML Voyager, Unicode, and MathML</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-16" name="QQ2-2-16">Fonts</a>
<span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-18" name="QQ2-2-18">Configurable Hooks</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-19" name="QQ2-2-19">Literate Programs (with ProTeX) and Scripts</a> <span
class="cmsy-10"><img
src="cmsy10-f.gif"alt="*"class="10--f"></span><a
href="#QQ1-2-20" name="QQ2-2-20">TeX</a>
</div> <H2 CLASS="ChapterHead"><a
name="QQ1-2-4"></a>From LaTeX to HTML</H2>
The simplest way to translate a LaTeX file into HTML is by loading the base style file of TeX4ht into the
source file, with a command of the form `<code><span
class="cmtt-10">\usepackage{tex4ht}</span></code>', and activating the translation with a command of
the form `<code><span
class="cmtt-10">ht latex filename</span></code>'.
<DIV CLASS="ShowCode"><PRE>
<span
class="cmtt-10">\documentclass{article}</span>
<SPAN CLASS="showcode"><span
class="cmtt-10">\usepackage{tex4ht}</span></SPAN>
<span
class="cmtt-10">\begin{document}</span>
<span
class="cmtt-10">..................</span>
<span
class="cmtt-10">\end{document}</span>
</PRE></DIV>
<!--1781--><p class="indent"> Variations to the default outcome may be requested through parameters of the <code><span
class="cmtt-10">\usepackage</span></code> command. The
package parameters invoke built-in options of TeX4ht.
<DIV CLASS="ShowCode"><PRE>
<span
class="cmtt-10">\documentclass{article}</span>
<span
class="cmtt-10">\usepackage</span><SPAN CLASS="showcode"><span
class="cmtt-10">[html,3.2]</span></SPAN><span
class="cmtt-10">{tex4ht}</span>
<span
class="cmtt-10">\begin{document}</span>
<span
class="cmtt-10">..................</span>
<span
class="cmtt-10">\end{document}</span>
</PRE></DIV>
<!--1795--><p class="indent"> The `<code><span
class="cmtt-10">html</span></code>' parameter requests HTML output; the `<code><span
class="cmtt-10">3.2</span></code>' parameter asks for HTML version 3.2, instead of the
default setting of the HTML transitional 4.0 version.
<!--1800--><p class="indent"> The first package parameter is distinguished in that it may refer either to `<code><span
class="cmtt-10">html</span></code>' or to a user-provided
configuration file; other values are ignored. An extension `<code><span
class="cmtt-10">cfg</span></code>' is assumed, if the file name is provided without an
extension.
<DIV CLASS="ShowCode"><PRE>
<span
class="cmtt-10">\documentclass{article}</span>
<span
class="cmtt-10">\usepackage[</span><SPAN CLASS="showcode"><span
class="cmtt-10">myconfig</span></SPAN><span
class="cmtt-10">,html,3.2]{tex4ht}</span>
<span
class="cmtt-10">\begin{document}</span>
<span
class="cmtt-10">..................</span>
<span
class="cmtt-10">\end{document}</span>
</PRE></DIV>
<!--1817--><p class="indent"> The default environment loaded by the command `<code><span
class="cmtt-10">\usepackage{tex4ht}</span></code>' implicitly assumes an empty
configuration file, and a `<code><span
class="cmtt-10">html</span></code>' parameter. The parameter `<code><span
class="cmtt-10">htm</span></code>' may be used as an alternative to `<code><span
class="cmtt-10">html</span></code>', for cases
where the file names should satisfy the requirements of the DOS operating system.
<DIV
CLASS="Warning">
<!--1850--><p class="noindent"><span
class="cmti-10">Most applications might require the knowledge of just a few additional simple features of TeX4ht, if any. Before</span>
<span
class="cmti-10">making any changes to the default configuration, you are strongly advised to check the output obtained just from the</span>
<span
class="cmti-10">inclusion of the `</span><span
class="cmtt-10">\usepackage{tex4ht}</span><span
class="cmti-10">' command in your source file.</span>
<!--1850--><p class="indent"> <span
class="cmti-10">The remainder of this document provides much more than that, with an eye directed toward users that want to</span>
<span
class="cmti-10">customize their outcome. Therefore, the reader is encouraged to skim the information provided below for acquiring</span>
<span
class="cmti-10">a general understanding of the system, leaving the tedious learning of the details to when the need</span>
<span
class="cmti-10">arises.</span>
<!--1850--><p class="indent"> <span
class="cmti-10">To keep with the spirit of LaTeX and hypertext, in which style is assumed to be separated from content, the</span>
<span
class="cmti-10">users are encouraged to avoid inserting TeX4ht code into their source files. Instead, they should place</span>
<span
class="cmti-10">their modifications, to the default settings, within configuration files to be loaded by the </span><span
class="cmtt-10">\usepackage</span>
<span
class="cmti-10">command.</span>
<DIV
CLASS="Warning">
<!--1850--><p class="noindent"><span
class="cmti-10">STOP! THIS IS A WARNING! Please don't continue without reading the three preceding paragraphs.</span></DIV>
</DIV>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-5"></a>Low-Level Features</H2>
The following are some of the more useful underlying commands of TeX4ht.
<!--1859--><p class="indent">
<TABLE CLASS="button-list"><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn3.html#mn3-1" name="mn3-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\HCode{...}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn3.html#mn3-2" name="mn3-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\HPage{</span><span
class="cmti-10">anchor</span><span
class="cmtt-10">}</span><span
class="cmti-10">content</span><span
class="cmtt-10">\EndHPage{}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn3.html#mn3-3" name="mn3-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Link[</span><span
class="cmti-10">target-file arguments</span><span
class="cmtt-10">]{</span><span
class="cmti-10">target-loc</span><span
class="cmtt-10">}{</span><span
class="cmti-10">cur-loc</span><span
class="cmtt-10">}</span><span
class="cmti-10">anchor</span><span
class="cmtt-10">\EndLink</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn3.html#mn3-4" name="mn3-4" >4</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\ifHtml... \else... \fi</span>
</TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-6"></a>Sectioning and Tables of Contents</H2>
A non-leading package parameter `<code><span
class="cmtt-10">1</span></code>', `<a
href="mn4.html" name="mn4.html" ><span
class="cmtt-10">2</span></a>', `<code><span
class="cmtt-10">3</span></code>', or `<code><span
class="cmtt-10">4</span></code>', in <code><span
class="cmtt-10">\usepackage</span></code>, asks for a tree-structured
set of files, reflecting on the sectioning of the document to the specified depth. Sequential prev-next
links within the hierarchy, instead of the default hierarchical ones, can be requested with the `<code><span
class="cmtt-10">next</span></code>'
parameter. The parameter `<code><span
class="cmtt-10">sections+</span></code>' creates titles for the sectioning commands that link to the tables of
contents.
<!--1966--><p class="indent"> Finer control is possible with the following commands.
<!--1968--><p class="indent">
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-1" name="mn5-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\CutAt{</span><span
class="cmti-10">at-unit</span><span
class="cmtt-10">,</span><span
class="cmti-10">until-unit-1</span><span
class="cmtt-10">,</span><span
class="cmti-10">until-unit-2</span><span
class="cmtt-10">,...}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-2" name="mn5-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\tableofcontents[</span><span
class="cmti-10">unit-1</span><span
class="cmtt-10">,</span><span
class="cmti-10">unit-2</span><span
class="cmtt-10">,...]</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-3" name="mn5-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\TocAt{</span><span
class="cmti-10">at-unit</span><span
class="cmtt-10">,</span><span
class="cmti-10">unit-1</span><span
class="cmtt-10">,</span><span
class="cmti-10">unit-2</span><span
class="cmtt-10">,...,/</span><span
class="cmti-10">until-unit-1</span><span
class="cmtt-10">,/</span><span
class="cmti-10">until-unit-2</span><span
class="cmtt-10">,...}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-4" name="mn5-4" >4</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\ConfigureToc{</span><span
class="cmti-10">unit</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-mark</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-title</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-page-number</span><span
class="cmtt-10">} {</span><span
class="cmti-10">at-end</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-5" name="mn5-5" >5</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{tableofcontents} {</span><span
class="cmti-10">before-toc</span><span
class="cmtt-10">} {</span><span
class="cmti-10">end-of-toc</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-toc</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-nonindented-par</span><span
class="cmtt-10">}</span>
<span
class="cmtt-10">{</span><span
class="cmti-10">before-indented-par</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-6" name="mn5-6" >6</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{TocAt} {</span><span
class="cmti-10">before-toc</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-toc</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-7" name="mn5-7" >7</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{TocAt*} {</span><span
class="cmti-10">before-toc</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-toc</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-8" name="mn5-8" >8</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{</span><span
class="cmti-10">unit</span><span
class="cmtt-10">} {</span><span
class="cmti-10">top</span><span
class="cmtt-10">} {</span><span
class="cmti-10">bottom</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-title</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-title</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-9" name="mn5-9" >9</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{CutAt} {</span><span
class="cmti-10">unit</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-button</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-button</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-10" name="mn5-10" >10</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{+CutAt} {</span><span
class="cmti-10">unit</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-button</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-button</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-11" name="mn5-11" >11</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\NewSection\</span><span
class="cmti-10">unit </span><span
class="cmtt-10">{</span><span
class="cmti-10">mark-for-toc</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn5.html#mn5-12" name="mn5-12" >12</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{crosslinks} {</span><span
class="cmti-10">left-delimiter</span><span
class="cmtt-10">} {</span><span
class="cmti-10">right-delimiter</span><span
class="cmtt-10">} {</span><span
class="cmti-10">next</span><span
class="cmtt-10">} {</span><span
class="cmti-10">prev</span><span
class="cmtt-10">} {</span><span
class="cmti-10">prev-tail</span><span
class="cmtt-10">} {</span><span
class="cmti-10">front</span><span
class="cmtt-10">} {</span><span
class="cmti-10">tail</span><span
class="cmtt-10">}</span>
<span
class="cmtt-10">{</span><span
class="cmti-10">up</span><span
class="cmtt-10">}</span>
</TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-7"></a>Tables</H2>
HTML 4.0 offers new opportunities for tables. The following "large example, illustrating most of the features"
of tabular and array environments, taken from the <span
class="cmti-10">LaTeX User's Guide</span>, shows some of the current capabilities and
limitations TeX4ht has in dealing with such tables.
<TABLE
><TR >
<TD
> <DIV ALIGN="CENTER"><TABLE CLASS="tabular" cellspacing="0pt" cellpadding="0" RULES="GROUPS" frame="border" ><COLGROUP><COL></COLGROUP><COLGROUP><COL><COL></COLGROUP><COLGROUP><COL></COLGROUP><TR CLASS="hline"><TD><HR></TD><TD><HR></TD><TD><HR></TD><TD><HR></TD></TR><TR VALIGN="BASELINE"><TD COLSPAN="4"ALIGN="CENTER" NOWRAP ><DIV CLASS="td11"> GG&A Hoofed Stock </DIV></TD></TR><TR CLASS="hline"><TD><HR></TD><TD><HR></TD><TD><HR></TD><TD><HR></TD></TR><TR CLASS="hline"><TD><HR></TD><TD><HR></TD><TD><HR></TD><TD><HR></TD></TR><TR VALIGN="BASELINE"><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td11"> </DIV></TD><TD COLSPAN="2"ALIGN="CENTER" NOWRAP ><DIV CLASS="td10"> Price </DIV></TD><TD ALIGN="LEFT" ><DIV CLASS="td11"> </DIV></TD> </TR><TR CLASS="cline"><TD></TD><TD><HR></TD><TD><HR></TD><TD></TD></TR><TR VALIGN="BASELINE"><TD ALIGN="CENTER" NOWRAP ><DIV CLASS="td11"> year</DIV></TD><TD ALIGN="LEFT" NOWRAP ><DIV CLASS="td10">high </DIV></TD><TD ALIGN="LEFT" NOWRAP ><DIV CLASS="td01">low </DIV></TD><TD ALIGN="CENTER" NOWRAP ><DIV CLASS="td11"> Comments </DIV></TD></TR><TR CLASS="hline"><TD><HR></TD><TD><HR></TD><TD><HR></TD><TD><HR></TD></TR><TR VALIGN="BASELINE"><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td11"> 1971</DIV></TD><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td10"> 97-</DIV></TD><TD ALIGN="LEFT" NOWRAP ><DIV CLASS="td01">245 </DIV></TD><TD ALIGN="LEFT" ><DIV CLASS="td11">Bad year for farmers in the west. </DIV></TD> </TR><TR CLASS="hline"><TD><HR></TD><TD><HR></TD><TD><HR></TD><TD><HR></TD></TR><TR VALIGN="BASELINE"><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td11"> 72</DIV></TD><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td10">245-</DIV></TD><TD ALIGN="LEFT" NOWRAP ><DIV CLASS="td01">245 </DIV></TD><TD ALIGN="LEFT" ><DIV CLASS="td11">Light trading due to a heavy winter. </DIV></TD> </TR><TR CLASS="hline"><TD><HR></TD><TD><HR></TD><TD><HR></TD><TD><HR></TD></TR><TR VALIGN="BASELINE"><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td11"> 73</DIV></TD><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td10">245-</DIV></TD><TD ALIGN="LEFT" NOWRAP ><DIV CLASS="td01">2001</DIV></TD><TD ALIGN="LEFT" ><DIV CLASS="td11">No gnus was very good gnus this year. </DIV></TD> </TR><TR CLASS="hline"><TD><HR></TD><TD><HR></TD><TD><HR></TD><TD><HR></TD></TR><TR VALIGN="BASELINE"><TD ALIGN="RIGHT" NOWRAP ><DIV CLASS="td11"> </DIV></TD></TR></TABLE> </DIV>
</TD><TD
>
<DIV CLASS="ShowCode"><PRE>
<span
class="cmtt-10">\begin{tabular}{|r||r@{--}l|p{1.25in}|}</span>
<span
class="cmtt-10">\hline</span>
<span
class="cmtt-10">\multicolumn{4}{|c|}{GG\&A Hoofed Stock}</span>
<span
class="cmtt-10">\\ \hline\hline</span>
<span
class="cmtt-10">& \multicolumn{2}{c|}{Price}& \\ \cline{2-3}</span>
<span
class="cmtt-10">\multicolumn{1}{|c||}{year}</span>
<span
class="cmtt-10">& \multicolumn{1}{l@{\,\vline\,}}{high}</span>
<span
class="cmtt-10">&low & \multicolumn{1}{c|}{Comments}</span>
<span
class="cmtt-10">\\ \hline</span>
<span
class="cmtt-10">1971 & 97 & 245 & Bad year for</span>
<span
class="cmtt-10">farmers in the west. \\ \hline</span>
<span
class="cmtt-10">72 & 245 & 245 & Light trading due to a</span>
<span
class="cmtt-10">heavy winter. \\ \hline</span>
<span
class="cmtt-10">73 & 245 & 2001 & No gnus was very</span>
<span
class="cmtt-10">good gnus this year. \\ \hline</span>
<span
class="cmtt-10">\end{tabular}</span>
</PRE></DIV>
</TD></TR></TABLE>
<!--2303--><p class="indent"> Tables with <code><span
class="cmtt-10">\multicolum</span></code> entries need a few LaTeX compilations to stabilize.
<!--2309--><p class="indent">
<TABLE CLASS="button-list"><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn6.html#mn6-1" name="mn6-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{</span><span
class="cmti-10">table</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-tbl</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-tbl</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-row</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-row</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-entry</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-entry</span><span
class="cmtt-10">}</span>
</TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-8"></a>Lists and Environments</H2>
The appearances of lists and <span
class="cmtt-10">\begin</span>-<span
class="cmtt-10">\end </span>environments are configured with the following commands.
<!--2367--><p class="indent">
<TABLE CLASS="button-list"><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn7.html#mn7-1" name="mn7-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\ConfigureList{</span><span
class="cmti-10">list-name</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-list</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-list</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-label</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-label</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn7.html#mn7-2" name="mn7-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\ConfigureEnv{</span><span
class="cmti-10">environment-name</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-environment</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after-environment</span><span
class="cmtt-10">} {</span><span
class="cmti-10">before-list</span><span
class="cmtt-10">}</span>
<span
class="cmtt-10">{</span><span
class="cmti-10">after-list</span><span
class="cmtt-10">}</span>
</TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-9"></a>Pictures</H2>
The next command imports external pictures, and the two commands that follow request pictorial
representations for local content. The attributes, and the replacement parameters with their enclosing rectangular
brackets, are optional.
<!--2526--><p class="indent">
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn8.html#mn8-1" name="mn8-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Picture[</span><span
class="cmti-10">replacement-for-textual-browser</span><span
class="cmtt-10">]{</span><span
class="cmti-10">file-name attributes</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn8.html#mn8-2" name="mn8-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Picture+[</span><span
class="cmti-10">replacement-for-text-browsers</span><span
class="cmtt-10">]{</span><span
class="cmti-10">file-name attributes</span><span
class="cmtt-10">}</span><span
class="cmti-10">content</span><span
class="cmtt-10">\EndPicture</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn8.html#mn8-3" name="mn8-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Picture*[</span><span
class="cmti-10">replacement-for-text-browsers</span><span
class="cmtt-10">]{</span><span
class="cmti-10">file-name attributes</span><span
class="cmtt-10">}</span><span
class="cmti-10">content</span><span
class="cmtt-10">\EndPicture</span>
</TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-10"></a>Mathematical Formulas</H2>
In the default setting, the math environments `<code><span
class="cmtt-10">\(...\)</span></code>', and the display math environments `<code><span
class="cmtt-10">\[...\]</span></code>', request
pictorial representations for their content. On the other hand, the math environments `<code><span
class="cmtt-10">$...$</span></code>', and the display math
environments `<code><span
class="cmtt-10">$$...$$</span></code>', ask for no special treatment. Simple features like mathematical symbols, subscripts, and
superscripts, are translated into html, and more complex entities like roots and fractions are translated into pictures
(<a
href="mn9.html" name="mn9.html" >example</a>).
<!--2607--><p class="indent">
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn10.html#mn10-1" name="mn10-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{[]} {</span><span
class="cmti-10">before</span><span
class="cmtt-10">$$</span><span
class="cmti-10">at-start</span><span
class="cmtt-10">} {</span><span
class="cmti-10">at-end</span><span
class="cmtt-10">$$</span><span
class="cmti-10">after</span><span
class="cmtt-10">}</span>,
<span
class="cmtt-10">\Configure{()}{</span><span
class="cmti-10">before</span><span
class="cmtt-10">$</span><span
class="cmti-10">at-start</span><span
class="cmtt-10">}{</span><span
class="cmti-10">at-end</span><span
class="cmtt-10">$</span><span
class="cmti-10">after</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure{$$}{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">}{</span><span
class="cmti-10">at-start</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure{$}{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">}{</span><span
class="cmti-10">at-start</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn10.html#mn10-2" name="mn10-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{SUB}{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure{SUP}{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure{SUBSUP}{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">between</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn10.html#mn10-3" name="mn10-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">no_</span>, <span
class="cmtt-10">no^ </span></TD></TR><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn10.html#mn10-4" name="mn10-4" >4</a></TD><TD CLASS="button-list">Package parameter `<span
class="cmtt-10">math</span>' </TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-11"></a>Paragraphs</H2>
The insertions of code at paragraph breaks are controlled by the following commands.
<!--2708--><p class="indent">
<TABLE CLASS="button-list"><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn11.html#mn11-1" name="mn11-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{HtmlPar} {</span><span
class="cmti-10">noindent-P</span><span
class="cmtt-10">} {</span><span
class="cmti-10">indent-P</span><span
class="cmtt-10">} {</span><span
class="cmti-10">from-noindent-P</span><span
class="cmtt-10">} {</span><span
class="cmti-10">from-indent-P</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn11.html#mn11-2" name="mn11-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\IgnorePar </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn11.html#mn11-3" name="mn11-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\ShowPar </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn11.html#mn11-4" name="mn11-4" >4</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\NoIndent </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn11.html#mn11-5" name="mn11-5" >5</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Indent </span></TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-12"></a>Configuration Files</H2>
The <code><span
class="cmtt-10">\usepackage{tex4ht}</span></code> implicitly assumes a configuration file of the following form.
<!--2804--><p class="indent"> <code><span
class="cmtt-10">\Preamble{html}\begin{document}\EndPreamble</span></code>
<!--2806--><p class="indent"> Similarly, a command of the form `<span
class="cmtt-10">\usepackage[html,</span><span
class="cmti-10">option</span><span
class="cmtt-10">,</span><span
class="cmti-10">option</span><span
class="cmtt-10">,...]{tex4ht}</span>' implicitly assumes a file
of the following form.
<!--2810--><p class="indent"> <code><span
class="cmtt-10">\Preamble{html,</span></code><span
class="cmti-10">option</span><code><span
class="cmtt-10">,</span></code><span
class="cmti-10">option</span><code><span
class="cmtt-10">,...}\begin{document}\EndPreamble</span></code>
<!--2813--><p class="indent"> On the other hand, a command of the form `<span
class="cmtt-10">\usepackage[file,</span><span
class="cmti-10">options</span><span
class="cmtt-10">]{tex4ht}</span>' assumes a configuration file
obeying the following format (<a
href="mn12.html" name="mn12.html" >example</a>). The extension `<code><span
class="cmtt-10">cfg</span></code>' is assumed for names of configuration files that are listed without their
extension.
<!--2853--><p class="indent"> <DIV CLASS="Template"> <span
class="cmtt-10">...</span><span
class="cmti-10">early definitions</span><span
class="cmtt-10">...</span><BR>
<span
class="cmtt-10">\Preamble{</span><span
class="cmti-10">options</span><span
class="cmtt-10">}</span><BR>
<span
class="cmtt-10">...</span><span
class="cmti-10">definitions</span><span
class="cmtt-10">...</span><BR>
<span
class="cmtt-10">\begin{document}</span><BR>
<span
class="cmtt-10">...</span><span
class="cmti-10">insertions into the header of the html file</span><span
class="cmtt-10">...</span><BR>
<span
class="cmtt-10">\EndPreamble </span></DIV>
<!--2863--><p class="indent"> It is up to the user to decide the distribution of parameters between the <code><span
class="cmtt-10">\Preamble</span></code> and the <code><span
class="cmtt-10">\usepackage</span></code>
commands.
<!--2867--><p class="indent"> One can avoid using configuration files, by including their implicit and explicit content within the source files.
In such a case, the `<code><span
class="cmtt-10">\begin{document}</span></code>' of the source file should be replaced with a code segment of the following
format (<a
href="mn13.html" name="mn13.html" >example</a>).
<!--2905--><p class="indent"> <DIV CLASS="Template"> <span
class="cmtt-10">\input tex4ht.sty</span><BR>
<span
class="cmtt-10">...</span><span
class="cmti-10">early definitions</span><span
class="cmtt-10">...</span><BR>
<span
class="cmtt-10">\Preamble{</span><span
class="cmti-10">options</span><span
class="cmtt-10">}</span><BR>
<span
class="cmtt-10">...</span><span
class="cmti-10">definitions</span><span
class="cmtt-10">...</span><BR>
<span
class="cmtt-10">\begin{document}</span><BR>
<span
class="cmtt-10">...</span><span
class="cmti-10">insertions into the header of the html file</span><span
class="cmtt-10">...</span><BR>
<span
class="cmtt-10">\EndPeamble </span></DIV>
<!--2916--><p class="indent"> Listed below are a few additional parameters available for LaTeX.
<!--2918--><p class="indent">
<TABLE CLASS="button-list"><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn14.html#mn14-1" name="mn14-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">pic-array</span>, <span
class="cmtt-10">pic-eqnarray</span>, <span
class="cmtt-10">pic-tabbing</span>, <span
class="cmtt-10">pic-tabular </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn14.html#mn14-2" name="mn14-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">pic-displaylines </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn14.html#mn14-3" name="mn14-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">no-halign </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn14.html#mn14-4" name="mn14-4" >4</a></TD><TD CLASS="button-list"><span
class="cmtt-10">pictex </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn14.html#mn14-5" name="mn14-5" >5</a></TD><TD CLASS="button-list"><span
class="cmtt-10">jpg</span>, <span
class="cmtt-10">png </span></TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-13"></a>Cascade Style Sheets (CSS)</H2>
Cascade style sheets define presentations to the content of hypertext pages, in a manner similar to the way
that `<code><span
class="cmtt-10">.sty</span></code>' files define the presentations to the content of source LaTeX files. TeX4ht produces a CSS
file for each document that is translated to HTML transitional 4.0 code. The following are related
commands.
<!--3016--><p class="indent">
<TABLE CLASS="button-list"><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn16.html#mn16-1" name="mn16-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Css{</span><span
class="cmti-10">content</span><span
class="cmtt-10">}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn16.html#mn16-2" name="mn16-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Css </span><span
class="cmti-10">content</span><span
class="cmtt-10">\EndCss</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn16.html#mn16-3" name="mn16-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\CssFile[</span><span
class="cmti-10">list-of-css-files</span><span
class="cmtt-10">]</span><span
class="cmti-10">content</span><span
class="cmtt-10">\EndCssFile</span>
</TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-14"></a>Xml</H2>
XML (eXtensible Markup Language) is in a sense a meta language for customizing markup languages for
arbitrary applications. The following features can become handy for tailoring XML markups in LaTeX
documents.
<!--3091--><p class="indent">
<TABLE CLASS="button-list"><TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-1" name="mn17-1" >1</a></TD><TD CLASS="button-list">Package parameter `<span
class="cmtt-10">0.0</span>' </TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-2" name="mn17-2" >2</a></TD><TD CLASS="button-list">Parameter `<span
class="cmtt-10">hooks</span>' </TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-3" name="mn17-3" >3</a></TD><TD CLASS="button-list">Option `<span
class="cmtt-10">hooks+</span>' </TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-4" name="mn17-4" >4</a></TD><TD CLASS="button-list">Package parameter `<span
class="cmtt-10">edit</span>'<BR><span
class="cmtt-10">\Tg<...></span><BR><span
class="cmtt-10">\Tg</...></span><BR><span
class="cmtt-10">\Tg<.../> </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-5" name="mn17-5" >5</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{edit} {</span><span
class="cmti-10">before</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after</span><span
class="cmtt-10">} </span><BR><span
class="cmtt-10">\Configure{ hooks} {</span><span
class="cmti-10">before</span><span
class="cmtt-10">} {</span><span
class="cmti-10">after</span><span
class="cmtt-10">} {}{}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-6" name="mn17-6" >6</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure<...>{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure</...>{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure<.../>{</span><span
class="cmti-10">before</span><span
class="cmtt-10">}{</span><span
class="cmti-10">after</span><span
class="cmtt-10">} </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-7" name="mn17-7" >7</a></TD><TD CLASS="button-list"> <span
class="cmtt-10">\Configure<...>-{</span><span
class="cmti-10">replacement</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure</...>-{</span><span
class="cmti-10">replacement</span><span
class="cmtt-10">}</span><BR><span
class="cmtt-10">\Configure<.../>-{</span><span
class="cmti-10">replacement</span><span
class="cmtt-10">} </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-8" name="mn17-8" >8</a></TD><TD CLASS="button-list"> Package parameter `<span
class="cmtt-10">edit+</span>'
<!--3--><p class="indent"> This parameter is a generalization of the `<code><span
class="cmtt-10">edit</span></code>' parameter, which introduces configuration information into the
log file. </TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-9" name="mn17-9" >9</a></TD><TD CLASS="button-list">Package parameter `<span
class="cmtt-10">verify</span>'<BR><span
class="cmtt-10">\Verify...\EndVerify </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn17.html#mn17-10" name="mn17-10" >10</a></TD><TD CLASS="button-list">Package parameter `<span
class="cmtt-10">verify+</span>' </TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-15"></a>HTML Voyager, Unicode, and MathML</H2>
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn18.html#mn18-1" name="mn18-1" >1</a></TD><TD CLASS="button-list">Package parameter `<span
class="cmtt-10">voyager</span>'
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn18.html#mn18-2" name="mn18-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Hinclude[*]{unicode.4ht}</span><BR><span
class="cmtt-10">\Hinclude[*]{mathml.4ht}</span>
</TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn18.html#mn18-3" name="mn18-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">-i/.../ht-fonts/unicode/iso88591/ </span></TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-16"></a>Fonts</H2>
TeX4ht has an elaborated machinery for handling fonts, through special virtual hypertext fonts stored in `<code><span
class="cmtt-10">.htf</span></code>'
files. Instead of providing a design for each symbol, as is the case in standard fonts, the virtual fonts provide a
content for each symbol. The following commands offer some control, from within the source LaTeX documents, over
the content provided to the symbols.
<!--3594--><p class="indent">
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn19.html#mn19-1" name="mn19-1" >1</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\NoFonts </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn19.html#mn19-2" name="mn19-2" >2</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\EndNoFonts </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn19.html#mn19-3" name="mn19-3" >3</a></TD><TD CLASS="button-list"><span
class="cmtt-10">\Configure{htf} {</span><span
class="cmti-10">class</span><span
class="cmtt-10">} {</span><span
class="cmti-10">delimiter</span><span
class="cmtt-10">} {</span><span
class="cmti-10">template-1</span><span
class="cmtt-10">} {</span><span
class="cmti-10">template-2</span><span
class="cmtt-10">} {</span><span
class="cmti-10">template-3</span><span
class="cmtt-10">} {</span><span
class="cmti-10">template-4</span><span
class="cmtt-10">} {</span><span
class="cmti-10">template-5</span><span
class="cmtt-10">}</span>
<span
class="cmtt-10">{</span><span
class="cmti-10">template-6</span><span
class="cmtt-10">} {</span><span
class="cmti-10">template-7</span><span
class="cmtt-10">} </span></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn19.html#mn19-4" name="mn19-4" >4</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\Configure{htf-sty} {</SPAN><SPAN CLASS="cmti-10">class/font</SPAN><SPAN CLASS="cmtt-10">} {</SPAN><SPAN CLASS="cmti-10">CSS-instructions</SPAN><SPAN CLASS="cmtt-10">} </SPAN></TD></TR></TABLE>
<!--3748--><p class="indent"> The <code><SPAN CLASS="cmtt-10">htf</SPAN></code> fonts might request pictorial representations for symbols. In such cases, the sizes of the pictures
depend on the sizes of the TeX fonts in use. Size changes through the <code><SPAN CLASS="cmtt-10">\magnification</SPAN></code> command should be made
before loading the <code><SPAN CLASS="cmtt-10">tex4ht.sty</SPAN></code> package.
<!--3755--><p class="indent"> The design of a virtual hypertext font might take some labor, but it does not <a
href="mn20.html" name="mn20.html" >require</a> too much sophistication.
<H2 CLASS="ChapterHead"><a
name="QQ1-2-18"></a>Configurable Hooks</H2>
Much of the look and feel of TeX4ht is achieved through configurable hooks which are defined with the
following commands.
<!--4060--><p class="indent">
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn21.html#mn21-1" name="mn21-1" >1</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\NewConfigure{</SPAN><SPAN CLASS="cmti-10">name</SPAN><SPAN CLASS="cmtt-10">}[</SPAN><SPAN CLASS="cmti-10">i</SPAN><SPAN CLASS="cmtt-10">]{</SPAN><SPAN CLASS="cmti-10">body</SPAN><SPAN CLASS="cmtt-10">} </SPAN></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn21.html#mn21-2" name="mn21-2" >2</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\Configure{</SPAN><SPAN CLASS="cmti-10">name</SPAN><SPAN CLASS="cmtt-10">}{</SPAN><SPAN CLASS="cmti-10">parameter-1</SPAN><SPAN CLASS="cmtt-10">}...{</SPAN><SPAN CLASS="cmti-10">parameter-i</SPAN><SPAN CLASS="cmtt-10">}</SPAN>
</TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-19"></a>Literate Programs (with ProTeX) and Scripts</H2>
Literate programming is a discipline that promotes the writing of programs the way one explains them to
human beings. ProTeX is a literate programming system fully implemented in terms of TeX, and it is compatible
with LaTeX and other TeX-base systems. TeX4ht, and ProTeX itself, are examples of applications written in
ProTeX.
<!--4110--><p class="indent">
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn22.html#mn22-1" name="mn22-1" >1</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\input ProTex.sty</SPAN><BR><SPAN CLASS="cmtt-10">\AlProTex{</SPAN><SPAN CLASS="cmti-10">extension</SPAN><SPAN CLASS="cmtt-10">,<<<>>>,list,title,</SPAN><SPAN CLASS="cmti-10">escape-character</SPAN><SPAN CLASS="cmtt-10">} </SPAN></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn22.html#mn22-2" name="mn22-2" >2</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\<</SPAN><SPAN CLASS="cmti-10">title</SPAN><SPAN CLASS="cmtt-10">\><<<</SPAN><BR><SPAN CLASS="cmti-10">code fragment</SPAN><BR><SPAN CLASS="cmtt-10">>>> </SPAN></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn22.html#mn22-3" name="mn22-3" >3</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">`<</SPAN><SPAN CLASS="cmti-10">title</SPAN><SPAN CLASS="cmtt-10">`> </SPAN></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn22.html#mn22-4" name="mn22-4" >4</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\OutputCode\<...\> </SPAN></TD></TR></TABLE>
<!--4342--><p class="indent"> Scripts produce the content in verbatim format with no decorations.
<!--4346--><p class="indent">
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn24.html#mn24-1" name="mn24-1" >1</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\ScriptEnv{</SPAN><SPAN CLASS="cmti-10">environment</SPAN><SPAN CLASS="cmtt-10">} {</SPAN><SPAN CLASS="cmti-10">prefix</SPAN><SPAN CLASS="cmtt-10">} {</SPAN><SPAN CLASS="cmti-10">postfix</SPAN><SPAN CLASS="cmtt-10">} </SPAN></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn24.html#mn24-2" name="mn24-2" >2</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\ScriptCommand{\</SPAN><SPAN CLASS="cmti-10">command</SPAN><SPAN CLASS="cmtt-10">} {</SPAN><SPAN CLASS="cmti-10">prefix</SPAN><SPAN CLASS="cmtt-10">} {</SPAN><SPAN CLASS="cmti-10">postfix</SPAN><SPAN CLASS="cmtt-10">} </SPAN></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn24.html#mn24-3" name="mn24-3" >3</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">\JavaScript...\EndJavaScript </SPAN></TD></TR></TABLE>
<H2 CLASS="ChapterHead"><a
name="QQ1-2-20"></a>TeX</H2>
Source TeX files are treated in a manner similar to the way LaTeX source files are treated, with the obvious
restriction that only TeX commands are allowed. In particular, the <code><SPAN CLASS="cmtt-10">\usepackage</SPAN></code> command is not valid in
TeX, implying a requirement for configuration files to be explicitly integrated into the source TeX
files.
<!--4441--><p class="indent"> The following are possible package parameters of <code><SPAN CLASS="cmtt-10">\Preamble</SPAN></code> available for TeX only.
<TABLE CLASS="button-list">
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn25.html#mn25-1" name="mn25-1" >1</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">plain- </SPAN></TD></TR>
<TR VALIGN="top"CLASS="button-list"><TD CLASS="button-list"><a
href="mn25.html#mn25-2" name="mn25-2" >2</a></TD><TD CLASS="button-list"><SPAN CLASS="cmtt-10">pic-eqalign </SPAN></TD></TR></TABLE>
<!--4459--><p class="indent"> A <code><SPAN CLASS="cmtt-10">\TableOfContents</SPAN></code> command, similar to the generalized command of <code><SPAN CLASS="cmtt-10">\tableofcontents</SPAN></code> offered to LaTeX, is
also provided for TeX.
<!--4464--><p class="noindent">[<a
href="mn.html" >up</a>]
</body>
</html>
|