up

Examples

The time to create a hypertext document depends mainly on the time it takes to translate its figures into gif. The number of figures can be reduced by employing browser-based fonts (e.g., `<FONT FACE="SYMBOL">') of TeX4ht for creating special symbols, instead of pictorial-based fonts of TeX4ht.

For DOS-like file names use `htm' instead of `html', within the \Preamble commands and the extensions of the file names.

LaTeX Documents
1Getting Started with TeX/LaTeX Wilkins
2An Introduction to TeX and Friends Maltby
3Essential LaTeX Jon Warbrick
4Psfig/TeX 1.10 Users Guide Darrell
5PSTricks samples Van Zandt
6METAFONT for Beginners Tobin
7Simple Drawings with MetaFont Wagner
8A Few Words on Fonts Murphy
9XyMTeX: A Macro Package for Typesetting Chemical Structural Formulas Fujita
10TeXProject: A Mini Manual Bressan, Gurari
TeX Documents
11A Gentle Introduction to TeX Doob
12Using TeX on the Vax to Typeset Documents: A Primer St Sauver
13mfpic --- Pictures in TeX with MetaFont Leathrum, Tobin
14The WEB System of Structured Documentation Knuth
15Mathematical Approximation and Documentation Watson, Jr.
AmsLaTeX and AmsTeX Documents
16Sample Paper for the amsmath Package Version 1.02
17Newtheorem and theoremstyle test Michael Downes
18AMS-LaTeX User's Guide Version 1.2
19User's Guide to AMS-TeX Version 2.1


LaTeX Documents


Getting Started with TeX/LaTeX (Wilkins)

tcdmanual (91 pictures + 18 pictorial characters)

Script:

              ht    latex       GSWLaTeX
          

Changes:

  1. Replace `\begin{document}' with the following

               \input TeX4ht.sty
               \Preamble{html,sections-,3,fonts}
                  \begin{document}
               \EndPreamble
              

An Introduction to TeX and Friends (Maltby)

maltby-intro.tex, a4wide.sty, a4.sty (67 pictures, 217 pictorial characters)

Script:

                ht    latex    maltby-intro
          

Changes:

  1. Replace `\begin{document}' with

              \input TeX4ht.sty
                \Preamble{html,fonts,next,3}
              \begin{document}
              \EndPreamble
              

  2. Add the following just before `\maketitle'.

              \let\smallfont=\empty
              \HFont\smallfont{SMALL}
              \long\def\result#1{\begin{quote}{\smallfont #1}\end{quote}}
              

Essential LaTeX (Jon Warbrick)

essential.tex and hndout.sty (17 pictures)

Script:

                ht    latex   essential
          

Changes:

  1. Replace `\begin{document}' with

               \input TeX4ht.sty \Preamble{html,sections-,2}
                  \begin{document}
               \EndPreamble
              
               \let\Xfigure=\figure
               \def\figure{\Xfigure
                 \everypar{\HCode{<P>}}
                 \def\section##1{\HCode{<H2>1 ##1</H2>}}
                 \def\subsection##1{\HCode{<H3>1.1 ##1</H3>}}}
              
               \renewcommand{\egstart}{\Columns[, VALIGN="TOP"
                   WIDTH="\ifnum \Col=1 350\else
                          220\fi"]{2}\begin{egbox}}
               \renewcommand{\egmid}{\end{egbox}\vfill\break
                  \IgnorePar \begin{egbox}}
               \renewcommand{\egend}{\end{egbox}\EndColumns}
              
               \catcode`\@=11
               \def\maketitle{%
                 \begin{center}\HCode{<H2>}\@title\HCode{</H2>}\@docnumber
                               \\\relax \@date \\\@author
                 \end{center}}
               \catcode`\@=12
              

  2. Make sure that hndout.sty didn't acquire <PRE> or other insertions before its leading comment. If it did, comment that part out.

Psfig/TeX 1.10 Users Guide (Darrell)

psfig-doc.tex, psfig.sty, and figs (25 pictures)

Script:

                ht    latex   psfig-doc
          

Changes:

  1. Replace `\begin{document}' with

              \input TeX4ht.sty
              \Preamble{html,fonts,sections-,2}
                 \begin{document}
              \EndPreamble
              \Configure{centerline}{\HCode{<CENTER>}}{\HCode{</CENTER>}}
              \let\Xpsfig=\psfig
              \def\psfig#1{\hbox{\Picture+[pict]{}\Xpsfig{#1}\EndPicture}}
              

PSTricks samples (Van Zandt)

/doc/samples.tex

samples.tex, , pst-coil.sty , pst-coil.tex , pst-node.tex , pst-plot.sty , pstricks.sty , pstricks.tex , pstricks.con (13 pictures)

Script:

                ht    latex   samples.tex
          

Changes:

  1. Replace `\begin{document}' with

              \input TeX4ht.sty
              \Preamble{html}
                 \begin{document}
              \EndPreamble
              
              \let\Xexample=\example
              \def\example{\File{none.html}%
                 \hbox\bgroup  \Picture+[pict]{}\Xexample}
              
              \let\Xendexample=\endexample
              \def\endexample{\Xendexample\EndPicture
                 \EndFile{none.html}%
                 \Link[\PictureFile]{}{}\tt\TITLE\EndLink \HCode{<BR>}\egroup}
              
              \let\Xcreator=\creator
              \def\creator#1{\gdef\TITLE{#1}\Xcreator{#1}}
              
              \let\Xtitle=\title
              \def\title#1{\bgroup  \def\label##1{}\def\tt##1{##1}\let\N=\string
                   \xdef\TITLE{\TITLE: #1}\egroup     \Xtitle{#1}}
              

METAFONT for Beginners (Tobin)

metafont-for-beginners.tex (12 pictures)

Script:

                ht    latex   metafont-for-beginners
          

Changes:

  1. Replace `\begin{document}' with

              \input TeX4ht.sty
              \Preamble{html,sections-,fonts,2}
                  \begin{document}
              \EndPreamble
              

Simple Drawings with MetaFont (Wagner)

drawing.tex, drawing.tfm (6 pictures; 1 pictorial character)

Script:

                ht    latex   drawing
          

Changes:

  1. Replace `\begin{document}' with

              \input TeX4ht.sty
              \Preamble{html,fonts,2}
                  \begin{document}
              \EndPreamble
              

  2. Insert `\tableofcontents[likesection]' after `\maketitle'

A Few Words on Fonts (Murphy)

simple-nfss.tex (6 pictures)

Script:

                ht    latex   simple-nfss
          

Changes:

  1. Replace `\begin{document}' with the following.

              \catcode`\"=12
              \input TeX4ht.sty
              \Preamble{html,sections-,fonts,2}
                  \begin{document}
              \EndPreamble
              \catcode`\"=\active
              

XyMTeX: A Macro Package for Typesetting Chemical Structural Formulas (Fujita)

aliphat.sty, carom.sty, ccycle.sty, chemstr.sty, epic.sty, hcycle.sty, hetarom.sty, hetaromh.sty, locant.sty, lowcycle.sty, xymaliph.tex, xymappen.tex, xymcarb.tex, xymcarbl.tex, xymcycl.tex, xymcomb.tex, xymhet.tex, xymhetf.tex, xymhetg.tex, xymman.sty, xymsubst.tex, xymtex.tex (521 pictures, 16 pictorial characters)

  1. Replace `\begin{document}' in xymtex.tex with

              \input TeX4ht.sty
              \Preamble{html,bib1,3}
                  \begin{document}
              \EndPreamble
              
              \def\qquad{~~~~~~}
              \ConfigureEnv{minipage}
                  {\HCode{<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD>}}
                  {\HCode{</TD></TR></TABLE>}} {} {}
              

    You might also want to include the following code.

              \Configure{picture}{+}{}
              

  2. Replace with `\setbox...=\hbox{\PictureOff' the 10 occurences of `\setbox...=\hbox{%' in xymsubst.tex that don't appear in verbatim environments

  3. You'll might need to replace `\vspace*{1cm}' with `\ifHtml \else \vspace*{1cm}\fi' within the second table environment of xymcarb.tex.

TeXProject: A Mini Manual (Bressan, Gurari)

manual.tex, TeXProject.sty, DraTex.sty, AlDraTex.sty (8 pictures)

Script:

                ht    latex   manual
          

Changes:

  1. Replace `\begin{document}' with

              \input TeX4ht.sty
              \Preamble{htm,2,fonts}
              \begin{document}
              \EndPreamble
              


TeX Documents


A Gentle Introduction to TeX (Doob)

gentle.tex (130 pictures + 115 pictorial characters)

Script:

                ht    tex   gentle
          

Changes:

  1. Insert at the beginning

              \let\oldleft=\left
              \let\oldright=\right
              \input TeX4ht.sty \Preamble{html,sty,plain} \EndPreamble
              

  2. Replaced all occurrences of `^\the\footnotenum' with `^{\the\footnotenum}'

  3. Replace `\def\enduser{\endgroup}' with `\def\enduser{\endgroup\HtmlEnv}'.

  4. Insert the following after the definition `\def\datestamp{...}'

              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
              \let\left=\oldleft
              \let\right=\oldright
              
              \def\section#1{\advance\secnum by 1 \subsecnum=0 \exno=0
                 \ifnum \secnum > 0
                                     \Section{#1}
                 \else               \LikeSection{#1}
                    \ifnum \secnum=0
                       \TableOfContents[Section,LikeSection,subsection]
                          \long\def\temp##1\section{\section}%
                       \else   \let\temp=\empty
                    \fi
                    \expandafter\temp
                 \fi }
              
              \def\tocSection#1#2#3{\def\val{#1}\Assign\subval=0
                                              #1 #2 \HCode{<BR>}}
              
              \NewSection\subsection
                 {\advance\subsecnum by 1
                        \HCode{<H3>}\the\secnum.\the\subsecnum\space}
                 {\HCode{</H3>}\IgnorePar}{}
                 {\Advance\subval by 1  \val.\subval\space #2 \HCode{<BR>}}
              
              \CutAt{+Section}
              \CutAt{+LikeSection,Section}
              \def\BeforeSectionButton#1{}
              \def\AfterSectionButton#1{\HCode{<BR>}}
              \let\BeforeLikeSectionButton=\BeforeSectionButton
              \let\AfterLikeSectionButton=\AfterSectionButton
              
              \def\TeXref#1{{\HCode{<TABLE ALIGN="RIGHT"><TR><TD><U><SMALL>}%
                      \TeX book:   #1\HCode{</U></SMALL></TD></TR></TABLE>}}}
              
              \let\Xdatestamp=\datestamp
              \def\datestamp{\EndHPage{}\Xdatestamp}
              \def\maketable[#1]{\HCode{<CENTER><B>}#1\HCode{</B></CENTER>}}
              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
              

Using TeX on the Vax to Typeset Documents: A Primer (St Sauver)

tex_primer.tex, fontsize.tex, indexit.tex (116 pictures + 106 pictorial characters)

Script:

                ht    tex   tex_primer
          

Changes:

  1. Insert after `\def\leaderfill'.

              \catcode`\|=12
              \def\leaderfill{.....}
              
              \input TeX4ht.sty
              \Preamble{html,sty,plain,fonts,no_^} \EndPreamble
               %% sectioning  \centerline{\twlbf ....}
               %% title
              
              \CutAt{+LikeSection}
              \def\BeforeLikeSectionButton#1{\IgnorePar\HCode{<BR>}}
              \def\AfterLikeSectionButton#1{}
              
              \catcode`\^=13
              
              \let\Xcenterline=\centerline
              \def\centerline#1{\HFontsOff
                 \def\temp{#1}\Ycenterline#1[//]\HFontsOn}
              \def\Ycenterline#1#2[//]{%
                 \ifx #1\twlbf
                      \bgroup \let\twlbf=\empty \def^##1{##1}
                          \xdef\temp{\temp}
                      \egroup
                      \LikeSection{\temp}
                 \else
                     \ifx #1\twlrm\HCode{<BR><SMALL>}\fi
                     \ifx #1\stnbf\HCode{<STRONG>}\fi
                     \Xcenterline{\temp}
                     \ifx #1\stnbf\HCode{</STRONG>}\fi
                     \ifx #1\twlrm\HCode{</SMALL><BR>}\fi
                 \fi }
              
              \Configure{tabalign}{\IgnorePar\HCode{<CENTER>}}
                                  {\IgnorePar\HCode{</CENTER>}}{}{}
              
              \let\oldfootnote=\footnote
              \def\footnote#1{%
                 \Configure{tabalign}[1]%
                 \oldfootnote{\HCode{<SUP>}#1\HCode{</SUP>}}}
              
              \HFont\twlrm{NONE}   \HFont\twli{EM}
              \HFont\twlsy{EM}     \HFont\twlbf{STRONG}   \HFont\twltt{CODE}
              \HFont\twlit{EM}     \HFont\twlsl{EM}       \HFont\twlex{NONE}
              
              \let\oldeightpoint=\eightpoint
              \def\eightpoint{\HFontsOff\oldeightpoint}
              \let\oldninepoint=\ninepoint
              \def\ninepoint{\HFontsOff\oldninepoint}
              \let\oldtenpoint=\tenpoint
              \def\tenpoint{\HFontsOff\oldtenpoint}
              \let\oldelevenpoint=\elevenpoint
              \def\elevenpoint{\HFontsOff\oldelevenpoint}
              \let\oldtwelvepoint=\twelvepoint
              \def\twelvepoint{\HFontsOff\oldtwelvepoint}
              \let\oldfourteenpoint =\fourteenpoint
               \def\fourteenpoint {\HFontsOff\oldfourteenpoint}
              \let\oldseventeenpoint=\seventeenpoint
              \def\seventeenpoint{\HFontsOff\oldseventeenpoint}
              
              \catcode`\|=13
              

mfpic --- Pictures in TeX with MetaFont (Leathrum, Tobin)

mfpicdoc.tex, mfpicdoc.tex (3 pictures)

Script:

                ht    tex   mfpicdoc
          

Changes:

  1. Replace `\centerline {\bf Pictures in \TeX\ with \MF}' with

              \input TeX4ht.sty
              \Preamble{html,sty,plain,sections-,fonts} \EndPreamble
              
              \NewSection\head{\IgnorePar\HCode{<H2>}}
                 {\HCode{</H2>}\IgnorePar}{}
                 {\hbox{#2\HCode{<BR>}}}
              \NewSection\subhead{\IgnorePar\HCode{<H3>}}
                 {\HCode{</H3>}\IgnorePar}{}
                 {\hbox{\HCode{<NOBR>}~~~#2\HCode{</NOBR><BR>}}}
              
              \def\mail#1{\Link[mailto:#1]{}{}{\tt #1}\EndLink}
              \def\toc{\HCode{<CENTER>}\Columns[,VALIGN="TOP"]{2}
                 \TableOfContents[head,subhead]  \EndColumns \HCode{</CENTER>}}
              
              \CutAt{head}
              \let\oldhead=\head
              \def\head{\toc \let\toc=\empty \oldhead}
              
              \HCode{<CENTER><H1>}{Pictures in
                  \TeX\ with \MF}\HCode{</H1></CENTER>}
              

The WEB System of Structured Documentation (Knuth)

webman.tex (14 pictures; 12 pictorial characters)

Script:

                ht    tex   webman
          

Changes:

  1. Insert at the beginning

              \input TeX4ht.sty
              \Preamble{html,no_^,fonts,sections-,sty,plain}
              \EndPreamble
              

  2. Insert after `\gdef\verbatimgobble#1^^M{}}'.

              \def\lpile{%
                 \HCode{<TABLE><TR><TD>}\aftergroup\endlpile
                 \def\cr{\HCode{</TD></TR><TR><TD>}}}
              \def\endlpile{\HCode{</TD></TR></TABLE>}}
              
              \def\lheader{}
              \def\rheader{}
              
              \let\Xverbatim=\verbatim
              \def\verbatim{\HCode{<PRE>}\Xverbatim \everypar{}\aftergroup\endpre}
              \def\endpre{\HCode{</PRE>}}
              
              \expandafter\def\csname section\endcsname#1.{%
                {\def\.##1{##1}\xdef\temp{#1}}\Xsection\temp}
              \def\Xsection{\par\HCode{<P>}\TableOfContents[LikeSection]
                  \def\Xsection{\par\LikeSection}\LikeSection}
              
              \let\Xcenterline=\centerline
              \def\centerline#1{\let\centerline=\Xcenterline
                                \LikeChapter{#1}}
              \CutAt{LikeSection}
              
              \HFont\ninerm{NONE}
              \HFont\ninett{CODE}
              \HFont\eighttt{CODE}
              \HFont\quoterm{NONE}
              \HFont\quoteit{EM}
              

  3. Replace `\def\pstat#1#2#3...{...}' with

              \def\pstat#1#2#3
              #4{\yskip\noindent\HTable{%
                \.{#1} applied to \.{#2} (cpu time #3 sec)\cr #4}}
              

Mathematical Approximation and Documentation (Watson, Jr.)

maad.tex, pictex.tex (289 pictures)

Script:

                ht  tex   maad
          

Changes:

  1. Insert after `\input pictex'

              \input TeX4ht.sty
              \Preamble{html,pictex,sty,plain,fonts} \EndPreamble
              
              %-------------------- detect chapters and appendixes ------
              
               % Chapters:      \centerline{\bf Cha...}
               % Appendixes:    \centerline{\bf App...}
               % Other titles:  \centerline{\bf ...}
              
              \let\Xcenterline=\centerline    \let\BF=\bf
              \def\centerline#1{\futurelet\temp\checkbf #1//\let\bf=\BF}
              \def\checkbf{\ifx \temp\bf \let\bf=\beginbf
                 \else \def\temp##1//{\Xcenterline{##1}}
                       \expandafter\temp
                 \fi}
              
              
              \def\Appendix{App}
              \def\Chapter{Cha}
              \def\endbf{\HCode{</B>}}
              \def\beginbf#1#2#3{\let\bf=\BF
                 \def\temp{#1#2#3}%
                 \def\next##1//{\Xcenterline{{\bf#1#2#3##1}}}
                 \CheckChapter{#1#2#3}%
                 \CheckAppendix{#1#2#3}%
                 \next }
              \def\CheckChapter#1{%
                 \ifx \temp\Chapter   \def\next##1 ##2##3//{\LikeSection{Cha##1 ##2}##3}%
                 \fi}
              \def\CheckAppendix#1{%
                 \ifx \temp\Appendix  \def\next##1 ##2##3//{\LikeSection{App##1 ##2}##3}%
                 \fi}
              
              %-------------------- detect sections ---------------------
              
              \let\oldnoindent=\noindent
              \def\noindent{\futurelet\temp\noindentA}
              \def\noindentA{\oldnoindent
                 \ifx \temp\bgroup
                     \def\temp##1{{\checktitle ##1}}%
                     \expandafter\temp
                 \fi}
              \def\checktitle{\futurelet\temp\checkmore}
              \def\checkmore{\ifx \temp\bf
                   \def\temp##1{\futurelet\temp\decide}\expandafter\temp
                 \fi}
              
              \def\decide{\ifx \temp\llap
                 \def\llap##1{\let\llap=\temp
                    {\let\quad=\space \LikeSection{##1}}}\fi bf}
              
              
              %-------------------- other -------------------------------
              
              \Configure{settabs}
                  {\HCode{<TABLE>}\aftergroup\endsettabs}
                  {\HCode{<TR>}}{\HCode{</TR>}}%
                  {\HCode{<TD>}}{\HCode{</TD>}}%
              \def\endsettabs{\HCode{</TABLE>}}
              
              \CutAt{+LikeSection}
              

  2. Replace `\read-1 to\answer' with `\def\answer{N}'

AmsLaTeX and AmsTeX Documents


Sample Paper for the amsmath Package (Version 1.02)

testmath.tex (203 pictures, 43 pictorial characters)

Script:

                ht  latex   testmath
          

Changes:

  1. Replace `\begin{document}' with

              \input AmsTeX4ht.sty
              \Preamble{html,sections-,fonts,3,_^ref}
              
              \Contribute{BODY}{BGCOLOR="\#FFFFFF"}
              \Configure{enumerate}{i1aA}
              \ConfigureEnv{equation}
                {\HCode{<CENTER><TABLE  BORDER="0" CELLPADDING="0"
                        CELLSPACING="15"><TR VALIGN="TOP"><TD>}%
                 \AfterPicture{\HCode{</TD><TD>}}}
                {\HCode{</TD></TR></TABLE></CENTER>}\IgnorePar}{}{}
              \let\oldcn=\cn   \def\cn{\leavevmode\oldcn}
              
              \begin{document}
               \EndPreamble
              

  2. You'll might need to handle an undefined Bmatrix environment (e.g., by introducing the code `\newenvironment{Bmatrix}{\begin{bmatrix}}{\end{bmatrix}}').

Newtheorem and theoremstyle test (Michael Downes)

thmtest.tex (3 pictures, 5 pictorial characters)

Script:

                ht  latex   testmath
          

Changes:

  1. Replace `\begin{document}' with

              \input AmsTeX4ht.sty
              
              \Preamble{html,fonts,sections-}
              
              \begin{document}
              \EndPreamble
              

  2. You'll might need to remove the line `\thm@headpunct{:}%'.

AMS-LaTeX User's Guide (Version 1.2)

amsldoc.tex (73 pictures; 22 pictorial pictures)

Script:

                ht  latex   amsldoc
          

Changes:

  1. Insert after `\documentclass[leqno,titlepage,openany]{amsldoc}'

              \makeatletter
              \let\old@makechapterhead=\@makechapterhead
              \makeatother
              

  2. Replace `\begin{document}' with

              \renewcommand{\chaptername}{}
              \makeatletter
              \let\@makechapterhead=\old@makechapterhead
              \makeatother
              \let\svvec=\vec
              
              \input AmsTeX4ht.sty
              
              \Preamble{html,sections-,fonts,2}
              
              \let\vec=\svvec
              \def\chapterPrefix#1{\IgnorePar \HCode{<H2>}
                 --\thechapter--\HCode{<BR>}}
              \def\appendixPrefix#1{\IgnorePar \HCode{<H2>}
                 --Appendix \thechapter--\HCode{<BR>}}
              
              \renewenvironment{eqxample}{\par
                \ConfigureEnv{minipage}{\HCode{<TABLE WIDTH="100\%"><TR><TD>}}
                    {\HCode{</TD><TD ALIGN="RIGHT">}
                     \ConfigureEnv{minipage}{}{\IgnorePar\HCode{</TD><TR></TABLE>}}{}{}
                    }{}{}
                \noindent\begin{minipage}{.5\columnwidth}%
                \def\producing{\end{minipage}\begin{minipage}{.5\columnwidth}%
                  \Picture*{}
                  \hbox\bgroup\kern-.2pt\vrule width.2pt\vbox\bgroup\parindent0pt\relax
                  \abovedisplayskip3pt \abovedisplayshortskip\abovedisplayskip
                  \belowdisplayskip0pt \belowdisplayshortskip\belowdisplayskip
                  \noindent}
              }{%
                \par
                \hrule height0pt width\hsize
                \egroup\vrule width.2pt\kern-.2pt\egroup
                \EndPicture   \end{minipage}%
                \par
              }
              
              \renewcommand{\spx}[1]{\(\lspx#1\rspx\)}
              
              \let\olderrorbullet=\errorbullet
              \def\errorbullet{\Picture+[*** ]{}\olderrorbullet\EndPicture
                 \SavePicture\errorbullet[*** ]}
              
              \ConfigureEnv{error} {\HCode{<P>}} {} {} {}
              
              \def\autoindex#1{}
              
              % Hide the \addcontentsline's with \ifHtml's or insert the following code.
              
              \let\oldtocchapter=\tocchapter
              \def\tocchapter#1#2#3{\def\temp{#1}\ifx \temp\empty \else
                 \oldtocchapter{#1}{#2}{#3}\fi}
              
              \let\oldtocsection=\tocsection
              \def\tocsection#1#2#3{\def\temp{#1}\ifx \temp\empty \else
                 \oldtocsection{#1}{#2}{#3}\fi}
              
              \Contribute{BODY}{BGCOLOR="\#FFFFFF"}
              \begin{document}
              
              \EndPreamble
              

User's Guide to AMS-TeX (Version 2.1)

amsguide.tex and amstinst.tex (32 pictures, 32 pictorial characters)

Script:

                ht  tex   amsguide
          

Changes in amsguide.tex:

  1. Insert the following code just before `%% TITLE PAGE'.

              \input AmsTeX4ht.sty
              \Preamble{html,fonts,plain,/obeylines,sections-,sty,next}
              
              %      \Configure{fonts}{\leavevmode}{}
              \Configure{rightline}
                  {\HCode{<DIV ALIGN="RIGHT">}}{\HCode{</DIV>}\ShowPar}
              \Configure{title}{\IgnorePar\HCode{<HR><DIV ALIGN="CENTER"><H2>}}
                               {\IgnorePar\HCode{</H2></DIV>}}
              \Configure{date}{\IgnorePar\HCode{<CENTER>}}
                              {\IgnorePar\HCode{</CENTER><HR>}}
              
              \let\oldhead=\head
              \def\head{\let\makeheadline=\empty \oldhead}
              \let\oldamshead=\amshead
              \def\amshead{\def\\{. }\oldamshead}
              
              \let\oldbeginexample=\beginexample
              \def\beginexample{\IgnorePar
                 \HCode{<TABLE CELLPADDING="15"><TR><TD>}\IgnorePar
                 \oldbeginexample}
              \let\oldendexample=\endexample
              \def\endexample{\IgnorePar\oldendexample
                 \IgnorePar \HCode{</TD></TR></TABLE>}\IgnorePar\par}
              
              \def\BBB#1{\ShowPar\par $\bullet$ {\bf#1}\ShowPar\par}
              
              \long\def\toc#1\endtoc{}
              \let\olddocument=\document
              \def\document{\olddocument
                 \TableOfContents[amshead,amssubhead]
                 \CutAt{amshead}
                 \TocAt{amshead,amssubhead,amssubsubhead}
                 }
              
              \EndPreamble
              

  2. Replace `\shipout\vbox to\vsize{' with `\ifHtml\else \expandafter\shipout\fi \vbox to\vsize{\HFont\fourtnbf{H1}'

  3. Replace

              \setbox1=\hbox{\tt\\dedicatory...\\enddedicatory\ }}
              \setbox0=\vbox{\hsize=\wd1\parindent=0pt\tt\obeylines
              

    with

              \setbox1=\hbox{\HFontsOff\tt\\dedicatory...\\enddedicatory\ }
              \setbox0=\vbox{\IgnorePar\HFontsOff\Configure{obeylines}{}{}{}%
                 \hsize=\wd1\parindent=0pt\tt\obeylines
              

  4. Remove `}\setbox0\lastbox\unhbox0\unskip,\hfill{' (don't leave any space between the `upharpoonright' and the \cr).

  5. Remove \tt from `\tt\endsubsubhead'

  6. You'll might need to insert the following code before `\input amstex'.

              \newdimen\dropfoliodepth
              \newdimen\headlineheight
              \newdimen\headlinespace
              

Changes in amstinst.tex:

  1. Place the definition of \head between an `\ifHtml\else' and a `\fi'

  2. Replace code `\setbox0\vbox{\tt\+install.exe& amsinst.bat& amstex.ini\cr}' with `\setbox0\vbox{{\tt\+install.exe& amsinst.bat& amstex.ini\cr}}'.