\documentclass{book} 
 
\input DraTex.sty      \input AlDraTex.sty 
 
\input tex4ht.sty 
 
\Preamble{html,next,HTable,sections-,fonts} 
 
\input ProTex.sty 
\AlProTex{llo,<<<>>>,‘,NoShow} 
 
\def\Example{\begingroup 
\Contribute{HTable}{border="0" cellpadding="0" 
   cellspacing="0" width="100\%"} 
   \HTable^/\Code\xxxx{}<<<} 
\def\EndExample{{\ShowOn \advance\leftskip by -3em 
   \let\extra=\empty  \let\extraB=\empty \ShowCode-\xxxx} 
   \def\@##1@{##1}   \OutputCode[tmp]\xxxx 
   \&~\&[/BGCOLOR="\#FFFFCC"] 
\ht:everypar{\HtmlPar}\input xxxx.tmp  \CR \EndHTable 
   \endgroup 
   \let\extra=\empty   \let\extraB=\empty \let\comments=\empty} 
\Contribute{HTable}{WIDTH="100\%"} 
 
% \HPage{+}\ShowFile{xxxx.tmp}\EndHPage{}\CR 
 
\Define\Color(3){{ 
   \Text(--\special{ps:~#1~#2~#3~setrgbcolor}--)}} 
\def\@#1@{\HCode{<FONT COLOR="\#0000FF"><STRONG>}% 
   #1\HCode{</STRONG></FONT>}} 
 
\ShowOff 
 
\HShowCode{}{}{}{\HCode{</A>...<A>}}{} 
 
 
 
\NewSection\Slide{$\bullet$~#2 } 
\Configure{Slide}{\IgnorePar\HCode{<h2>}} 
   {\HCode{</h2>}\IgnoreIndent}{} 
\CutAt{Slide,part} 
 
\NewSection\likeslide{} 
\cOnfigure{likeslide}{\IgnorePar\HCode{<!--}} 
   {\IgnorePar\HCode{-->}}{} 
\CutAt{likeslide,Slide} 
 
 
\Configure{crosslinks}{[}{] }{next}{prev}{}{}{}{} 
 
\Configure{crosslinks+}{}{[\Link[\RefFile 
      {toc}]{}{}toc\EndLink]\par\ShowPar} 
  {\par\ShowPar}{[\Link[\RefFile{toc}]{}{}toc\EndLink]} 
 
\begin{document} 
 
\EndPreamble 
 
 
%---------------------- start here ------------------------- 
 
 
% \DrawOff 
 
\HCode{<DIV ALIGN="CENTER">} 
\part{A Demonstration of TeX4ht} 
 
Eitan M. Gurari\HCode{<BR>}Ohio State Univ 
 
The 18th Annual Meeting of the\HCode{<BR>} 
             TeX Users Group\HCode{<P>} 
              July 28 - August 1, 1997\HCode{<BR>} 
             San Francisco, California 
\HCode{</DIV>} 
 
\HCode{<BR>}\HCode{<BR>}\HCode{<BR>} 
 
Note: The following slides refer to LaTeX.  However, the demonstration 
applies also to other TeX-based styles. 
 
 
{\tt http://www.cse.ohio-state.edu/\HCode{<BR>} \string~gurari/tug97/} 
 
\NextNewFileName{\jobname-toc.html} 
 
\likeslide{} 
 
 
                  \TagFile{toc} 
\tableofcontents[Slide] 
 
 
 
 
\Slide{TeX4ht as a Converter} 
 
 
\Code\semilatex{}<<< 
\def\documentclass#1{} 
\let\oldbegin=\begin 
\def\begin#1{\def\tempa{#1}\def\tempb{document}\ifx \tempa\tempb 
  \else \def\temp{\oldbegin{#1}}\expandafter\temp \fi} 
\let\oldend=\end 
\def\end#1{\def\tempa{#1}\def\tempb{document}\ifx \tempa\tempb 
  \else \def\temp{\oldend{#1}}\expandafter\temp \fi} 
\def\input#1\EndPreamble{\ShowPar} 
>>> 
 
 
 
 
 
\Code\extra{}<<< 
‘semilatex 
>>> 
 
\Example 
‘extra\documentclass 
        {article} 
 
\title{Psalms} 
\author{131:1} 
 
‘@\input tex4ht.sty@ 
‘@\Preamble{html}@ 
\begin{document} 
‘@\EndPreamble@ 
       \maketitle 
 
My heart is not 
haughty, nor mine 
eyes lofty: 
 
neither do I 
exercise myself in 
great matters, or 
in things too high 
for me. 
    \end{document} 
>>> \EndExample 
 
\end{document}