% Compile 3 timws: latex tex4ht-html4
%             or   xhlatex tex4ht-html4 "html,3,sections+"
% Copy html.4ht into the work directory before each of the 
%            first two compilations
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tex4ht-html4.tex                                       %
% Copyright (C) 1996--            Eitan M. Gurari        %
%                                                        %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 of this license or (at your option) any    %
% later version. The latest version of this license is   %
% in                                                     %
%   http://www.latex-project.org/lppl.txt                %
% and version 1.3 or later is part of all distributions  %
% of LaTeX version 2003/12/01 or later.                  %
%                                                        %
% This work has the LPPL maintenance status "maintained".%
%                                                        %
% This Current Maintainer of this work                   %
% is Eitan M. Gurari.                                    %
%                                                        %
% If you modify this file your changing the signature    %
% in \message{(signature)} below will be appreciated.    %
%                                                        %
%                             gurari@cse.ohio-state.edu  %
%                 http://www.cse.ohio-state.edu/~gurari  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
\message{(<signature>)}



\ifx \HTML\UnDef
   \def\HTML{html4,html4-math,html4-uni} 
   \def\CONFIG{\jobname}
   \def\MAKETITLE{\author{Eitan M. Gurari}}
   \def\next{\input mktex4ht.4ht  \endinput}
   \def\OPTIONS{xhtml,3,sections+}
   \expandafter\next
\fi



%%%%%%%%%%%%%%%%%% definitions %%%%%%%%%%%%%%%%%%%%%%%%%

\let\AltxModifyShowCode=\ModifyShowCode
\def\ModifyShowCode{%
   \def\by{by}\def\={=}\AltxModifyShowCode}
\let\pReModifyOutputCode=\ModifyOutputCode
\def\ModifyOutputCode{%
   \def\by{}\def\={}%
   \pReModifyOutputCode}

\newcount\tmpcnt  \tmpcnt\time  \divide\tmpcnt  60
\edef\temp{\the\tmpcnt}
\multiply\tmpcnt  -60 \advance\tmpcnt  \time

\edef\version{\the\year-\ifnum \month<10 0\fi
  \the\month-\ifnum \day<10 0\fi\the\day
   -\ifnum \temp<10 0\fi \temp
   :\ifnum \tmpcnt<10 0\fi\the\tmpcnt}

\def\CopyYear.#1.{%
   \ifnum #1=\year #1\space\space\space\space\space\space
    \else          #1--\the\year\fi
}

\def\.{\string\a:mathml:\space}


\TocAt{section,subsection,likesubsection}  

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Needs{"ls -l tex4ht-*.tex > ls-links.log"}
\openin15=ls-links.log
\ifeof15 \else \closein15
\bgroup
   \catcode`\-=13
   \def-#1tex4ht-{\bgroup \catcode`\-=12  
      \def-##1.tex{\egroup
           [\Link[tex4ht\string-##1.html]{}{}##1\EndLink]}
      -}   
  \input ls\string-links.log
\egroup
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{The Calling Tree for 4ht Files}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<config tex4ht\><<<
\if:latex  |<Hinclude latex|>
\else      |<Hinclude plain|>  \fi
>>>

\<0,32,4 plain\><<<
|<Hinclude plain lib|>
|<Hinclude plain + latex lib|>
>>>

\<0,32,4 latex\><<<
|<Hinclude latex lib|>
|<Hinclude plain + latex lib|>
>>>



\<html4\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% html4.4ht                             |version %
% Copyright (C) |CopyYear.1997.       Eitan M. Gurari         %
|<TeX4ht copyright|>
>>>


\<html4-math\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% html4-math.4ht                        |version %
% Copyright (C) |CopyYear.1999.       Eitan M. Gurari         %
|<TeX4ht copyright|>
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Front part}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%
\section{HTML}
%%%%%%%%%%%%%%%%

\<tex4ht HTML\><<<
\ifx \a:HTML\:UnDef
   \Configure{HTML}
     {\IgnorePar\HCode{<html \a:@HTML
       \:xhtml{|<xmlns|>\Hnewline}>\Hnewline}}
     {\ifvmode\IgnorePar\fi\HCode{</html>\Hnewline}}
\fi
\ifx \a:HEAD\:UnDef
   \Configure{HEAD}
      {\IgnorePar\NoFonts\HCode {<head>}}
      {\HCode{</head>}\EndNoFonts}
\fi
\ifx \a:BODY\:UnDef
   \:CheckOption{frames} \if:Option
      |<frames BODY|>
   \else 
      \Log:Note{for content and toc
           in 2 frames, use the command line option `frames'}
      \Log:Note{for content, toc, and footnotes
           in 3 frames, use the command line option `frames-fn'}
      |<no frame BODY|>
\fi\fi
\ifx \a:TITLE\:UnDef
   \Configure{TITLE}{\Protect\IgnorePar
      \HCode{<title>}}{\HCode{</title>\Hnewline}}
\fi
\ifx \a:@HEAD\relax \let\a:@HEAD=\empty\fi
\ifx \a:@HEAD\empty
   |<meta tags|>
   \:CheckOption{css-in} \if:Option
      \Log:Note{the inline CSS code is extracted from the input of the
          previous compilation, so an extra compilation might be needed}
      \Configure{@HEAD}{|<css inline|>}
   \else
      \Log:Note{for inline CSS code, use the command line option `css-in'}
      \Configure{@HEAD}{\HCode{<link
         rel="stylesheet" type="text/css"
         href="\aa:CssFile"\xml:empty>\Hnewline}}
   \fi
   |<HEAD charset|>
\fi
\:CheckOption{mouseover} \if:Option
  |<onmouseover @HEAD|>
\else 
  \Log:Note{for pop ups on mouse over, 
          use the command line option `mouseover'}
\fi
>>>

\<css inline\><<<
\openin15=\jobname .css 
\ifeof15 \else  \:warning{Missing file: \jobname .css }%
\bgroup 
   \catcode`\{=12  \catcode`\}=12  \catcode`\%=12  \catcode`\#=12 
   \HCode{\Hnewline<style type="text/css">\Hnewline <!-- \Hnewline}% 
   \loop  
      \read15 to \:temp    
      \def\:tempa{\par}\ifx \:temp\:tempa \let\:temp\empty \fi
   \ifeof15\else  
      \expandafter\tmp:toks\expandafter{\:temp}% 
      \HCode{\the\tmp:toks \Hnewline}% 
   \repeat 
   \HCode{\Hnewline-->\Hnewline</style>\Hnewline}% 
\egroup 
\fi 
\closein15 
>>>



\<HEAD charset\><<<
\:CheckOption{uni-html4} \if:Option
   \def\A:charset{charset=utf-8}
\else
   \def\A:charset{charset=iso-8859-1}
\fi
>>>

\verb'\a:charset' can come from a private configuration file, and from
a poackage option. It takes precedence over \verb'\A:charset'.



%%%%%%%%%%%%%%%%
\section{XML Version}
%%%%%%%%%%%%%%%%

\<xhtml dtd xml-version\><<<
|<xml encoding utility|>
\Configure{VERSION}
    {\HCode{<?xml version="1.0" |<xml encoding|> ?>\Hnewline}}          
>>>

%%%%%%%%%%%%%%%%
\section{DOCTYPE}
%%%%%%%%%%%%%%%%

\<tex4ht doctype\><<<
\ifx \a:DOCTYPE\relax
   \:CheckOption{frames}  \if:Option
      |<frames dtd|>
   \else
      |<no frames xhtml DOCTYPE|>
      |<no frames DOCTYPE|>
   \fi
\fi
>>>


\<no frames xhtml DOCTYPE\><<<
\:CheckOption{xhtml}  \if:Option   
   \NewConfigure{@DOCTYPE}[1]{\def\:temp{#1}%
      \ifx \:temp\empty  \let\a:@DOCTYPE|=\empty
      \else \ifx \a:@DOCTYPE\relax  \let\a:@DOCTYPE|=\empty\fi
        \pend:def\a:@DOCTYPE{#1}\fi}
   \let\a:@DOCTYPE|=\relax
\fi
>>>

\<configure html4 Preamble\><<<  
\Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
\:CheckOption{mouseover} \if:Option
   |<DOCTYPE in PROLOG under mouseover|>
\fi
\:CheckOption{no-DOCTYPE} \if:Option
   \Configure{PROLOG}{VERSION,*XML-STYLESHEET}
\else
  \Log:Note{to remove the DOCTYPE declaration
          use the command line option `no-DOCTYPE'}   
\fi
>>>



   
\<no frames DOCTYPE\><<<
\:CheckOption{xhtml}  \if:Option
   |<xhtml dtd|>%
   \def\:DTD{xhtml}
\else
   |<html dtd|>%
\fi
>>>



Don't place the full address
 \''http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd' 
within DOCTYPE. It can stop tools like xt when the serves doen't respond


\<xhtml dtd\><<<
|<xhtml dtd xml-version|>%
\Configure{DOCTYPE}
  {\HCode{<!DOCTYPE html \xhtml:DOCTYPE>            \Hnewline
          <!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
          \Hnewline}}
\def\xhtml:DOCTYPE{PUBLIC
     "-//W3C//DTD XHTML 1.0 Transitional//|<dtd lang|>"\Hnewline
    \space\space "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}
>>>


\<dtd lang\><<<
\expandafter
\ifx \csname a:dtd-lang\endcsname\relax EN\else
  \csname a:dtd-lang\endcsname
\fi
>>>


\<xhtml dtd\><<<
\Configure{@DOCTYPE}
  {<!ENTITY \% xhtml.dtd \xhtml:DOCTYPE>\Hnewline\%xhtml.dtd; \Hnewline}
>>>

\<html dtd\><<<
\Configure{DOCTYPE}{\IgnorePar\HCode
   {<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//|<dtd lang|>"
    \Hnewline\space\space "http://www.w3.org/TR/html4/loose.dtd">
    \Hnewline}}
>>>


 
\<frames dtd\><<<
\:CheckOption{xhtml} \if:Option  
   \Configure{DOCTYPE}
   {\HCode{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//|<dtd lang|>"
    \Hnewline "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\Hnewline}}
\else
   \Configure{DOCTYPE}
   {\HCode{<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//|<dtd lang|>"
    \Hnewline "http://www.w3.org/TR/html4/frameset.dtd">\Hnewline}}
\fi
>>>






Xerces reqires the following encoding.

\<tex4ht doctype\><<<
\def\:encoding#1={}
>>>

\<xml encoding\><<<
encoding="\expandafter\ifx \csname a:charset\endcsname\relax
         \expandafter\:encoding\A:charset
   \else \expandafter\:encoding\a:charset\fi"
>>>

%%%%%%%%%%%%%%%%
\section{BODY}
%%%%%%%%%%%%%%%%

\<no frame BODY\><<<
\:CheckOption{mouseover} \if:Option
   \Configure{BODY}
      {\:xhtml{\SaveEndP}\IgnorePar\HCode{<body\Hnewline 
         \csname a:!BODY\endcsname >}|<overDiv|>\ShowPar\par}
      {\IgnorePar\:xhtml{\EndP}\HCode{\Hnewline
        </body>}\:xhtml{\RecallEndP}}%
\else
   \Configure{BODY}
      {\:xhtml{\SaveEndP}\IgnorePar\HCode{<body\Hnewline 
         \csname a:!BODY\endcsname >}\ShowPar\par }
      {\IgnorePar\:xhtml{\EndP}\HCode{\Hnewline
        </body>}\:xhtml{\RecallEndP}}%
\fi
>>>

\<frames BODY\><<<
\def\Frame:Name{menu}
|<no frames xhtml DOCTYPE|>%
\Configure{BODY}
   {%
    \a:frames    \NoFrames    \PushStack\BODY:stack{}
    |<sub frames BODY|>%
    |<no frames DOCTYPE|>%
    \HPage[tex4ht-p1]{table of contents}%
       \Link{}{|<tex4ht-toc|>}\EndLink 
       \bgroup
         \Configure{Link}{a}{target="|<tex4ht-main|>"  href=}{ name=}{}
         \b:frames
       \egroup   
       \def\Frame:Name{main}
    \EndHPage{tex4ht-p1} \Tg<br />
    \HPage[tex4ht-p2]{text}\Link{}{|<tex4ht-body|>}\EndLink
    }
  {\EndHPage{tex4ht-p2}}
\NewConfigure{frames}{2}
\Css{body\#|<tex4ht-menu|> {white-space: nowrap; }}
>>>


\<sub frames BODY\><<<
\:CheckOption{mouseover} \if:Option
   \Configure{BODY}
      {\PushStack\BODY:stack{x}%
       \:xhtml{\SaveEndP}\IgnorePar\HCode{<body\Hnewline
       \ifx\Frame:Name\empty\else id="tex4ht-\Frame:Name"\fi
       \csname a:!BODY\endcsname 
         >}|<overDiv|>\ShowPar\par \let\Frame:Name=\empty}
      {\IgnorePar\:xhtml{\EndP}\PopStack\BODY:stack\:temp
        \ifx \:temp\empty \EndFrames \else
                              \HCode{\Hnewline </body>}\fi
        \:xhtml{\RecallEndP}}%
\else
   \Configure{BODY}
      {\PushStack\BODY:stack{x}%
       \:xhtml{\SaveEndP}\IgnorePar\HCode{<body\Hnewline
       \ifx\Frame:Name\empty\else id="tex4ht-\Frame:Name"\fi
       \csname a:!BODY\endcsname >}\ShowPar\par \let\Frame:Name\empty}
      {\IgnorePar\:xhtml{\EndP}\PopStack\BODY:stack\:temp
        \ifx \:temp\empty \EndFrames
                        \else \HCode{\Hnewline </body>}\fi
        \:xhtml{\RecallEndP}}%
\fi
>>>     



\<tex4ht-main\><<<
tex4ht-main>>>


\<tex4ht-fn\><<<
tex4ht-fn>>>

\<tex4ht-menu\><<<
tex4ht-menu>>>


%%%%%%%%%%%%%%%%
\section{Meta}
%%%%%%%%%%%%%%%%


\<meta tags\><<<
\:CheckOption{xht} \if:Option  
   \:CheckOption{xhtml}\if:Option \else \:CheckOption{xml}\fi   
\fi
\if:Option |<xht extension file name|> 
\else      |<html extension file name|>\fi
\def\:gobbleM#1->{} 
|<meta generator / originator|>
\immediate\write-1{TeX4ht package options:
    \expandafter\:gobbleM\meaning\Preamble}
\Configure{@HEAD}
   {\HCode{<meta name="src" content="\jobname.tex"\xml:empty>\Hnewline}} 
\Configure{@HEAD}
   {\HCode{<meta name="date" content="\:today"\xml:empty>\Hnewline}} 
>>>


\<xht extension file name\><<<
\Configure{@HEAD}{\HCode{<meta  
   http-equiv="Content-Type" content="application/xhtml+xml;
   \expandafter\ifx \csname a:charset\endcsname\relax\A:charset
   \else \a:charset\fi"\xml:empty>\Hnewline}}
\Configure{html}{xht}
>>>

\<html extension file name\><<<
\Log:Note{for file extension name xht, use the command line option `xht'}%
\Configure{@HEAD}{\HCode{<meta  
   http-equiv="Content-Type" content="text/html;
   \expandafter\ifx \csname a:charset\endcsname\relax\A:charset
   \else \a:charset\fi"\xml:empty>\Hnewline}}
>>>


\verb'\Hnewline' is needed at end of file to avoid loosing the
last line under some applications.





Tex4ht pages  published through FrontPage loose the generator metas,
but not the originator-metas.




\<meta generator / originator\><<<
\Configure{@HEAD}{\HCode{<meta  
    name="generator" content="TeX4ht
      (http://www.cse.ohio-state.edu/\string
       ~gurari/TeX4ht/mn.html)"\xml:empty>\Hnewline}}
\Configure{@HEAD}{\HCode{<meta  
    name="originator" content="TeX4ht
      (http://www.cse.ohio-state.edu/\string
       ~gurari/TeX4ht/mn.html)"\xml:empty>\Hnewline
       <!--\space\expandafter\:gobbleM\meaning
               \Preamble\space-->\Hnewline}}
>>>



%%%%%%%%%%%%%%%%
\section{Frames}
%%%%%%%%%%%%%%%%

\<tex4ht-toc\><<<
tex4ht-toc>>>

\<tex4ht-body\><<<
tex4ht-body>>>

\<4 latex\><<<
\:CheckOption{frames}  \if:Option
   \:CheckOption{frames-fn}  \if:Option
      \Configure{frames}
         {\HorFrames[rows="*"]{*,3*}
            \VerFrames[cols="*"]{3*,*}
               \Frame[ name="|<tex4ht-menu|>"
                       frameborder="0" ]{|<tex4ht-toc|>}
               \Frame[ name="|<tex4ht-fn|>" 
                       frameborder="0" ]{}
            \EndFrames
            \Frame[ name="|<tex4ht-main|>"
                    frameborder="0" ]{|<tex4ht-body|>}}
         {\let\contentsname=\empty \tableofcontents}
   \else
      \Configure{frames}
         {\HorFrames[rows="*"]{*,3*}
            \Frame[ name="|<tex4ht-menu|>"
                    frameborder="0" ]{|<tex4ht-toc|>}
            \Frame[ name="|<tex4ht-main|>"
                    frameborder="0" ]{|<tex4ht-body|>}}
         {\let\contentsname=\empty  \tableofcontents}
   \fi 
\fi
>>>

% frameborder="no" 
% border="0"
% framespacing="0"


\<configure html4 Preamble\><<<
\:CheckOption{frames-fn}  \if:Option
   \edef\Preamble{\Preamble,frames}
\fi
>>>



\<beamer ver frames\><<<
\Configure{frames}
   {\VerFrames[ cols="*"]{4*,*}
      \Frame[ name="|<tex4ht-main|>"
              frameborder="1" ]{|<tex4ht-body|>}
      \Frame[ name="|<tex4ht-menu|>"
              frameborder="1" ]{|<tex4ht-toc|>}}
   {\beamer:bookmarks \tableofcontents}
>>>

\<beamer hor frames\><<<
\Configure{frames}
   {\HorFrames[ rows="*"]{*,3*}
      \Frame[ name="|<tex4ht-menu|>"
              frameborder="1" ]{|<tex4ht-toc|>}
      \Frame[ name="|<tex4ht-main|>"
              frameborder="1" ]{|<tex4ht-body|>}}
   {\beamer:bookmarks \tableofcontents}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Structures}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Sectioning}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Sub Sections}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<shared h4 subsection\><<<
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else 
       \HCode{<span class="titlemark">}\@seccntformat{subsection}%
       \HCode{</span>}\fi }
\Configure{subsection}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\bgroup \IgnorePar\HCode{<h4 class="subsectionHead"\a:LRdir>}%
    \TitleMark\space \HtmlParOff}
   {\HCode{</h4>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
\Configure{subsectionTITLE+}{\thesubsection \space#1}
\Configure{likesubsection}{}{}{\EndP\bgroup
   \ifvmode \IgnorePar\fi
   \HCode{<h4 class="likesubsectionHead"\a:LRdir>}\HtmlParOff }
  {\HCode{</h4>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
\Configure{likesubsectionTITLE+}{#1}
>>>


\<configure html4 emulateapj\><<<
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else 
       \HCode{<span class="titlemark">}\@seccntformat{section}%
       \thesubsection\HCode{</span>}\fi}
\Configure{subsection}{}{}
   {\EndP\bgroup \IgnorePar\HCode{<h4 class="subsectionHead"\a:LRdir>}%
    \TitleMark{. \space}}
   {\HCode{</h4>}\IgnoreIndent\egroup}
>>>

\<configure html4 titlesec\><<<
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble \else
    \csname thetitlesubsection\endcsname\fi}
\Configure{subsection}{}{}
   {\EndP\bgroup \IgnorePar\HCode{<h4 class="subsectionHead"\a:LRdir>}%
    \TitleMark\space}
   {\HCode{</h4>}\IgnoreIndent\egroup}
>>>


\<mwcls divs\><<<
\ConfigureMark{subsection}
   {\ifHeadingNumbered \HCode{<span class="titlemark">}\mw@seccntformat
    \HeadingNumber \HCode{</span>}\fi}
\Configure{subsection}{}{}
   {\NoFonts \ifvmode \IgnorePar\fi
    \EndP\bgroup \IgnorePar\HCode{<h4 class="subsectionHead"\a:LRdir>}%
    \TitleMark \HtmlParOff}
   {\HCode{</h4>}\HtmlParOn \EndNoFonts \IgnoreIndent\egroup\par}
\Configure{subsectionTITLE+}{\thesubsection \space#1}
>>>

\<mwcls divs\><<<
\Configure{likesubsection}{}{}{\EndP\bgroup
   \ifvmode \IgnorePar\fi
   \HCode{<h4 class="likesubsectionHead"\a:LRdir>}\HtmlParOff }
  {\HCode{</h4>}\HtmlParOn \IgnoreIndent\egroup\par}
\Configure{likesubsectionTITLE+}{#1}
>>>


\<ams art,proc,book div\><<<
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else 
       \HCode{<span class="titlemark">}%
          \@ifundefined{subsectionname}{}{%
          \ignorespaces\subsectionname\space}%
          \@seccntformat{subsection}%
       \HCode{</span>}\fi }
\Configure{subsectionTITLE+}{\thesubsection \space#1}
>>>

  
\<ams proc,book\><<<
\Configure{subsection}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\bgroup \IgnorePar\HCode{<h4 class="subsectionHead"\a:LRdir>}%
    \TitleMark\space \HtmlParOff}
   {\HCode{</h4>}\HtmlParOn \IgnoreIndent\egroup\par}
>>>

\<ams art\><<<
\Configure{subsection}{}{}
  {\ShowPar\noindent
   \HCode{<span class="subsectionHead"\a:LRdir>}\begingroup\bf
   \TitleMark\space}
  {.\endgroup\HCode{</span>}\IgnorePar\par}
>>>

 

\<scr report,book\><<<
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\thesubsection
       \HCode{</span>}\fi }
\Configure{subsection}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\bgroup \IgnorePar\HCode{<h4 class="subsectionHead"\a:LRdir>}%
    \TitleMark.~~\HtmlParOff}
   {\HCode{</h4>}\HtmlParOn \IgnoreIndent\egroup\par}
\Configure{subsectionTITLE+}{\thesubsection \space#1}
\Configure{likesubsection}{}{}{\EndP\bgroup
   \ifvmode \IgnorePar\fi
   \HCode{<h4 class="likesubsectionHead"\a:LRdir>}\HtmlParOff }
  {\HCode{</h4>}\HtmlParOn \IgnoreIndent\egroup\par}
\Configure{likesubsectionTITLE+}{#1}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Sub Sub Sections}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<ams art,proc,book div\><<<
\ConfigureMark{subsubsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else 
       \HCode{<span class="titlemark">}%
          \@ifundefined{subsubsectionname}{}{%
          \ignorespaces\subsubsectionname\space}%
          \@seccntformat{subsubsection}%
       \HCode{</span>}\fi}
\Configure{subsubsectionTITLE+}{\thesubsubsection \space#1}
>>>


\<ams proc,book\><<<
\Configure{subsubsection}{}{}
   {\ifvmode \IgnorePar \fi  \EndP
    \bgroup \IgnorePar\HCode{<h5 class="subsubsectionHead"\a:LRdir>}%
    \TitleMark\space \HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
>>>

\<ams art\><<<
\Configure{subsubsection}{}{}
  {\ShowPar\noindent
   \HCode{<span class="subsubsectionHead"\a:LRdir>}\begingroup\it
   \TitleMark\space}
  {.\endgroup\HCode{</span>}\IgnorePar}
>>>


\<shared h5 subsubsection\><<<
\ConfigureMark{subsubsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\@seccntformat{subsubsection}%
       \HCode{</span>}\fi}
\Configure{subsubsection}{}{}
   {\ifvmode \IgnorePar \fi  \EndP
    \bgroup \IgnorePar\HCode{<h5 class="subsubsectionHead"\a:LRdir>}%
    \TitleMark\space \HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
\Configure{likesubsubsection}{}{}
   {\ifvmode \IgnorePar\fi \EndP\bgroup\IgnorePar
    \HCode{<h5 class="likesubsubsectionHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
\Configure{subsubsectionTITLE+}{\thesubsubsection \space#1}
>>>



\<mwcls divs\><<<
\ConfigureMark{subsubsection}
   {\ifHeadingNumbered \HCode{<span class="titlemark">}\mw@seccntformat
    \HeadingNumber \HCode{</span>}\fi}
\Configure{subsubsection}{}{}
   {\NoFonts \ifvmode \IgnorePar \fi  \EndP
    \bgroup \IgnorePar\HCode{<h5 class="subsubsectionHead"\a:LRdir>}%
    \TitleMark \HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \EndNoFonts \IgnoreIndent\egroup
    \par\ShowPar}
\Configure{subsubsectionTITLE+}{\thesubsubsection \space#1}
>>>



\<mwcls divs\><<<
\Configure{likesubsubsection}{}{}
   {\ifvmode \IgnorePar\fi \EndP\bgroup\IgnorePar
    \HCode{<h5 class="likesubsubsectionHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup \par\ShowPar}
>>>




\<configure html4 titlesec\><<<
\ConfigureMark{subsubsection}
   {\ifnum \c:secnumdepth>\c@secnumdepth   \expandafter\:gobble \else
    \csname thetitlesubsubsection\endcsname\fi}
\Configure{subsubsection}{}{}
   {\EndP\bgroup \IgnorePar\HCode{<h5 class="subsubsectionHead"\a:LRdir>}%
    \TitleMark\space}
   {\HCode{</h5>}\IgnoreIndent\egroup \par\ShowPar}
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Sectioning Pagination}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{article,report,book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<article,report,book options 1, 2, 3\><<<
|<html latex tocs|> |%should appear before TocAt|%
|<cut and toc at for options 1, 2, 3|>
>>>



\<cut and toc at for options 1, 2, 3\><<<
\:CheckOption{4}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
         |<cut toc: part|>      |%cut toc before cutat|%
         |<cutat: part|>
         |<cut toc: sec|>       
         |<cutat: sec|>    
         |<cut toc: subsec|>  
         |<cutat: subsection|>
         |<tocat: part|>
         |<tocat: section|>
    \else
         |<cut toc: part|>      |%cut toc before cutat|%
         |<cutat: part|>
         |<cut toc: ch|>
         |<cutat: chapter|>
         |<cut toc: sec|>
         |<cutat: sec|>
         |<cut toc: subsec|>
         |<cutat: subsection|>
         |<tocat: part|>     
         |<tocat: ch|>        
         |<tocat: section|>   
    \fi
\else\:CheckOption{3}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
         |<cut toc: part|>      |%cut toc before cutat|%
         |<cutat: part|>
         |<cut toc: sec|>
         |<cut toc: subsec|>
         |<cutat: subsection|>
         |<tocat: part|>     
         |<tocat: section|>   
         |<cutat: sec|>
    \else
         |<cut toc: part|>      |%cut toc before cutat|%
         |<cutat: part|>
         |<cut toc: ch|>
         |<cutat: chapter|>
         |<cut toc: sec|>
         |<cutat: sec|>
         |<tocat: part|>      
         |<tocat: ch|>     
    \fi
\else\:CheckOption{2}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax 
         |<cut toc: part|>      |%cut toc before cutat|%
         |<cutat: part|>
         |<cut toc: sec|>
         |<cutat: sec|> 
         |<tocat: part|>    
    \else
         |<cut toc: part|>      |%cut toc before cutat|%
         |<cutat: part|>
         |<cut toc: ch|>
         |<cutat: chapter|>
         |<tocat: part|>     
    \fi
\else\:CheckOption{1}     \if:Option
         |<cut toc: part|>      |%cut toc before cutat|%
         |<cutat: part|>                         
\else
    \Log:Note{for automatic sectioning 
        pagination, use the command line option `1', `2', or `3'}%
\fi \fi \fi \fi
>>>



\<cutat: part\><<<
\CutAt{part}
\CutAt{likepart}
>>>




\<cutat: chapter\><<<
\CutAt{chapter,likechapter,appendix,part}
\CutAt{likechapter,appendix,part}
\CutAt{appendix,chapter,likechapter,part}
>>>



\<cutat: sec\><<<
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
>>>


\<cutat: subsection\><<<
\CutAt{subsection,section,likesection,%
                  chapter,likechapter,appendix,part}
\CutAt{likesubsection,section,likesection,%
                  chapter,likechapter,appendix,part}
>>>


%%%%%%%%%%%%%%%%%%%
\subsection{AMS}
%%%%%%%%%%%%%%%%%%%



\<ams options 1, 2, 3\><<<
|<cut and toc at for options 1, 2, 3|>
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Tables of Contents: Choice of Entries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





\<toc article,report options 1\><<<
\:CheckOption{notoc*}     \if:Option
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{part,/likepart,section,subsection}
   \fi
   \Configure{tableofcontents*}{part,section}     
\else
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{part,/likepart,section,likesection,%
           subsection,likesubsection}
   \fi
   |<notoc* note|>
   \Configure{tableofcontents*}{part,likepart,section,likesection}     
\fi 
>>>

\<toc book options 1\><<<
\:CheckOption{notoc*}     \if:Option
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{part,/likepart,chapter,appendix,section}
   \fi
\else
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{part,/likepart,chapter,likechapter,appendix,%
            section,likesection}
   \fi
\fi
>>>


\<cut toc: part\><<<
\:CheckOption{notoc*}     \if:Option
   \Configure{tableofcontents*}
      {part,chapter,appendix}
\else
   |<notoc* note|>
   \Configure{tableofcontents*}
      {part,likepart,chapter,likechapter,appendix}
\fi
>>>


\<tocat: part\><<<
\:CheckOption{notoc*}     \if:Option
\else
  \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
     \TocAt*{part,/likepart,chapter,likechapter,appendix,%
          section,likesection}
     \TocAt*{likepart,/part,chapter,likechapter,appendix,%
          section,likesection}
  \fi
\fi
>>>


\<cut toc: ch\><<<
\:CheckOption{notoc*}     \if:Option
  \Configure{tableofcontents*}{part,chapter,%
     appendix,section\expandafter\ifx 
     \csname @chapter\endcsname\relax ,subsection\fi}
\else
  |<notoc* note|>
  \Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
     appendix,section,likesection\expandafter\ifx 
     \csname @chapter\endcsname\relax ,subsection,likesubsection\fi}
\fi
>>>

\<tocat: ch\><<<
\:CheckOption{notoc*}     \if:Option
  \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
     \TocAt*{chapter,/likechapter,/appendix,/part,%
             section,subsection}
     \TocAt*{likechapter,/appendix,/chapter,/part,%
             section,subsection}
     \TocAt*{appendix,/chapter,/likechapter,/part,%
             section,subsection}
   \fi
\else
  \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
     \TocAt*{chapter,/likechapter,/appendix,/part,%
             section,likesection,subsection,likesubsection}
     \TocAt*{likechapter,/appendix,/chapter,/part,%
             section,likesection,subsection,likesubsection}
     \TocAt*{appendix,/chapter,/likechapter,/part,%
             section,likesection,subsection,likesubsection}
   \fi
\fi
>>>

\<cut toc: sec\><<<
\:CheckOption{notoc*}     \if:Option
  \Configure{tableofcontents*}{part,chapter,appendix,section%
        \expandafter\ifx \csname @chapter\endcsname\relax
     ,subsection\fi}
\else
  |<notoc* note|>
  \Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
     appendix,section,likesection%
        \expandafter\ifx \csname @chapter\endcsname\relax
     ,subsection,likesubsection\fi}
\fi
>>>

\<tocat: section\><<<
\:CheckOption{notoc*}     \if:Option
  \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
     \TocAt*{section,/likesection,/chapter,/likechapter,/appendix,/part,%
             subsection,subsubsection}
     \TocAt*{likesection,/section,/chapter,/likechapter,/appendix,/part,%
             subsection,subsubsection}
  \fi
\else
  \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
     \TocAt*{section,/likesection,/chapter,/likechapter,/appendix,/part,%
          subsection,likesubsection,subsubsection,likesubsubsection}
     \TocAt*{likesection,/section,/chapter,/likechapter,/appendix,/part,%
          subsection,likesubsection,subsubsection,likesubsubsection}
  \fi
\fi
>>>


\<cut toc: subsec\><<<
\:CheckOption{notoc*}     \if:Option
  \Configure{tableofcontents*}{part,chapter,%
    appendix,section,subsection}
\else
  |<notoc* note|>
  \Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
    appendix,section,likesection,likesubsection,subsection}
\fi
>>>


\<toc scrbook options 1\><<<
\:CheckOption{notoc*}     \if:Option 
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{part,/likepart,chapter,addchap,appendix,section}
   \fi
\else
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{part,/likepart,chapter,likechapter,addchap,appendix,%
            section,likesection}
   \fi
\fi
>>>


\<cut toc scr: part\><<<
\:CheckOption{notoc*}     \if:Option
   \Configure{tableofcontents*}
      {part,chapter,addchap,appendix}
\else
   |<notoc* note|>
   \Configure{tableofcontents*}
      {part,likepart,chapter,likechapter,addchap,appendix}
\fi
>>>



\<tocat scr: part\><<<
\:CheckOption{notoc*}     \if:Option
  \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
     \TocAt*{part,/likepart,chapter,addchap,appendix,section}
     \TocAt*{likepart,/part,chapter,addchap,appendix,section}
  \fi
\else
  \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
     \TocAt*{part,/likepart,chapter,likechapter,addchap,appendix,%
             section,likesection}
     \TocAt*{likepart,/part,chapter,likechapter,addchap,appendix,%
             section,likesection}
  \fi
\fi
>>>

\<tocat scr: ch\><<<
\:CheckOption{notoc*}     \if:Option 
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{chapter,/likechapter,/addchap,/appendix,/part,%
                section,subsection}
      \TocAt*{likechapter,/addchap,/appendix,/chapter,/part,%
                section,subsection}
      \TocAt*{addchap,/likechapter,/appendix,/chapter,/part,%
                section,subsection}
      \TocAt*{appendix,/chapter,/likechapter,/addchap,/part,%
                section,subsection}
   \fi
\else
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{chapter,/likechapter,/addchap,/appendix,/part,%
                section,likesection,subsection,likesubsection}
      \TocAt*{likechapter,/addchap,/appendix,/chapter,/part,%
                section,likesection,subsection,likesubsection}
      \TocAt*{addchap,/likechapter,/appendix,/chapter,/part,%
                section,likesection,subsection,likesubsection}
      \TocAt*{appendix,/chapter,/likechapter,/addchap,/part,%
                section,likesection,subsection,likesubsection}
   \fi
\fi
>>>


\<tocat scr: section\><<<
\:CheckOption{notoc*}     \if:Option 
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{section,/likesection,/chapter,/likechapter,%
                /addchap,/appendix,/part,%
                subsection,subsubsection}
      \TocAt*{likesection,/section,/chapter,/likechapter,%
                /addchap,/appendix,/part,%
                subsection,subsubsection}
   \fi
\else
   \:CheckOption{nominitoc}     \if:Option
   \else
      |<note nominitoc|>
      \TocAt*{section,/likesection,/chapter,/likechapter,%
                /addchap,/appendix,/part,%
                subsection,likesubsection,subsubsection,likesubsubsection}
      \TocAt*{likesection,/section,/chapter,/likechapter,%
                /addchap,/appendix,/part,%
                subsection,likesubsection,subsubsection,likesubsubsection}
   \fi
\fi
>>>


\<tocat scr: subsection\><<<
\:CheckOption{notoc*}     \if:Option 
   \CutAt{subsection,section,chapter,addchap,appendix,part}
   \CutAt{likesubsection,section,chapter,addchap,appendix,part}
\else
   \CutAt{subsection,section,likesection,%
                     chapter,likechapter,addchap,appendix,part}
   \CutAt{likesubsection,section,likesection,%
                     chapter,likechapter,addchap,appendix,part}
\fi
>>>



\<foils toc 1\><<<
\ConfigureToc{foilheads}{}{ *\ }{}{}
\Configure{tableofcontents*}{foilheads}
>>>


The `notoc*' is applicable only to pages that are automatically
decomposed into separate web pages along section divides.  It 
should be used whe addcontentline instructions are present.

\begin{verbatim}
\section*{....}
\addcontentsline{toc}{section}{....}
\end{verbatim}



\<notoc* note\><<<
\Log:Note{for tocs without * entries, use
          command line option `notoc*'}
>>>



\<toc for multind\><<<
\:CheckOption{1}     \if:Option
  \:CheckOption{notoc*}     \if:Option 
      \addcontentsline{toc}{section}{\indexname}%
  \fi 
\else \:CheckOption{2}     \if:Option
  \:CheckOption{notoc*}     \if:Option 
      \addcontentsline{toc}{section}{\indexname}%
  \fi 
\else \:CheckOption{3}     \if:Option
  \:CheckOption{notoc*}     \if:Option 
      \addcontentsline{toc}{section}{\indexname}%
  \fi 
\else \:CheckOption{4}     \if:Option
  \:CheckOption{notoc*}     \if:Option 
      \addcontentsline{toc}{section}{\indexname}%
  \fi 
\else
      \addcontentsline{toc}{section}{\indexname}%
\fi \fi \fi \fi
>>>



\<note nominitoc\><<<
\Log:Note{to eliminate mini tables of
          contents, use the command line option `nominitoc'}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Tables of Contents: Configurations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure html4 latex\><<<
\Configure{TocAt}
   {|<save configure tableofcontents|>%
    \Configure{tableofcontents}
       {\IgnorePar\EndP\HCode{<div class="\sec:typ TOCS">}}
       {}{\IgnorePar\HCode{</div>}\ShowPar}{\HCode{<br\xml:empty>}}{}%
    \ifvmode \IgnorePar\fi \EndP
   }
   {|<recall configure tableofcontents|>\par}
\Configure{TocAt*}
   {|<save configure tableofcontents|>%
    \Configure{tableofcontents}
       {\IgnorePar\EndP\HCode{<div class="\sec:typ TOCS">}}
       {}{\IgnorePar\HCode{</div>}\ShowPar}{\HCode{<br\xml:empty>}}{}%
    \ifvmode \IgnorePar\fi \EndP
   }
   {|<recall configure tableofcontents|>\par}
>>>




\<configure html4 latex\><<<
\Configure{tableofcontents}
   {\IgnorePar\EndP\HCode{<div class="tableofcontents">}\IgnorePar}
   {}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
   {\HCode{<br\xml:empty>}}   {}
>>>

\<save configure tableofcontents\><<<
\let\sv:atoc|=\a:tableofcontents
\let\sv:btoc|=\b:tableofcontents
\let\sv:ctoc|=\c:tableofcontents
\let\sv:dtoc|=\d:tableofcontents
\let\sv:etoc|=\e:tableofcontents
>>>


\<recall configure tableofcontents\><<<
\let\a:tableofcontents|=\sv:atoc
\let\b:tableofcontents|=\sv:btoc
\let\c:tableofcontents|=\sv:ctoc
\let\d:tableofcontents|=\sv:dtoc
\let\e:tableofcontents|=\sv:etoc
>>>


\<html latex tocs\><<<
\def\tocpart#1#2#3{\par\:SPAN{partToc}{\if !#1!\else  #1~~\fi #2}\par}%
\def\toclikepart#1#2#3{\par\:SPAN{likepartToc}{#2}\par}%
|<part toc css|>%
\expandafter\ifx \csname @chapter\endcsname\relax 
   \def\tocsection#1#2#3{\par
       \:SPAN{sectionToc}{\def\:temp{#1}\ifx \:temp\empty\else
            #1 \fi #2}\par}
   \def\toclikesection#1#2#3{\par\:SPAN{likesectionToc}{#2}\par}%
   \def\tocsubsection#1#2#3{\par\ \toc:num{subsection}{#1}{#2}\par}
   \def\toclikesubsection#1#2#3{\par\ \:SPAN{likesubsectionToc}{#2}\par}
   \def\tocsubsubsection#1#2#3{\par
      \ \ \toc:num{subsubsection}{#1}{#2}\par}
   \def\toclikesubsubsection#1#2#3{\par
      \ \ \:SPAN{likesubsubsectionToc}{#2}\par}
   \def\tocparagraph#1#2#3{\par\ \ \toc:num{paragraph}{#1}{#2}\par}
   \def\toclikeparagraph#1#2#3{\par\ \ \:SPAN{likeparagraphToc}{#2}\par}
   \def\tocsubparagraph#1#2#3{\par
      \ \ \ \ \toc:num{subparagraph}{#1}{#2}\par}
   \def\toclikesubparagraph#1#2#3{\par
      \ \ \ \ \:SPAN{likesubparagraphToc}{#2}\par}
\else
   |<chapter toc css|>%
   \def\tocchapter#1#2#3{\par\:SPAN{chapterToc}{#1 #2}\par}
   \def\toclikechapter#1#2#3{\par\:SPAN{likechapterToc}{#2}\par}%
   \def\tocappendix#1#2#3{\par\:SPAN{appendixToc}{#1 #2}\par}
   \def\tocsection#1#2#3{\par\ \toc:num{section}{#1}{#2}\par}
   \def\toclikesection#1#2#3{\par\ \:SPAN{likesectionToc}{#2}\par}
   \def\tocsubsection#1#2#3{\par\ \ \toc:num{subsection}{#1}{#2}\par}
   \def\toclikesubsection#1#2#3{\par
      \ \ \:SPAN{likesubsectionToc}{#2}\par}
   \def\tocsubsubsection#1#2#3{\par
      \ \ \ \toc:num{subsubsection}{#1}{#2}\par}
   \def\toclikesubsubsection#1#2#3{\par
      \ \ \ \:SPAN{likesubsubsectionToc}{#2}\par}
   \def\tocparagraph#1#2#3{\par\ \ \ \toc:num{paragraph}{#1}{#2}\par}
   \def\toclikeparagraph#1#2#3{\par
      \ \ \ \:SPAN{likeparagraphToc}{#2}\par}
   \def\tocsubparagraph#1#2#3{\par
      \ \ \ \ \ \toc:num{subparagraph}{#1}{#2}\par}
   \def\toclikesubparagraph#1#2#3{\par
      \ \ \ \ \ \:SPAN{likesubparagraphToc}{#2}\par}
\fi
\def\toc:num#1#2#3{\def\:temp{#1#2}\:SPAN{#1Toc}{\ifx \:temp\empty \else 
   #2 \fi #3}}
>>>



\<scr report,book\><<<
\def\tocpart#1#2#3{\par\:SPAN{partToc}{\if !#1!\else  #1~~\fi #2}\par}%
\def\toclikepart#1#2#3{\par\:SPAN{likepartToc}{#2}\par}%
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
        {line-height: 200\%; font-weight:bold; font-size:110\%;}}
   \Css{.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc,
        .appendixToc a, .appendixToc, .addchapToc a
        {line-height: 200\%; font-weight:bold;}}
   \def\tocchapter#1#2#3{\par\:SPAN{chapterToc}{#1~~#2}\par}
   \def\toclikechapter#1#2#3{\par\:SPAN{likechapterToc}{#2}\par}%
   \def\tocaddchap#1#2#3{\par\:SPAN{addchapToc}{#2}\par}%
   \def\tocappendix#1#2#3{\par\:SPAN{appendixToc}{#1~~#2}\par}
   \def\tocsection#1#2#3{\par\ \toc:num{section}{#1}{#2}\par}
   \def\toclikesection#1#2#3{\par\ \:SPAN{likesectionToc}{#2}\par}
   \def\tocsubsection#1#2#3{\par\ \ \toc:num{subsection}{#1}{#2}\par}
   \def\toclikesubsection#1#2#3{\par
      \ \ \:SPAN{likesubsectionToc}{#2}\par}
   \def\tocsubsubsection#1#2#3{\par
      \ \ \ \toc:num{subsubsection}{#1}{#2}\par}
   \def\toclikesubsubsection#1#2#3{\par
      \ \ \ \:SPAN{likesubsubsectionToc}{#2}\par}
   \def\tocparagraph#1#2#3{\par\ \ \ \toc:num{paragraph}{#1}{#2}\par}
   \def\toclikeparagraph#1#2#3{\par
      \ \ \ \:SPAN{likeparagraphToc}{#2}\par}
   \def\tocsubparagraph#1#2#3{\par
      \ \ \ \ \ \toc:num{subparagraph}{#1}{#2}\par}
   \def\toclikesubparagraph#1#2#3{\par
      \ \ \ \ \ \:SPAN{likesubparagraphToc}{#2}\par}
\def\toc:num#1#2#3{\def\:temp{#1#2}\:SPAN{#1Toc}{\ifx \:temp\empty \else
   #2~~\fi #3}}
>>>


\<revtex sections\><<<
\def\tocpart#1#2#3{\par\:SPAN{partToc}{\if !#1!\else  #1~~\fi #2}\par}%
\def\toclikepart#1#2#3{\par\:SPAN{likepartToc}{#2}\par}%
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
        {line-height: 200\%; font-weight:bold; font-size:110\%;}}
%
\expandafter\ifx \csname @chapter\endcsname\relax
   \def\tocsection#1#2#3{\par
       \:SPAN{sectionToc}{\def\:temp{#1}\ifx \:temp\empty\else
            #1 \fi #2}\par}
   \def\toclikesection#1#2#3{\par\:SPAN{likesectionToc}{#2}\par}%
   \def\tocsubsection#1#2#3{\par\ \toc:num{subsection}{#1}{#2}\par}
   \def\toclikesubsection#1#2#3{\par\ \:SPAN{likesubsectionToc}{#2}\par}
   \def\tocsubsubsection#1#2#3{\par
      \ \ \toc:num{subsubsection}{#1}{#2}\par}
   \def\toclikesubsubsection#1#2#3{\par
      \ \ \:SPAN{likesubsubsectionToc}{#2}\par}
   \def\tocparagraph#1#2#3{\par\ \ \toc:num{paragraph}{#1}{#2}\par}
   \def\toclikeparagraph#1#2#3{\par\ \ \:SPAN{likeparagraphToc}{#2}\par}
   \def\tocsubparagraph#1#2#3{\par
      \ \ \ \ \toc:num{subparagraph}{#1}{#2}\par}
   \def\toclikesubparagraph#1#2#3{\par
      \ \ \ \ \:SPAN{likesubparagraphToc}{#2}\par}
\else
   \Css{.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc,
        .appendixToc a, .appendixToc
        {line-height: 200\%; font-weight:bold;}}
%
   \def\tocchapter#1#2#3{\par\:SPAN{chapterToc}{#1 #2}\par}
   \def\toclikechapter#1#2#3{\par\:SPAN{likechapterToc}{#2}\par}%
   \def\tocappendix#1#2#3{\par\:SPAN{appendixToc}{#1 #2}\par}
   \def\tocsection#1#2#3{\par\ \toc:num{section}{#1}{#2}\par}
   \def\toclikesection#1#2#3{\par\ \:SPAN{likesectionToc}{#2}\par}
   \def\tocsubsection#1#2#3{\par\ \ \toc:num{subsection}{#1}{#2}\par}
   \def\toclikesubsection#1#2#3{\par
      \ \ \:SPAN{likesubsectionToc}{#2}\par}
   \def\tocsubsubsection#1#2#3{\par
      \ \ \ \toc:num{subsubsection}{#1}{#2}\par}
   \def\toclikesubsubsection#1#2#3{\par
      \ \ \ \:SPAN{likesubsubsectionToc}{#2}\par}
   \def\tocparagraph#1#2#3{\par\ \ \ \toc:num{paragraph}{#1}{#2}\par}
   \def\toclikeparagraph#1#2#3{\par
      \ \ \ \:SPAN{likeparagraphToc}{#2}\par}
   \def\tocsubparagraph#1#2#3{\par
      \ \ \ \ \ \toc:num{subparagraph}{#1}{#2}\par}
   \def\toclikesubparagraph#1#2#3{\par
      \ \ \ \ \ \:SPAN{likesubparagraphToc}{#2}\par}
\fi
\def\toc:num#1#2#3{\def\:temp{#1#2}\:SPAN{#1Toc}{\ifx \:temp\empty \else
   #2 \fi #3}}
>>>


%%%%%%%%%%%%%%%%%%%
\subsection{Tables of Contents}
%%%%%%%%%%%%%%%%%%%


\<ams art,proc,book toc\><<<
\ConfigureToc{part}
  {\HCode{<span class="partToc">}\toc:Mark{part}}
  {\End:Mark}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{section}
  {\HCode{<span class="sectionToc">}\toc:Mark{section}}
  {\End:Mark}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{subsection}
  {\HCode{<span class="subsectionToc">}~~\toc:Mark{subsection}}
  {\End:Mark}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{subsubsection}
  {\HCode{<span
       class="subsubsectionToc">}~~~~\toc:Mark{subsubsection}}
  {\End:Mark}
  {}
  {\HCode{</span><br\xml:empty>}}
\def\toc:Mark#1#2\End:Mark{\if !#2!\else
   \expandafter\ifx \csname #1name\endcsname\relax\else 
   \csname #1name\endcsname~\fi #2.~~\fi}
>>>


\<ams book\><<<
\ConfigureToc{likepart}
  {\HCode{<span class="likepartToc">}}
  {\empty}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{chapter}
  {\HCode{<span class="chapterToc">}%
   \ifx \chaptername\:UnDef\else \chaptername~\fi}
  {.~~}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{likechapter}
  {\HCode{<span class="likechapterToc">}}
  {~~}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{appendix}
  {\HCode{<span class="appendixToc">}%
   \ifx \appendixname\:UnDef\else \appendixname~\fi}
  {.~~}
  {}
  {\HCode{</span><br\xml:empty>}}
>>>

\<ams book\><<<
\Css{.chapterToc a, .chapterToc, .appendixToc a, .appendixToc
   {line-height: 200\%; font-weight:bold;}}
>>>


\<ams art,proc,book toc\><<<
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
        {line-height: 200\%; font-weight:bold; font-size:110\%;}}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Tables and Arrays}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{LaTeX Tabular and Array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<32,4 latex\><<<
\:CheckOption{pic-tabular}  \if:Option
   \ConfigureEnv{tabular}
     {\IgnorePar\EndP\Tg<div class="pic-tabular">\Picture*{}}
     {\EndPicture\Tg</div>}{}{}
   \Css{div.pic-tabular {text-align:center;}}  
\else
   \Log:Note{for pictorial tabular,
                      use the command line option `pic-tabular'}
\fi
>>>



\<math html latex array/tabular\><<<
\:CheckOption{pic-array}  \if:Option \else
   \Log:Note{for pictorial array,
                      use the command line option `pic-array'}
   \ConfigureEnv{array}
     {\IgnorePar\EndP\PushStack\Col:Marg\AllColMargins
          \HCode{<div class="array">}}
     {\HCode{</div>}\PopStack\Col:Marg\AllColMargins\ShowPar}{}{}
   \Css{div.array {text-align:center;}}
\fi
>>>


\<html latex array/tabular Config 4.0t\><<<
\:CheckOption{pic-tabular}  \if:Option \else
   \ConfigureEnv{tabular}
     {|<configure tabular noalign|>%
      \IgnorePar|<inline comment|>\EndP\HCode{<div class="tabular">}%
      \PushStack\Col:Marg\AllColMargins
     }
     {\HCode{</div>}\PopStack\Col:Marg\AllColMargins\ShowPar
      |<configure clear noalign|>%
      |<try env inline par|>%
     }{}{}
   \Css{div.tabular, div.center div.tabular {text-align: center; 
           margin-top:0.5em; margin-bottom:0.5em;  }} 
   \Css{table.tabular td  p{margin-top:0em;}}  
   \Css{table.tabular {margin-left: auto;
                       margin-right: auto;}}    |% centering |%
\fi
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{LaTeX Tabule}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<article,report,book\><<<
\ConfigureEnv{table}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="table">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par\ShowPar}
   {}{}
>>>

%%%%%%%%%%%%%
\subsection{multirow}
%%%%%%%%%%%%%

\<configure html4 multirow\><<<
\Configure{multirow}
    {\HCode{<div class="multirow"><!-- rows=\the\@tempcnta\space -->}}
    {\HCode{</div>}}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Bibliography}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Cite}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<onmouseover cite\><<<
\Configure{cite}
  {\HCode{<span class="cite">}}
  {\HCode{</span>}}
  {\Link[ |<mouseover-cite arguments|>]}
  {\EndLink }
\expandafter\def\csname c:mouseover-cite:\endcsname{%
  \def\:tempb{cite}\csname c:mouseover-?:\endcsname}
\Configure{mouseover-cite}{tex4ht.body,FULLHTML}
>>>


\<mouseover-cite arguments\><<<
\mo:args{cite}{\@citeb}{\expandafter
              \jsHash\expandafter{\expandafter X\@citeb}}%
>>>

\<default cite\><<<
\Configure{cite}
   {\HCode{<span class="cite">}}  {\HCode{</span>}}
   {\Link}         {\EndLink}
>>>

\<cite in TocLink\><<<
\Configure{cite}{}{}{}{}%
>>>


\<mouseover cite config\><<<
\string\Configure{mouseover-vars}{cite}{Author,Title}%
>>>


\<mouseover cite css\><<<
\string\Configure {mouseover-cite} 
     {tex4ht.body,CAPTION,tex4ht.caption+tex4ht.var,FULLHTML}%
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Bib Item}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<default bibitem\><<<
\Configure{bibitem}{\Link}{\EndLink}
>>>

\<onmouseover bibitem\><<<
\Configure{bibitem}
   {\bibitem:link}
   {\EndLink|<js end skip bib|>}
\def\bibitem:link#1#2{|<js skip bib|>\HCode
   {<!--}|<js mark 1 bib|>\HCode{#2=}|<js mark 2 bib|>\HCode
   {-->}\Link{#1}{#2}}
>>>



\<config bib-p HtmlPar\><<<
\Configure{HtmlPar}
   {\EndP\HCode{<p class="bibitem-p">}}
   {\EndP\HCode{<p class="bibitem-p">}}
   {\Tg</p>} {\Tg</p>}%
>>>      



\<config bib HtmlPar\><<<
\Configure{HtmlPar}
   {\EndP\HCode{<p class="bibitem">}}
   {\EndP\HCode{<p class="bibitem">}}
   {\Tg</p>} {\Tg</p>}%
>>>      



\<config bib-p HtmlParNO\><<<
\Configure{HtmlPar}
   {\HCode{</p><p class="bibitem-p">}}
   {\HCode{</p><p class="bibitem-p">}}
   {} {}%
>>>      


\<bibitem css\><<<
\Css{p.bibitem { text-indent: -2em; margin-left: 2em;
       margin-top:0.6em; margin-bottom:0.6em;     }}
\Css{p.bibitem-p { text-indent: 0em; margin-left: 2em;
       margin-top:0.6em; margin-bottom:0.6em;     }}
>>>

\<bibitem 2\><<< 
   \Configure{bibitem2}
      {|<config bib HtmlPar|>\par\ShowPar
       \HCode{<span class="biblabel">}%
       |<config bib-p HtmlPar|>%
      }
      {\EndP}
      {\HCode{<span class="bibsp">}~~~\HCode{</span></span>}}
>>>


\<js bibitem\><<<
\HCode{<!--}%
|<js from bib|>%
\HCode{<bibitem>}%
|<js skip bib|>%
|<js Set1 bib|>%
|<js end skip bib|>%
|<js Set2 bib|>%
|<js skip bib|>%
|<js end skip bib|>%
\HCode{<div class="js">}%
|<js skip bib|>%
\HCode{-->}%
|<js end skip bib|>%
>>>

\<js /bibitem\><<<
|<js skip bib|>%
\HCode{<!--}%
|<js end skip bib|>%
\HCode{</div></bibitem>\Hnewline}%
|<js Until bib|>%
\HCode{-->}%
>>>

\<js p.bibitem-p css\><<<
.js p.bibitem-p
>>>
 
\<js p.bibitem css\><<<
js p.bibitem
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{The Bibliography}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


The bibliography environment is prooblematic because 
it carries a definition that implies an environment similar
to 

\begin{verbatim}
  \begin{....}
  \section*{...}
  ...
  \end{....}
\end{verbatim}

The \verb+\begin{...}+ has a \verb+\SaveEverypar+, and
  \verb+\end{...}+ has a \verb+\RecallEverypar+. In the case of
paginations across sectioning commands, we have also the saving and
recalling also at the start and end of each section (each page).  In
such a case, we don't have proper nestings of environments.





\<shared bib env\><<<
\ConfigureEnv{thebibliography}{\IgnorePar}{\IgnorePar\par}{}{}
>>>

\<foils bib\><<<
\ConfigureEnv{thebibliography}{\par\leavevmode}{\ShowPar}{}{}
>>>


\<default thebibliography\><<<
\ConfigureList{thebibliography}%
   {\ifvmode\IgnorePar\fi \EndP \HCode{<div
                   class="thebibliography">}\let\en:bib=\empty} 
   {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</div>}}
   {\en:bib\def\en:bib{|<bibliography2|>\EndP}%
   |<config bib HtmlPar|>\par\ShowPar
    \HCode{<span class="biblabel">}|<config bib-p HtmlPar|>} 
   {\HCode{<span class="bibsp">}\:nbsp
      \:nbsp\:nbsp\HCode{</span></span>}}
>>>










\<onmouseover thebibliography\><<<
\ConfigureList{thebibliography}%
   {\ifvmode\IgnorePar\fi\EndP |<start js|>\HCode{<div
                   class="thebibliography">}\let\en:bib=\empty} 
   {\en:bib \ifvmode\IgnorePar\fi\EndP \HCode{</div>}}
   {\en:bib\def\en:bib{|<js bibliography2|>%
        \EndP}|<js /bibitem|>|<js bibitem|>%
        |<config bib HtmlPar|>\par\ShowPar
        \leavevmode |<js skip bib|>\HCode{<span
      class="biblabel">}|<config bib-p HtmlPar|>} 
   {\HCode{<span class="bibsp">}\:nbsp
      \:nbsp\:nbsp\HCode{</span></span>}|<js end skip bib|>}
>>>


\<latex ltbibl\><<<
\:CheckOption{bibtex2} \if:Option
   \Configure{bibliography2}
      {~~[} {more} {]}
   |<bibitem 2|>%
\fi
>>>





\<config bibitem\><<<
\:CheckOption{no-bib} \if:Option\else  
   \:CheckOption{mouseover} \if:Option
      |<onmouseover cite|>
      |<onmouseover bibitem|>
   \else  
      |<default cite|>
      |<default bibitem|>
   \fi
\fi
>>>


\<thebib config\><<<
\:CheckOption{no-bib} \if:Option\else  
   \:CheckOption{mouseover} \if:Option
      |<onmouseover thebibliography|>
   \else  
      |<default thebibliography|>
   \fi
   |<bibitem css|>
\fi
>>>

\<bibliography2\><<<
\csname bibliography2\endcsname
>>>

\<js bibliography2\><<<
|<js skip bib|>\csname bibliography2\endcsname
|<js end skip bib|>%
>>>





%   \HCode{\Hnewline\string\jselement{footnote}%
%                  \string\jselement{bibitem}\Hnewline}%





\<bib in amsppt.sty\><<<
\Configure{vol}{\HCode{<strong>}}{\HCode{</strong>}}
\Configure{book}{\HCode{<em>}}{\HCode{</em>}}
\Configure{paper}{\HCode{<em>}}{\HCode{</em>}}
\Configure{Refs}{\IgnorePar\EndP\HCode{<table class="Refs">}}
                {\HCode{</table>}}
\Configure{ref}{\HCode{<tr valign="top"><td align="right">}}
               {\EndP\HCode{</td></tr>}}{}
\Configure{keyformat}{}{\EndP\HCode{</td><td>}}
>>>


%%%%%%%%%%%%%%%%
\subsection{acm-proc-article-sp}
%%%%%%%%%%%%%%%%

\<acm-proc-article-sp thebib config\><<<
\:CheckOption{no-bib} \if:Option\else  
   \:CheckOption{mouseover} \if:Option
      |<acm-proc-article-sp onmouseover thebibliography|>
   \else  
      |<acm-proc-article-sp default thebibliography|>
   \fi
   |<bibitem css|>
\fi
>>>


\<acm-proc-article-sp default thebibliography\><<<
\ConfigureEnv{thebibliography}%
   {\ifvmode\IgnorePar\fi \EndP \HCode{<div
                   class="thebibliography">}\let\en:bib=\empty} 
   {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</div>}}
   {}{}
\ConfigureList{thebibliography}%
   {}{}
   {\en:bib\def\en:bib{|<bibliography2|>\EndP}%
   |<config bib HtmlPar|>\par\ShowPar
    \HCode{<span class="biblabel">}|<config bib-p HtmlPar|>} 
   {\HCode{<span class="bibsp">}\:nbsp
      \:nbsp\:nbsp\HCode{</span></span>}}
>>>


\<acm-proc-article-sp onmouseover thebibliography\><<<
\ConfigureEnv{thebibliography}%
   {\ifvmode\IgnorePar\fi\EndP |<start js|>\HCode{<div
                   class="thebibliography">}\let\en:bib=\empty} 
   {\en:bib \ifvmode\IgnorePar\fi\EndP \HCode{</div>}}
   {}{}
\ConfigureList{thebibliography}%
   {}{}
   {\en:bib\def\en:bib{|<js bibliography2|>%
        \EndP}|<js /bibitem|>|<js bibitem|>%
        |<config bib HtmlPar|>\par\ShowPar
        \leavevmode |<js skip bib|>\HCode{<span
      class="biblabel">}|<config bib-p HtmlPar|>} 
   {\HCode{<span class="bibsp">}\:nbsp
      \:nbsp\:nbsp\HCode{</span></span>}|<js end skip bib|>}
>>>



%%%%%%%%%%%%%%%%
\subsection{JS Contributions}
%%%%%%%%%%%%%%%%



\<js from bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex From bib }%
>>>

\<js skip bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Skip bib }%
>>>

\<js end skip bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Cont bib }%
>>>

\<js Until bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Until bib }%
>>>

\<js Set1 bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Set1 bib }%
>>>

\<js Set2 bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Set2 bib }%
>>>

\<js mark 1 bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Addr1 bib }% 
>>>

\<js mark 2 bib\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Addr2 bib }% 
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Lists}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<configure html4 latex\><<<
\Css{li p.indent { text-indent: 0em }}
\ConfigureEnv{trivlist}
   {}{|<try env inline par|>}{}{}
\ConfigureList{trivlist}%
   {\EndP\HCode{<dl \a:LRdir class="trivlist">}%
       |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="trivlist">}\bgroup \bf}
   {\egroup\HCode{</dt><dd\Hnewline class="trivlist">}}
\ConfigureEnv{list}
   {}{|<try env inline par|>}{}{}
\ConfigureList{list}%
   {\EndP\HCode{<dl \a:LRdir class="list\expandafter\the
         \csname @listdepth\endcsname">}%
    |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="list">}\bgroup \bf}
   {\egroup\HCode{</dt><dd\Hnewline class="list">}}
\ConfigureEnv{itemize}
   {\ifvmode \IgnorePar\fi \EndP}{|<try env inline par|>}
   {}{}
\ConfigureList{itemize}%
   {\EndP\HCode{<ul \a:LRdir class="itemize\expandafter\the
          \csname @itemdepth\endcsname">}%
       |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\ifvmode \IgnorePar\fi 
    \EndP\HCode{</li></ul>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
   {\HCode{<li class="itemize">}}
\ConfigureEnv{enumerate}
   {}{|<try env inline par|>}{}{}
\:CheckOption{li-} \if:Option
   \ConfigureList{enumerate}%
      {|<enumerate I|>}
      {|<enumerate II|>}
      {|<enumerate III|>}
      {|<enumerate IV-|>}
\else
   \ConfigureList{enumerate}%
      {|<enumerate I|>}
      {|<enumerate II|>}
      {|<enumerate III|>}
      {|<enumerate IV|>}
   \Log:Note{for enumerated list elements li's without value attributes,
                      use the command line option `li-'}
\fi
\:CheckOption{css2} \if:Option
   |<css2 itemize|>
\else
   \Log:Note{for CSS2 code, use the command line option `css2'}
\fi
>>>

\<css2 itemize\><<<
\Css{ul.itemize1 {list-style-type: none;}} 
\Css{ul.itemize1 li.itemize:before { display: marker;   
                               marker-offset: 0.5em;   
                                     content: "\labelitemi\space" }} 
\Css{ul.itemize2 {list-style-type: none;}} 
\Css{ul.itemize2 li.itemize:before { display: marker;   
                               marker-offset: 0.5em;   
                                     content: "\labelitemii\space" }} 
\Css{ul.itemize3 {list-style-type: none;}} 
\Css{ul.itemize3 li.itemize:before { display: marker;   
                               marker-offset: 0.5em;   
                                     content: "\labelitemiii\space" }}
>>>



\<enumerate I\><<<
\EndP\HCode{<ol \a:enumerate:\space 
      class="enumerate\expandafter\the\csname @enumdepth\endcsname"
      \a:LRdir
     >}|<save end:itm|>\global\let\end:itm=\empty
>>>

\<enumerate II\><<<
|<recall end:itm|>%
\EndP\HCode{</li></ol>}\ShowPar
>>>


\<enumerate III\><<<
\end:itm \gdef\end:itm{\EndP\Tg</li>}\DeleteMark
>>>

\<enumerate IV\><<<
\HCode{<li class="enumerate" value="\expandafter\the\csname 
   c@enum\romannumeral\the\@enumdepth\endcsname"\Hnewline>}\AnchorLabel
>>>



\<enumerate IV-\><<<
\HCode{<li class="enumerate">}\AnchorLabel
>>>

It is better to put the LI in the third field to avoid extra space 
to the following text.

\<configure html4 latex\><<<
\def\c:enumerate:#1{\c:enu #1|<par del|>}
\def\c:enu#1#2#3#4#5|<par del|>{%
\def\a:enumerate:{\ifcase \@enumdepth \or
         #1\or #2\or #3\or #4\else\fi #5}}
>>>
   
\<configure html4 latex\><<<
\Configure{enumerate}{{}{}{}{}}
\Css{.enumerate1    {list-style-type:decimal;}}
\Css{.enumerate2    {list-style-type:lower-alpha;}}
\Css{.enumerate3    {list-style-type:lower-roman;}}
\Css{.enumerate4    {list-style-type:upper-alpha;}}
>>>

\<\><<<
\:CheckOption{html+} \if:Option
  \Configure{enumerate}
   {%
    {style="list-style-type:decimal"}%
    {style="list-style-type:lower-alpha"}%
    {style="list-style-type:lower-roman"}%
    {style="list-style-type:upper-alpha"}%
   }   
\else
  \Log:Note{for stricter html code,
                      use the command line option `html+'}
  \Configure{enumerate}{%
    {type="\theenumi"}%
    {type="\theenumii"}%
    {type="\theenumiii"}%
    {type="\theenumiv"}}
\fi
>>>

%  \Configure{enumerate}{{type="1"}{type="a"}{type="i"}{type="A"}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Prosper}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<prosper lists\><<<
\ConfigureEnv{Itemize}
   {\ifvmode \IgnorePar\fi \EndP}{|<try env inline par|>}
   {}{}
\ConfigureList{Itemize}%
   {\EndP\HCode{<ul \a:LRdir class="itemize\expandafter\the
          \csname @itemdepth\endcsname">}%
       |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</li></ul>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
   {\HCode{<li class="itemize">}}
>>>

\<prosper lists\><<<
\ConfigureEnv{itemstep}
   {\ifvmode \IgnorePar\fi
    \EndP\HCode{<ul \a:LRdir class="itemstep\expandafter\the
          \csname @itemdepth\endcsname">}%
       |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\ifvmode \IgnorePar\fi\EndP
    \HCode{</li></ul>}\ShowPar}
   {}
   {}
\ConfigureList{itemstep}
   {}
   {}
   {\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
   {\HCode{<li class="itemize\ifnum
                 \c@item@step>\c@overlaysCount -hide\fi">}}
\Css{li.itemize-hide {visibility:hidden;}}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Jeep}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\<configure html4 jeep\><<<
\ConfigureEnv{outline}
   {}{|<try env inline par|>}{}{}
\ConfigureList{outline}%
   {|<enumerate I jeep|>}
   {|<enumerate II|>}
   {|<enumerate III|>}
   {|<enumerate IV|>}
>>>

\<enumerate I jeep\><<<
\EndP\HCode{<ol type="1"
      class="enumerate\expandafter\the\csname @enumdepth\endcsname"
      \a:LRdir
     >}|<save end:itm|>\global\let\end:itm=\empty
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<description 4\><<<
\ConfigureList{description}%
   {\EndP\HCode{<dl \a:LRdir class="description">}%
      |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="description">}\bgroup \bf}
   {\egroup\EndP\HCode{</dt><dd\Hnewline class="description">}}
>>>

\<32,4 report,book\><<<
\ConfigureEnv{description}{\IgnorePar}{}{}{}
>>>

\<configure html4 scrbook\><<<
\ConfigureEnv{description}{\IgnorePar}{}{}{}
>>>

\<configure html4 scrreprt\><<<
\ConfigureEnv{description}{\IgnorePar}{}{}{}
>>>

\<ams art,proc,book\><<<
|<description 4|>
\ConfigureEnv{description}{\IgnorePar}{}{}{}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{List Utilities}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



Latex allows groups like the following, so we need  global \verb+\end:itm+

\begin{verbatim}
\begin{enumerate}
{\item Line 1}
{\item Line 2}
\end{enumerate}
\end{verbatim}


\<save end:itm\><<<
\PushMacro\end:itm
>>>


\<recall end:itm\><<<
\PopMacro\end:itm \global\let\end:itm \end:itm 
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{mdwlist}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 mdwlist\><<<
\ConfigureEnv{itemize*}
   {\ifvmode \IgnorePar\fi \EndP}{|<try env inline par|>}
   {}{}
\ConfigureList{itemize*}%
   {\EndP\HCode{<ul \a:LRdir class="itemize\expandafter\the
          \csname @itemdepth\endcsname">}%
       |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</li></ul>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
   {\HCode{<li class="itemize">}}
\ConfigureEnv{enumerate*}
   {}{|<try env inline par|>}{}{}
\ConfigureList{enumerate*}%
   {|<enumerate I|>}
   {|<enumerate II|>}
   {|<enumerate III|>}
   {|<enumerate IV|>}
\ConfigureList{description*}%
   {\EndP\HCode{<dl \a:LRdir class="description">}%
      |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="description">}\bgroup \bf}
   {\egroup\EndP\HCode{</dt><dd\Hnewline class="description">}}
\ConfigureList{basedescript}
   {\EndP\HCode{<dl \a:LRdir class="basedescript">}%
      \PushMacro\end:itm \global\let\end:itm=\empty}
   {\PopMacro\end:itm \global\let\end:itm \end:itm
      \EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
      class="basedescript">}\bgroup \bf}
   {\egroup\EndP\HCode{</dt><dd\Hnewline class="basedescript">}}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Index}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<config book-report-article\><<<
|<book-report-article index|>
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Scr}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<32,4 report,book\><<<
\Configure{@begin}{theindex}{\ifx \indexname\empty \else
    \chapter*{\indexname}\fi}
>>>

\<configure html4 article\><<<
\Configure{@begin}{theindex}{\ifx \indexname\empty \else
    \section*{\indexname}\fi}
>>>


\<scr report,book\><<<
\Configure{@begin}{theindex}{\ifx \indexname\empty \else
    \chapter*{\indexname}\fi}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{multiind}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<configure html4 multind\><<<
\Configure{@begin}{theindex}
   {\ifx \indexname\empty \else|<toc for multind|>\fi}
>>>


% \ifx \indexname\empty \else
%       \ifx\chapter\:Undef \section*{\indexname}\else
%                           \chapter*{\indexname}\fi
%       \let\indexname=\empty 
%     \fi
%     


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Index}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure html4 index\><<<
\Configure{NoSection}
  {\let\sv:index|=\p@index \let\sv:label|=\label 
   \let\sv:newline|=\newline \def\newline{ }%
   \def\p@index[##1]{\@gobble}\let\label|=\@gobble 
   |<nolink ref|>%
  }
  {\let\p@index|=\sv:index \let\label|=\sv:label 
   |<restore ref|>%
   \let\newline|=\sv:newline
  }
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{texinfo}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure html4 texinfo\><<<
\Configure{index}
  {\IgnorePar\leavevmode\EndP\Tg<div class="index">}
  {\IgnorePar\EndP\Tg</div>}
  {\leavevmode\Tg<span class="entry">}
  {\Tg</span>\Tg<br />\IgnorePar}
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{ConTeXt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





\<configure html4 context\><<<
\catcode`\!=11
|<context etc|>
|<context sectioning|>
|<context system|>
|<context toc|>
|<context description|>
|<context item group|>
|<context verbatim|>
|<context spacing|>
|<context floats|>
|<context tabs|>
|<context tables|>
|<context index|>
|<context cross references|>
\catcode`\!=12
>>>

\<context etc\><<<
\NewConfigure{-@@ly}{2}
>>>

\<context cross references\><<<
\Configure{-@@ur}
   {\HCode{<span class="url">}}
   {\HCode{</span>}}
>>>


\<context chapter name\><<<
\v!hoofdstuk 
>>>

\<context section name\><<<
\v!paragraaf 
>>>

\<context subsection name\><<<
\v!sub \v!paragraaf 
>>>

\<context subsubsection name\><<<
\v!sub \v!sub \v!paragraaf
>>>

\<context subsubsubsection name\><<<
\v!sub \v!sub \v!sub \v!paragraaf
>>>

\<context subsubsubsubsection name\><<<
\v!sub \v!sub \v!sub \v!sub \v!paragraaf 
>>>



\<context sectioning\><<<
\Configure{sectie}
   {\gHAdvance \sec:Level by 1\relax
    \ifnum \sec:Level=1 
        \ifvmode \IgnorePar\fi \EndP 
        \HCode{<div class="\cur:Name">}%
    \else
        \HCode{<span class="\cur:Name">}%
    \fi
   }
   {\ifnum \sec:Level=1 
        \ifvmode \IgnorePar\fi \EndP 
        \HCode{</div>}%
    \else
        \HCode{</span>}%
    \fi
    \gHAdvance \sec:Level by -1\relax
   }
\HAssign\sec:Level=0
>>>




\<context sectioning\><<<
\def\:tmp#1#2{%
  \ConfigureMark{#1}
     {\HCode{<span class="titlemark">}\finalsectionnumber
      \HCode{</span>}}
  \Configure{#1}{}{}
     {\ifvmode \IgnorePar\fi \EndP\IgnorePar
      \HCode{<#2 class="#1Head"\a:LRdir>}\NoFonts
      \TitleMark\space\HtmlParOff}
     {\EndNoFonts \HCode{</#2>}\HtmlParOn 
      \IgnoreIndent \par \ShowPar}
  \Configure{chapterTITLE+}{\finalsectionnumber\space##1}
  \ifx \end:secs\empty \else
    \edef\:temp{\noexpand\Configure{end#1}{\end:secs}}\:temp
  \fi
  \edef\end:secs{\end:secs,#1}%
  \NewConfigure{#1-ko}{2}
}
\def\end:secs{}
\def\:tempd#1{\edef\:temp{\noexpand\:tmp{#1}}\:temp}
\:tempd{|<context chapter name|>}{h1}
\:tempd{|<context section name|>}{h2}
\:tempd{|<context subsection name|>}{h3}
\:tempd{|<context subsubsection name|>}{h4}
\:tempd{|<context subsubsubsection name|>}{h5}
\:tempd{|<context subsubsubsubsection name|>}{h5}
>>>

\<context sectioning NO\><<<
\ConfigureMark{part}
   {\HCode{<span class="titlemark">}\finalsectionnumber
    \HCode{</span>}}
\Configure{part}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h1 class="partHead"\a:LRdir>}\NoFonts
    \TitleMark\space\HtmlParOff}
   {\EndNoFonts \HCode{</h1>}\HtmlParOn \IgnoreIndent \par}
\Configure{partTITLE+}{\finalsectionnumber\space#1}
>>>

\<context sectioning NO\><<<
\ConfigureMark{chapter}
   {\HCode{<span class="titlemark">}\finalsectionnumber
    \HCode{</span>}}
\Configure{chapter}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h2 class="chapterHead"\a:LRdir>}\NoFonts
    \TitleMark\space\HtmlParOff}
   {\EndNoFonts \HCode{</h2>}\HtmlParOn 
    \IgnoreIndent \par \ShowPar}
\Configure{chapterTITLE+}{\finalsectionnumber\space#1}
\Configure{endsection}{part}
>>>


\<context sectioning NO\><<<
\ConfigureMark{section}
   {\HCode{<span class="titlemark">}\finalsectionnumber
    \HCode{</span>}}
\Configure{section}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h3 class="sectionHead"\a:LRdir>}\NoFonts
    \TitleMark\space\HtmlParOff}
   {\EndNoFonts \HCode{</h3>}\HtmlParOn
    \IgnoreIndent \par \ShowPar}
\Configure{sectionTITLE+}{\finalsectionnumber\space#1}
\Configure{endsection}{part,chapter}
>>>






\<context sectioning NO\><<<
\ConfigureMark{subsection}
   {\HCode{<span class="titlemark">}\finalsectionnumber
    \HCode{</span>}}
\Configure{subsection}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h4 class="subsectionHead"\a:LRdir>}\NoFonts
    \TitleMark\space\HtmlParOff}
   {\EndNoFonts \HCode{</h4>}\HtmlParOn
    \IgnoreIndent \par \ShowPar}
\Configure{subsectionTITLE+}{\finalsectionnumber\space#1}
\Configure{endsection}{part,chapter,section}
>>>

\<context sectioning NO\><<<
\ConfigureMark{subsubsection}
   {\HCode{<span class="titlemark">}\finalsectionnumber
    \HCode{</span>}}
\Configure{subsubsection}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h5 class="subsubsectionHead"\a:LRdir>}\NoFonts
    \TitleMark\space\HtmlParOff}
   {\EndNoFonts \HCode{</h5>}\HtmlParOn \IgnoreIndent \par}
\Configure{subsubsectionTITLE+}{\finalsectionnumber\space#1}
\Configure{endsection}{part,chapter,section,subsection}
>>>

\<context sectioning NO\><<<
\ConfigureMark{subsubsubsection}
   {\HCode{<span class="titlemark">}\finalsectionnumber
    \HCode{</span>}}
\Configure{subsubsubsection}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h5 class="subsubsubsectionHead"\a:LRdir>}\NoFonts
    \TitleMark\space\HtmlParOff}
   {\EndNoFonts \HCode{</h5>}\HtmlParOn \IgnoreIndent \par}
\Configure{subsubsubsectionTITLE+}{\finalsectionnumber\space#1}
\Configure{endsection}{part,chapter,section,subsection,%
                                                 subsubsection}
>>>

\<context sectioning NO\><<<
\ConfigureMark{subsubsubsubsection}
   {\HCode{<span class="titlemark">}\finalsectionnumber
    \HCode{</span>}}
\Configure{subsubsubsubsection}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h5 class="subsubsubsubsectionHead"\a:LRdir>}\NoFonts
    \TitleMark\space\HtmlParOff}
   {\EndNoFonts \HCode{</h5>}\HtmlParOn \IgnoreIndent \par}
\Configure{subsubsubsubsectionTITLE+}{\finalsectionnumber\space#1}
\Configure{endsection}{part,chapter,section,subsection,%
                                   subsubsection,subsubsubsection}
>>>




\<context toc\><<<
\Configure{placecontent}
   {\ifvmode \IgnorePar\fi \EndP
    \def\toc:br{\def\toc:br{\HCode{<br\xml:empty>}}}%
    \HCode{<div class="tableofcontents">}\IgnorePar}
   {}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
   {} {}
\Configure{contenthead}
    {\ifvmode \IgnorePar\fi \EndP \HCode{<h2>}\NoFonts}
    {\ifvmode \IgnorePar\fi \EndNoFonts \HCode{</h2>}\par}
>>>



\<context toc\><<<
\ConfigureToc{part}
  {\toc:br
   \HCode{<span class="partToc"><span class="toc-mark">}}
  {\HCode{</span>}~}
  {}
  {\HCode{</span>}}
>>>




\<context toc\><<<
\ConfigureToc{chapter}
  {\toc:br
   \HCode{<span class="chapterToc"><span class="toc-mark">}}
  {\HCode{</span>}~}
  {}
  {\HCode{</span>}}
>>>


\<context toc\><<<
\ConfigureToc{section}
  {\toc:br
   \HCode{<span class="sectionToc"><span class="toc-mark">}}
  {\HCode{</span>}~}
  {}
  {\HCode{</span>}}
>>>


\<context toc\><<<
\ConfigureToc{subsection}
  {\toc:br
   \HCode{<span class="subsectionToc"><span class="toc-mark">}}
  {\HCode{</span>}~}
  {}
  {\HCode{</span>}}
>>>


\<context toc\><<<
\ConfigureToc{subsubsection}
  {\toc:br
   \HCode{<span class="subsubsectionToc"><span class="toc-mark">}}
  {\HCode{</span>}~}
  {}
  {\HCode{</span>}}
>>>


\<context toc\><<<
\ConfigureToc{subsubsubsection}
  {\toc:br
   \HCode{<span class="subsubsubsectionToc"><span class="toc-mark">}}
  {\HCode{</span>}~}
  {}
  {\HCode{</span>}}
>>>


\<context toc\><<<
\ConfigureToc{subsubsubsubsection}
  {\toc:br
   \HCode{<span class="subsubsubsubsectionToc"><span class="toc-mark">}}
  {\HCode{</span>}~}
  {}
  {\HCode{</span>}}
>>>



\<context spacing\><<<
\Configure{narrower}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="narrower">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Css{div.narrower {margin-left:2em; margin-right:2em;}}
>>>



\<context spacing\><<<
\Configure{midaligned}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="midaligned">}}
   {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}\par}
\Configure{leftaligned}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="leftaligned">}}
   {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}\par}
\Configure{rightaligned}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="rightaligned">}}
   {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}\par}
\Css{div.midaligned {text-align:center;}}
\Css{div.leftaligned {text-align:left;}}
\Css{div.rightaligned {text-align:right;}}
>>>


\<context system\><<<
\Configure{startstop}
   {\ifvmode \IgnorePar \EndP
       \HCode{<div class="startstop">}\par
       \def\end:startstop{\ifvmode \IgnorePar \EndP \fi
                          \HCode{</div>}\par}%
    \else
       \HCode{<span class="startstop">}%
       \def\end:startstop{\ifvmode \IgnorePar \HCode{</span>}\par
                          \else \HCode{</span>}\fi}%
    \fi}
   {\end:startstop}
>>>


\<context description\><<<
\Configure{description-item}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<dl class="description-item">
           <dt class="description-dt">}\everypar{}}
   {\HCode{</dt><dd class="description-dd">}\everypar{\HtmlPar}\par}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{</dd></dl>}}
>>>

\<context description\><<<
\Configure{description-word}
   {\HCode{<span class="description-word">}}
   {\ifvmode \IgnorePar \HCode{</span>}\par
                          \else \HCode{</span>}\fi}
>>>



\<context item group\><<<
\Configure{itemgroup}
   {\ifvmode\IgnorePar\fi \EndP
    \HCode{<dl class="\currentitemgroup">}\let\end:dd=\empty}
   {\ifvmode\IgnorePar\fi \EndP \end:dd \HCode{</dl>}}
\Configure{head-listitem}
   {\ifvmode\IgnorePar\fi \EndP
    \end:dd \HCode{<dt class="\currentitemgroup
                              -head">}}
   {\ifvmode\IgnorePar\fi \EndP
    \HCode{</dt><dd class="\currentitemgroup -head%
                               ">}\def\end:dd{\HCode{</dd>}}}
\Configure{symbol-listitem}
   {\ifvmode\IgnorePar\fi \EndP
    \end:dd \HCode{<dt class="\currentitemgroup
                              -symbol">}}
   {\ifvmode\IgnorePar\fi \EndP
    \HCode{</dt><dd class="\currentitemgroup -symbol%
                               ">}\def\end:dd{\HCode{</dd>}}}
\Configure{other-listitem}
   {\ifvmode\IgnorePar\fi \EndP
    \end:dd \HCode{<dt class="\currentitemgroup
                              -other">}}
   {\ifvmode\IgnorePar\fi \EndP
    \HCode{</dt><dd class="\currentitemgroup -other%
                               ">}\def\end:dd{\HCode{</dd>}}}
>>>

\<context verbatim\><<<
\Configure{typing}
   {\ifvmode \IgnorePar\fi \EndP \par \ShowPar
    \def\verb:par{%
      \HCode{<div class="typing">}%
      \gdef\verb:par{\HCode{<br />}}}%
   }
   {\ifvmode \IgnorePar\fi \HCode{</div>}\par}
   {\verb:par}
   {\HCode{\string&}\HChar{-35}\HCode{x00A0;}}
\Css{div.typing
       {font-family: monospace; white-space: nowrap; }}
>>>


\<context floats\><<<
\Configure{plaatsblok}
   {\ifvmode \IgnorePar\fi \EndP\HCode{<div class="float">}}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}
\Configure{caption}
   {\HCode{<span class="caption-label">}}   {\HCode{</span>}}
   {\HCode{<span class="caption-text">}}   {\HCode{</span>}}
>>>

Q. Where placefigure is declared?

\<context floats\><<<
\NewConfigure{figure}{2}
\Configure{figure}
   {\ifvmode \IgnorePar\fi \EndP\HCode{<div class="figure">}}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}
>>>


\<context floats\><<<
\Configure{externalfigure}{\Picture[fig]}
>>>

\<context floats\><<<
\Configure{figure-li}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="entry"><span class="num">}\par\IgnorePar}
   {\HCode{</span><span class="title">}}
   {\HCode{</span><span class="page"><!--}}
   {\HCode{--></span></div>}}
\Configure{-@@kjfigure}
   {\HCode{<span class="figure-caption">}}
   {\HCode{</span>}}
>>>


\<context toc NO\><<<
\Configure{title-ko}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="toc-title">}%
    \def\end:ko{\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}\bgroup 
      \aftergroup\end:ko
      \Configure{title-ko}{\bgroup}{\egroup}%
   }
   {\egroup }
>>>



\<context tabs\><<<
\Configure{\v!tabulate}
   {\ifvmode \IgnorePar\fi 
    \EndP \HCode{<pre class="\v!tabulate">}}
   {\ifvmode\IgnorePar\fi\HCode{</pre>}\par}
>>>



\<context tables\><<<
\Configure{table}
   {\PushStack\Table:Stck\TableNo
    \PushStack\Row:Stck\HRow     \HAssign\HRow=0\relax
    \PushStack\Col:Stck\Prev:Col
    \gHAdvance\Table:No by 1\relax
    \HAssign\TableNo=\Table:No\relax
    \ifvmode \IgnorePar\fi \EndP\halignTB{table}\putVBorder
}
   {\HCode{</table>}%
    \PopStack\Table:Stck\TableNo
    \PopStack\Row:Stck\HRow
    \PopStack\Col:Stck\Prev:Col
   }
   {\gHAdvance\HRow by 1
    \HCode{<tr class="TBL-\TableNo-\HRow">}%
    \currentTABLEcolumn=0 \gHAssign\Prev:Col=0 }
   {\HCode{</tr>}}
   {\HAssign\HCol=\the\currentTABLEcolumn\relax
    \HAssign\HMultispan=\HCol\relax
    \HAdvance\HMultispan by -\Prev:Col\relax
    \gHAssign\Prev:Col=\HCol\relax
    \HAdvance\HCol by 1\relax
    \ifnum \HMultispan>1  \HAdvance\HCol by 1
                          \HAdvance\HCol by -\HMultispan\relax \fi
    \HCode{\Hnewline<td class="TBL-\TableNo-\HRow-\HCol" }%
    \halignTD
    \HCode{ \ifnum \HMultispan>1  colspan="\HMultispan" \fi >}%
\gdef\dd:table{%
      \gdef\dd:table{}%
      \x:tableCell
      \d:table}%
\def\x:tableCell{\e:tableCell \global\let\x:tableCell=\empty}%
}
   {\HCode{</td>}}

\HAssign\Table:No=0
\HAssign\TableNo=0
\HAssign\Prev:Col=0
\HAssign\HRow=0
>>>


\<context tables\><<<
\Configure{tableCell}
   {\e:table\HCode{<div class="cell-1">}\ShowPar\par}
   {\e:table\HCode{<div class="cell-2">}\ShowPar\par}
   {\e:table\HCode{<div class="cell-3">}\ShowPar\par}
   {\e:table\HCode{<div class="cell-4">}\ShowPar\par}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}\f:table}
>>>


\<context tables\><<<
\let\VBorder\empty   \let\AllColMargins\empty
\Configure{VBorder}
   {\let\VBorder\empty
    \let\AllColMargins\empty
    \global\let\GROUPS\empty
    \HAssign\NewGroup = 0
   }
   {%
      \let\:temp\TableNo \let\TableNo=\relax
      \edef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}%
      \let\TableNo\:temp
      \HAssign\NewGroup = 0
    \gdef\GROUPS{rules="groups"}%
   }
   {\Advance:\NewGroup by 1
      \let\:temp\TableNo \let\TableNo=\relax
      \ifnum \NewGroup=1 \edef\VBorder{\VBorder<colgroup
          id="TBL-\TableNo-\ar:cnt g">}\fi
      \edef\VBorder{\VBorder<col\Hnewline id="TBL-\TableNo
         -\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}%
      \let\TableNo\:temp
   }
   {%
      \let\:temp\TableNo \let\TableNo=\relax
      \edef\AllColMargins{\AllColMargins 0}%
      \let\TableNo\:temp
   }

\Css{table.table td {vertical-align:top;}}
>>>

\<context tables\><<<
\Css{table.table td { padding-left:3pt; padding-right:3pt; }}

\Configure{halignTB}{\HCode{<table }}{\HCode{>}}
\Configure{halignTB<>}{table}{\HCode{class="table"\Hnewline
   cellspacing="0" cellpadding="0" \GROUPS\Hnewline
   frame="\ifx \GROUPS\empty void\else border\fi" id="TBL-\TableNo-"
   }<>\HAlign}
>>>

\<context tables\><<<
\Configure{TABLElongrule}{\HCode{<hr />}}
\Configure{TableHL}
  {\TABLEnoalign{%
  \HCode{<tr>}%
\tmp:cnt=\maxTABLEcolumn
\advance\tmp:cnt by 2
\HCode{<td colspan="\the\tmp:cnt"><hr /></td>}%
  \HCode{</tr>}}%
}
>>>


\<context tables\><<<
\Configure{halignTD} {}{}
   {<}{\HCode{ % align="left"
               style="white-space:nowrap; text-align:left;"}}
   {-}{\HCode{ % align="center"
               style="white-space:nowrap; text-align:center;"}}
   {>}{\HCode{ % align="right"
               style="white-space:nowrap; text-align:right;"}}
   {l}{\HCode{ % align="left"
               style="white-space:nowrap; text-align:left;"}}
   {c}{\HCode{ % align="center"
               style="white-space:nowrap; text-align:center;"}}
   {r}{\HCode{ % align="right"
               style="white-space:nowrap; text-align:right;"}}
   {^}{\HCode{ valign="top" style="white-space:nowrap;"}}
   {=}{\HCode{ valign="baseline" style="white-space:nowrap;"}}
   {||}{\HCode{ valign="middle" style="white-space:nowrap;"}}
   {_}{\HCode{ valign="bottom" style="white-space:nowrap;"}}
   {p}{\HCode{ % align="left"
               style="white-space:nowrap; text-align:left;"}\Protect\a:HColWidth}
   {m}{\HCode{ % align="left"
               style="white-space:nowrap; text-align:left;" valign="middle"}}
   {b}{\HCode{ % align="left"
               style="white-space:nowrap; text-align:left;" valign="baseline"}}
   {}
>>>


\<context index\><<<
\Configure{index}
   {\Link{}{in-\nextinternalreference}\EndLink}
\Configure{indexpage}{%
   \gHAdvance\Idx:No by 1 #1%
   {#2}%
   {#3}%
   {#4}%
   {\Link{in-#3}{}\Idx:No\EndLink}}
\HAssign\Idx:No = 0
>>>

\<context index\><<<
\Configure{indexchar}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="indexchar">}}
   {\HCode{</div>}\par}
\Css{div.indexchar{margin-top:0.2em; margin-bottom:0.1pt;}}
>>>

\<context index\><<<
\Configure{index-env}
   {\ifvmode \IgnorePar\fi \EndP\HCode{<div class="index-env">}\par}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
\Css{div.index-env p{margin-top:0em; margin-bottom:0em;}}
\NewConfigure{-@@idindex}{2}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{letters}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure html4 g-brief\><<<
\Configure{g-brief}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="g-brief">}%
    \let\sv:@imakebox\@imakebox
    \let\sv:br=\\ \def\\{\HCode{</tr><tr>}}%
    \let\:clearpage\clearpage
    \def\clearpage{\let\clearpage\:clearpage
       \ifvmode \IgnorePar\fi \EndP
       \HCode{<table class="date"><tr>}%
       \IgnorePar
    }%
    \let\brf:par\par
    \def\@imakebox[##1][##2]##3{%
      \HCode{<td class="makebox-##2">}%
      \bgroup \let\\=\sv:br \let\@imakebox\sv:@imakebox
              \let\par\sv:par
                ##3%
      \egroup
      \HCode{</td>}%
      \def\par{\let\par\brf:par
         \ifvmode \IgnorePar\fi \EndP
         \HCode{</tr></table>}}%
    }%
   }
   {\let\\=\sv:br \let\@imakebox\sv:@imakebox
    \ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="end-g-brief">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Css{table.date {width:100\%; margin-top:2em;}}
\Css{table.date td{white-space: nowrap;}}
>>>

\<configure html4 g-brief\><<<
\Configure{letterfoot}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="letterfoot">}}
   {}
   {\HCode{</div>}}  
\Configure{letterhead}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="letterhead"><table
                           class="from"><tr><td class="name">}}
   {\HCode{</td><td class="address">}}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{</td></tr></table><div class="retouradresse">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div><div class="postage">}}
   {\HCode{</div></div>}}  
\Css{.letterfoot .tabular {text-align: left; margin-top:4em; }}
\Css{table.from {width:100\%; margin-bottom:2em;}}
\Css{table.from .address table {width:100\%;}}
\Css{.makebox-r {text-align:right;}}
>>>

\<configure html4 g-brief\><<<
\Configure{datumtext}
  {\HCode{<span class="datumtext">}}
  {\HCode{</span>}}
\Configure{datum}
  {\HCode{<span class="datum">}}
  {\HCode{</span>}\IgnorePar}
\Configure{anrede}
  {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="anrede">}}
  {\HCode{</div>}}
\Configure{betreff}
  {\ifvmode \IgnorePar\fi \EndP\HCode{<div class="betreff">}}
  {\HCode{</div>}}
\Css{.betreff{margin-top:2em; margin-bottom:1em;}}
\Configure{gruss}
   {\HCode{<span class="gruss">}}
   {\HCode{</span>}}
\Configure{unterschrift}
   {\HCode{<span class="unterschrift">}}
   {\HCode{</span>}}
\Configure{anlagen}
   {\HCode{<span class="anlagen">}}
   {\HCode{</span>}}
\Configure{verteiler}
   {\HCode{<span class="verteiler">}}
   {\HCode{</span>}}
\Configure{sprache}
  {\HCode{<span class="sprache">}}
  {\HCode{</span>}}
\Configure{telefontex}
  {\HCode{<span class="telefontex">}}
  {\HCode{</span>}}
\Configure{telefaxtext}
  {\HCode{<span class="telefaxtext">}}
  {\HCode{</span>}}
\Configure{telextext}
  {\HCode{<span class="telextext">}}
  {\HCode{</span>}}
\Configure{emailtext}
  {\HCode{<span class="emailtext">}}
  {\HCode{</span>}}
\Configure{httptext}
  {\HCode{<span class="httptext">}}
  {\HCode{</span>}}
\Configure{banktext}
  {\HCode{<span class="banktext">}}
  {\HCode{</span>}}
\Configure{blztext}
  {\HCode{<span class="blztext">}}
  {\HCode{</span>}}
\Configure{betrefftext}
  {\HCode{<span class="betrefftext">}}
  {\HCode{</span>}}
\Configure{ihrzeichentext}
  {\HCode{<span class="ihrzeichentext">}}
  {\HCode{</span>}}
\Configure{ihrschreibentext}
  {\HCode{<span class="ihrschreibentext">}}
  {\HCode{</span>}}
\Configure{meinzeichentext}
  {\HCode{<span class="meinzeichentext">}}
  {\HCode{</span>}}
\Configure{unserzeichentext}
  {\HCode{<span class="unserzeichentext">}}
  {\HCode{</span>}}
\Configure{anlagen}
  {\HCode{<span class="anlagen">}}
  {\HCode{</span>}}
\Configure{adresse}
  {\HCode{<span class="adresse">}}
  {\HCode{</span>}} 
\Configure{bank}
  {\HCode{<span class="bank">}}
  {\HCode{</span>}} 
\Configure{blz}
  {\HCode{<span class="blz">}}
  {\HCode{</span>}} 
\Configure{email}
  {\HCode{<span class="email">}}
  {\HCode{</span>}} 
\Configure{gruss}
  {\HCode{<span class="gruss">}}
  {\HCode{</span>}}
\Configure{grussskip}
  {\HCode{<span class="grussskip">}}
  {\HCode{</span>}}
\Configure{http}
  {\HCode{<span class="http">}}
  {\HCode{</span>}} 
\Configure{ihrschreiben}
  {\HCode{<span class="ihrschreiben">}}
  {\HCode{</span>}} 
\Configure{ihrzeichen}
  {\HCode{<span class="ihrzeichen">}}
  {\HCode{</span>}} 
\Configure{konto}
  {\HCode{<span class="konto">}}
  {\HCode{</span>}} 
\Configure{land}
  {\HCode{<span class="land">}}
  {\HCode{</span>}} 
\Configure{meinzeichen}
  {\HCode{<span class="meinzeichen">}}
  {\HCode{</span>}} 
\Configure{name}
  {\HCode{<span class="name">}}
  {\HCode{</span>}} 
\Configure{ort}
  {\HCode{<span class="ort">}}
  {\HCode{</span>}} 
\Configure{postvermerk}
  {\HCode{<span class="postvermerk">}}
  {\HCode{</span>}} 
\Configure{retouradresse}
  {\HCode{<span class="retouradresse">}}
  {\HCode{</span>}} 
\Css{div.retouradresse { margin-bottom:2em; }}
\Configure{strasse}
  {\HCode{<span class="strasse">}}
  {\HCode{</span>}} 
\Configure{telefax}
  {\HCode{<span class="telefax">}}
  {\HCode{</span>}} 
\Configure{telefon}
  {\HCode{<span class="telefon">}}
  {\HCode{</span>}} 
\Configure{telex}
  {\HCode{<span class="telex">}}
  {\HCode{</span>}} 
\Configure{unterschrift}
  {\HCode{<span class="unterschrift">}}
  {\HCode{</span>}} 
\Configure{verteiler}
  {\HCode{<span class="verteiler">}}
  {\HCode{</span>}} 
\Configure{zusatz}
  {\HCode{<span class="zusatz">}}
  {\HCode{</span>}} 
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{mwcls}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<mwcls index\><<<
\Configure{@begin}{theindex}{\section*{\indexname}}
\Configure{theindex}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="theindex">}\let\end:theidx\empty}
   {\end:theidx\HCode{</div>}}
   {} {\HCode{<br\xml:empty>}\hfil\break}
   {\ \ \ \ } {\HCode{<br\xml:empty>}\hfil\break}
   {\ \ \ \ \ \ \ \ } {\HCode{<br\xml:empty>}\hfil\break}
   {\hbox{\end:theidx\HCode{<p class="theindex">}}%
    \def\end:theidx{\HCode{</p>}}}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Into Columns}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<book-report-article index\><<<
\def\:temp#1index=#2,#3|<par del|>{%
   \ifnum #2>1 |<conf multi cols|>\fi
   \def\:temp{#2}%
}
\expandafter\:temp\Preamble,index=0,|<par del|>
\ifnum \:temp<2
   |<one-col index|>
\else
   |<mult-col index|>
\fi
>>>


The \verb=\Configure{IndexColumns}= instruction is to allow documents
that have more than one index to employ different number of columns.
The `index=i' provides the initial setting.


\<one-col index\><<<
\Log:Note{for i-columns index,
               use the command line option `index=i' (e.g., index=2)}
\Configure{theindex}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="theindex">}\let\end:theidx|=\empty}
   {\end:theidx\HCode{</div>}}
   {} {\hfil\break\HCode{<br\xml:empty>}}
   {\ \ \ \ } {\hfil\break\HCode{<br\xml:empty>}}
   {\ \ \ \ \ \ \ \ } {\hfil\break\HCode{<br\xml:empty>}}
   {\hbox{\end:theidx\HCode{<p class="theindex">}}%
    \def\end:theidx{\HCode{</p>}}}
>>>

\<conf multi cols\><<<
\NewConfigure{IndexColumns}{1}
\Configure{IndexColumns}{#2}
>>>


\<mult-col index\><<<
\Log:Note{the number of columns    
   requested by the option `index=\a:IndexColumns' can 
   be modified through the command \string\Configure{IndexColumns}{i}}
\Configure{theindex}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="theindex">}%
    |<index mult cols|>\let\end:theidx|=\empty}
   {\end:theidx
    |<end index mult cols|>\HCode{</div>}}
   {} 
   {\ifvmode \else \hfil\HCode{<br\xml:empty>}\break\fi}
   {\ \ \ \ } {\hfil\HCode{<br\xml:empty>}\break}
   {\ \ \ \ \ \ \ \ } {\hfil\HCode{<br\xml:empty>}\break}
   {%\ifvmode \EndP\fi
    % \hbox{\end:theidx\HCode{<p class="theindex">}}%
    % \def\end:theidx{\HCode{</p>}}
    \parindent=0pt
   }%
>>>

\<index mult cols\><<<
\Configure{HColumns}
     {\IgnorePar\EndP
         \HCode{<table \Hnewline class="index" width="100\%"
                     cellspacing="15"><tr valign="top">}}
     {\HCode{</tr></table>}}
     {\HCode{<td>}\ColMag{1.1}}
     {\IgnorePar\EndP\HCode{</td>}}
  \HColumns{\a:IndexColumns}%
  \everypar{\HtmlPar}\par\ShowPar
>>>

\<end index mult cols\><<<
\EndHColumns
>>>

\<mult-col index\><<<
\def\add:col{\Advance:\:cols  -1 \HAdvance\HCol  1\relax
   \ifnum \:cols>0
      \c:Cols \vsplit0 to \tmp:dim  \d:Cols  \expandafter\add:col
   \fi}
\NewConfigure{HColumns}{4}
\def\c:Cols{\edef\sv:dim{\the\tmp:dim}\c:HColumns}
\def\d:Cols{\d:HColumns \tmp:dim\sv:dim }
\def\ColMag#1{\tmp:dim  #1\tmp:dim}
\def\HColumns#1{%
   \a:HColumns
   \HAssign\:cols#1  \setbox0=\vbox\bgroup
   \divide\hsize  #1  }
\def\EndHColumns{\egroup   \HAssign\HCol0
  \tmp:dim\ht0  \advance\tmp:dim  \dp0  \divide\tmp:dim  \:cols
  \add:col \c:Cols \box0 \d:Cols \b:HColumns}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Captions}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<config captions\><<<
\Configure{caption}{\HCode{\if:nopar  \else <br\xml:empty>\fi}
   \:xhtml{\IgnorePar\EndP}\HCode{<table class="caption"\Hnewline><tr 
    valign="baseline"  class="caption"><td class="id">}}
   {: } {\HCode{</td><td \Hnewline class="content">}} 
   {\HCode{</td></tr></table>}|<caption label comment|>}
\Css{.caption td.id{font-weight: bold; white-space: nowrap; }}
\Css{table.caption {text-align:center;}}
>>>


\<apa captions\><<<
\Configure{caption}{\HCode{\if:nopar  \else <br\xml:empty>\fi}
   \:xhtml{\IgnorePar\EndP}\HCode{<table class="caption"\Hnewline><tr 
    valign="baseline"  class="caption"><td class="id">}}
   { } {\HCode{</td><td \Hnewline class="content">}} 
   {\HCode{</td></tr></table>}|<caption label comment|>}
\Css{table.caption {text-align:left;}}
>>>

\<scr reprt/book captions\><<<
\Configure{caption}{\HCode{\if:nopar  \else <br\xml:empty>\fi}
   \:xhtml{\IgnorePar\EndP}\HCode{<div 
    class="caption"><table class="caption"\Hnewline><tr
    valign="baseline"  class="caption"><td class="id">}}
   {: } {\HCode{</td><td \Hnewline class="content">}}
   {\HCode{</td></tr></table></div>}|<caption label comment|>%
}
\Css{.caption td.id{font-weight: bold; white-space: nowrap; }}
\Css{div.cation {text-align:center;}}
>>>

\<amsppt captions\><<<
\Configure{caption}
   {\:xhtml{\IgnorePar\EndP}\HCode{<center>}}{}{\HCode{</center>}}
>>>

\<config span caption\><<<
\Configure{caption}
   {\HCode{<br /><span class="caption"><span class="id">}}
   {\HCode{</span>}: }{}{\HCode{</span><br />}}%
>>>


\<caption label comment\><<<
\HCode{<!--tex4ht:label?:
   \cur:th\:currentlabel\space-->}%
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Footnotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Originating Packages}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<latex ltfloat (footnotes)\><<<
|<shared config footnotes|>
\:CheckOption{fn-in}\if:Option  
   |<inline footnote latex|>
\else   
   \Log:Note{for inline footnotes use
          command line option `fn-in'}
   |<offline footnote latex|>
\fi
>>>





\<configure html4 plain\><<<
\:CheckOption{fn-in}\if:Option  
   |<inline footnote plain|>
\else   
   \Log:Note{for inline footnotes, use
          the command line option `fn-in'}
   |<offline footnote plain|>
\fi
>>>

\<maketitle footnote\><<<
\:CheckOption{fn-in}\if:Option  
   |<end-thanks author date and|>
\else
   |<config thanks author date and|>
\fi
>>>

\<revtex maketitle footnote\><<<
\:CheckOption{fn-in}\if:Option
   |<revtex end-thanks author date and|>
\else
   |<revtex config thanks author date and|>
\fi
>>>

\<JHEP maketitle footnote\><<<
\:CheckOption{fn-in}\if:Option  
   |<JHEP end-thanks author date and|>
\else
   |<JHEP thanks author date and|>
\fi
>>>





%%%%%%%%%%%%%%%%
\subsection{In-Line LaTeX}
%%%%%%%%%%%%%%%%

\<inline footnote latex\><<<
\:CheckOption{mouseover} \if:Option
   |<mouseover inline footnote mark|>
   |<mouseover inline footnote text|>
   |<mouseover inline footnote|>
   |<onmouseover footnote css|>
\else
   |<inline footnote mark|>
   |<inline footnote text|>
   |<inline footnote|>
\fi
>>>


\<inline footnote text\><<<
\Configure{footnotetext}
   {|<open inline footnote box|>%
    |<fn mark sup|>|<inline fn text /Link|>%
    \NoFonts
    \Tag{|<footnote id|>-bk}{}%
    \special{t4ht@(}%
   }
   {\special{t4ht@)}\EndNoFonts |<end inline fn text /Link|>|<fn mark end sup|>}
   {\expandafter\global\expandafter
       \let\csname (|<footnote id|>)\endcsname\def
    |<close inline footnote box|>}
>>>

\<inline footnote mark\><<<
\Configure{footnotemark}
   {|<fn mark sup|>|<inline fn mark /Link|>%
    \NoFonts
    \Tag{|<footnote id|>}{}}
   {\EndNoFonts
    |<end inline fn mark /Link|>|<fn mark end sup|>%
    \expandafter\global\expandafter
       \let\csname (|<footnote id|>-bk)\endcsname\def}
>>>




\<mouseover inline footnote text\><<<
\Configure{footnotetext}
   {|<open inline footnote box|>%
    |<js footnote|>%
    |<fn mark sup|>|<inline fn text /Link|>%
    \NoFonts   \Tag{|<footnote id|>-bk}{}%
   }
   {\EndNoFonts |<end inline fn text /Link|>|<fn mark end sup|>}
   {\expandafter\global\expandafter
       \let\csname (|<footnote id|>)\endcsname\def
    |<js /footnote|>%
    |<close inline footnote box|>}
>>>

\<mouseover inline footnote mark\><<<
\Configure{footnotemark}
   {|<fn mark sup|>|<mouseover inline fn mark /Link|>%
    \NoFonts
    \Tag{|<footnote id|>}{}}
   {\EndNoFonts
    |<end inline fn mark /Link|>|<fn mark sup|>%
    \expandafter\global\expandafter
       \let\csname (|<footnote id|>-bk)\endcsname\def}
>>>















\<inline fn text /Link\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
      \Link{|<footnote id|>-bk}{}%       
    \else
      \Link{|<footnote id|>-bk}{|<footnote id|>}%
    \fi
   }
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
    \else \Link{}{|<footnote id|>}\fi
   }%
>>>

\<end inline fn text /Link\><<<
\ifTag{|<footnote id|>}
   {\EndLink}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
    \else \EndLink\fi
   }%
>>>



\<mouseover inline fn mark /Link\><<<
|<start js|>%
\ifTag{|<footnote id|>-bk}
   {\expandafter\ifx\csname (|<footnote id|>-bk)\endcsname\def
      \Link[ |<mouseover-footnote arguments|>\Hnewline
                    ]{|<footnote id|>}{}%       
    \else
      \Link[ |<mouseover-footnote arguments|>\Hnewline
                    ]{|<footnote id|>}{|<footnote id|>-bk}%
    \fi
   }
   {\expandafter\ifx\csname (|<footnote id|>-bk)\endcsname\def
    \else \Link[ |<mouseover-footnote arguments|>\Hnewline
                    ]{}{|<footnote id|>-bk}\fi
   }%
>>>







\<inline fn mark /Link\><<<
\ifTag{|<footnote id|>-bk}
   {\expandafter\ifx\csname (|<footnote id|>-bk)\endcsname\def
      \Link{|<footnote id|>}{}%       
    \else
      \Link{|<footnote id|>}{|<footnote id|>-bk}%
    \fi
   }
   {\expandafter\ifx\csname (|<footnote id|>-bk)\endcsname\def
    \else \Link{}{|<footnote id|>-bk}\fi
   }%
>>>

\<end inline fn mark /Link\><<<
\ifTag{|<footnote id|>-bk}
   {\EndLink}
   {\expandafter\ifx\csname (|<footnote id|>-bk)\endcsname\def
    \else \EndLink\fi
   }%
>>>




\<open inline footnote box\><<<
\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
   \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi
>>>

\<close inline footnote box\><<<
\EndP\egroup\RecallEndP
>>>  


\<save inline footnotes\><<<
\ifvoid \fn:box \else
   \expandafter \ifx \csname fn:box\body:level\endcsname\relax
      \csname newbox\expandafter\endcsname
                   \csname fn:box\body:level\endcsname
   \fi
   \global\expandafter\setbox\csname fn:box\body:level\endcsname=
      \vbox{\csname unvbox\endcsname\fn:box}%
\fi
\gHAdvance\body:level by 1
>>>

\<recall inline footnotes\><<<
\gHAdvance\body:level by -1
\expandafter \ifx \csname fn:box\body:level\endcsname\relax \else
   \global\setbox\fn:box=
      \vbox{\expandafter\ifvoid \csname fn:box\body:level\endcsname \else
          \csname unvbox\expandafter\endcsname
               \csname fn:box\body:level\endcsname\fi}%     
\fi
>>>

\<insert inline footnotes\><<<
\ifvmode \IgnorePar\fi\EndP  
\ifvoid \fn:box\else 
   \HCode{<div class="footnotes">}\box\fn:box\HCode{</div>}
   \IgnorePar\EndP
\fi
>>>


\<file tag into footnote\><<<
(L >>>

\<link tag to footnotetext\><<<
)Q>>>



\<mouseover inline footnote\><<<
\Configure{BODY}
   {|<save inline footnotes|>\:xhtml{\SaveEndP}\IgnorePar
       \HCode{<body\Hnewline\csname a:!BODY\endcsname 
     >}|<overDiv|>\ShowPar\par}
   {|<insert inline footnotes|>%
    \relax \ifnum \FileNumber=1
      |<ol-hauto mouseover-script|>%
    \fi
    \HCode{\Hnewline
     </body>}\:xhtml{\RecallEndP}|<recall inline footnotes|>}%
>>>

\<inline footnote\><<<
   \Configure{BODY}
      {|<save inline footnotes|>\:xhtml{\SaveEndP}\IgnorePar
          \HCode{<body\Hnewline\csname a:!BODY\endcsname >}\ShowPar\par}
      {|<insert inline footnotes|>\HCode{\Hnewline
        </body>}\:xhtml{\RecallEndP}|<recall inline footnotes|>}%
>>>
   

\<inline footnote latex\><<<
\Configure{crosslinks+}
   {\IgnorePar\EndP\HCode{|<show input line no|>%
                          <div class="crosslinks"><p class="noindent">}}
   {\HCode{</p></div>}\par\ShowPar}
   {|<insert inline footnotes|>%
    \ifvmode \IgnorePar\fi \EndP
    \HCode{|<show input line no|><div class="crosslinks"><p class="noindent">}}
   {\HCode{</p></div>}\par\ShowPar}
>>>

\<inline footnote latex\><<<
\Css{div.footnotes{border-top:solid 1px black;
   border-bottom:solid 1px black; 
   padding-bottom:1ex;
   padding-top:0.5ex;   
   margin-right:15\%; margin-top:2ex; 
   font-style:italic; font-size:80\%;}}
\Css{div.footnotes p{margin-top:0; margin-bottom:0; text-indent:0;}}
\ifx \fn:box\:UnDef \csname newbox\endcsname\fn:box \fi
\HAssign\body:level=0
>>>




%%%%%%%%%%%%%%%%
\subsection{Off-Line in latex}
%%%%%%%%%%%%%%%%


\<offline footnote latex\><<<
\:CheckOption{mouseover} \if:Option
  |<onmouseover offline footnote mark|>
  |<onmouseover offline footnote text|>
  |<onmouseover footnote css|>
  \AtEndDocument{|<ol-hauto mouseover-script|>}
\else \:CheckOption{frames-fn}  \if:Option
        |<frames footnote mark|>
        |<frames footnote text|>
      \else
        |<default offline footnote mark|>
        |<default offline footnote text|>
\fi   \fi
>>>

\<default offline footnote text\><<<
\Configure{footnotetext}
   {|<open footnote page|>%
    |<fn mark sup|>\Link{}{|<footnote id|>}%
    \NoFonts
   }
   {\EndNoFonts \EndLink|<fn mark end sup|>}
   {|<close footnote page|>}
>>>

\<default offline footnote mark\><<<
\Configure{footnotemark}
   {|<fn mark sup|>|<footnotemark link|>\NoFonts
    \Tag{|<footnote id|>}{}}
   {\EndNoFonts |<end footnotemark link|>|<fn mark end sup|>}
>>>

\<onmouseover offline footnote text\><<<
\Configure{footnotetext}
   {|<js open footnote page|>%
    |<fn mark sup|>\Link{}{|<footnote id|>}%
    \NoFonts
   }
   {\EndNoFonts \EndLink|<fn mark end sup|>}
   {|<js close footnote page|>}
>>>


\<onmouseover offline footnote mark\><<<
\Configure{footnotemark}
   {|<fn mark sup|>|<js footnotemark link|>\NoFonts
    \Tag{|<footnote id|>}{}}
   {\EndNoFonts
    |<end js footnotemark link|>|<fn mark end sup|>}
>>>



\<frames footnote text\><<<
\Configure{footnotetext}
   {|<open frames footnote page|>%
    |<fn mark sup|>\Link{}{|<footnote id|>}\NoFonts
   }
   {\EndNoFonts\EndLink|<fn mark end sup|>}
   {|<close frames footnote page|>}
>>>

\<frames footnote mark\><<<
\Configure{footnotemark}
   {|<fn mark sup|>|<frames footnotemark link|>\NoFonts
    \Tag{|<footnote id|>}{}}
   {\EndNoFonts
    |<end frames footnotemark link|>|<fn mark end sup|>}
>>>





\<open footnote page\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
       \:warning{Multiple footnote texts for mark \FNnum}%
    \else  \csname a:footnote-text\endcsname\fi
   }
   {}%
>>>


\<close footnote page\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
    \else  \csname b:footnote-text\endcsname\fi
   }
   {}%
\expandafter\global\expandafter
   \let\csname (|<footnote id|>)\endcsname\def
>>>    





\<js open footnote page\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
       \:warning{Multiple footnote texts for mark \FNnum}%
    \else  \csname a:footnote-text\endcsname\fi
   }
   {}%
>>>


\<js close footnote page\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
    \else  \csname b:footnote-text\endcsname\fi
   }
   {}%
\expandafter\global\expandafter
   \let\csname (|<footnote id|>)\endcsname\def
>>>    


\<footnotemark link\><<<
\ifTag{|<link tag to footnotetext|>|<footnote id|>}
   {\Link{|<footnote id|>}{}}
   {}%
>>>

\<end footnotemark link\><<<
\ifTag{|<link tag to footnotetext|>|<footnote id|>}
   {\EndLink}
   {}%
>>>


\<js footnotemark link\><<<
\ifTag{|<link tag to footnotetext|>|<footnote id|>}
   {|<start js|>%
       \leavevmode \Link[ |<mouseover-footnote arguments|>%
                                \Hnewline]{|<footnote id|>}{}}
   {}%
>>>

\<end js footnotemark link\><<<
\ifTag{|<link tag to footnotetext|>|<footnote id|>}
   {\EndLink}
   {}%
>>>



\<open frames footnote page\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
       \:warning{Multiple footnote texts for mark \FNnum}%
    \else  
      \Configure{!BODY}{id="|<tex4ht-fn|>" }%
      \BeginHPage[|<footnote id|>]{ }%
      \Configure{!BODY}{}%
    \fi
   }
   {}%
>>>


\<close frames footnote page\><<<
\ifTag{|<footnote id|>}
   {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
    \else  
      \close:fn\EndHPage{}
    \fi
   }
   {}%
\expandafter\global\expandafter
   \let\csname (|<footnote id|>)\endcsname\def
>>>    


\<frames footnote text\><<<
\def\close:fn{\HPage{}\Link{}{hide-fn}\EndLink\EndHPage{}%
   \gdef\close:fn{\rightline{\Link{hide-fn}{}@\EndLink}}\close:fn}
>>>

% \Css{body\#|<tex4ht-fn|>{font-size:80\%;}}%


\<frames footnotemark link\><<<
\ifTag{|<footnote id|>|<file tag into footnote|>}
   {\Link[\RefFile{|<footnote id|>}
                             target="|<tex4ht-fn|>"]{}{}}
   {}%
>>>

\<end frames footnotemark link\><<<
\ifTag{|<footnote id|>|<file tag into footnote|>}
   {\EndLink}
   {}%
>>>







\<footnote id\><<<
fn\FNnum x\minipageNum
>>>



\<fn mark sup\><<<
\csname a:footnote-mark\endcsname
>>>

\<fn mark end sup\><<<
\csname b:footnote-mark\endcsname
>>>

\<thank mark sup\><<<
\csname a:thank-mark\endcsname
>>>

\<thank mark end sup\><<<
\csname b:thank-mark\endcsname
>>>

\<shared config footnotes\><<<
\NewConfigure{footnote-mark}{2}
\NewConfigure{thank-mark}{2}
\Configure{footnote-mark}
   {\HCode{<span class="footnote-mark">}}
   {\HCode{</span>}}  
\Configure{thank-mark}
   {\HCode{<span class="thank-mark">}}
   {\HCode{</span>}}  
\Css{span.thank-mark{ vertical-align: super }}
>>>



\<shared config footnotes\><<<
\NewConfigure{footnote-text}{2}
>>>

\<default offline footnote text\><<<
\Configure{footnote-text}
   {\HPage{}\HCode{<div class="footnote-text">}\par}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{</div>}\EndHPage{}}
>>>

\<onmouseover offline footnote text\><<<
\Configure{footnote-text}
   {\HPage{}\HCode{<div>}|<js footnote|>}
   {\ifvmode \IgnorePar\fi \EndP
    |<js /footnote|>\HCode{</div>}\EndHPage{}}
>>>


%%%%%%%%%%%%%%%%
\subsection{AMS}
%%%%%%%%%%%%%%%%


\<footnote for ams title\><<<
\:CheckOption{fn-in}\if:Option  
   \:CheckOption{mouseover}\if:Option
      |<mouseover inline ams title fn text|>%
   \else
      |<inline ams title fn text|>%
   \fi
\else
   \:CheckOption{mouseover}\if:Option
      |<mouseover ams title fn text|>%
   \else \:CheckOption{frames-fn}\if:Option
           |<frames ams title fn text|>%
         \else
           |<offline ams title fn text|>%
   \fi   \fi
\fi
>>>

\<offline ams title fn text\><<<
\Configure{footnotetext}
   {|<fn mark sup|>\HPage{\FNnum}\HCode{<div>}\NoFonts}
   {\EndNoFonts}
   {\HCode{</div>}\EndHPage{}|<fn mark end sup|>}%
>>>


\<frames ams title fn text\><<<
|<offline ams title fn text|>%
>>>

\<mouseover ams title fn text\><<<
|<offline ams title fn text|>%
>>>

\<mouseover inline ams title fn text\><<<
|<offline ams title fn text|>%
>>>

\<inline ams title fn text\><<<
|<offline ams title fn text|>%
>>>

\<ams art,proc,book\><<<
\Css{span.footnote-mark{ vertical-align: super }}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{SCR *}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\<scrbook maketitle footnote\><<<
\:CheckOption{fn-in}\if:Option
   |<scrbook end-thanks author date and|>
\else
   |<scrbook thanks author date and|>
\fi
>>>


\<scrreprt maketitle footnote\><<<
\:CheckOption{fn-in}\if:Option
   |<scrreprt end-thanks author date and|>
\else
   |<scrreprt thanks author date and|>
\fi
>>>



\<scr article,report,book\><<<
\Css{span.footnote-mark{ vertical-align: super }}
>>>



%%%%%%%%%%%%%%%%
\subsection{Plain}
%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<inline footnote plain\><<<
\Configure{vfootnote}
  {|<mark inline vfootnote|>}
  {|<open inline vfootnote|>}
  {|<close inline vfootnote|>}
>>>




\<mark inline vfootnote\><<<
\HCode{<sup>}\Link{fn\FNnum}{fn\FNnum-bk}%
      \ifx \FNmark\empty +\else \FNmark\fi\EndLink
\HCode{</sup>}%
>>>

\<open inline vfootnote\><<<
|<open inline footnote box|>%
\HCode{<sup>}\Link{fn\FNnum-bk}{fn\FNnum}%
\ifx \FNmark\empty +\else \FNmark\fi
\EndLink\space\HCode{</sup>}%
>>>

\<close inline vfootnote\><<<
|<close inline footnote box|>
>>>



\<offline footnote plain\><<<
\Configure{vfootnote}
   {\HPageButton[fn\FNnum]{\FNmark}}
   {\BeginHPage[fn\FNnum]{ }}
   {\EndHPage{}}
>>>


%%%%%%%%%%%%%%%%
\subsection{On Mouse Over}
%%%%%%%%%%%%%%%%


\<onmouseover footnote css\><<<
\expandafter\def\csname c:mouseover-footnote:\endcsname{%
  \def\:tempb{footnote}\csname c:mouseover-?:\endcsname}
\Configure{mouseover-footnote} {tex4ht.body,FULLHTML}
>>>




\<onmouseover footnote mark\><<<
|<start js|>\let\sv:link=\Link
\def\Link[##1]{\let\Link=\sv:link  
   \Link[##1 |<mouseover-footnote arguments|>\Hnewline]}%
>>>


\<mouseover-footnote arguments\><<<
\mo:args{footnote}{\FNnum}{|<footnote id|>}%
>>>


\<js footnote\><<<
|<start js|>%
\HCode{<!--}%
|<js From fn|>%
\HCode{<footnote>|<footnote id|>=<div class="js">}%
|<js Skip fn|>%
\HCode{-->}%
|<js Cont fn|>%
>>>

\<js /footnote\><<<
|<js Skip fn|>%
\HCode{<!--}%
|<js Cont fn|>%
\HCode{</div></footnote>\Hnewline}%
|<js Until fn|>%
\HCode{-->}%
>>>






An alternative css-based approach:

\begin{verbatim}
\Configure{tableofcontents}
   {\IgnorePar\EndP\HCode{<div class="tableofcontents">}\IgnorePar}
   {}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
   {\HCode{<br />}}   {}

\ConfigureToc{section}
  {\HCode{<div class="sectionToc"><span class="mark">}}
  { \HCode{</span>}}
  {}
  {\HCode{</div>}}
\ConfigureToc{subsection}
  {\HCode{<div class="subsectionToc"><span class="mark">}}
  { \HCode{</span>}}
  {}
  {\HCode{</div>}}
\ConfigureToc{subsubsection}
  {\HCode{<div class="subsubsectionToc"><span class="mark">}}
  { \HCode{</span>}}
  {}
  {\HCode{</div>}}

\ConfigureToc{likesection}
  {}
  {\HCode{<div class="likesectionToc">}}
  {}
  {\HCode{</div>}}
\ConfigureToc{likesubsection}
  {}
  {\HCode{<div class="likesubsectionToc">}}
  {}
  {\HCode{</div>}}
\ConfigureToc{likesubsubsection}
  {}
  {\HCode{<div class="likesubsubsectionToc">}}
  {}
  {\HCode{</div>}}



\Css{div.sectionToc { margin-left: 1em; text-indent: -1em;  }}
\Css{div.sectionToc span.mark { text-align:right; width: 1em; 
               padding-right:0.25em; }}

\Css{div.subsectionToc { margin-left:2.5em; text-indent: -2.5em; }}
\Css{div.subsectionToc span.mark { text-align:right; width: 2.5em; 
               padding-right:0.25em; }}
\Css{div.likesubsectionToc { margin-left: 2.5em; text-indent: -1.5em; }}

\Css{div.subsubsectionToc { margin-left: 4.5em; text-indent: -4.5em; }}
\Css{div.subsubsectionToc span.mark { text-align:right; width: 4.5em; 
               padding-right:0.25em; }}
\Css{div.likesubsubsectionToc { margin-left: 4.5em; text-indent: -2em; }}
\end{verbatim}


%%%%%%%%%%%%%%%%
\section{Floats}
%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%
\subsection{subfigure}
%%%%%%%%%%%%%%%%%%%

\<configure html4 subfigure\><<<
\Configure{subfigure}
   {\ifvmode \IgnorePar \fi \EndP
     \HCode{<div class="subfigure"><table><tr><td align="left">}}
   {\ifvmode \IgnorePar \fi \EndP  \HCode{</td></tr></table></div>}}
\Configure{subfigurecaption}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="subfigcaption">}}
   {}{}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Css{.subfigcaption {margin-top:1em;
   margin-left:1em;  text-align:center;}}
\Css{div.subfigure {text-align:center;}}
>>>

%%%%%%%%%%%%%%%%%%%%%
\subsection{Wrapfig}
%%%%%%%%%%%%%%%%%%%

\begin{itemize}
\item
  r  R  -  the right side of the text
\item
  l  L  -  the left side of the text
\item
  i  I  -  the inside edge--near the binding (if ``[twoside]'' document)
\item
  o  O  -  the outside edge--far from the binding
\end{itemize}


\<configure html4 wrapfig\><<<
\Configure{wrapfloat}
    {\ifvmode\IgnorePar\EndP
       \HCode{<div class="wrapfig-\WFplace">}%
       \def\endWrap{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}\par}%
     \else
       \HCode{<span class="wrapfig-\WFplace">}\bgroup
       |<config span caption|>%
       \def\endWrap{\egroup\HCode{</span>}}%
     \fi
    }
    {\endWrap}
\Css{.caption span.id{font-weight: bold;}}
\Css{
  .wrapfig-r,
  .wrapfig-ri,
  .wrapfig-ir,
  .wrapfig-ro,
  .wrapfig-or
  {float:right; text-align:left; 
            margin-left:auto; margin-top:0.5em;}
}
\Css{
  .wrapfig-l,
  .wrapfig-li,
  .wrapfig-il,
  .wrapfig-lo,
  .wrapfig-ol
  {float:left; text-align:left;  
            margin-right:auto; margin-top:0.5em;}
}
\Css{.wrapfig-r .caption td.content,
     .wrapfig-ri .caption td.content,
     .wrapfig-ir .caption td.content,
     .wrapfig-ro .caption td.content,
     .wrapfig-or .caption td.content,
     .wrapfig-l  .caption td.content,
     .wrapfig-li  .caption td.content,
     .wrapfig-il  .caption td.content,
     .wrapfig-lo  .caption td.content,
     .wrapfig-ol .caption td.content
     {white-space: normal; }}
\Css{.wrapfig-r .caption,
     .wrapfig-ri .caption,
     .wrapfig-ir .caption,
     .wrapfig-ro .caption,
     .wrapfig-or .caption,
     .wrapfig-l .caption,
     .wrapfig-li .caption,
     .wrapfig-il .caption,
     .wrapfig-lo .caption,
     .wrapfig-ol .caption
     {width:30\%; }}
>>>


%%%%%%%%%%%%%%%%%%%%%%%
\subsection{endfloat}
%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 endfloat\><<<
\ConfigureEnv{figure}{}{}{}{} 
>>>

\<configure html4 floatflt\><<<
\Configure{floatingfigure}
  {\HCode{<span class="floatingfigure-\ifoddpages r\else l\fi"
      style="width:\the\floatfltwidth">}%
   \bgroup \Configure{HtmlPar}{}{}{}{}%
     \ConfigureEnv{minipage}{\IgnorePar}{}{\IgnorePar}{}%
     |<config span caption|>%
  }
  {\egroup \HCode{</span>}}
\Css{.floatingfigure-r { float:right; text-align:left; 
      margin-top:0.5em; margin-bottom:0.5em; margin-left:0em;}}
\Css{.floatingfigure-l { float:left; text-align:left;
      margin-top:0.5em; margin-bottom:0.5em; margin-right:0em; }}
\Css{.caption span.id{font-weight: bold;}}  
>>>



%%%%%%%%%%%%%%%%
\section{Make Title}
%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{book-report-article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<thanks author date and\><<<
thanks author date and>>>

\<maketitle 4\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE|>%
    \HCode{<div class="maketitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\NoFonts\IgnorePar\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{div.maketitle {text-align:center;}}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; }}
|<maketitle footnote|>
>>>



\<config thanks author date and\><<<
\Configure{|<thanks author date and|>} 
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="thanks">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="author" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="date" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thank for thanks|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
\Css{div.author{white-space: nowrap;}}
>>>

\<thank for thanks\><<<
\Configure{thank}
   {|<thank mark sup|>\Link{tk-\the\c@footnote}{}} 
   {\EndLink |<thank mark end sup|>}
   {\HCode{<br />}\protect\Link{}{tk-\the\c@footnote}\protect
     \EndLink |<thank mark sup|>}
   {|<thank mark end sup|>} {}
>>>

\<thanks for thanks p\><<<
\Configure{thank}
   {|<thank mark sup|>\Link{tk-\the\c@footnote}{\ifx
        \footnote\thanks kt-\the\c@footnote\fi}} 
   {\EndLink |<thank mark end sup|>}
   {\HCode{<p>}\protect\Link{\ifx \footnote\thanks kt-\the\c@footnote
      \fi}{tk-\the\c@footnote}|<thank mark sup|>}
   {|<thank mark end sup|>\protect\EndLink}
   {\HCode{</p>}}
>>>

\<thanks for thanks EndP\><<<
\Configure{thank}
   {\HCode{<sup>}\Link{tk-\the\c@footnote}{\ifx
        \footnote\thanks kt-\the\c@footnote\fi}} 
   {\EndLink\HCode{</sup>}}
   {\protect\Link{\ifx \footnote\thanks kt-\the\c@footnote
      \fi}{tk-\the\c@footnote}\HCode{<sup>}}
   {\HCode{</sup>}\protect\EndLink}    
   {\ifvmode\IgnorePar\fi\EndP}     
>>>


\<end-thanks author date and\><<<
\Configure{|<thanks author date and|>} 
   {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
     \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
   {\EndP\egroup\RecallEndP }
   {\HCode{<div class="author">}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thanks for thanks p|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
>>>


%%%%%%%%%%%%%%%%%%%%
\subsection{RevTeX}
%%%%%%%%%%%%%%%%%%%%

\<revtex title page\><<<
\ConfigureEnv{abstract}{\:xhtml{\IgnorePar\EndP}\HCode
   {<\tbl:XV{abstract}><tr><td\Hnewline>}}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</td></tr></table>}}{}{}
\Css{.abstract p {margin-left:5\%; margin-right:5\%;}}

\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE 2|>%
    \HCode{<div  class="maketitle">}}
   {\HCode{</div>}}
   {\NoFonts\IgnorePar\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; text-align:center; }}
|<revtex maketitle footnote|>
\Configure{address}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="address">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
>>>





\<revtex end-thanks author date and\><<<
\Configure{thanks author date and}
   {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
     \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
   {\EndP\egroup\RecallEndP }
   {\HCode{<div class="author" >}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thanks for thanks p|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
>>>

\<revtex config thanks author date and\><<<
\Configure{thanks author date and}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="thanks">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="author" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\HCode{<div class="date" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thank for thanks|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
\Css{div.author{white-space: nowrap;}}
>>>







%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{TUG LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<tug proc maketitle\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE|>%
    |<global HtmlPar|>%
    \HCode{<div class="maketitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\NoFonts\IgnorePar\EndP
    \HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
>>>


\<tug boat maketitle\><<<
\Configure{maketitle}
   {\rtitlex \ifvmode \IgnorePar\fi \EndP 
    \def\textSMC##1{##1}%
    |<title for TITLE|>%
    |<global HtmlPar|>%
    \HCode{<div class="maketitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\NoFonts\IgnorePar\EndP
    \HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
>>>





%%%%%%%%%%%%%%%%%%%
\subsection{lncse}
%%%%%%%%%%%%%%%%%%%

\<configure html4 lncse\><<<
\Configure{institute}{}{}{\HCode{<br />}}
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP  |<title for TITLE|>%
    \HCode{<div class="maketitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\NoFonts\IgnorePar\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{h2.titleHead{text-align:left;}}
\:CheckOption{fn-in}\if:Option
   \Configure{thanks author date and}
   {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
     \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
   {\EndP\egroup\RecallEndP }
   {\HCode{<div class="author" >}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
\else
   \Configure{thanks author date and}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="thanks">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="author">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\HCode{<div class="date" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
\fi

>>>

%%%%%%%%%%%%%%%%%%%%
\subsection{Prosper}
%%%%%%%%%%%%%%%%%%%%


\<prosper maketitle\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP
    {\def\@title{\@Title}|<title for TITLE|>}%
    \HCode{<div class="maketitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
   {\NoFonts\IgnorePar\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
>>>




%%%%%%%%%%%%%%%%%%%
\subsection{AMS}
%%%%%%%%%%%%%%%%%%%



\<ams art,proc,book\><<<
\Configure{translators}
  {\par\IgnorePar\EndP  \HCode{<div class="translators">}\par\ShowPar}
  {\ifvmode \IgnorePar \fi\EndP \HCode{</div>}}
  {\HCode{<span class="translator">}}
  {\HCode{</span>}}
>>>

\<ams art,proc\><<<
\Css{div.translators {text-align:right; margin-bottom:0.7em;}}
>>>



\<ams art,proc,book\><<<
\Configure{keywords}
   {\par\IgnorePar\EndP \HCode{<div class="keywords">}\par\ShowPar}
   {\ifvmode \IgnorePar \fi\EndP\HCode{</div>}}
\Configure{subjclass}
   {\par\IgnorePar\HCode{<div class="subjclass">}\par\ShowPar} 
   {\ifvmode \IgnorePar \fi\EndP\HCode{</div>}}
\Configure{@maketitle}
   {\Tg<div class="submaketitle">\IgnoreIndent} 
   {\ifvmode \IgnorePar \fi\EndP\Tg</div>}
\Css{div.submaketitle{ text-align:left;  margin-top:2em;
   border-top: 1px solid black;
   border-bottom: 1px solid black; 
   margin-left:5\%;   margin-right:5\%; 
   font-size:80\%; line-height: 95\%;}}
\Css{div.submaketitle div {margin-top:0.5em; margin-bottom:0.5em; }}
\Css{div.submaketitle p { margin-top:0em; margin-bottom:0em; }}
>>>

\<ams art,proc,book\><<<
\ConfigureEnv{abstract}
   {\ifvmode \IgnorePar\fi \EndP}
   {\ifvmode \IgnorePar\fi \EndP}
   {}{}
\ConfigureList{abstract}
   {\ifvmode \IgnorePar\fi \EndP \Tg<div class="abstract">\ShowPar}
   {\ifvmode \IgnorePar\fi \EndP\Tg</div>}
   {\ShowPar\par\HCode{<span class="title">}}
   {\HCode{</span>}}
\Configure{setabstract}
   {\ifvmode \IgnorePar \fi \EndP}
   {\ifvmode \IgnorePar \fi \EndP}
\Css{div.abstract{ margin-top: 2em;  text-align:left;
   margin-right:15pt; margin-left:15pt; }}
>>>

\<ams art,proc,book\><<<
\Configure{addresses}
   {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="addresses">}\ShowPar}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{address}
   {\HCode{<span class="address-title">}}
   {\ifvmode \IgnorePar\fi \HCode{</span><span class="address">}}
   {\HCode{</span>}}
\Configure{curraddr}
   {\HCode{<span class="curraddr-title">}}
   {\ifvmode \IgnorePar\fi \HCode{</span><span class="curraddr">}}
   {\HCode{</span>}}
\Configure{email}
   {\HCode{<span class="email-title">}}
   {\ifvmode \IgnorePar\fi \HCode{</span><span class="email">}}
   {\HCode{</span>}}
\Configure{urladdr}
   {\HCode{<span class="urladdr-title">}}
   {\ifvmode \IgnorePar\fi \HCode{</span><span class="urladdr">}}
   {\HCode{</span>}}
\Css{div.addresses p {margin-top:0em; margin-bottom:0em; }}
>>>


\<ams art,proc,book\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<ams title for TITLE|>%
    \HCode{<div  class="maketitle">}%
    \ConfigureEnv{center}
       {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}
       {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}%
    |<footnote for ams title|>%
   }
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\NoFonts\IgnorePar \EndP 
    \HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar
    \bgroup \Configure{HtmlPar}{}{}{}{}}
   {\egroup \HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; text-align:center; }}
>>>




\<ams art,proc\><<<
\Configure{|<thanks author date and|>} 
   {\par\IgnorePar\EndP \HCode{<div class="thanks">}\par\ShowPar}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP
       \HCode{<div class="authors"><span class="author">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</span></div>}}
   {\par\IgnorePar\EndP \HCode{<div class="date">}\par\ShowPar}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\lowercase{\HCode{</span><span class="and">}}and~%
    \lowercase{\HCode{</span><span>}}}
   {\HCode{<br\xml:empty>}}
>>>

\<ams book\><<<
\Configure{|<thanks author date and|>} 
   {\par\IgnorePar\EndP \HCode{<div class="thanks">}\par\ShowPar}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP
       \HCode{<div class="authors"><div class="author">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div></div>}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="date">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\lowercase{\HCode{</div><div>}}}
   {\HCode{<br\xml:empty>}}
\Css{div.addresses{ margin-top:0.5em; }}
>>>

\<amsdtx maketitle\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE|>%
    \HCode{<div  class="maketitle">}}
   {\HCode{</div>}}
   {\NoFonts\HCode{<h2 class="titleHead"\a:LRdir>}}
   {\HCode{</h2>}\EndNoFonts}
\Css{div.maketitle {text-align:center;}}
>>>

%%%%%%%%%%%%%%%%
\subsection{llncs}
%%%%%%%%%%%%%%%%

\<configure html4 llncs\><<<
\Configure{email}
   {\HCode{<span class="email">}}
   {\HCode{</span>}}
\Configure{institute}
   {\HCode{<div class="institute">}}
   {\HCode{</div>}}
>>>



%%%%%%%%%%%%%%%%
\subsection{aa}
%%%%%%%%%%%%%%%%

\<configure aa 3.2/4.0t\><<<
\Configure{subtitle institute}
   {\HCode{<br\xml:empty><span class="subtitle">}}{\HCode{</span>}}
   {\HCode{<div class="institute">}}{\HCode{</div>}}
   {\Tg<sup>}{\Tg</sup>}
   {\HCode{<br\xml:empty>}}

\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div align="center" >}}
   {\HCode{</div>}}
   {\NoFonts\IgnorePar \HCode{<h2 class="maketitleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Configure{|<thanks author date and|>} {}{}
   {\HCode{<div class="author" align="center">}}{\HCode{</div>}}
   {\HCode{<div class="date" align="center">}}{\HCode{</div>}}
   {\SPAN:{and}and\EndSPAN:}
   {\HCode{<br\xml:empty>}}
\Css{div.maketitle {text-align:center;}}
>>>

\<configure aa 3.2/4.0t\><<<
\ConfigureEnv{abstract}
   {\:xhtml{\IgnorePar\EndP}\HCode {<div class="abstract">}}
   {\HCode{</div>}}{}{}

\Css{div.abstract{text-align:center;}}

\Configure{makeheadbox}
   {\HCode{<table class="makeheadbox"
       width="100\%"><tr><td><table><tr><td>}}
   {\HCode{</td></tr><tr><td>}}
   {\HCode{</td></tr><tr><td>}}
   {\HCode{</td></tr></table></td><td class="AALogo" width="10\%">}}
   {\HCode{</td></tr></table>}}
\Css{.AALogo{font-size:120\%;font-weight: bold; text-align:right;}}
>>>


%%%%%%%%%%%%%%%%
\subsection{MWC}
%%%%%%%%%%%%%%%%

\<mwcls configs\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE 2|>%
    \HCode{<div class="maketitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\NoFonts\IgnorePar\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{div.maketitle {text-align:center;}}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; }}
\:CheckOption{fn-in}\if:Option
   \Configure{thanks author date and}
   {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
     \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
   {\EndP\egroup\RecallEndP }
   {\HCode{<div class="author">}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thanks for thanks p|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}

\else
   \Configure{thanks author date and}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="thanks">}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="author" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="date" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thank for thanks|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
\Css{div.author{white-space: nowrap;}}

\fi
>>>


%%%%%%%%%%%%%%%%
\subsection{scr}
%%%%%%%%%%%%%%%%

\<configure html4 scrbook\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE 3|>%
    \HCode{<div class="maketitle">}}
   {\HCode{</div>}}
   {\IgnorePar \EndP 
    \NoFonts\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; text-align:center; }}
|<maketitle footnote|>
|<scr title page|>
>>>


\<configure html4 scrreprt\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE 3|>%%
    \HCode{<div  class="maketitle">}}
   {\HCode{</div>}}
   {\IgnorePar \EndP
    \NoFonts\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; text-align:center; }}
|<scrreprt maketitle footnote|>
|<scr title page|>
>>>


\<scr title page\><<<
\ConfigureEnv{titlepage}
   {\bgroup 
      \ifvmode \IgnorePar\fi \EndP
      \HCode{<div class="titlepage">}%
      \ConfigureEnv{center}{}{}{}{}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}%
    \egroup}
   {} {}
\Configure{dedication}
   {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="dedication" >}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
\Css{div.dedication {text-align:center;}}  
>>>


%%%%%%%%%%%%%%%%
\subsection{ACM}
%%%%%%%%%%%%%%%%


\<configure html4 acm-proc-article-sp\><<<
\Configure{toappear}
   {\ifvmode \IgnorePar \fi  \EndP  \HCode{<div class="toappear">}}
   {\ifvmode \IgnorePar \fi  \EndP  \HCode{</div>}}
\Configure{boilerplate}
   {\HCode{<div class="boilerplate">}} {\HCode{</div>}}
\Configure{conf}
   {\HCode{<div class="conf">}} {\HCode{</div>}}
\Configure{confinfo}
   {\HCode{<div class="confinfo">}} {\HCode{</div>}}
\Configure{copyrightetc}
   {\HCode{<div class="copyrightetc">}} {\HCode{</div>}}
>>>

\<configure html4 acm-proc-article-sp\><<<
\Configure{thanks}
   {\IgnorePar\HCode{<div class="thanks">}\IgnorePar}
   {\ifvmode \IgnorePar \fi  \EndP  \HCode{</div>}\IgnoreIndent}
\Css{div.thanks{text-align:left; margin-top:1em; margin-bottom:1em;}}
\Configure{subtitle}
   {\ifvmode \IgnorePar \fi  \EndP  
    \HCode{<h4 class="subtitleHead"\a:LRdir>}\IgnorePar}
   {\ifvmode \IgnorePar \fi  \EndP  \HCode{</h4>}\IgnoreIndent}
\Css{.subtitleHead{text-align:center;}}
\Configure{title}
   {\ifvmode \IgnorePar \fi  \EndP  
    \HCode{<h3 class="titleHead"\a:LRdir>}\IgnorePar}
   {\ifvmode \IgnorePar \fi  \EndP  \HCode{</h3>}\IgnoreIndent}
\Css{.titleHead{text-align:center;}}
\Configure{email}{\Link[mailto:#1]{}{}\IgnorePar\o:email:{#1}\EndLink}
\Configure{@TITLE}{\let\titlenote=\:gobble}
\Configure{maketitle}
  {\ifvmode \IgnorePar\fi \EndP |<title for TITLE|>}
  {}
\Configure{author}
   {\ifvmode \IgnorePar \fi  \EndP 
    \HCode{<div class="author">}\ShowPar\par}
   {\ifvmode \IgnorePar \fi  \EndP  \HCode{</div>}\IgnoreIndent}
\Css{div.author{text-align:center; margin-top:1em; margin-bottom:1em;}}
>>>


%%%%%%%%%%%%%%%%
\subsection{APA}
%%%%%%%%%%%%%%%%

\<apa maketitle\><<<
\Configure{affil}
   {\HCode{<div class="affil">}\bgroup
    |<apa maketitle br cr|>%
   }
   {\egroup \HCode{</div>}}
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE|>%
    \HCode{<div class="maketitle">}\bgroup
    |<apa maketitle no-br cr|>%
   }
   {\egroup\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\apa:title} {\apa:endtitle}
\def\apa:title{\NoFonts\IgnorePar
   \HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar
   \global\let\apa:title=\empty   }
\def\apa:endtitle{\HCode{</h2>}\IgnoreIndent\EndNoFonts
   \global\let\apa:endtitle=\empty   }
>>>


\<apa maketitle br cr\><<<
\Configure{centercr}
   {\ht:special{t4ht=<br />}}
   {\ht:everypar{\ht:everypar{\HtmlPar}}}
>>>

\<apa maketitle no-br cr\><<<
\Configure{centercr}
   {}  {\ht:everypar{\ht:everypar{\HtmlPar}}}%
>>>


%%%%%%%%%%%%%%%%
\subsection{Shared}
%%%%%%%%%%%%%%%%



\<title for TITLE\><<<
{\Configure{maketitle}{}{}{}{}%
\a:NoSection |<disable latex fonts|>\let\thanks|=\:gobble
\let\\|=\space \def\TeX{TeX}%
\def\gobble:font##1##2{##2}\:TITLE: \no:fonts
\def\footnotemark[##1]{}%
\Tag{TITLE+}{\@title}}
>>>

Old latex files need \verb'\no:fonts', but not new ones.---wrong, as far as writing to toc in 0.0?

\<ams title for TITLE\><<<
{\Configure{maketitle}{}{}{}{}%
\a:NoSection |<disable latex fonts|>\let\thanks|=\:gobble
\let\\|=\space \def\TeX{TeX}%
\def\gobble:font##1##2{##2}\:TITLE: \no:fonts
\def\footnotemark[##1]{}%
\Tag{TITLE+}{\shorttitle}}
>>>



\<disable latex fonts\><<<
\let\leavevmode|=\empty \let\not@math@alphabet|=\:gobbleII
\def\text@command##1{##1}\let\selectfont|=\empty
\def\check@icl ##1\check@icr{}%
>>>

\<title for TITLE 2\><<<
{\Configure{maketitle}{}{}{}{}%
\a:NoSection \let\leavevmode\empty \let\not@math@alphabet\:gobbleII
\def\text@command##1{##1}\let\selectfont\empty
\def\check@icl ##1\check@icr{}%
\let\thanks\:gobble
\let\\\space \def\TeX{TeX}%
\def\gobble:font##1##2{##2}\:TITLE: \no:fonts
\def\footnotemark[##1]{}%
\def\a:ttl##1##2//{##1//}%
\let\large=\empty
\let \bf=\empty
\let \centering=\empty
\def \ignorespaces##1\vskip##2//{##1}%
\Tag{TITLE+}{\@title//}%
}%
>>>

\<title for TITLE 3\><<<
{\Configure{maketitle}{}{}{}{}%
\a:NoSection \let\leavevmode\empty \let\not@math@alphabet\:gobbleII
\def\text@command##1{##1}\let\selectfont\empty
\def\check@icl ##1\check@icr{}%
\let\thanks\:gobble
\let\\\space \def\TeX{TeX}%
\def\gobble:font##1##2{##2}\:TITLE: \no:fonts
\Tag{TITLE+}{\@title}}%
>>>



%%%%%%%%%%%%%%%%
\section{Abstracts}
%%%%%%%%%%%%%%%%

\<apa abstract\><<<
\Configure{abstract}
   {\HCode{<div class="abstract">}\bgroup
    |<apa maketitle br cr|>%
   }
   {\egroup \HCode{</div>}}
\Css{div.abstract{text-align:left; margin-left:10\%; margin-top:1em; }}
>>>





%%%%%%%%%%%%%%%%
\section{Math}
%%%%%%%%%%%%%%%%




Don't put \verb'\:xhtml{\IgnorePar\EndP}' on the following; \verb'\PicDisplay'
should handle it.



\<configure html4-math latex\><<<
\Configure{[]} 
   {\bgroup
       \protect\nested:math
       \PicDisplay 
       $$\everymath{}\everydisplay{}}
   {$$\EndPicDisplay \egroup |<try inline par|>}
\Configure{()}{\bgroup
      \protect\nested:math
      \protect\PicMath
       $}
   {$ \protect\EndPicMath \egroup}
\def\nested:math{|<nested pic math|>}
>>>

The above should be sensitive to cases like the following one.

\begin{verbatim}
\[ \parbox[t]{2in} { \[.\] }\]
\end{verbatim}


\<nested pic math\><<<
\def\[{\bgroup \def\]{$$\egroup}$$}%
\def\({\bgroup \def\){$\egroup}$}%
>>>




\<configure html4-math latex\><<<
\Configure{@TITLE}{\Configure{()}{$}{$}}
>>>

\<configure html4-math th4\><<<
\:CheckOption{th4}\if:Option
   \Configure{[]} 
      {\PicDisplay $$\everymath{}\everydisplay{}}
      {$$\EndPicDisplay |<try inline par|>}
   \Configure{()}{\PicMath$}{$\EndPicMath}
\fi
>>>




\<picmath plain,latex\><<<
\Configure{$$}{\:xhtml{\EndP}\PicDisplay}{\EndPicDisplay}      
   {\everymath{}\everydisplay{}}  
|<pic math formulas|>
|<pic math + tex formulas|>
>>>

\<pic math formulas\><<<
\:CheckOption{pic-m} \if:Option
   \Configure{$}{\PicMath}{\EndPicMath}{}
\else
   \Log:Note{for pictorial $...$ environments,
        use the command line option `pic-m' (not recommended!!)}
\fi
>>>

\<pic math + tex formulas\><<<
\:CheckOption{pic-m+} \if:Option
   \def\Alt:Math#1${\tmp:toks{$#1$}%
      \Picture*[|<pic math alt|>]{ align="middle"}$#1$\EndPicture$}
   \def\Alt:Display#1$${\tmp:toks{$$#1$$}%
      \Picture*[|<pic math alt|>]{}$$#1$$\EndPicture$$}
   \def\Alt:lMath#1\){\tmp:toks{\(#1\)}%
      \Picture*[|<pic math alt|>]{ align="middle"}$#1$\EndPicture}
   \def\Alt:lDisplay#1\]{\tmp:toks{\[#1\]}%
      \Picture*[|<pic math alt|>]{}$$#1$$\EndPicture}
   \Configure{$}{}{}{\expandafter\Alt:Math}
   \Configure{$$}{}{}{\expandafter\Alt:Display}
%   \Configure{()}{\Alt:lMath}{}
%   \Configure{[]}{\Alt:lDisplay}{}
\else
   \Log:Note{for pictorial $...$ and
       $$...$$ environments with latex alt,
       use the command line option `pic-m+' (not safe!!)}
\fi
>>>


\<configure html4 latex\><<<
\def\PictureAltex{\afterassignment\set:Img\tmp:toks}
\def\set:Img{\Picture*[|<pic math alt|>]{}\the\tmp:toks\EndPicture}
>>>

\<pic math alt\><<<
\special{t4ht*=&&amp;}%
\special{t4ht*="&quot;}%
\special{t4ht*=<&lt;}%
\special{t4ht*=>&gt;}%
   \HCode{\the\tmp:toks}%
\special{t4ht*=}%
>>>




%%%%%%%%%%%%%%%%%%
\section{Cross References}
%%%%%%%%%%%%%%%%%%

\<configure html4 latex\><<<
\Configure{pageref} 
   {\HCode{<span class="pageref">}} 
   {\HCode{</span>}} 
   {\S} 
>>>


%%%%%%%%%%%%%%%%%%
\section{Theorems}
%%%%%%%%%%%%%%%%%%


\<configure html4 latex\><<<
\Configure{newtheorem}
   {\ifvmode\IgnorePar\fi\EndP
     \HCode{<div class="newtheorem">}\par\noindent\HCode{<span
           class="head">}}
   {\HCode{</span>}}
   {\:xhtml{\EndP}\IgnorePar\HCode{</div>}\ShowPar\par}
\Css{div.newtheorem { margin-bottom: 2em; margin-top: 2em;}}
>>>

\<acm proof\><<<
\Configure{proof}
   {\ifvmode\IgnorePar\fi\EndP
     \HCode{<div class="proof">}\par\noindent\HCode{<span
           class="head">}}
   {\HCode{</span>}}
   {\:xhtml{\EndP}\IgnorePar\HCode{</div>}\ShowPar\par}
\Css{div.proof { margin-bottom: 2em; margin-top: 2em;}}
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Features}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%
\section{Javascript: Pop-ups On Mouse Over}
%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%
\subsection{Background}
%%%%%%%%%%%%%%%%


There are 6 supporting dvi variations of the 
`CopyTo to-file op group'
 dvi command:

\begin{description}
\item[From]    Start copying (at current address)
\item[Until]   End copying   (at current address)
\item[Skip]    Start skipping (from current address)
\item[Cont]    End skipping (at current-address)
\item[Addr integer-label] Associate current 
      address with the integer-label of the given group
\item[Set integer-label]   
     Replace the `current address' in the following Skip/Cont (and
     From/Until ?) commands with the address associated to the
     integer-label of the given group  by an Addr command
\end{description}

The code
\begin{verbatim}
B0
 \ht:special {t4ht@DCopyTo: \jobname-js.tex From bib }
B1
 \ht:special {t4ht@DCopyTo: \jobname-js.tex Skip bib }
B2
 \ht:special {t4ht@DCopyTo: \jobname-js.tex Addr1 bib }
B3
 \ht:special {t4ht@DCopyTo: \jobname-js.tex Addr2 bib }
B4
 \ht:special {t4ht@DCopyTo: \jobname-js.tex Set1 bib }
 \ht:special {t4ht@DCopyTo: \jobname-js.tex Cont bib }
 \ht:special {t4ht@DCopyTo: \jobname-js.tex Set2 bib }
 \ht:special {t4ht@DCopyTo: \jobname-js.tex Skip bib }
B5
\ht:special {t4ht@DCopyTo: \jobname-js.tex Until bib }
B6
\end{verbatim}

produces the string ` B1  B3 '.


%%%%%%%%%%%%%%%%
\subsection{End Points of the Jobname-js.tex File}
%%%%%%%%%%%%%%%%



\<start js\><<<
\js:on
>>>



\<onmouseover utilities\><<<
\def\js:on{%
  \global\let\js:on=\relax
  \HCode{<!--}%
  |<js From js|>%
  \HCode{\string\def\string\jstoday{\:today} }%
  \HCode{\string\input\space onmouseover.4ht }%
  \:CheckOption{trace-onmo} \if:Option
      \HCode{<js trace="on">}%
  \else
     \Log:Note{for mouseover tracing of
          compilation, use the command line option `trace-onmo'}
      \HCode{<js>}%
  \fi
  |<js Until js|>%
  \HCode{-->}%
  |<end js|>}
>>>


\<end js\><<<
\csname a:mouseover-Needs\endcsname
\Css{.js {text-indent:0; background-color:aqua; color:black;
   border:solid 1px black;  margin:2pt; width:99\%;}}
\Css{.js p, .|<js p.bibitem css|>, |<js p.bibitem-p css|> {text-indent:0;
   background-color:aqua; color:black; margin:2pt;}}
\AtEndDocument{{\HCode{<!--}%
  |<js From js|>%
  \HCode{</js>}%
  |<js Until js|>%
  \HCode{-->}}}%
>>>


Was \verb'\Css{.js p {margin:0; text-indent:0;}}' but javascript under
netscape had problems dealing with 0 left margins.  




\<js From js\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex From js }%
>>>

\<js Until js\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Until js }%
>>>





%%%%%%%%%%%%%%%%
\subsection{Configuration Commands}
%%%%%%%%%%%%%%%%




\<onmouseover utilities\><<<
\HAssign\MO:script = 0
\NewConfigure{mouseover-script}[1]{\bgroup
  \gHAdvance\MO:script by 1
  \expandafter\NextFile \expandafter{\jobname\MO:script.tmp}%
  \HPage{}\IgnorePar |<js From var|>%
    \HCode{<\if !#1!\else mouseover-script\fi>#1\if !#1!\else =\fi}%
    \everyvbox{\IgnorePar\everyvbox{}\aftergroup\end:movar}%
    \def\end:movar{\everyvbox{}\HCode
                   {</\if !#1!\else mouseover-script\fi>}%
        |<js Until var|>\EndHPage{}%
        \egroup}%
    \vbox}
>>>

\<ol-hauto mouseover-script\><<<
\Configure {mouseover-script}{}{\HCode{ol\string_hauto = 1;}}%
>>>


\<js From var\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex From var }%
>>>

\<js Until var\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Until var }%
>>>




\<onmouseover utilities\><<<
\expandafter\def\csname c:mouseover-vars:\endcsname#1#2{%
   \expandafter\def\csname mouseover-#1-init\endcsname##1{}%
   \def\:tempc##1{\expandafter\append:defI\csname
      mouseover-#1-init\endcsname{tex4ht.##1=tex4ht.\expandafter\jsHash
      \expandafter{\expandafter v####1.##1};}}%
   \Mo:vars#2,<>}
\def\Mo:vars#1,#2<>{%
   \if !#1!\else
      \expandafter\def\csname mo#1\endcsname##1{%
          \HCode{<!--}%
          \ht:special{t4ht@DCopyTo: \jobname-js.tex From #1 }%
          \HCode{<#1-var>\jsHash{v##1.#1}=}%
          \ht:special{t4ht@DCopyTo: \jobname-js.tex Skip #1 }%
          \HCode{-->}%
          \ht:special{t4ht@DCopyTo: \jobname-js.tex Cont #1 }%
      }%
      \expandafter\def\csname endmo#1\endcsname{%
          \ht:special{t4ht@DCopyTo: \jobname-js.tex Skip #1 }%
          \HCode{<!--}%
          \ht:special{t4ht@DCopyTo: \jobname-js.tex Cont #1 }%
          \HCode{</#1-var>}%
          \ht:special{t4ht@DCopyTo: \jobname-js.tex Until #1 }%
          \HCode{-->}%
      }%
      \:tempc{#1}%
   \fi
   \if !#2!\else \expand:after{\Mo:vars#2<>}\fi
}
>>>




%%%%%%%%%%%%%%%%
\subsection{Footnotes Contributions}
%%%%%%%%%%%%%%%%




\<js From fn\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex From fn }%
>>>

\<js Skip fn\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Skip fn }%
>>>

\<js Cont fn\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Cont fn }%
>>>

\<js Until fn\><<<
\ht:special {t4ht@DCopyTo: \jobname-js.tex Until fn }%
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Overlib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%

\Link[http://www.egroups.com/group/overlib]{}{}egroup for overlib\EndLink,
\Link[http://www.bosrup.com/web/overlib/]{}{}home over overlib\EndLink

           
\<overDiv\><<<
\HCode{<div id="overDiv"
         style="position:absolute; 
                      visibility:hidden; z-index:1000;"></div>
         |<overlib src|>}%
>>>


\<onmouseover @HEAD\><<<
\Configure{@HEAD}
  {\HCode{%|% natural place for <overlib src>, but netscape 4.7...|%
     <script type="text/javascript" 
                 src="\jobname-js.js"></script>\Hnewline}}
|<onmouseover utilities|>
\:CheckOption{info} \if:Option
   |<overlib info|>
\fi
>>>


\<overlib info\><<<
\Log:Note{Option `mouseover' is powered
  by the overlib.js utility of Erik Bosrup
  (http://www.bosrup.com/web/overlib/).}
\immediate\write-1{}
\immediate\write-1{The option requires two compilations of
  the source file.}
\immediate\write-1{}
\immediate\write-1{Use \string\Configure
  {mouseover-XXX}{...} to introduce arguments into the overlib
  function call, and code into a preceding script. XXX stands for
  `cite' or `footnote', the default body is at tex4ht.body,
  and the default caption at tex4ht.caption. An empty parameter
  requests no  sensitivity of mouse over the specified type of entries.}
\immediate\write-1{}
\immediate\write-1{The variant \string\Configure
  {mouseover-XXX}[labels]{...} of the above command restricts the
  outcome just to the listed labels (i.e., the values listed
  in tex4ht.caption).}
\immediate\write-1{}
\immediate\write-1{The \string\Configure{mouseover-script }{variable-name}
  {javascript-code} command may be used to introduce code into the 
  javascript script, as a content of a global variable when a name is
  given and as a bare code when the name is not given.  To be referenced,
  the name must be prefixed by ``tex4ht.'.}
\immediate\write-1{}
\immediate\write-1{The \string\Configure{mouseover-vars}{XXX}
  {variable-list} command introduces local variables, to be referenced
  with the prefix ``tex4ht.' on their names. In addition, for each 
  variable YYY  it introduces a construct \string\moYYY
  {label}...\string\endmoYYY\space for selecting a value for the variable
  at the specified label.}
\immediate\write-1{}
\immediate\write-1{Example:} 
\immediate\write-1{
  \string\Configure{mouseover-script}{var}{\HCode{<hr />}}}
\immediate\write-1{|<mouseover cite config|>} 
\immediate\write-1{|<mouseover cite css|>.}
\immediate\write-1{
  \string\moAuthor{bb}A name\string\endmoAuthor }
\immediate\write-1{}
\immediate\write-1{The compilation indirectly invokes the 
  command 'xhtex \string\jobname-js'.  An alternative format for
  the command can be requested within a configuration of
  the form \string\Configure{mouseover-Needs}{\string\Needs{"..."}}. 
  The default setting is due to 
  \string\Configure{mouseover-Needs}{\string\Needs{"xhtex 
  \string\jobname-js"}}}
\immediate\write-1{In case \string\Configure{mouseover-Needs} is
  undefined, introduce the instruction
  \string\NewConfigure{mouseover-Needs}{1} before that command.
}
>>>

\<onmouseover utilities\><<<
\expandafter\ifx \csname mouseover-Needs\endcsname\relax
  \NewConfigure{mouseover-Needs}{1}
  \Configure{mouseover-Needs}{\Needs{"xhtex \jobname-js"}}
\fi
\def\mo:args#1#2#3{\expandafter 
  \ifx \csname a:mouseover-#1-#2\endcsname\empty\else
  \expandafter \ifx \csname a:mouseover-#1-#2\endcsname\relax
    |<global mouseover-type|>\else
    |<private mouseover-type|>\fi\fi}
>>>

\<global mouseover-type\><<<
\expandafter \ifx \csname a:mouseover-#1\endcsname\empty
      \else
    \Hnewline
    onmouseover="tex4ht.body=tex4ht.#3; tex4ht.caption='#2';
            |<init mouseover vars|>%
              return overlib(\csname a:mouseover-#1\endcsname);"
   \Hnewline    onmouseout="nd();"\Hnewline\fi
>>>

\<private mouseover-type\><<<
\Hnewline
 onmouseover="tex4ht.body=tex4ht.#3; tex4ht.caption='#2';
            |<init mouseover vars|>%
            return overlib(\csname a:mouseover-#1-#2\endcsname);"
\Hnewline onmouseout="nd();"\Hnewline
>>>

\<init mouseover vars\><<<
\expandafter\ifx \csname mouseover-#1-init\endcsname\relax
            \else \csname mouseover-#1-init\endcsname{#2}\fi
>>>



%%%%%%%%%%%%%%%%
\subsection{Boundary Cases for mouseover}
%%%%%%%%%%%%%%%%




\<DOCTYPE in PROLOG under mouseover\><<<
\:CheckOption{xhtml} \if:Option  \else
   \:CheckOption{DOCTYPE} \if:Option 
    \Log:Note{to request a DOCTYPE declaration
          use the command line option `DOCTYPE'}   
   \else
      \edef\Preamble{\Preamble,no-DOCTYPE}
   \fi
\fi
>>>





\<overlib src\><<<
<script language="JavaScript" src="overlib.js"
      type="text/javascript" ></script>\Hnewline
<!--http://www.bosrup.com/web/overlib/ (Erik Bosrup)-->%
>>>



\begin{itemize}
\item 
\begin{verbatim}
THE DOCUMENT DECLARATION GIVES TROUBLE IN CONNECTION WITH OVERLIB.  It
would be hardly noticeable in small pages, requiring no scrolling -
the only symptom then is that the browser suddenly warns about errors
- those ones in overlib, and as a matter of fact, apparently in the
part of the script that ensures compatibility with Netscape.  However,
in a large page, the pop-ups seem to disappear - making them STICKY
and scrolling up, one can find them in the upper right corner.  One
has only to remove <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> however, to
put an end to the browser complaints and get back the pop-ups into
their proper places.  \end{verbatim}

\item
\begin{verbatim}
 I
have just found a reference to the trouble, together with a very easy
way to go round it: it is enough to add <?xml version="1.1"?> BEFORE
the Document declaration. I have checked it, and it is all right -
both for Explorer6 and Netscape 4.7 and 6.

By the way: for the Mouseover option to work under Netscape4.x, the call to
<script type="text/JavaScript" src="overlib.js"></script>
<!--http://www.bosrup.com/web/overlib/ (Erik Bosrup)-->
MUST appear in the <BODY> section, NOT in the <HEAD>: absurd, but true (it
is reported in Overlib's page).
\end{verbatim}

\end{itemize}


%%%%%%%%%%%%%%%%
\subsection{The Configuration File onmouseover.4ht}
%%%%%%%%%%%%%%%%




\<onmouseover.4ht\><<<
\ifnum\the\catcode`\%=14\else\expandafter\edef\csname
  \string:RestoreCatcodes\endcsname{\catcode`\%|=\the
  \catcode`\%}\catcode`\%|=14\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% onmouseover.4ht                       |version %
% Copyright (C) |CopyYear.2001.       Eitan M. Gurari         %
|<TeX4ht copyright|>

\hbadness=10000 \vbadness=10000 \hfuzz=99in \vfuzz=\hfuzz
\overfullrule=0pt   \let\makefootline\empty
\special{t4ht.js}

\newcount\CodeNumber
\def\NoSpecials#1#2#3{\edef\temp{\the\CodeNumber}%
     \global\CodeNumber=#3
     \def\next{\catcode\CodeNumber=#1
       \ifnum \CodeNumber=#2 \let\next=\relax \fi
       \global\advance\CodeNumber by -1 \next}\next
     \global\CodeNumber=\temp  }%

\expandafter\def\csname js js\endcsname{\egroup  \special{t4ht@@}%
   tex4ht=new Array() ; //\jstoday}
\expandafter\def\csname js js trace="on"\endcsname{\global
   \let\TagTrace=\empty \csname js js\endcsname}
\expandafter\def\csname js /js\endcsname{\egroup \special{t4ht@@}%
   \csname bye\endcsname\endinput}

|<hash for onmouseover.4ht|>
|<escape backslashes|>
\catcode`\<=13
\def\jselement#1{\expandafter\def\csname js #1\endcsname##1=##2</#1>{%
   \hfill\break tex4ht.\jsHash{##1}=\hbox{"##2";}\egroup}}
|<escape double quotes|>
\expandafter\def\csname js \endcsname#1</>{%
   \hfill\break \hbox{#1}\egroup}

\def<#1>{\bgroup
   \expandafter \ifx \csname js #1\endcsname \relax \jselement{#1}\fi
   \def<##1>{\TagTrace{\def\x{##1}\def\y####1:->{}%
      \immediate\write16{...\string<\expandafter\y\meaning\x>}}%
       \string<\scan ##1"<>>}%
   \NoSpecials{12}{0}{255}\NoSpecials{11}{65}{90}\NoSpecials{11}{97}{122}%
   \catcode`\ =10 \catcode`\^^M=10 \catcode`\^^I=10 \catcode`\<=13
   \catcode`\\=13
   \tt \csname js #1\endcsname}
\def\TagTrace#1{}
\catcode`\&=12 \catcode`\#=12
\endinput
>>>   

\<escape double quotes\><<<
\def\scan#1"#2<>{#1\if !#2!\expandafter\done\else
   \string\"\expandafter\scan
\fi#2<>}
\def\done#1>{}
>>>

\<escape backslashes\><<<
\catcode`/=0 \catcode`\\=13
/def\{/string\/string\}
/catcode`/\=0 \catcode`\/=12
>>>



\<onmouseover utilities\><<<
\def\jsHash#1{\jsHash:a #1<>}
\def\jsHash:a#1#2<>{%
   \ifnum `#1<`0 JjV\else
   \ifnum `#1>`z jJv\else
   \ifnum `#1>`9
      \ifnum `#1<`A jJV\else
      \ifnum `#1>`Z
         \ifnum `#1<`a jVV\else #1\fi
      \else #1\fi\fi
   \else #1\fi\fi\fi
   \if !#2!\expandafter\done:hash
                       \else\expandafter\jsHash:a\fi#2<>}
\def\done:hash#1>{}
>>>

\<hash for onmouseover.4ht\><<<
\def\jsHash#1{\jsHasha #1<>}
\def\jsHasha#1#2<>{%
   \ifnum `#1<`0 JjV\else
   \ifnum `#1>`z jJv\else
   \ifnum `#1>`9
      \ifnum `#1<`A jJV\else
      \ifnum `#1>`Z
         \ifnum `#1<`a jVV\else #1\fi
      \else #1\fi\fi
   \else #1\fi\fi\fi
   \if !#2!\expandafter\done
                       \else\expandafter\jsHasha\fi#2<>}
>>>



\<onmouseover utilities\><<<
\expandafter\Odef\csname c:mouseover-?:\endcsname[#1]#2{%
  \def\:temp{#2}%
  \if !#1!\expandafter\let\csname a:mouseover-\:tempb\endcsname=\:temp
  \else \om:type#1,|<par del|>\fi}
\def\om:type#1,#2|<par del|>{%
  \if !#1!\else\expandafter
     \let\csname a:mouseover-\:tempb-#1\endcsname=\:temp\fi
  \ifx !#2!\else \def\:tempa{\om:type#2|<par del|>}\expandafter\:tempa \fi
}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Formats}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%
\section{latex.ltx}
%%%%%%%%%%%%%%%%%%%%%

\<configure html4 latex\><<<
|<0,32,4 plain,latex|>
|<32,4 plain,latex|>
|<4 plain,latex|>
|<32,4 latex|>
|<4 latex|>
|<0,32,4 latex|>
|<latex lttab|>
|<latex ltbibl|>
|<latex ltoutenc|>
|<latex ltfloat (footnotes)|>
\:CheckOption{javahelp} \if:Option 
   \input javahelp.4ht
\else
   \Log:Note{for a JavaHelp output format,
         use the command line option `javahelp'}
\fi
>>>

\<latex lttab\><<<
\Configure{extracolsep}
   {~\tmp:dim=#1\relax\ifdim \tmp:dim>1em ~\fi}
>>>


                                              %%%%%%%%%%%%%%%%%%%%%%%
                                              % ltplain.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{obeylines}

\<4 plain,latex\><<<
\Configure{obeylines}
   {\ifvmode \:xhtml{\IgnorePar\EndP}\IgnoreIndent
       \HCode{<div class="obeylines-v">}%
       \gdef\ob:ln{\ht:special{t4ht=</div>}}%
    \else
       \SaveEndP \HCode{<span class="obeylines-h">}%
       \gdef\ob:ln{\ht:special{t4ht=</span>}\RecallEndP}%
    \fi
   }
   {\EndP\ob:ln\ShowPar} 
   {\hbox{\HCode{<br\xml:empty>}}}
\Css{.obeylines-h,.obeylines-v {white-space: nowrap; }}
\Css{div.obeylines-v p { margin-top:0; margin-bottom:0; }}
>>>
                                              %%%%%%%%%%%%%%%%%%%%%%%
                                              % ltspace.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{Spaces}

\<32,4 latex\><<<
\Configure{hspace}{}{}{\:nbsp}
>>>

                                              %%%%%%%%%%%%%%%%%%%%%%%
                                              % ltlogos.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{Logos}
\<4 plain\><<<
|</TeX for 4.0t|>
>>>


\</TeX for 4.0t\><<<
\def\TeX{\HCode{<span class="TEX">}T\HCode{<span\Hnewline
     class="E">}E\HCode{</span>}X\HCode{</span>}}
\Css{span.TEX {letter-spacing: -0.125em; }}
\Css{span.TEX span.E{ position:relative;top:0.5ex;left:-0.0417em;}} 
\Css{a span.TEX span.E {text-decoration: none; }}
>>>

\verb'\def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@}'




                                              %%%%%%%%%%%%%%%%%%%%%%%
                                              % ltfssini.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{tt Font}

\<0,32,4 latex\><<<
\ifx \ttfamily\:UnDef \else \Configure{tt}{\ttfamily} \fi
>>>

                                              %%%%%%%%%%%%%%%%%%%%%%%
                                              % ltxref.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{Cross References}
\<32,4 latex\><<<
\Configure{ref}
   {\Link}
   {\ifx \RefArg\:UnDef\else
      \Tg<!--tex4ht:ref: \RefArg\space-->\fi\EndLink}
   {}
>>>

The comments lets us relate the automatically created label with that
offered by the user. The space is needed for cases that the label ends with a dash.


\begin{itemize}
\item
 LaTeX allows labels almost everywhere.
\item
Different labels may be associated to a common object in LaTex.
\item
 There are almost no restrictions on the kind of characters
    allowed within the labels of LaTeX.
\end{itemize}







                                              %%%%%%%%%%%%%%%%%%%%%%%
                                              % ltmiscen.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{Miscellaneous Environments}
\<32,4 plain,latex\><<<
\def\end:TTT{\ifvmode\IgnorePar\fi \EndP\HCode{</td></tr></table>}} 
>>>

\<4 latex\><<<
\append:def\center{\par}
\ConfigureEnv{center}
  {\ifvmode \IgnorePar\fi \EndP}{|<try env inline par|>}
  {\EndP\IgnorePar
   \HCode{<div class="center"\Hnewline>}\ShowPar\endgraf}
  {\IgnorePar\EndP\HCode{</div>}}
\ConfigureEnv{flushleft}
  {\ifvmode \IgnorePar\fi \EndP}{|<try env inline par|>}
  {\EndP\IgnorePar 
   \HCode{<div class="flushleft"\Hnewline>}\ShowPar\endgraf}
  {\IgnorePar\EndP\HCode{</div>}}
\ConfigureEnv{flushright}
  {\ifvmode \IgnorePar\fi \EndP}{|<try env inline par|>}
  {\EndP\IgnorePar
   \HCode{<div class="flushright"\Hnewline>}\ShowPar\endgraf}
  {\IgnorePar\EndP\HCode{</div>}}
\Css{div.center,
     div.center div.center {text-align: center;
   margin-left:1em; margin-right:1em;}}
\Css{div.center div {text-align: left;}}
\Css{div.flushright, 
     div.flushright div.flushright {text-align: right;}}
\Css{div.flushright div {text-align: left;}}
\Css{div.flushleft {text-align: left;}}
>>>

\<32,4 latex\><<<
\ConfigureEnv{verbatim}{\env:verb{verbatim}}{\endenv:verb}{}{}
\ConfigureEnv{verbatim*}{\env:verb{verbatim}}{\endenv:verb}{}{}
\def\env:verb#1{\ifinner\else \vfill\break\fi
  \IgnorePar\EndP  \HAssign\Verb:N=0
  \HCode{<\tbl:XV{#1}><tr  class="#1"><td\Hnewline 
  class="#1">}\HCode{<div class="#1"\a:LRdir>}\EndNoFonts}
\def\endenv:verb{\NoFonts
  \EndP \ht:special{t4ht=</div>}\end:TTT |<try inline par|>}
\def\start:fenv#1{\:xhtml{\IgnorePar\EndP}\HCode{<table
    \Hnewline width="100\%"
    \:zbsp{flush#1}><tr><td><div align="#1"\Hnewline\a:LRdir>}}
\def\end:fenv{\IgnorePar\HCode{</div>}\end:TTT\IgnorePar}
\HAssign\Verb:N=0
\Css{div.verbatim {font-family: monospace; white-space: nowrap; }}
>>>

\<configure html4 latex\><<<
\Configure{verbatim}
   {\HAdvance\Verb:N by 1 \ifnum \Verb:N>1 \:nbsp \HCode{<br />}\fi}
   {\a:sp}
\Configure{verb}
   {\HCode{<span class="verb"\a:LRdir>}}
   {\HCode{</span>}}
>>>



The \verb+\:nbsp+ above is because lynx collapses 
consecutive \verb+<br />+ tags.




\<configure html4 latex\><<<
\Configure{centercr}{\ht:special{t4ht=<br\xml:empty>}}
   {\ht:everypar{\ht:everypar{\HtmlPar}}}
>>>


                                              % ltmath.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{Math Setup}

\<configure html4-math latex\><<<
\:CheckOption{pic-equation}\if:Option 
%   \ConfigureEnv{equation}
%     {\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
%     \HCode{<center class="equation"><table class="equation"\Hnewline
%      border="0" cellpadding="0" cellspacing="15"><tr><td>}}
%     {\:xhtml{\IgnorePar\EndP}%
%      \HCode{</td></tr></table></center>}\IgnorePar
%      \ifmmode\else\par\fi}
%     {}{} 
   \Configure{equation}
     {\:xhtml{\ifvmode \IgnorePar\fi\EndP}%
              \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
      \Configure{$$}{\PicDisplay}{\EndPicDisplay}
        {\everymath{}\everydisplay{}}
     }
     {\ifvmode \IgnorePar\fi\HCode{</td><td width="5\%">}}
     {\end:TTT |<try inline par|>} |% was: \IgnorePar\par|%
\else
%   \ConfigureEnv{equation}
%     {\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
%      \HCode{<center class="equation"><table class="equation"\Hnewline
%        border="0" cellpadding="0" cellspacing="15"><tr><td>}%
%     }
%     {\:xhtml{\IgnorePar\EndP}%
%      \HCode{</td></tr></table></center>}\IgnorePar
%      \ifmmode\else\par\fi}
%     {}{} 
   \Configure{equation}
     {\ifmmode\else\par \IgnorePar\fi \EndP
              \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
     }
     {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td width="5\%">}}
     {\end:TTT\ifmmode\else |<try inline par|>\fi}
\fi
\Css{.equation td{text-align:center; }}
\Css{td.equation { margin-top:1em; margin-bottom:1em; }   }
>>>

\<configure html4-math latex\><<<
|<pic plain/latex math 4.0t|>               
\:CheckOption{pic-eqnarray}  \if:Option      
   |<PIC eqnarray Config|>
\else |<TABLE eqnarray Config 4.0t|>\fi
>>>


\<PIC eqnarray Config\><<<
\ConfigureEnv{eqnarray}
     {\IgnorePar\EndP\Tg<div class="pic-eqnarray">\Picture*{}}
     {\EndPicture\Tg</div>}{}{}
\Css{div.pic-eqnarray {text-align:center;}}  
\ConfigureEnv{eqnarray*}
     {\IgnorePar\EndP\Tg<div class="pic-eqnarray-star">\Picture*{}}
     {\EndPicture\Tg</div>}{}{}
\Css{div.pic-eqnarray-star {text-align:center;}}  
>>>

\<TABLE eqnarray Config 4.0t\><<<
\Log:Note{for pictorial eqnarray,
                      use the command line option `pic-eqnarray'}

\Configure{eqnarray}{\HCode{<table\Hnewline
        class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi ">}}
    {\HCode{</table>}}
    {\HCode{<tr valign="middle" 
        class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi">}}
    {\HCode{</tr>}}
    {\HCode{\ifnum \HCol=4 <td\Hnewline width="10"  
        class="eqnarray4"></td>\fi
       <td\Hnewline align="\ifcase\HCol \or right\or center\or 
               left\else right\fi" style="white-space:nowrap;"\Hnewline 
               class="eqnarray\HCol">}}
    {\EndP\HCode{</td>}}
\Css{td.eqnarray4  { width:5\%; white-space: normal; }}
\Css{td.eqnarray2  { width:5\%;  }}
\Css{table.eqnarray-star, table.eqnarray {width:100\%;}}
>>>

\<TABLE eqnarray Config 4.0t\><<<
\ConfigureEnv{eqnarray}
    {\:xhtml{\IgnorePar\EndP}\HCode{<div class="eqnarray">}}
    {\:xhtml{\EndP}\HCode{</div>}}{}{}
\ConfigureEnv{eqnarray*}
    {\:xhtml{\IgnorePar\EndP}\HCode{<div class="eqnarray">}}
    {\:xhtml{\EndP}\HCode{</div>}}{}{}
\Css{div.eqnarray{text-align:center;}} 
>>>
                                              %%%%%%%%%%%%%%%%%%%%%%%
                                              % lttab.dtx
                                              %%%%%%%%%%%%%%%%%%%%%%%

\subsection{Tabbing, Tabular and Array Environments}

\<configure html4 latex\><<<
\:CheckOption{no-array}\if:Option \else
   |<html latex array/tabular Config 4.0t|>
\fi
>>>


\<configure html4-math latex\><<<
\:CheckOption{no-array}\if:Option \else
   |<math html latex array/tabular|>
\fi
>>>

\<32,4 picmath latex\><<<
\:CheckOption{pic-array}  \if:Option
   \ConfigureEnv{array}
     {\IgnorePar\EndP\Tg<div class="pic-array">\Picture*{}$$}
     {$$\EndPicture\Tg</div>}{}{}
   \Css{div.pic-array {text-align:center;}}  
\else
   \Log:Note{for pictorial array,
                      use the command line option `pic-array'}
\fi
>>>


\<vspace body for array/tabular\><<<
\append:def\vspc:s{\h:HBorder}%
\def\:tempb{\ifnum \tmp:cnt<\ar:cnt 
    \advance\tmp:cnt by 1 \append:def\vspc:s{\i:HBorder}%
    \expandafter\:tempb
  \fi }
\tmp:cnt|=0 \:tempb
\append:def\vspc:s{\j:HBorder}\global\let\vspc:s|=\vspc:s
>>>

\<0,32,4 latex\><<<
\Configure{hline}{\ifx \ar:cnt\:UnDef\else
      \o:noalign:{|<hline body for array/tabular|>}%
      \expandafter\ignoreEndTr
   \fi}
\Configure{//[]}{\ifx \ar:cnt\:UnDef 
   \else\o:noalign:{|<vspace body for array/tabular|>}\fi}
>>>



\<hline body for array/tabular\><<<
\append:def\hline:s{\a:HBorder}%
\def\:tempb{\ifnum \tmp:cnt<\ar:cnt 
    \advance\tmp:cnt by 1 \append:def\hline:s{\b:HBorder}%
    \expandafter\:tempb
  \fi }%
\tmp:cnt|=0 \:tempb
\append:def\hline:s{\c:HBorder}\global\let\hline:s|=\hline:s
>>>

\<inline comment\><<<
\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
>>>

\<html latex array/tabular Config 4.0t\><<<
\Configure{multicolumn}
   {\ifvmode\IgnorePar\fi 
    \HCode{<div class="multicolumn" }\HColAlign\HCode{>}}
   {\ifvmode\IgnorePar\fi \EndP\HCode{</div>}}
>>>

\<configure clear noalign\><<<
\Configure{noalign}{}{}%
>>>

\<configure tabular noalign\><<<
\Configure{noalign}%
  {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
  {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
>>>

\<html latex array/tabular Config 4.0t\><<<
\def\pic:env{%
   \def\begin##1{\bgroup
      \def\end####1{\o:end:{####1}\EndPicture\egroup}%
      \ifx \EndPicture\:UnDef
           \Picture+{ class="##1" align="middle"}%
      \else \let\EndPicture|=\empty\fi
      \o:begin:{##1}}%
}
>>>

\verb'\AllColMargins' Return a binary string in which 1 represents
a column, and 0 represents a `@'. \verb'\ColMargins' retrieves the
zeros before the 1's that represent the current and following 1's.

\<html latex array/tabular Config 4.0t\><<<
\def\ColMargins{\tmp:cnt|=\HCol\relax 
   \expandafter\nosp:hbr\AllColMargins 1//}
\def\nosp:hbr#11#2//{\ifnum \tmp:cnt>1 \advance\tmp:cnt by -1
   \nosp:hbr#2//\else\nosp:gt#11#2//\fi}
\def\nosp:gt#11#21#3//{%
   \def\:temp{#1}\ifx \:temp\empty 1\else 0\fi
   \def\:temp{#2}\ifx \:temp\empty 1\else 0\fi}
\Css{div.td00{ margin-left:0pt; margin-right:0pt; }}
\Css{div.td01{ margin-left:0pt; margin-right:5pt; }}
\Css{div.td10{ margin-left:5pt; margin-right:0pt; }}
\Css{div.td11{ margin-left:5pt; margin-right:5pt; }}
>>>


\<html latex array/tabular Config 4.0t\><<<
\Configure{halignTB<>}{tabular}{\HCode{class="tabular"\Hnewline 
   cellspacing="0" cellpadding="0" \GROUPS\Hnewline
   frame="\ifx \GROUPS\empty void\else border\fi" id="TBL-\TableNo-"
   }<>\HAlign}
\:CheckOption{pic-tabular}  \if:Option \else
   \Configure{tabular}
      {\ifvmode \IgnorePar\fi \EndP \halignTB{tabular}\putVBorder }
      {|<insert Clr|>\HCode{</table>}}
      {\HCode{<tr \Hnewline}\halignTR 
                            \HCode{ id="TBL-\TableNo-\HRow-">}}
      {\r:HA}
      {\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
         \halignTD \HCode{ id="TBL-\TableNo-\HRow-\HCol"
         \Hnewline class="td}\NoFonts\ColMargins\EndNoFonts
         \HCode{">}|<start array par box|>\PushStack\Table:Stck\TableNo}
      {|<end array par box|>\PopStack\Table:Stck\TableNo \d:HA}
\fi
|<configuring @()|>
\Css{td.td00{ padding-left:0pt; padding-right:0pt; }}
\Css{td.td01{ padding-left:0pt; padding-right:5pt; }}
\Css{td.td10{ padding-left:5pt; padding-right:0pt; }}
\Css{td.td11{ padding-left:5pt; padding-right:5pt; }}
>>>

\<insert ClrNO\><<<
\expandafter\tmp:toks\expandafter{\Clr}%
\HCode{<!--"\the\tmp:toks"-->}%
>>>

The quotes above hide \verb+>+ from IE within the comment. Otherwise, the
browser inappropriately get confused.

On the other hand, the above doesn't work, for instance on
`\verb+|r||r@{--}l|p{1.25in}|+' due to the extra \verb+--+.


\subsection{The option @()}


\<configuring @()\><<<
\Configure{@{}}{}
>>>


\<html latex array/tabular Config 4.0t\><<<
\Configure{halignTB<>}{array}{\HCode{class="array"\Hnewline
   cellpadding="0" cellspacing="0" \GROUPS\Hnewline
   frame="\ifx \GROUPS\empty void\else border\fi"
   }<>\HAlign}
\:CheckOption{pic-array}  \if:Option \else
   \Configure{array}
      {\ifvmode \IgnorePar\fi \EndP\halignTB{array}\putVBorder}
      {|<insert Clr|>\HCode{</table>}}
      {\R:HA}
      {\r:HA}
      {\D:HA\HCode{<div class="td}\NoFonts\ColMargins\EndNoFonts
            \HCode{">}|<start array par box|>\pic:env}
      {|<end array par box|>\HCode{</div>}\d:HA}
   \Configure{arrayparbox}{\ShowPar}
\fi
>>>

\verb|\par| is empty if not in par box.

\<start array par box\><<<
\par  \ShowPar
>>>

\<end array par box\><<<
\IgnorePar \EndP
>>>


We force border around the full table whenever a vertical line is
requested, because it makes the tables better looking within the
existing capabilities.

Currently, we either have empty \verb'\VBorder', or one defined to
\verb'\def\VBorder{border="1"}'.

\<html latex array/tabular Config 4.0t\><<<
  \let\VBorder|=\empty   \let\AllColMargins|=\empty
  \Configure{VBorder}
     {\let\VBorder|=\empty \let\AllColMargins|=\empty
      \global\let\GROUPS|=\empty \HAssign\NewGroup = 0 
      \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo }
     {\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}
      \HAssign\NewGroup = 0  \gdef\GROUPS{rules="groups"}}
     {\Advance:\NewGroup by 1 
      \ifnum \NewGroup=1 \xdef\VBorder{\VBorder<colgroup 
          id="TBL-\TableNo-\ar:cnt g">}\fi      
      \xdef\VBorder{\VBorder<col\Hnewline id="TBL-\TableNo
         -\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
     {\xdef\AllColMargins{\AllColMargins 0}}
  \Configure{HBorder}
     {<tr\Hnewline class="hline">} {<td><hr\xml:empty></td>}   {</tr>}
     {<tr\Hnewline class="cline">}
     {<td></td>} {<td><hr\xml:empty></td>} {</tr>}
     {<tr\Hnewline class="vspace" style="font-size:\HBorderspace">} 
         {<td\Hnewline>\string&nbsp;</td>} {</tr>}
\Configure{putHBorder}{\HCode{\HBorder}}
\HAssign\Next:TableNo|=0 \global\let\TableNo=\Next:TableNo
\Css{.hline hr, .cline hr{  height : 1px; }}
>>>

When \verb'\putVBorder' is call  in \verb'\VBorder' 
we have a sequence of the form
\verb'<COLGROUP><COL ...">...</COLGROUP>...' with the last 
tag possibly missing.

\<html latex array/tabular Config 4.0t\><<<
\def\putVBorder{\expandafter\put:VBorder\VBorder</>|<par del|>}
\def\put:VBorder#1</#2>#3|<par del|>{\def\:temp{#2}\ifx\:temp\empty
     \HCode{\VBorder}%
     \def\:temp{#1}\ifx\:temp\empty \else\HCode{</colgroup>}\fi
  \else  \def\:temp{\put:VBorder#3|<par del|>}\expandafter\:temp\fi
}
>>>

\<configure html4 latex\><<<
\:CheckOption{pic-tabbing}  \if:Option
    \ConfigureEnv{tabbing}{\Picture*{}}{\EndPicture}{}{}
\else 
    |<TABLE tabbing Config 4.0t|>   
    \:CheckOption{pic-tabbing'} \if:Option
        |<PICT dot tabbing|>
    \fi 
\fi
>>>

\<TABLE tabbing Config 4.0t\><<<
\Configure{tabbing}[1.5]{%
    \ifvmode \IgnorePar\fi\EndP \leavevmode\ht:special{t4ht=<table 
     \Hnewline\:zbsp{tabbing}><tr \Hnewline valign="baseline"
     class="tabbing">}}
   {\ht:special{t4ht=</tr></table>}\ShowPar \csname par\endcsname
    |<global HtmlPar|>%
   }
   {\ht:special{t4ht=<td \ifx \TabWidth\empty \else
                width="\TabWidth"\fi \Hnewline 
                class="tabbing\ifx \`\TabType -right\fi">}}
   {\ht:special{t4ht=</td>}}
\ConfigureEnv{tabbing}{\IgnorePar\EndP}{}{}{}     
\Css{.tabbing-right {text-align:right;}}
>>>   



%%%%%%%%%%%%%%%%%%%%%% to be placed %%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{to be placed}
%%%%%%%%%%%%%%%%%%%



\<4 latex\><<<
\Configure{underline}
   {\HCode{<span class="underline">}\:gobble}
   {\HCode{</span>}}
\Css{.underline{ text-decoration:underline; }}
\Css{.underline img{ border-bottom: 1px solid black; 
                     margin-bottom:1pt; }}
>>>

\<4 plain\><<<
\Configure{underline}
   {\HCode{<span class="underline">}\hbox\bgroup \:gobble}
   {\egroup \HCode{</span>}}
\Css{.underline{ text-decoration:underline; }}
\Css{.underline img{ border-bottom: 1px solid black; 
                     margin-bottom:1pt; }}
>>>



\<4 plain,latex\><<<
\Configure{overline}
   {\HCode{<span class="overline">}}
   {\HCode{</span>}}
\Css{.overline{ text-decoration:overline; }}
\Css{.overline img{ border-top: 1px solid black;  }}
>>>

\<0,32,4 plain,latex\><<<
\Configure{ }{\:nbsp}
>>>






\<0,32,4 latex\><<<
\:CheckOption{pic-framebox} \if:Option
  \Configure{framebox}
    {\Picture+[]{ \a:@Picture{framebox}}} {\EndPicture}
\else
  \Log:Note{for bitmap framebox'es, use
          the command line option `pic-framebox'}
  \Configure{framebox}
     {\HCode{<span class="framebox-\frameboxAlign"\Hnewline
                   style="width:\frameboxWidth;">}}
     {\HCode{</span>}}
  |<shared framebox style|>
\fi
>>>

%       \bgroup
%      \fboxrule=0pt \fboxsep=0pt
%   \HAssign\frameboxN=0
%       \gHAdvance\frameboxN by 1
%  id="framebox-\frameboxN"


\<shared framebox style\><<<
\Css{.framebox-c, .framebox-l, .framebox-r {  
  padding-left:\the\fboxsep;
  padding-right:\the\fboxsep;
  text-indent:0pt;
  border:solid black \the\fboxrule;
}}
\Css{.framebox-c {text-align:center;}}
\Css{.framebox-l {text-align:left;}}
\Css{.framebox-r {text-align:right;}}
>>>

\<32,4 latex\><<<
\:CheckOption{pic-fbox} \if:Option
  \Configure{fbox}
    {\leavevmode\Picture+[]{ \a:@Picture{fbox}}} {\EndPicture}
\else
  \Log:Note{for bitmap fbox'es, use
          the command line option `pic-fbox'}
  \Configure{fbox}
     {\ifvmode \IgnorePar\EndP 
               \HCode{<div class="fbox">}%
               \def\end:bx{\HCode{</div>}\par}%
      \else
               \HCode{<span class="fbox">}%
               \def\end:bx{\HCode{</span>}}%
      \fi}
     {\end:bx}
  \Css{.fbox {padding-left:\the\fboxsep;
                  padding-right:\the\fboxsep;
                  text-indent:0pt;
                  border:solid black \the\fboxrule;
      }}
   \Css{div.center div.fbox {text-align:center; clear:both;
                             padding-left:3.0pt; padding-right:3.0pt;
                             text-indent:0pt; border:solid black 0.4pt; }}
\fi
>>>




\<0,32,4 latex\><<<
\Configure{InsertTitle}{\let\label|=\lb:l
   \let\ref|=\o:ref \Configure{ref}{}{}{}}
\Configure{AfterTitle}{\let\index|=\:index
       \let\ref|=\:ref  \let\label|=\lb:l }
\Configure{NoSection}
  {\let\sv:index|=\index \let\sv:label|=\label 
   \let\sv:newline|=\newline \def\newline{ }%
   \let\sv:setfontsize|=\@setfontsize  \let\@setfontsize|=\:gobbleIII
   \let\index|=\@gobble  \let\label|=\@gobble  
   |<nolink ref|>%
  }
  {\let\index|=\sv:index \let\label|=\sv:label 
   |<restore ref|>%
   \let\newline|=\sv:newline    \let\@setfontsize|=\sv:setfontsize 
  }
>>>

\<nolink ref\><<<
\let\sva:rEfLiNK|=\a:rEfLiNK
\let\svb:rEfLiNK|=\b:rEfLiNK
\let\svc:rEfLiNK|=\c:rEfLiNK  
\expandafter\let\expandafter\svC:rEfLiNK\c:rEfLiNK
\Configure{ref}{}{}{}%  \let\sv:ref|=\ref  \let\ref|=\@gobble
>>>

\<restore ref\><<<
\let\a:rEfLiNK|=\sva:rEfLiNK
\let\b:rEfLiNK|=\svb:rEfLiNK
\let\c:rEfLiNK|=\svc:rEfLiNK
\expandafter\let\c:rEfLiNK\svC:rEfLiNK  %  \let\ref\sv:ref  
>>>

\<0,32,4 latex\><<<
\Configure{oalign}{\Picture+{ \a:@Picture{oalign}}}{\EndPicture}
\Configure{TocLink}
  {\Link{#2}{#3}{\Configure{ref}{}{}{}%
      |<cite in TocLink|>#4}\ifvmode\IgnorePar\fi\EndLink}
>>>


\<configure html4-math latex\><<<
\Configure{stackrel}{\Picture+{ class="stackrel"}\mathrel}
                    {\limits ^}{\EndPicture}
>>>


\<0,32,4 latex\><<<
\Configure{picture}
    {\Picture+[PICT]{}}
    {\EndPicture}
>>>


\<32,4 latex\><<<
\ConfigureEnv{minipage}
   {\IgnorePar\EndP\HCode{<table class="minipage"><tr><td>}}
   {\EndP\HCode{</td></tr></table>}}
   {}{}
\Css{table.minipage{width:100\%;}} 
>>>

Tried the following for minipage
\begin{verbatim}
\ConfigureEnv{minipage}
    {\IgnorePar\EndP\HCode{<div class="minipage">}}
    {\EndP\HCode{</div>}}
   {\IgnoreIndent\HtmlEnv}{}
\end{verbatim}
but was not able to find an appropriate css code for centered pages
\begin{verbatim}
Es ist ganz einfach:

\begin{center}
  \raisebox{0cm}{\begin{minipage}{10cm}\sc Jesus Christus\\
erbarme dich meiner!\end{minipage}}
\end{center}

Varianten sind:
\end{verbatim}




\<latex shared section config\><<<
\Configure{endsection}
     {likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesection}
     {section,chapter,likechapter,appendix,part,likepart}
>>>

\<latex shared subsection config\><<<
\Configure{endsubsection}
   {likesubsection,section,likesection,chapter,%
      likechapter,appendix,part,likepart}
\Configure{endlikesubsection}
   {subsection,section,likesection,chapter,%
      likechapter,appendix,part,likepart}
>>>

\<latex shared subsubsection config\><<<
\Configure{endsubsubsection}
   {likesubsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubsubsection}
   {subsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likepart}
>>>




\<latex shared div config\><<<
\Configure{endlikeparagraph}
   {paragraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endsubparagraph}
   {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubparagraph}
   {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
>>>

\<latex shared paragraph config\><<<
\Configure{endparagraph}
   {likeparagraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
>>>



\<latex shared part config\><<<
\Configure{endpart}{likepart}
\Configure{endlikepart}{endpart}
>>>


\<latex shared part config\><<<
\Configure{part}{}{}
   {\IgnorePar \EndP\HCode{<h1 class="partHead"\a:LRdir>}%
       \HCode{<span class="titlemark">}\partname \ \thepart
       \HCode{<br\xml:empty></span>}}
   {\HCode{</h1>}\IgnoreIndent\par}
\Configure{likepart}{}{}
   {\IgnorePar\EndP\HCode{<h1 class="likepartHead"\a:LRdir>}}
   {\HCode{</h1>}\IgnoreIndent\par}
\Configure{partTITLE+}{\thepart\space #1}
\Configure{likepartTITLE+}{#1}
\Css{h1.partHead{text-align: center}}
>>>



\<configure html4 latex\><<<
\ifx\bf\:UnDef 
   \def\bf{\normalfont\bfseries}
\fi
>>>
Earlier we had 
\verb'\:CheckOption{no-halign} \if:Option \else |<pic array|> \fi', 
and the same for pic tabular. Why?



\<4 plain,latex\><<<
\Configure{displaylines}
   {\IgnorePar \EndP
     \HCode{<table \Hnewline border="0" width="100\%"
         class="displaylines">}\IgnorePar}
   {\HCode{</table>}}
   {\HCode{<tr class="displaylines"><td \Hnewline
       valign="baseline" class="displaylines" 
       >}}{\HCode{</td></tr>}}
\Css{td.displaylines {text-align:center; white-space:nowrap;}}
>>>

\<picmath plain,latex\><<<
\let\A:displaylines|=\a:displaylines
\let\B:displaylines|=\b:displaylines
\let\C:displaylines|=\c:displaylines
\let\D:displaylines|=\d:displaylines
\Configure{displaylines}
   {\ifmmode
       \def\A:displaylines{\Picture*{}}%
       \def\B:displaylines{\EndPicture}%  
    \fi 
    \A:displaylines} 
   {\B:displaylines} {\C:displaylines}{\D:displaylines}
>>>


\<show input line no\><<<
<!--l. \the\inputlineno-->%
>>>











\<configure html4 latex\><<<
|</TeX for 4.0t|>
\def\:temp{\HCode{<span class="LATEX">}L\HCode{<span
   class="A">}A\HCode{</span>}\TeX\HCode{</span>}}
\HLet\LaTeX|=\:temp
\def\:temp{\mbox{%
  \if b\expandafter\@car\f@series\@nil\boldmath\fi
  \LaTeX2$_{\textstyle\varepsilon}$}}
\expandafter\HLet\csname LaTeXe\endcsname|=\:temp
\Css{span.LATEX span.A{ position:relative; top:-0.5ex;
   left:-0.4em; font-size:85\%;}}
\Css{span.LATEX span.TEX{ position:relative; left: -0.4em; }}
\Configure{@TITLE}{\def\LaTeX{LaTeX}\let\fontencoding|=\:gobble
  \let\fontfamily|=\:gobble \let\fontseries|=\:gobble
  \let\fontshape|=\:gobble  \let\usefont|=\:gobbleIV  }
>>>





\<configure html4 latex\><<<
\Configure{newline}{\HCode{<br class="newline"\xml:empty>}}
>>>




\<configure html4 supertabular\><<<
\Configure{SpBorder}
   {<tr\Hnewline class="vspace"><!--\SpBorder-->}
   {<td>\string&nbsp;</td>}
   {</tr>}
\ConfigureEnv{supertabular}
   {\par \IgnorePar \EndP \HCode{<div class="supertabular">}}
   {\HCode{</div>}\par}
   {} {}
\Css{.supertabular {text-align:center}}
>>>

\<configure html4 longtable\><<<
\:CheckOption{old-longtable}\if:Option 
  |<config old longtable|>
\else
  |<config new longtable|>
\fi
>>>


\<config new longtable\><<<   
\Configure{halignTB<>}{longtable}{\HCode{class="longtable"\Hnewline 
   cellspacing="0" cellpadding="0" \GROUPS\Hnewline
   frame="\ifx \GROUPS\empty void\else border\fi"
   }<>\HAlign}
\Configure{longtable}
   {\IgnorePar\EndP
     \HCode{|<show input line no|><div class="longtable">}%
    \halignTB{longtable}\putVBorder }
   {|<insert Clr|>\HCode{</table></div>}}
   {\HCode{<tr \Hnewline}\halignTR\HCode{ id="TBL-\TableNo-\HRow-">}}
   {\r:HA}
   {\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
    \halignTD \HCode{ id="TBL-\TableNo-\HRow-\HCol"
    \Hnewline class="td}\NoFonts\ColMargins\EndNoFonts
    \HCode{">}|<start array par box|>\PushStack\Table:Stck\TableNo}
   {\PopStack\Table:Stck\TableNo |<end array par box|>\d:HA}
\Css{div.longtable{text-align:center;}}
\Configure{longtableparbox}{\IgnorePar\leavevmode\ShowPar\par}
>>>


\<config old longtable\><<<
\let\a:longtable=\a:tabular
\let\b:longtable=\b:tabular
\let\c:longtable=\c:tabular
\let\d:longtable=\d:tabular
\let\e:longtable=\e:tabular
\let\f:longtable=\f:tabular
>>>

\<configure html4 latex\><<<
\Configure{float}
   {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
   {\:xhtml{\IgnorePar\EndP}\HCode{<hr class="float"\xml:empty><div
     class="float"\Hnewline><table
     class="float"><tr  class="float"><td class="float"\Hnewline
        >}}
   {\ifvmode \IgnorePar \fi\EndP
    \HCode{</td></tr></table></div><hr
        class="endfloat" />}\csname par\endcsname\ShowPar}
\ConfigureEnv{figure}
   {\:xhtml{\IgnorePar\EndP}\HCode{<hr class="figure"\xml:empty><div
     class="figure"\Hnewline><table
     class="figure"><tr  class="figure"><td class="figure"\Hnewline>}%
    \bgroup \Configure{float}{\ShowPar}{}{}%    
   }
   {\egroup
    \:xhtml{\IgnorePar\EndP}\HCode{</td></tr></table></div><hr
       class="endfigure"\xml:empty>}|<try env inline par|>\par}
   {}{}
\Css{div.float img,  div.float  .caption {text-align:center;}}
\Css{div.figure img, div.figure .caption {text-align:center;}}
>>>
The \verb'<TABLE>' is needed as a grouping mechanism for \verb'<CENTER>'.




%%%%%%%%%%%%%%%%%%%%%%
\section{Plain}
%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{General}
%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 plain\><<<
|<4 plain,latex|>
|<0,32,4 plain|>
|<0,32,4 plain,latex|>
|<32,4 plain,latex|>
|<32,4 plain|>
|<4 plain|>
|<plain items|>             |%keep last in html mode?|%
>>>


\<4 plain\><<<
\def\plain:indent{\ShowIndent \global\let\plain:indent\empty}
\Configure{@BODY}{\plain:indent}
>>>



\<plain items\><<<
\Configure{item} 
   {}{} 
   {\par\Configure{items}{\item:class}\HCode{<span class="item">}} 
   {\HCode{</span>}\Configure{items}{}} 
\Configure{itemitem} 
   {}{} 
   {\par\Configure{items}{\itemitem:class}\HCode{<span class="itemitem">}} 
   {\HCode{</span>}\Configure{items}{}} 
\Css{p.item {text-indent:-2em; margin-left:2em;}} 
\Css{p.itemitem {text-indent:-2em; margin-left:4em;}} 
\Css{span.item, span.itemitem {width:2em; margin-right:0.4em;}}
\Configure{!P}{\a:items} 
\NewConfigure{items}{1} 
\Configure{items}{} 
\def\item:class#1class#2"#3"{#1class="item"} 
\def\itemitem:class#1class#2"#3"{#1class="itemitem"} 
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Math}
%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 plain\><<<
|<TABLE eqalign shared Configure 4.0t|>
>>>
\<TABLE eqalign shared Configure 4.0t\><<<
\Configure{eqalign}
   {\:xhtml{\IgnorePar\EndP}\HCode
      {<div class="eqalign"><table class="eqalign">}}
   {\HCode{</table></div>}}
   {\HCode{<tr \Hnewline class="eqalign"
         valign="middle">}}{\IgnorePar\HCode{</tr>}}
   {\HCode{<td align="\ifnum \HCol=2
         left\else right\fi"\Hnewline  class="eqalign\HCol" 
         style="white-space:nowrap;">}}
   {\HCode{</td>}}
\def\:eqalign:{\Configure{noalign}
  {\HCode{<tr><td class="noalign" colspan="2">}}%
  {\HCode{</td></tr>}}}
\Css{td.eqalign3 { text-align:right; margin-left:10em;}}
\Css{.eqalign td { white-space: nowrap; }}
\Css{div.eqalign {text-align:center;}}
>>>





\<TABLE eqalign shared Configure 4.0t\><<<
\Configure{eqalignno}
   {\:xhtml{\IgnorePar\EndP}\HCode{<table class="eqalignno">}}
   {\HCode{</table>}}
   {\HCode{<tr\Hnewline class="eqalignno">}}{\IgnorePar\HCode{</tr>}}
   {\HCode{\ifnum \HCol=3 <td\Hnewline width="10"
           class="eqalignno-sp"></td>\fi
           <td align="\ifnum \HCol=2 left\else right\fi"\Hnewline
           class="eqalignno\HCol">}}
   {\HCode{</td>}}
\def\:eqalignno:{\Configure{noalign}
  {\HCode{<tr><td class="noalign" colspan="2">}}%
  {\HCode{</td></tr>}}}
\Css{td.eqalignno3, td.leqalignno3
       { text-align:right; margin-left:10em;}}
\Css{.leqalignno td, .eqalignno td
       { white-space: nowrap; }}
\Css{.leqalignno td.noalign, .eqalignno td.noalign
       { width:5\%; white-space: normal; }}
\Css{table.leqalignno, table.eqalignno {width:100\%;}}
>>>

\<TABLE eqalign shared Configure 4.0t\><<<
\Configure{leqalignno}
   {\:xhtml{\IgnorePar\EndP}\HCode{<table class="leqalignno">}}
   {\HCode{</table>}}
   {\HCode{<tr \Hnewline 
           class="leqalignno">}}{\IgnorePar\HCode{</tr>}}
   {\HCode{\ifnum \HCol=3 <td\Hnewline width="30"
           class="eqalignno-sp"></td>\fi
           <td align="\ifnum \HCol=2 left\else right\fi"\Hnewline
           class="leqalignno\HCol">}}
   {\HCode{</td>}}
\def\:leqalignno:{\Configure{noalign}
  {\HCode{<tr><td class="noalign" colspan="2">}}%
  {\HCode{</td></tr>}}}
>>>




\<shared plain/latex pmatrix 4.0t\><<<
\Configure{pmatrix}
  {\ifvmode
      \def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
      \:xhtml{\IgnorePar\EndP}\HCode
        {<\tbl:XV{pmatrix}><tr><td><div class="pmatrix"\Hnewline>}%
   \else \HCode{<span class="pmatrix">}%
      \def \end:pmatrix{\HCode{</span>}}%
   \fi}
  {\end:pmatrix}
\Css{span.pmatrix img{vertical-align:middle;}}
\Css{div.pmatrix {text-align:center;}}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Environments}
%%%%%%%%%%%%%%%%%%%%%%%%%

\<4 plain\><<<
\Configure{settabs}[1.5]{\IgnorePar\EndP\leavevmode
     \ht:special{t4ht=<table 
     \Hnewline\:zbsp{settabs}><tr \Hnewline valign="baseline"
     class="settabs">}}
   {\ht:special{t4ht=</tr></table>}}
   {\ht:special{t4ht=<td \ifx \TabWidth\empty \else
                width="\TabWidth"\fi \Hnewline class="settabs">}}
   {\ht:special{t4ht=</td>}}
>>>   

\<4 plain\><<<
\Configure{narrower}{\ifvmode \IgnorePar\fi  \EndP%
   \HCode{<table cellpadding="15" class="narrower"><tr
      class="narrower"><td class="narrower">}\ifvmode \IgnorePar\fi}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{</td></tr></table>}\ifvmode \IgnorePar\fi}
>>>



\<0,32,4 plain\><<<
\Configure{settabs}[1.5]{}{}{}{}{}
\Configure{line}{\HCode{<br\xml:empty>}}
>>>

\<4 plain\><<<
\Configure{proclaim}
    {\IgnorePar\EndP\HCode{<div class="proclaim"><span class="proclaim">}}
    {\HCode{</span>}}    {\IgnorePar\EndP\HCode{</div>}}
\Css{div.proclaim { margin-top: 1em; margin-bottom: 1em; }}
>>>

\<4 plain\><<<
\Configure{beginsection}
  {\ifvmode \IgnorePar\fi \EndP
   \HCode{<div class="beginsection">}}
  {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
  {\HCode{<h3 class="beginsection">}} 
  {\HCode{</h3>}\par\ShowPar}
\ConfigureToc{beginsection} 
     {} {\relax}  {}  { }
>>>

% \Css{div.beginsection { margin-top: 1em; margin-bottom: 1em; }}




\<4 plain\><<<
\Configure{TableOfContents}
   {\IgnorePar\EndP \HCode{<div class="TableOfContents">}}{}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{</div>}\ShowPar}{\HCode{<br\xml:empty>}}{}
>>>

\<4 plain\><<<
\Configure{insert}
  {\IgnorePar\EndP\HCode{<hr class="insert"\xml:empty>}\IgnorePar}
  {\IgnorePar\EndP\HCode{<hr class="endinsert"\xml:empty>}\IgnorePar}
>>>

\<pic plain/latex math 4.0t\><<<
\NewConfigure{@root}{1}
\Configure{@root}{align="middle" }
>>>

\<html4-math plain,fontmath\><<<
\Configure{big}{\HCode{<span class="big">}}{\HCode{</span>}}{}{}
\Configure{Big}{\HCode{<span class="bbig">}}{\HCode{</span>}}{}{}
\Configure{bigg}{\HCode{<span class="bigg">}}{\HCode{</span>}}{}{}
\Configure{Bigg}{\HCode{<span class="bbigg">}}{\HCode{</span>}}{}{}
>>>

\<pic plain math 4.0t\><<<
\Configure{@underbrace}{align="middle"}
>>>

\<4 plain,latex\><<<
\def\:zbsp#1{cellpadding="0" border="0" cellspacing="0"\Hnewline
   class="#1"}
>>>

\<4 plain,latex\><<<
\Configure{centerline}{\ifvmode \IgnorePar
     \fi \EndP\HCode{<div \Hnewline 
      class="centerline">}}{\EndP\HCode{</div>}\ShowPar}
\Configure{leftline}{\ifvmode \IgnorePar
     \fi \EndP \HCode{<p\Hnewline  class="leftline">}}
   {\HCode{</p>}\ShowPar} 
\Configure{rightline}
   {\IgnorePar\EndP\HCode{<p class="rightline">}}
   {\HCode{</p>}\ShowPar}
\Css{.centerline {text-align:center;}}
\Css{.rightline {text-align:right;}}
>>>

\<4 plain,latex\><<<
\def\tbl:XV#1{table width="100\%"\Hnewline class="#1"}
>>>


The \verb'100%' is to allow centering of stuff on the page.
The table is a grouping mechanism to protect internal stuff
from external centering operations.


The \verb'special{t4ht=' is superior to \verb'\HCode{' because it can
prevent \verb'<p>'s from entering before \verb'<NOBR>'.


The hbox is for avoiding the start of a new paragraph, if in vmode.


%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Latex Math}
%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4-math latex\><<<
|<picmath plain,latex|>
|<picmath latex|>
|<32,4 picmath latex|>
|<shared plain/latex pmatrix 4.0t|>
>>>





\<picmath plain,latex\><<<
|<pic plain/latex math 3.2|> 
\def\A:root#1\b:root#2\c:root{\o:root:#1\of{#2}\c:root}
\Configure{root}
   {\Picture+{ \a:@Picture{root}}\A:root}
   {}
   {\EndPicture}
\Configure{mathpalette}
    {\Picture+{ \a:@Picture{mathpalette}}} {\EndPicture}
>>>

\<\><<<
\Configure{choose}{}{}
>>>


\<32,4 picmath latex\><<<
\Configure{pmatrix} {\Picture+{ \a:@Picture{}}} {\EndPicture}
\Configure{bordermatrix} {\Picture+{ \a:@Picture{}}} {\EndPicture}
\Configure{frac}
   {\Picture+{ \a:@Picture{frac}}\bgroup}
   {} {} 
   {\egroup\EndPicture}
>>>


\<32,4 picmath latex\><<<
\Configure{sqrtsign}
   {\Picture+{ \a:@Picture{sqrt}}}
   {\EndPicture}
\Configure{matrix}
   {\Picture+{ \a:@Picture{matrix}}}  {\EndPicture}
   {}{}{}{}
>>>


\<picmath plain,latex\><<<
% \Configure{L}                     {\pic:sym{L}}
% \Configure{l}                     {\pic:sym{l}}
\def\pic:sym#1{\Protect\Picture+{ \a:@Picture{#1}}\csname
        o:#1:\endcsname\Protect\EndPicture}
>>>

\<picmath plain,fontmath\><<<
\Configure{Longrightarrow}        {\pic:sym{Longrightarrow}}
\Configure{bowtie}                {\pic:sym{bowtie}}
\Configure{cong}                  {\pic:sym{cong}}
\Configure{ddots}                 {\pic:sym{ddots}}
\Configure{doteq}                 {\pic:sym{doteq}}
\Configure{hookleftarrow}         {\pic:sym{hookleftarrow}}
\Configure{hookrightarrow}        {\pic:sym{hookrightarrow}}
\Configure{longmapsto}            {\pic:sym{longmapsto}}
\Configure{mapsto}                {\pic:sym{mapsto}}
\Configure{models}                {\pic:sym{models}}
\Configure{neq}                   {\pic:sym{neq}}
\Configure{notin}                 {\pic:sym{notin}}
\Configure{vdots}                 {\pic:sym{vdots}}
\Configure{angle}                 {\pic:sym{angle}}
\Configure{rightleftharpoons}     {\pic:sym{rightleftharpoons}}
\Configure{leftrightharpoons}     {\pic:sym{leftrightharpoons}}
>>>

\<picmath latex\><<<
\Configure{mathellipsis}          {\ht:special{t4ht@+\string&{35}x2026;}x}
>>>


\<picmath plain\><<<
\Configure{ldots}                 {\ht:special{t4ht@+\string&{35}x2026;}x}
>>>


\<configure html4-math fontmath\><<<
\Configure{cdots}                 {\pic:sym{cdots}}
\Css{img.cdots{vertical-align:middle;}}
>>>

\<configure html4-math plain\><<<
\Configure{cdots}                 {\pic:sym{cdots}}
\Css{img.cdots{vertical-align:middle;}}
>>>



\<configure html4-math amsmath\><<<
\Configure{@cdots}                {\pic:sym{@cdots}}
\Configure{iint}                  {\pic:sym{iint}}
\Configure{iiint}                 {\pic:sym{iiint}}
\Configure{iiiint}                {\pic:sym{iiint}}
\Configure{idotsint}              {\pic:sym{tsint}}
\Configure{doteq}                 {\pic:sym{tsint}}
>>>

% \Configure{overrightarrow} {\Picture+{}}{\EndPicture}
% \Configure{overleftarrow} {\Picture+{}}{\EndPicture}

\<32,4 picmath: plain, fontmath, amsmath, amstex1\><<<
\Configure{overbrace} {}{\Picture+{}}{\EndPicture}
\Configure{underbrace} {}{\Picture+{}}{\EndPicture}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Shared plain latex Math}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<picmath plain,latex\><<<
\Configure{pmatrix}
  {\ifvmode
      \def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
      \:xhtml{\IgnorePar\EndP}\HCode
        {<\tbl:XV{pmatrix}><tr><td><div class="pmatrix"\Hnewline>}%
   \else \HCode{<span class="pmatrix">}%
      \def \end:pmatrix{\HCode{</span>}}%
   \fi}
  {\end:pmatrix}
\Css{div.pmatrix {text-align:center;}}
>>>




\<configure html4-math plain\><<<
|<picmath plain,latex|>
|<picmath plain,fontmath|>
|<picmath plain|>
|<pic plain/latex math 4.0t|>               
|<32,4 picmath plain|>
|<pic plain math 4.0t|>          
|<html4-math plain,fontmath|>
>>>

\<32,4 picmath plain\><<<
\Configure{sqrt}
   {\Picture+{ \a:@Picture{sqrt}}}
   {\EndPicture}
|<32,4 picmath: plain, fontmath, amsmath, amstex1|>
>>>










%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Classes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




%%%%%%%%%%%%%%%%%
\section{article}
%%%%%%%%%%%%%%%%%

\<configure html4 article\><<<
|<article,report,book options 1, 2, 3|>
\:CheckOption{1}     \if:Option
  |<toc article,report options 1|>
\fi
|<config book-report-article|>
|<config report / article 4.0t|>
>>>


\<config report / article 4.0t\><<<
\ConfigureEnv{abstract}
   {\IgnorePar\EndP
    \HCode{<\tbl:XV{abstract}><tr><td\Hnewline>}\par\ShowPar} 
   {\ifvmode \IgnorePar\fi \EndP\HCode{</td></tr></table>}}{}{}
\Css{.abstract p {margin-left:5\%; margin-right:5\%;}}
>>>



%%%%%%%%%%%%%%%%
\section{report}
%%%%%%%%%%%%%%%%%

\<configure html4 report\><<<
|<article,report,book options 1, 2, 3|>
\:CheckOption{1}     \if:Option
  |<toc article,report options 1|>
\fi
|<config book-report-article|>
|<latex shared part config|>
|<config book-report 4.0t|>
|<config report / article 4.0t|>
|<32,4 report,book|>
|<32,4 report|>
>>>

\<32,4 report\><<<
\ConfigureMark{chapter}
   {\HCode{<span class="titlemark">}\chaptername
    \ \thechapter\HCode{</span>}}
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}%
     \TitleMark{\HCode{<br\xml:empty>}}}
   {\HCode{</h2>}\IgnoreIndent\par}
\Configure{chapterTITLE+}{\thechapter\space#1}
\Configure{likechapterTITLE+}{#1}
>>>

\<32,4 report,book\><<<
\ConfigureMark{appendix}{\HCode{<span class="titlemark">}%
   \appendixname \ \thechapter\HCode{</span>}}
\Configure{appendix}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}%
     \TitleMark{\HCode{<br\xml:empty>}}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{appendixTITLE+}{\thechapter\space#1}
\Configure{likechapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="likechapterHead"\a:LRdir>}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{likechapterTITLE+}{#1}
>>>

\<32,4 report,book\><<<
\Configure{endchapter}{likechapter,appendix,part,likepart}
\Configure{endlikechapter}{chapter,appendix,part,likepart}
\Configure{endappendix}{chapter,likechapter,part,likepart}
>>>


%%%%%%%%%%%%%%
\section{book}
%%%%%%%%%%%%%%

\<configure html4 book\><<<
|<article,report,book options 1, 2, 3|>
\:CheckOption{1}     \if:Option
   |<toc book options 1|>
\fi
|<config book-report-article|>
|<latex shared part config|>
|<config book-report 4.0t|>
|<32,4 report,book|>
|<32,4 book|>
>>>

\<32,4 book\><<<
\ConfigureMark{chapter}
   {\if@mainmatter 
       \HCode{<span class="titlemark">}\chaptername
     \ \thechapter\HCode{</span>}\fi}
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}%
    \TitleMark{\HCode{<br\xml:empty>}}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{chapterTITLE+}{\if@mainmatter\thechapter\space\fi#1}
\renewcommand\thechapter {\if@mainmatter\@arabic\c@chapter\fi}
>>>

\<chapter toc css\><<<
\Css{.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc,
        .appendixToc a, .appendixToc
        {line-height: 200\%; font-weight:bold;}}
>>>


\<part toc css\><<<
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
        {line-height: 200\%; font-weight:bold; font-size:110\%;}}
>>>






%%%%%%%%%%%%%%%%%%
\section{letter}
%%%%%%%%%%%%%%%%%%


\<configure html4 letter\><<< 
|<quote 4|>
|<quotations|>
|<description 4|>
|<base font size|>
\ConfigureEnv{verse}
   {\ifvmode \IgnorePar\fi\EndP\Tg<div class="verse">}
   {\ifvmode \IgnorePar\fi\EndP\Tg</div>}
   {}{}
\ConfigureList{verse}
   {}{}
   {\parindent=\z@}  {\par}
\Css{.verse{white-space:nowrap; margin-left:2em}}
>>>




\<configure html4 letter\><<< 
\Configure{opening}
   {\bgroup
       \ConfigureEnv{tabular}{}{}{}{}%
       \Configure{tabular}
         {\EndP\ifvmode \IgnorePar \fi 
          \HCode{<div class="opening"\a:LRdir>}}
         {\HCode{</div><p class="clear-both" />}}
         {}
         {\HCode{<br />}}
         {}{}%
       \Configure{HBorder}
         {<br class="hline"/>} {}{}
         {<br class="cline" />} {}{} {}
         {<br class="vspace"/>} {}{}%
   }
   {\egroup}
\Configure{closing}
   {\EndP\ifvmode \IgnorePar\fi
    \HCode{<div class="closing">}}
   {\EndP\ifvmode \IgnorePar\fi
    \HCode{</div><p class="clear-both" />}}
\longindentation=0pt
\Css{div.opening{float:right;}}
\Css{div.closing {float:right; margin-right:2em;}}
\Css{p.clear-both{clear:both;}}
>>>

\<configure html4 letter\><<< 
\Configure{address}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<span class="address">}}
   {\HCode{</span>}}
\Configure{toaddress}
   {\HCode{<div class="toaddress">}}
   {\HCode{</div>}}
\Configure{toname}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="toname">}}
   {\HCode{</div>}}
\Configure{date}
   {\HCode{<span class="date">}}
   {\HCode{</span>}}
\Configure{dear}
   {\HCode{<span class="dear">}}
   {\HCode{</span>}}
\Configure{sincerely}
   {\HCode{<span class="sincerely">}}
   {\HCode{</span>}}
\Configure{signature}
   {\HCode{<span class="signature">}}
   {\HCode{</span>}}
\Configure{cc}
   {\HCode{<div class="cc">}\IgnorePar}
   {\ifvmode\IgnorePar\fi\HCode{</div>}}
\Configure{encl}
   {\HCode{<div class="encl">}\IgnorePar}
   {\ifvmode\IgnorePar\fi\HCode{</div>}}
>>>


%%%%%%%%%%%%%%%%%
\section{AMS Art, Proc, Book}
%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%
\subsection{amsart}
%%%%%%%%%%%%%%%%



\<configure html4 amsart\><<<
|<ams art,proc,book|>
|<ams art,proc|>
|<ams art|>
>>>




\<ams art,proc,book\><<<
|<ams maketitle|>
|<makeketitle config 4.0t|>
|<thebib config|>
>>>

\<makeketitle config 4.0t\><<<
|<config captions|>
>>>







\<ams art,proc,book\><<<
\ifx \deferred@thm@head\:UnDef\else   
   |<shared ams thm/cls|>
   |<ams 2000 art + book + proc|>
\fi
>>>

\<ams 2000 art + book + proc\><<<
\Configure{qed}
     {\HCode{<span class="qed">}} {\HCode{</span>}}
\Css{.qed {width:2ex; float:right; text-align:right;}}
>>>

\<shared ams thm/cls\><<<
\Configure{proof}
   {\ifvmode \IgnorePar \fi \EndP
       \HCode{<div class="proof">}\par\ShowPar
       \HCode{<span class="head">}\IgnorePar}
   {\HCode{</span>}\ShowPar}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}\par}
>>>



%%%%%%%%%%%%%%%%%%%
\subsection{amsproc}
%%%%%%%%%%%%%%%%%%%

\<configure html4 amsproc\><<<
|<ams art,proc,book|>
|<ams proc,book|>
|<ams art,proc|>
>>>


%%%%%%%%%%%%%%%%%%%
\subsection{amsdtx}
%%%%%%%%%%%%%%%%%%%


\<configure html4 amsdtx\><<<
|<amsdtx maketitle|>
>>>


%%%%%%%%%%%%%%%%%%%%%
\subsection{amsbook}
%%%%%%%%%%%%%%%%%%%%%

\<configure html4 amsbook\><<<
|<ams art,proc,book|>
|<ams proc,book|>
|<ams book|>
>>>













%%%%%%%%%%%%%%%%%%%
\subsection{Divisions}
%%%%%%%%%%%%%%%%%%%


\<ams art,proc,book\><<<
|<ams art,proc,book div|>
|<ams art,proc,book toc|>  |%should appear before TocAt|%
|<ams options 1, 2, 3|>    
>>>


\<ams art,proc,book div\><<<
\ConfigureMark{part}
   {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\@ifundefined{partname}{}{%
          \ignorespaces\partname\space}%
          \@seccntformat{part}%
       \HCode{</span>}\fi }
\Configure{part}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h1 class="partHead"\a:LRdir>}\TitleMark\space\HtmlParOff}
   {\HCode{</h1>}\HtmlParOn \IgnoreIndent \par}
\Configure{partTITLE+}{\thepart\space#1}
>>>


\<ams book\><<<
\Configure{likepart}{}{}
   {\IgnorePar\EndP\HCode{<h1 class="likepartHead"\a:LRdir>}}
   {\HCode{</h1>}\IgnoreIndent}
\Configure{likepartTITLE+}{#1}
>>>




\<ams art,proc,book div\><<<
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\@ifundefined{sectionname}{}{%
          \ignorespaces\sectionname\space}%
          \@seccntformat{section}%
       \HCode{</span>}\fi }
\Configure{section}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark\space\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
\Configure{sectionTITLE+}{\thesection\space#1}
>>>

\<ams art\><<<
\Css{.sectionHead{text-align:center;}}
>>>

 


\<ams proc,book\><<<
\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\ConfigureMark{subparagraph}{\thesubparagraph}
\Css{.paragraphHead  { margin-top:2em; font-weight: bold;}}
>>>




\<ams art\><<<
\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}}
  {.\HCode{</span>}\IgnorePar}
\ConfigureMark{subparagraph}{}
>>>


\<ams proc,book\><<<
\Configure{subparagraph}{}{}
  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
   \TitleMark\space}
  {\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead { font-weight: bold;}}
>>>

\<ams art\><<<
\Configure{subparagraph}{}{}
  {\ShowPar\noindent\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
   \TitleMark\space}
  {.\endgroup\HCode{</span>}\IgnorePar}
>>>>



\<ams book\><<<
\ConfigureMark{chapter}
   {\HCode{<span class="titlemark">}\chaptername
    \ \thechapter\HCode{</span>}}
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}%
     \TitleMark{\HCode{<br\xml:empty>}}}
   {\HCode{</h2>}\IgnoreIndent\par}
\Configure{chapterTITLE+}{\thechapter\space#1}
>>>

\<ams book\><<<
\ConfigureMark{appendix}{\HCode{<span class="titlemark">}%
   \appendixname \ \thechapter\HCode{</span>}}
\Configure{appendix}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}%
     \TitleMark{\HCode{<br\xml:empty>}}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{appendixTITLE+}{\thechapter\space#1}
\Configure{likechapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="likechapterHead"\a:LRdir>}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{likechapterTITLE+}{#1}
>>>


\<ams art,proc\><<<
\Configure{endsection}
     {part}
\Configure{endsubsection}
   {section,part}
\Configure{endsubsubsection}
   {subsection,section,part}
\Configure{endparagraph}
   {subsubsection,subsection,section,part}
>>>



\<ams book\><<<
\Configure{endpart}{likepart}
\Configure{endlikepart}{endpart}
\Configure{endchapter}{likechapter,appendix,part,likepart}
\Configure{endlikechapter}{chapter,appendix,part,likepart}
\Configure{endappendix}{chapter,likechapter,part,likepart}
\Configure{endsection}
   {chapter,likechapter,appendix,part,likepart}
\Configure{endsubsection}
   {section,chapter,likechapter,appendix,part,likepart}
\Configure{endsubsubsection}
   {subsection,section,chapter,likechapter,appendix,part,likepart}
\Configure{endparagraph}
   {subsubsection,subsection,section,chapter,likechapter,%
    appendix,part,likepart}
>>>








%%%%%%%%%%%%%%%%%%%
\subsection{Tocs at Cut Points}
%%%%%%%%%%%%%%%%%%%


\<ams art,proc\><<<
\:CheckOption{1}     \if:Option
  |<toc article,report options 1|>
\fi
>>>

\<ams book\><<<
\:CheckOption{1}     \if:Option
   |<toc book options 1|>
\fi
>>>




%%%%%%%%%%%%%%%%%%%%%%
\section{amsppt.sty}
%%%%%%%%%%%%%%%%%%%%%%



\<configure html4 amsppt\><<<
\ifx \EnditemitemList\:UnDef
    \Configure{itemitem}
   {}{}
   {\par{\Configure{HtmlPar}{\Tg<p class="itemitem">}
                            {\Tg<p class="itemitem">} {}{}%
         \:xhtml{\Configure{HtmlPar}{\EndP\Tg<div class="itemitem">}
                            {\EndP\Tg<div class="itemitem">}
                            {\Tg</div>}{\Tg</div>}}%
         \noindent}}
   {}
   \Css{.itemitem {margin-left: 5em; text-indent: -2em;
                margin-top: 0.5em; margin-bottom: 0.5em;}}
\fi
|<32,4 amsppt|>
|<4 amsppt|>
>>>





\<4 amsppt\><<<
\Configure{title}
   {\IgnorePar\par\HCode{<div\Hnewline class="title">}}
   {\IgnorePar\EndP\HCode{</div>}\IgnorePar}
\Css{div.title {margin-top: 0.5em;
                font-weight: bold; text-align:center;}}

\Configure{author}
   {\IgnorePar\par\HCode{<div\Hnewline class="author">}}
   {\IgnorePar\EndP\HCode{</div>}\IgnorePar}
\Css{div.author {text-align:center}}

\Configure{affil}
   {\IgnorePar\par\HCode{<div\Hnewline class="affil">}}
   {\IgnorePar\EndP\HCode{</div>}\IgnorePar}
\Css{.affil {text-align:center}}

\Configure{date}
   {\IgnorePar\par\HCode{<div\Hnewline class="date">}}
   {\IgnorePar\EndP\HCode{</div>}\IgnorePar
      \append:def\c:footnote{ }%
   }
\Css{.date {text-align:center}}

\Configure{abstract}
   {\IgnorePar\par
    \HCode{<div\Hnewline class="abstract">}\ShowPar\IgnoreIndent\par}
   {}
   {}
   {\IgnorePar\EndP\HCode{</div>}\IgnorePar}
\Css{.abstract, .subjclass, .thanks, .keywords
   {margin-left:5\%; margin-right:5\%;}}

\Configure{subjclass}
   {\ifx \m:top\:Undef
       \let\m:top|=\relax \Css{.subjclass {margin-top:1em; }}%
    \fi  \Tg<div class="subjclass">} 
   {\Tg</div>}
\Configure{thanks}
   {\ifx \m:top\:Undef
       \let\m:top|=\relax \Css{.thanks {margin-top:1em; }}%
    \fi  \Tg<div class="thanks">}
   {\Tg</div>}
\Configure{keywords}
   {\ifx \m:top\:Undef
       \let\m:top|=\relax \Css{.keywords {margin-top:1em; }}%
    \fi  \ifvmode \IgnorePar\fi\EndP\Tg<div class="keywords">}
   {\ifvmode \IgnorePar\fi \EndP\Tg</div>}
>>>

\<32 amsppt, 32,4 vanilla\><<<
\Configure{title}
   {\IgnorePar\EndP\HCode{<div class="title">}\begingroup\bf}
   {\endgroup\IgnorePar\HCode{</div>}}
\Css{div.title {margin-top: 0.5em;}}
\Configure{author}
   {\IgnorePar\EndP\HCode{<br\xml:empty><center>}\IgnorePar\par}
   {\IgnorePar\EndP\HCode{</center>}}

>>>

\<32,4 amsppt\><<<
\Configure{specialhead}{}{}
   {\IgnorePar\EndP\HCode{<h1 class="amsspecialheadHead"\a:LRdir>}}
   {\HCode{</h1>}\IgnoreIndent}
\ConfigureToc{specialhead}
   {\HCode{<center>}\ignorespaces}{ }
   {}{\HCode{</center>}}
\Configure{head}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="amsheadHead"\a:LRdir>}}
   {\HCode{</h2>}\IgnoreIndent}
\ConfigureToc{head}
   {\ignorespaces}{ }{}{\HCode{<br\xml:empty>}}
\Configure{subhead}{}{}
   {\IgnorePar\EndP\HCode{<h3 class="amssubheadHead"\a:LRdir>}}
   {\HCode{</h3>}\IgnoreIndent}
\ConfigureToc{subhead} 
   {\:nbsp\:nbsp\:nbsp\:nbsp\ignorespaces} { }
   {} {\HCode{<br\xml:empty>}}
\Configure{subsubhead}{}{}
   {\IgnorePar\EndP\HCode{<h4 class="amssubsubheadHead"\a:LRdir>}}
   {\HCode{</h4>}\IgnoreIndent}
\ConfigureToc{subsubhead}
  {\:nbsp\:nbsp\:nbsp\:nbsp\:nbsp%
       \:nbsp\:nbsp\:nbsp\ignorespaces} { } {} {\HCode{<br\xml:empty>}}
\Configure{block}
   {\IgnorePar\EndP
       \HCode{<table cellpadding="15"><tr><td>}\IgnorePar\par}
   {\IgnorePar\HCode{</td></tr></table>}\IgnorePar\par}
|<amsppt captions|>
\Configure{roster}
    {\IgnorePar\EndP\HCode{<table>}\let\end:item|=\empty}
    {\IgnorePar\end:item\HCode{</table>}\IgnorePar\par} 
    {\IgnorePar\end:item \HCode{<tr valign="top"><td>}
                        \def\end:item{\EndP\HCode{</td></tr>}}}
    {\:nbsp\EndP\HCode{</td><td>}\ShowPar}
    {\IgnorePar\EndP\HCode{<table>}\let\end:iitem|=\empty}
    {\IgnorePar\end:iitem\HCode{</table>}\IgnorePar\par}
    {\IgnorePar\end:iitem\HCode{<tr valign="top"><td>}}
    {\HCode{</td><td>}
      \def\end:iitem{\EndP\HCode{</td></tr>}}}
|<bib in amsppt.sty|>
>>>

%%%%%%%%%%%%%%%%%%%%%%%%
\section{amstex.tex}
%%%%%%%%%%%%%%%%%%%%%%%%

\<amstex.tex m:env\><<<
|<amsmath / amstex1 m:env|>
>>>

\<NO\><<<
\def\m:env#1{\:xhtml{\IgnorePar\EndP}\HCode{<center><table class="#1"
   border="0" cellpadding="0" cellspacing="15"><tr><td>}}
\def\endm:env{\HCode
  {</td></tr></table></center>}\IgnorePar}
>>>

\<amsmath / amstex1 m:env\><<<
\def\m:env#1{\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
  \HCode{<center class="#1"><table class="#1"\Hnewline
   border="0" cellpadding="0" cellspacing="15"><tr><td>}}
\def\endm:env{\:xhtml{\IgnorePar\EndP}%
   \HCode{</td></tr></table></center>}\IgnorePar
   \ifmmode\else\par\fi}
>>>


\<shared amstex.tex matrix 4.0t\><<<
\Configure{linebreak}{\HCode{<br\xml:empty>}}
|<amstex.tex m:env|>
>>>

\<configure html4-math amstex\><<<
\Configure{pmatrix}
   {\bgroup\m:env{pmatrix}}
   {\endm:env\egroup}
\Configure{smallmatrix}
    {\bgroup\m:env{smallmatrix}\Picture+{}}
    {\EndPicture\endm:env\egroup}
    {}{} {}{}
\Configure{bmatrix}
   {\bgroup\m:env{bmatrix}}
   {\endm:env\egroup}
\Configure{vmatrix}{\bgroup\m:env{vmatrix}}{\endm:env\egroup}
\Configure{Vmatrix}{\bgroup\m:env{Vmatrix}}{\endm:env\egroup}
\Configure{aligned}
  {\bgroup\m:env{aligned}\Picture+{}}
  {\EndPicture\endm:env\egroup}
  {}{}{}{}
\Configure{xalignat}
  {\bgroup\m:env{xalignat}}
  {\endm:env\egroup}
  {}{}{}{}
\Configure{xxalignat}
  {\bgroup\m:env{xxalignat}}
  {\endm:env\egroup}
  {}{}{}{}
\Configure{multline}
  {\bgroup\m:env{multline}\Picture+{}\vtop\bgroup$$}
  {$$\egroup\EndPicture\endm:env\egroup}
  {}{}
\Configure{alignedat}
  {\bgroup\m:env{alignedat}\Picture+{}}
  {\EndPicture\endm:env\egroup}
  {}{}{}{}
\Configure{gathered}
  {\bgroup\m:env{gathered}\Picture+{}}
  {\EndPicture\endm:env\egroup}
  {}{}{}{}
>>>

% \Configure{topaligned}{\m:env{topaligned}}{\endm:env}
% \Configure{botaligned}{\m:env{botaligned}}{\endm:env}

\<configure html4-math amstex\><<<
|<shared amstex.tex matrix 4.0t|>
|<tabular amstex.tex matrix 4.0t|>
|<tabular amstex.tex align 4.0t|>
|<nonpic amstex.tex cases 4.0t|>
\:CheckOption{pic-matrix} \if:Option
   \Configure{matrix}
      {\m:env{matrix}\Picture+{}}  {\EndPicture\endm:env}
      {}{} {}{}
\else
   \Log:Note{for pictorial matrix,
                      use the command line option `pic-matrix'}
\fi
\:CheckOption{pic-align}  \if:Option
   \Configure{align}
       {\m:env{align}\Picture+{}} \EndPicture{\endm:env}
       {} {} {} {}
\else
   \Log:Note{for pictorial align,
                      use the command line option `pic-align'}
   \Configure{align}
      {\HCode{<table\Hnewline class="align">}}  {\HCode{</table>}}
      {\HCode{<tr\Hnewline>}}   {\HCode{</tr>}}
      {\HCode{<td>}}   {\HCode{</td>}}
\fi
\:CheckOption{pic-cases}  \if:Option
   \Configure{cases}
       {\m:env{cases}\Picture+{}}{\EndPicture\endm:env}
\else
   \Log:Note{for pictorial cases,
                      use the command line option `pic-cases'}
\fi
\Configure{alignat}
  {\bgroup\m:env{alignat}\Picture+{}}
  {\EndPicture\endm:env \egroup}
  {}{} {}{}
\Configure{gather}
  {\bgroup\m:env{gather}\Picture+{}}
  {\EndPicture\endm:env\egroup}
  {}{} {}{}
|<32,4 picmath amstex.tex|>
>>>

\<32,4 picmath amstex.tex\><<<
\Configure{frac}{\Picture+{ align="middle"}}{\EndPicture}
\Configure{dfrac}{\Picture+{ align="middle"}}{\EndPicture}
\Configure{tfrac}{\Picture+{ align="middle"}}{\EndPicture}
\Configure{binom}{\Picture+{ align="middle"}}{\EndPicture}
\Configure{dbinom}{\Picture+{ align="middle"}}{\EndPicture}
\Configure{tbinom}{\Picture+{ align="middle"}}{\EndPicture}
\Configure{boxed}{\Picture+{ align="middle"}}{\EndPicture}
>>>

\<tabular amstex.tex matrix 4.0t\><<<
\Configure{matrix}
   {\HCode{<table\Hnewline class="matrix">}}  {\HCode{</table>}}
   {\HCode{<tr\Hnewline>}}   {\HCode{</tr>}}
   {\HCode{<td>}}   {\HCode{</td>}}
\Configure{cases}{\m:env{cases}}{\endm:env}
>>>



\section{amsthm.sty}

\<configure html4 amsthm\><<<
\ConfigureEnv{proof}{\par\leavevmode}{\par\ShowPar}{}{}
|<shared ams thm/cls|>
>>>






\section{amsmath}

%\Configure{equation}
%  {\:xhtml{\IgnorePar\EndP}%
%           \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
%  }
%  {\IgnorePar\EndP\HCode{</td><td width="5\%">}}
%  {\end:TTT}

\<configure html4-math amsmath\><<<
\Configure{equation}
  {\ifmmode\else\par \IgnorePar\fi \EndP
           \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
  }
  {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td width="5\%">}}
  {\end:TTT\ifmmode\else |<try inline par|>\fi}
\Css{.equation td{text-align:center; }}
>>>

Equations in amsmath.sty are defined in term of gather, and 
gather is a one parameter macro.  Unlike laktex where the body is
read within the environment, in gather it is read at the \verb'\begin{equation}' point under the conditions that exist there.

\<configure html4-math amsmath\><<<
\Configure{substack}{\Picture+{}}{\EndPicture}
>>>



\<configure html4-math amsmath\><<<
|<amsmath / amstex1 m:env|>
>>>

\<configure html4-math amsmath\><<<
\:CheckOption{pic-align}  \if:Option
   |<amsmath pic-align css|>
\else
    |<amsmath align css|>
\fi
\:tempc{align}{align}
\:tempc{alignat}{alignat}
\:tempc{xalignat}{xalignat}
\:tempc{xxalignat}{xxalignat}
\:tempc{flalign}{flalign}
\:tempc{align*}{align-star}
\:tempc{alignat*}{alignat-star}
\:tempc{xalignat*}{xalignat-star}
\:tempc{flalign*}{flalign-star}
>>>

\<amsmath align css\><<<
\def\:tempc#1#2{%
   \Configure{#1}
   {\IgnorePar\EndP  \HCode{<table\Hnewline class="#2">}}
   {\HCode{</table>}}  {\HCode{<tr>}}   {\HCode{</tr>}}
   {\HCode{<td\Hnewline
      class="align-\ifnum \HCol>\maxfields@ label\else 
         \ifodd\HCol\space  odd\else     even\fi 
       \fi">}}
   {\HCode{</td>}}}
\Css{table.align, table.alignat, table.xalignat, table.xxalignat, 
     table.flalign, table.align-star, table.alignat-star,
     table.xalignat-star,  table.flalign-star
   {width:100\%; white-space: nowrap;}}
\Css{td.align-label { width:5\%;  }}
\Css{td.align-odd { text-align:right; padding-right:0.3em;}}
\Css{td.align-even { text-align:left; padding-right:0.6em;}}
>>>

\<amsmath pic-align css\><<<
\def\:tempc#1#2{%
   \ConfigureEnv{#1}
     {\par\IgnorePar\EndP\HCode{<div class="align">}\Picture*[pict]{}}
     {\EndPicture\EndP\HCode{</div>}\par}
     {} {}}
\Css{div.align {text-align: center;}}
>>>

\<configure html4-math amsmath\><<<
\Configure{split}
   {\HCode{<table\Hnewline  class="split"><tr><td>}} 
   {\ifvmode \IgnorePar\fi \HCode{</td></tr></table>}}
   {\HCode{<br\Hnewline class="split-tr"\xml:empty>}} {}
   {\HCode{<br\Hnewline class="split-td"\xml:empty>}} {}
\Configure{smallmatrix}
   {\:xhtml{\IgnorePar\EndP}%
    \HCode{<table\Hnewline class="smallmatrix">}}   {\HCode{</table>}}
   {\HCode{<tr>}}                                   {\HCode{</tr>}} 
   {\HCode{<td\Hnewline>}}                          {\HCode{</td>}}
>>>



\<configure html4-math amsmath\><<<
\ConfigureEnv{gather*}{\m:env{gather*}}{\endm:env}{}{}   
\ConfigureEnv{gathered}{\m:env{gathered}}{\endm:env}{}{}   
\ConfigureEnv{matrix}{\m:env{matrix}}{\endm:env}{}{}   
\ConfigureEnv{quotation}{\m:env{quotation}}{\endm:env}{}{}   
\Configure{equations}{*}{}
>>>


A `\verb'\begin{multline}...\end{multline}' is not a standard environment
in the sense that the environment as a whole is read in one piece and
then processed, instead of reading it piecewise and process it as it
goes.  That is, we have a behavior similar to that in verbatim
environments. The behavior is due to multline being implemented in
terms of \verb'\gather@#1{..}'.  Hence, for the picture environment, we
need to change early the catcodes of `\verb'_' and `\verb'^'.

\<configure html4-math amsmath\><<<
\ConfigureEnv{multline}
  {\:xhtml{\IgnorePar\EndP}%
    \HCode{<\tbl:XV{multline}><tr><td>}\Picture*{}\ExtractHLabel
  }
  {\EndPicture |<put HLabel|>\end:TTT}
  {}{}
  {}{}
\ConfigureEnv{multline*}
  {\:xhtml{\IgnorePar\EndP}%
    \HCode{<\tbl:XV{multline-star}><tr><td>}\Picture*{}%
  }
  {\EndPicture \end:TTT}
  {}{}
|<extract amsmath labels|>
>>>

\<extract amsmath labels\><<<
\def\ExtractHLabel{%
   \def\tagform@##1{{%
      \ifx \:HLabel\:UnDef \let\:HLabel=\empty \fi
      \def\tagform@####1{\expandafter\let\csname ####1\endcsname\def}%
      \:HLabel
      \expandafter\ifx\csname ##1\endcsname\relax
        \let\tagform@=\relax
        \let\HCode=\relax
        \edef\:temp{\noexpand\append:def\noexpand
                        \:HLabel{\HCode{<br />}\tagform@{##1}\HCode{<br />}}}%
        \:temp
        \global\let\:HLabel=\:HLabel
      \fi
   }}}
\def\PutHLabel{\:HLabel}
>>>

\<put HLabel\><<<
\ifx \:HLabel\:Undef \else
   \HCode{</td><td width="5\%">}\PutHLabel
   \global\let\:HLabel\:Undef
\fi
>>>




\<configure html4-math amsmath\><<<
\ConfigureEnv{gather}
  {\:xhtml{\IgnorePar\EndP}%
    \HCode{<\tbl:XV{gather}><tr><td 
       class="gather1">}\Picture*{}\ExtractHLabel
  }
  {\EndPicture |<put HLabel|>\end:TTT}
  {}{}
\ConfigureEnv{gather*}
  {\:xhtml{\IgnorePar\EndP}%
    \HCode{<\tbl:XV{gather-star}><tr><td>}\Picture*{}%
  }
  {\EndPicture \end:TTT}
  {}{}
\Css{td.gather-star, td.gather1 {text-align:center; }}
>>>





\<mathml: plain, amsmath, amstex1\><<<
\def\underarrow@#1#2#3{%
      \Tg<|.munder>\Tg<|.mrow\Hnewline>#1\Tg</|.mrow>%
                 \Tg<|.mrow\Hnewline>#2\Tg</|.mrow>%
      \Tg</|.munder>}%

\def\overarrow@#1#2#3{%
      \Tg<|.mover>\Tg<|.mrow
           class="fill">#1\Tg</|.mrow>%
      \Tg<|.mrow\Hnewline>{#2#3}\Tg</|.mrow>%
      \Tg</|.mover>}%
>>>

\<mathml: plain, fontmath, amsmath, amstex1\><<<
\def\overrightarrow{\mathpalette{\overarrow@\rightarrow}}
\def\overleftarrow{\mathpalette{\overarrow@\leftarrow}}
\def\overleftrightarrow{\mathpalette{\overarrow@\leftrightarrow}}

\def\underrightarrow{\mathpalette{\underarrow@\rightarrow}}
\def\underleftarrow{\mathpalette{\underarrow@\leftarrow}}
\def\underleftrightarrow{\mathpalette{\underarrow@\leftrightarrow}}
>>>


\<mathml: plain, fontmath, amsmath, amstex1NO\><<<
\def\overrightarrow{\mathpalette{\overarrow@\rightarrow}}
\def\overleftarrow{\mathpalette{\overarrow@\leftarrow}}
\def\overleftrightarrow{\mathpalette{\overarrow@\leftrightarrow}}

\def\underrightarrow{\mathpalette{\underarrow@\rightarrow}}
\def\underleftarrow{\mathpalette{\underarrow@\leftarrow}}
\def\underleftrightarrow{\mathpalette{\underarrow@\leftrightarrow}}
>>>

 The \verb'\HCode{}' in \verb'\sideset' is for catching superscripts and subscripts


\<32,4 picmath amsmath,amstex1\><<<
|<32,4 picmath: plain, fontmath, amsmath, amstex1|>
>>>

\<configure html4-math amsmath\><<<
|<32,4 picmath amsmath,amstex1|>
>>>

\<configure html4-math amsmath\><<<
\Configure{overset} {\Picture+{ \a:@Picture{}}} {\EndPicture}
\Configure{underset} {\Picture+{ \a:@Picture{}}} {\EndPicture}
>>>


\<configure html4-math amsmath\><<<
\Configure{xrightarrow} {\Picture+{ \a:@Picture{}}} {\EndPicture}
\Configure{xleftarrow} {\Picture+{ \a:@Picture{}}} {\EndPicture}
\Configure{genfrac}
  {\Picture+{}\bgroup} {}{}{}{}{\egroup\EndPicture}
>>>

\section{amstex.sty (amstex1)}

\<configure html4 amstex1\><<<
\ConfigureEnv{aligned}{\m:env{aligned}}{\endm:env}{}{}
|<amsmath / amstex1 m:env|>
>>>


\<configure html4-math amstex1\><<<
|<32,4 picmath amsmath,amstex1|>
\ConfigureEnv{equation*}{\m:env{equation*}}{\endm:env}{}{}
\ConfigureEnv{equation}{\m:env{equation}}{\endm:env}{}{}   
\Configure{eqn}{\HCode{</td><td>}}
\ConfigureEnv{align}{\m:env{align}}{\endm:env}{}{}   
\ConfigureEnv{align*}{\m:env{align*}}{\endm:env}{}{}   
\ConfigureEnv{alignat}{\m:env{alignat}}{\endm:env}{}{}   
\ConfigureEnv{alignat*}{\m:env{alignat*}}{\endm:env}{}{}   
\ConfigureEnv{xalignat}{\m:env{xalignat}}{\endm:env}{}{}   
\ConfigureEnv{xxalignat}{\m:env{xxalignat}}{\endm:env}{}{}   
\ConfigureEnv{xalignat*}{\m:env{xalignat*}}{\endm:env}{}{}   
\ConfigureEnv{aligned}{\m:env{aligned}}{\endm:env}{}{}
\ConfigureEnv{alignedat}{\m:env{alignedat}}{\endm:env}{}{}
\ConfigureEnv{gather}{\m:env{gather}}{\endm:env}{}{}   
\ConfigureEnv{gather*}{\m:env{gather*}}{\endm:env}{}{}   
\ConfigureEnv{gathered}{\m:env{gathered}}{\endm:env}{}{}   
\ConfigureEnv{matrix}{\m:env{matrix}}{\endm:env}{}{}   
\ConfigureEnv{multline}{\m:env{multline}}{\endm:env}{}{}   
\ConfigureEnv{multline*}{\m:env{multline*}}{\endm:env}{}{}   
\ConfigureEnv{pmatrix}{\m:env{pmatrix}}{\endm:env}{}{}
\ConfigureEnv{bmatrix}{\m:env{bmatrix}}{\endm:env}{}{}
\ConfigureEnv{vmatrix}{\m:env{vmatrix}}{\endm:env}{}{}
\ConfigureEnv{Vmatrix}{\m:env{Vmatrix}}{\endm:env}{}{}
\Configure{gather}{\Picture*{}}{\EndPicture}
>>>





\<config amstex1 pic-math utilities\><<<
\Configure{aligned}
   {\Picture*{}}{\EndPicture} {}{}{}{}
>>>

\<configure html4-math amstex1\><<<
\Configure{dotsc}                 {\pic:sym{dotsc}}
\Configure{dotso}                 {\pic:sym{dotso}}
>>>



\<configure html4-math amsmath\><<<
\Configure{intertext}
    {\IgnorePar \ifinalign@   
        \HCode{</td></tr><tr><td colspan="\HCol"
                                            class="intertext">}%
     \else \ifingather@
        \HCode{<tr><td colspan="\HCol" class="intertext">}%
     \fi\fi
    }
    {\ifvmode \IgnorePar \fi \EndP\ifinalign@ 
        \HCode{</td></tr><tr><td>}%
     \else \ifingather@
         \HCode{</td></tr>}%
     \fi\fi
    }
>>>



\<configure html4-math amsmath\><<<
\Configure{@begin}
  {split}
  {\ifx \EndPicture \:UnDef \else \let\tagform@=\:gobble \fi}
>>>



%%%%%%%%%%%%%%%%%
\section{amscd}
%%%%%%%%%%%%%%%%%%

\<configure html4 amscd\><<<
\ConfigureEnv{CD}
   {\Picture*{ class="CD"}$} {$\EndPicture} {}{}
\Css{.CD {text-align:center}}
>>>







%%%%%%%%%%%%%%%%
\section{Memoir}
%%%%%%%%%%%%%%%%%

\<configure html4 memoir\><<<
\Configure{poemline}
   {\HCode{<span class="poemline">}} {\HCode{</span>}}
\Css{.poemline {text-align:right; width:6em;}}
>>>


%%%%%%%%%%%%%%%%
\section{Elsvier Articles (elsart)}
%%%%%%%%%%%%%%%%%

\<configure html4 elsart\><<<
|<32,4 elsart|>
\Configure{abstract}
  {\HCode{<\tbl:XV{abstract}><tr><td\Hnewline>}\par\ShowPar}
  {}
  {\ifvmode\IgnorePar\fi \HCode{</td></tr></table>}}
\Configure{keyword}
  {\HCode{<\tbl:XV{keyword}><tr><td\Hnewline>}}
  {\ifvmode\IgnorePar\fi \HCode{</td></tr></table>}}
\ConfigureEnv{abstract}
   {\ifvmode \IgnorePar\fi \EndP}
   {\ifvmode \IgnorePar\fi \EndP}
   {}{}
\ConfigureEnv{keyword}
   {\ifvmode \IgnorePar\fi \EndP}
   {\ifvmode \IgnorePar\fi \EndP}
   {}{}
>>>


\<32,4 elsart\><<<
\ConfigureEnv{frontmatter}
  {\EndP\IgnorePar
   \HCode{<\tbl:XV{frontmatter}><tr><td><div 
       class="frontmatter"\Hnewline>}}
  {\ifvmode\IgnorePar\fi \EndP\HCode{</div>}\end:TTT\IgnorePar}
  {}{}
\Css{div.frontmatter {text-align:center;}}
>>>



%%%%%%%%%%%%%%%%%%%%%
\section{American Psychological Association (APA)}
%%%%%%%%%%%%%%%%%%%%%

\<configure html4 apa\><<<
|<apa maketitle|>
|<apa abstract|>
|<apa captions|>
\Configure{note}
   {\HCode{<div class="note">}\bgroup
    |<apa maketitle br cr|>%
   }
   {\egroup \HCode{</div>}}
\Css{div.note{text-align:left; margin-top:1em; }}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{JHEP}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 JHEP\><<<
|<latex shared part config|>
|<latex shared section config|>
|<latex shared subsection config|>
|<latex shared subsubsection config|>
|<acm paragraph config|>
\Css{.sectionHead, .partHead{text-transform:uppercase}}
\Css{.subsubsectionHead, .likesubsubsectionHead {font-style: italic;}}
>>>

\<configure html4 JHEP\><<<
\Configure{abstract}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="abstract">}\IgnoreIndent}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{accepted}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="accepted">}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{author}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="author">}\par \ShowPar}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{conference}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="conference">}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{dedicated}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="dedicated">}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{keywords}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="keywords">}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{preprint}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="preprint">}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{received}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="received">}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{title}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="title">}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Css{.abstract{margin-top:1em; margin-bottom:1em;}}
\Css{.accepted{margin-top:1em; margin-bottom:1em; text-align:right;}}
\Css{div.author{margin-top:1em; margin-bottom:1em; margin-left:2em;}}
\Css{.conference{margin-top:1em; margin-bottom:1em;}}
\Css{.dedicated{margin-top:1em; margin-bottom:1em;}}
\Css{.keywords{margin-top:1em; margin-bottom:1em;}}
\Css{.preprint{margin-top:1em; margin-bottom:1em;}}
\Css{.received{margin-top:1em; margin-bottom:1em; text-align:right;}}
\Css{.title{margin-top:1em; margin-bottom:1em;}}
>>>

\<configure html4 JHEP\><<<
|<config bibitem|>
|<thebib config|>
|<JHEP maketitle footnote|>
>>>

\<JHEP thanks author date and\><<<
\Configure{thanks} 
   {\HCode{<div class="thanks">}}{\HCode{</div>}}
|<thank for thanks|>
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
>>>


\<JHEP end-thanks author date and\><<<
\Configure{thanks} 
   {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
     \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
   {\ifvmode\IgnorePar\fi\EndP\egroup\RecallEndP }
|<thanks for thanks EndP|>
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{acm-proc-article-sp}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure html4 acm-proc-article-sp\><<<
|<config bibitem|>
|<acm-proc-article-sp thebib config|>
|<config captions|>
|<acm proof|>
>>>



\<configure html4 acm-proc-article-sp\><<<
\Configure{qed}
  {\Picture+[Q.E.D.]{}\o:qed:\EndPicture
   \SavePicture\qed:sym[Q.E.D.]}
>>>

\<configure html4 acm-proc-article-sp\><<<
|<latex shared part config|>
|<latex shared section config|>
|<latex shared subsection config|>
|<latex shared subsubsection config|>
|<acm paragraph config|>
\Css{.sectionHead, .partHead{text-transform:uppercase}}
\Css{.subsubsectionHead, .likesubsubsectionHead {font-style: italic;}}
>>>

\<acm paragraph config\><<<
\ConfigureMark{paragraph}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\theparagraph\space
       \HCode{</span>}\fi}
\Configure{paragraph}{}{}
   {\ifvmode \IgnorePar \fi  \EndP
    \bgroup \IgnorePar\HCode{<h5 class="paragraphHead"\a:LRdir>}%
    \TitleMark\space \HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup}
\Configure{likeparagraph}{}{}
   {\ifvmode \IgnorePar \fi  \EndP
    \bgroup \IgnorePar\HCode{<h5 class="likeparagraphHead"\a:LRdir>}%
    \HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup}
\Css{.paragraphHead, .likeparagraphHead  { font-style:italic; }}
>>>





%%%%%%%%%%%%%%%%%%%%
\section{scrbook}
%%%%%%%%%%%%%%%%%%%%

\<configure html4 scrbook\><<<
|<scr article,report,book|>
|<scr report,book|>
|<shared bib env|>
|<thebib config|>
|<description 4|>
\def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}
\def\:tempa{
   \CutAt{part}
   \CutAt{likepart}
   |<cut toc scr: part|>%
}
\def\:tempb{
   |<tocat scr: part|>
   \CutAt{chapter,likechapter,addchap,appendix,part}
   \CutAt{likechapter,addchap,appendix,part}
   \CutAt{addchap,chapter,likechapter,appendix,part}
   \CutAt{appendix,chapter,likechapter,addchap,part}
   |<tocat: ch|>%
}
\def\:tempc{
   |<tocat scr: ch|>%
   \CutAt{section,likesection,chapter,likechapter,addchap,appendix,part}
   \CutAt{likesection,chapter,likechapter,addchap,appendix,part}
   |<cut toc: sec|>%
}
\def\:tempd{
   |<tocat scr: section|>%
   |<tocat scr: subsection|>%
   |<cut toc: subsec|>%
}

\:CheckOption{4}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
                          \:tempa \:tempc \:tempd
    \else                 \:tempa \:tempb \:tempc \:tempd  \fi
\else\:CheckOption{3}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
                          \:tempa \:tempc  \:tempd
    \else                 \:tempa \:tempb  \:tempc  \fi
\else\:CheckOption{2}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax  \:tempa \:tempc
    \else                 \:tempa \:tempb    \fi
\else\:CheckOption{1}     \if:Option
    \:tempa
\else
    \Log:Note{for sectioning pagination,
          use the command line option `1', `2', or `3'}%
\fi \fi \fi \fi

\:CheckOption{1}     \if:Option
   |<toc scrbook options 1|>
\fi

|<scrbook end units|>
\ifx \part\:UnDef \else
   |<latex shared part config|>
\fi

|<config lists of figures and tables|> 

\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likeparagraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
  {\HCode{</span>}\IgnorePar}
\Css{.paragraphHead, .likeparagraphHead
   { margin-top:2em; font-weight: bold;}}

\ConfigureMark{subparagraph}{\thesubparagraph}
\Configure{subparagraph}{}{}
  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
   \TitleMark\space}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likesubparagraph}{}{}
  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead, .likesubparagraphHead
   { font-weight: bold;}}
\ConfigureEnv{picture}
   {\bgroup\ifvmode \Configure{HtmlPar}
      {\EndP\HCode{<!--l. \the\inputlineno-->%
}\HCode{<p
            class="center">}}%
      {\EndP\HCode{<!--l. \the\inputlineno-->%
}\HCode{<p
            class="center">}}%
      {\:xhtml{\Tg</p>}}{\:xhtml{\Tg</p>}} \ShowPar\leavevmode
    \fi}
   {\egroup}{}{}

\ConfigureEnv{quote}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quote">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar\ShowIndent}
\Css{.quote  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}
|<book-report-article index|>
|<scr reprt/book captions|>

\ConfigureEnv{verse}
   {\ifvmode \IgnorePar\fi\EndP\Tg<div class="verse">}
   {\ifvmode \IgnorePar\fi\EndP\Tg</div>}
   {}{}
\ConfigureList{verse}
   {}{}
   {\parindent=\z@}  {\par}
\Css{.verse{white-space:nowrap; margin-left:2em}}
|<base font size|>

\ConfigureEnv{quotation}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quotation">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
\Css{.quotation  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}

\Configure{listof}{}{}{}{\HCode{<br\xml:empty>}}{}{}



|<latex shared part config|>

>>>

\<scrbook end-thanks author date and\><<<
\Configure{thanks author date and}
   {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
     \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
   {\EndP\egroup\RecallEndP }
   {\HCode{<div class="author" >}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thanks for thanks p|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
>>>



\<scrbook thanks author date and\><<<
\Configure{thanks author date and}
   {\HCode{<div class="thanks">}}{\HCode{</div>}}
   {\HCode{<div class="author">}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thank for thanks|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}

>>>

 
\<scr report,book\><<<
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\thesection\HCode{</span>}\fi }
\Configure{section}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark.~~\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
\Configure{sectionTITLE+}{\thesection\space#1}
\Configure{likesection}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\IgnorePar\HCode{<h3 class="likesectionHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
\Configure{likesectionTITLE+}{#1}
>>>



\<scr report,book\><<<
|<shared h5 subsubsection|>
\ConfigureMark{appendix}{\HCode{<span class="titlemark">}%
   \thechapter\HCode{</span>}}
\Configure{appendix}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}\TitleMark{}.~~}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{appendixTITLE+}{\thechapter\space#1}
\Configure{likechapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="likechapterHead"\a:LRdir>}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{likechapterTITLE+}{#1}
\Configure{addchap}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="addchapHead"\a:LRdir>}}
   {\HCode{</h2>}\IgnoreIndent\par}
>>>

\<configure html4 scrbook\><<<
\ConfigureMark{chapter}
   {\if@mainmatter
       \HCode{<span class="titlemark">}\thechapter\HCode{</span>}.~~\fi}
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark{}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{chapterTITLE+}{\if@mainmatter\thechapter\space\fi#1}
\renewcommand\thechapter {\if@mainmatter\@arabic\c@chapter\fi}
>>>

\<configure html4 scrreprt\><<<
\ConfigureMark{chapter}
   {\HCode{<span class="titlemark">}\thechapter\HCode{</span>}.~~}
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark{}}
   {\HCode{</h2>}\IgnoreIndent\par}
\Configure{chapterTITLE+}{\thechapter\space#1}
>>>

\<scr article,report,book\><<<
\ConfigureMark{minisec}{}
\Configure{minisec}{}{}
   {\ifvmode \IgnorePar \fi  \EndP
    \bgroup \IgnorePar\HCode{<h5 class="minisecHead"\a:LRdir>}%
    \TitleMark\space \HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
>>>

\<scrbook end units\><<<
\Configure{endlikeparagraph}
   {paragraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endsubparagraph}
   {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubparagraph}
   {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endsection}
     {likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesection}
     {section,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endsubsection}
   {likesubsection,section,likesection,chapter,%
      likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubsection}
   {subsection,section,likesection,chapter,%
      likechapter,addchap,appendix,part,likepart}
\Configure{endsubsubsection}
   {likesubsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubsubsection}
   {subsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endparagraph}
   {likeparagraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endchapter}{likechapter,addchap,appendix,part,likepart}
\Configure{endlikechapter}{chapter,appendix,part,likeparaddchap,addchap}
\Configure{endaddchap}{chapter,likechapter,appendix,part,likepart}
\Configure{endappendix}{chapter,likechapter,addchap,part,likepart}
>>>


%%%%%%%%%%%%%%%%%%%
\section{scrreprt}
%%%%%%%%%%%%%%%%%%%




\<configure html4 scrreprt\><<<
\def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}

|<shared bib env|>
|<thebib config|>

\ifx \part\:UnDef \else
   |<latex shared part config|>
\fi

|<config lists of figures and tables|> 
\ConfigureEnv{picture}
   {\bgroup\ifvmode \Configure{HtmlPar}
      {\EndP\HCode{<!--l. \the\inputlineno-->%
}\HCode{<p
            class="center">}}%
      {\EndP\HCode{<!--l. \the\inputlineno-->%
}\HCode{<p
            class="center">}}%
      {\:xhtml{\Tg</p>}}{\:xhtml{\Tg</p>}} \ShowPar\leavevmode
    \fi}
   {\egroup}{}{}

\ConfigureEnv{quote}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quote">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar\ShowIndent}
\Css{.quote  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}
|<book-report-article index|>
|<scr reprt/book captions|>

\ConfigureEnv{verse}
   {\ifvmode \IgnorePar\fi\EndP\Tg<div class="verse">}
   {\ifvmode \IgnorePar\fi\EndP\Tg</div>}
   {}{}
\ConfigureList{verse}
   {}{}
   {\parindent=\z@}  {\par}
\Css{.verse{white-space:nowrap; margin-left:2em}}
|<base font size|>

\ConfigureEnv{quotation}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quotation">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
\Css{.quotation  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}

\Configure{listof}{}{}{}{\HCode{<br\xml:empty>}}{}{}


|<latex shared part config|>

\ConfigureEnv{abstract}{\:xhtml{\IgnorePar\EndP}\HCode
   {<\tbl:XV{abstract}><tr><td\Hnewline>}}
   {\EndP\HCode{</td></tr></table>}}{}{}
\Css{.abstract p {margin-left:5\%; margin-right:5\%;}}

\def\:tempa{
   \CutAt{part}
   \CutAt{likepart}
   |<cut toc scr: part|>%      
}
\def\:tempb{
   |<tocat scr: part|>%
   \CutAt{chapter,likechapter,addchap,appendix,part}
   \CutAt{likechapter,addchap,appendix,part}
   \CutAt{addchap,chapter,likechapter,appendix,part}
   \CutAt{appendix,chapter,likechapter,addchap,part}
   |<tocat: ch|>%
}
\def\:tempc{
   |<tocat scr: ch|>%
   \CutAt{section,likesection,chapter,likechapter,addchap,appendix,part}
   \CutAt{likesection,chapter,likechapter,addchap,appendix,part}
   |<cut toc: sec|>%
}
\def\:tempd{
   |<tocat scr: section|>%
   |<tocat scr: subsection|>%
   |<cut toc: subsec|>%
}

\:CheckOption{4}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
                          \:tempa \:tempc \:tempd
    \else                 \:tempa \:tempb \:tempc \:tempd  \fi
\else\:CheckOption{3}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
                          \:tempa \:tempc  \:tempd
    \else                 \:tempa \:tempb  \:tempc  \fi
\else\:CheckOption{2}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax  \:tempa \:tempc
    \else                 \:tempa \:tempb    \fi
\else\:CheckOption{1}     \if:Option
    \:tempa
\else
    \Log:Note{for sectioning pagination,
          use the command line option `1', `2', or `3'}%
\fi \fi \fi \fi

\:CheckOption{1}     \if:Option
  |<toc article,report options 1|>
\fi
|<scrreprt end units|>
\Configure{addchapTITLE+}{#1}
\def\tocaddchap#1#2#3{\par\:SPAN{addchapToc}{#2}\par}%  
>>>


\<scrreprt end-thanks author date and\><<<
\Configure{thanks author date and}
   {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
     \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
   {\EndP\egroup\RecallEndP }
   {\HCode{<div class="author" >}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thanks for thanks p|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
>>>

\<scrreprt thanks author date and\><<<
\Configure{thanks author date and}
   {\HCode{<div class="thanks">}}{\HCode{</div>}}
   {\HCode{<div class="author" >}}{\HCode{</div>}}
   {\HCode{<div class="date" >}}{\HCode{</div>}}
   {\HCode{<br class="and"\xml:empty>}}
   {\HCode{<br\xml:empty>}}
|<thank for thanks|>
\Css{div.author, div.date {text-align:center;}}
\Css{div.thanks{text-align:left; margin-left:10\%; font-size:80\%;
                font-style:italic; }}
>>>

\<configure html4 scrartcl\><<<
|<scr article,report,book|>
>>>

\<configure html4 scrreprt\><<<
|<scr article,report,book|>
|<scr report,book|>
|<description 4|>
\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likeparagraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
  {\HCode{</span>}\IgnorePar}
\Css{.paragraphHead, .likeparagraphHead
   { margin-top:2em; font-weight: bold;}}

\ConfigureMark{subparagraph}{\thesubparagraph}
\Configure{subparagraph}{}{}
  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
   \TitleMark\space}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likesubparagraph}{}{}
  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead, .likesubparagraphHead
   { font-weight: bold;}}
>>>

\<scrreprt end units\><<<
\Configure{endlikeparagraph}
   {paragraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endsubparagraph}
   {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubparagraph}
   {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}

\Configure{endsection}
     {likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesection}
     {section,chapter,likechapter,addchap,appendix,part,likepart}

\Configure{endsubsection}
   {likesubsection,section,likesection,chapter,%
      likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubsection}
   {subsection,section,likesection,chapter,%
      likechapter,addchap,appendix,part,likepart}
\Configure{endsubsubsection}
   {likesubsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endlikesubsubsection}
   {subsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,addchap,appendix,part,likepart}
\Configure{endparagraph}
   {likeparagraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,addchap,appendix,part,likepart}

\Configure{endaddchap}{likechapter,appendix,part,likepart,chapter}
\Configure{endchapter}{likechapter,appendix,part,likepart,addchap}
\Configure{endlikechapter}{chapter,appendix,part,likepart,addchap}
\Configure{endappendix}{chapter,likechapter,part,likepart,addchap}
>>>


%%%%%%%%%%%%%%
\section{Res}
%%%%%%%%%%%%%%

\<configure html4 res\><<<   
\ConfigureEnv{resume}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="resume">}\let\endHR=\empty}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{\endHR</div>}}    
    {} {}
\def\c:secnumdepth{-1}

\Configure{overlapped-section}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar }
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar  \HCode{</div>}}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h4 class="sectionHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h4>}%
    \HCode{<div class="section">}%
    \HtmlParOn \ShowPar \IgnoreIndent \csname par\endcsname}

\ConfigureEnv{tabbing}
    {\ifvmode \IgnorePar\fi \EndP \HCode{<table class="tabbing">}}
    {\ifvmode \IgnorePar\fi \HCode{</table>}\par\ShowPar}
    {} {}

\Configure{tabbing}
    {\ifvmode \IgnorePar\fi \HCode{<tr>}}
    {\HCode{</tr>}}
    {\ifvmode \IgnorePar\fi \HCode{<td class="tabbing">}}
    {\ifvmode \IgnorePar\fi \HCode{</td>}}

\Css{table.tabbing {width:100\%; margin-top:1em;}}
\Css{td.tabbing {width:33\%;}}
\Css{div.section {margin-left:3em;}}
>>>


\<configure html4 res\><<<   
\Configure{centeraddresses}
   {} {}
   {\HCode{<table class="center-addresses"><tr><td class="first-address">}}
   {\HCode{</td><td class="second-address">}}
   {\HCode{</td></tr></table>}}
\Css{.center-addresses {width:100\%}}
>>>

\<configure html4 res\><<<   
\Configure{linename}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="linename">}}
   {\HCode{</div><hr />}\par}
\Configure{lineaddress}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="line-address">}}
   {\HCode{<br />}}
   {\HCode{</div>}}
\Css{.line-address {text-align:right;}}
>>>

\<configure html4 res\><<<
\Configure{boxed-section}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<table class="section"><tr><td class="section">}\par
   }
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{</td></tr></table>}\par}
   {\ifvmode \IgnorePar\fi \HtmlParOff}
   {\HCode{</td><td class="section-body">}\HtmlParOn\par\ShowPar}
\Css{table.section td{ vertical-align:top;}}
\Css{td.section {padding-right:2em; width:20\%;}}
\Css{table.section {margin-top:1em;}}
>>>

\<configure html4 res\><<<
\ConfigureEnv{position}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="position">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {}{}
\Css{.position table {width:100\%;}}
>>>

%%%%%%%%%%%%%%
\section{aa}
%%%%%%%%%%%%%%

\<configure html4 aa\><<<   
   |<makeketitle config 4.0t|>
    |<configure aa 3.2/4.0t|>
|<latex shared part config|>
|<latex config div 4.0t|>
|<latex shared div config|>
|<shared bib env|>
\ifx \part\:UnDef \else
   |<latex shared part config|>
\fi
>>>

\subsection{Sizes of Fonts}

pages should honor the base font sizes the
readers choose for their browsers. Hence, under this assumption, all
tex4ht should do is just assure appropriate relative dimensions for
fonts of other sizes. To meet this end, I modified latex.4ht to
automatically include

   \verb'{\Configure{Needs}{Font\string_Size: #1}\Needs{1...}}'

when options 11pt and 12pt are listed in \verb'\documentclass'.
\<article,report,book\><<<
|<base font size|>
>>>
>

\<base font size\><<<
{\Configure{Needs}{Font\string_Size: #1}\ifcase  \@ptsize
   \or \Needs{11}\or \Needs{12}\else \fi}
>>>


\<ams art,proc,book\><<<
|<base font size|>
>>>







\<latex config div 4.0t\><<<
|<latex shared section config|>
|<latex shared subsection config|>
|<latex shared subsubsection config|>
|<latex shared paragraph config|>
>>>



% \Css{.titlemark{margin-right:0.7em;}} abuses NS 4.7

\<latex shared section config\><<<
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\@seccntformat{section}%
       \HCode{</span>}\fi }
\Configure{section}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark\space\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
\Configure{sectionTITLE+}{\thesection\space#1}
\Configure{likesection}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\IgnorePar\HCode{<h3 class="likesectionHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
\Configure{likesectionTITLE+}{#1}
>>>
% \def\HCode{<#1>}{\HCode{<#1>}}



\<latex shared subsection config\><<<
|<shared h5 subsubsection|>
|<shared h4 subsection|>
>>>


\<latex shared paragraph config\><<<
\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likeparagraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
  {\HCode{</span>}\IgnorePar}
\Css{.paragraphHead, .likeparagraphHead
   { margin-top:2em; font-weight: bold;}}
>>>

\<latex config div 4.0t\><<<
\ConfigureMark{subparagraph}{}
\Configure{subparagraph}{}{}
  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
   \TitleMark\space}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likesubparagraph}{}{}
  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead, .likesubparagraphHead
   { font-weight: bold;}}
>>>

\<32,4 latex\><<<
\ConfigureEnv{picture}
   {\bgroup\ifvmode \Configure{HtmlPar}
      {\EndP\HCode{|<show input line no|>}\HCode{<p
            class="center">}}%
      {\EndP\HCode{|<show input line no|>}\HCode{<p
            class="center">}}%
      {\:xhtml{\Tg</p>}}{\:xhtml{\Tg</p>}} \ShowPar\leavevmode
    \fi}
   {\egroup}{}{}
>>>

%%%%%%%%%%%%%%%%%%%%%%
\subsection{ltxguide}
%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 ltxguide\><<<
\Configure{m}
   {\HCode{\string&\#x2329;}}
   {\HCode{\string&\#x232A;}}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Polish: mwart.cls, mwrep.cls, mwbk.cls}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 mwart\><<<
|<mwcls divs|>
|<mwcls tocs|>
|<mwart tocs|>
|<cut and toc at for options 1, 2, 3|> |%should be after mw ... tocs|%
|<mwcls configs|>
>>>


\<configure html4 mwrep\><<<
|<mwcls divs|>
|<mw rep/bk divs|>
|<mwcls tocs|>
|<mw rep/bk tocs|>
|<cut and toc at for options 1, 2, 3|> |%should be after mw ... tocs|%
|<mwcls configs|>
>>>

\<configure html4 mwbk\><<<
|<mwcls divs|>
|<mw rep/bk divs|>
|<mwcls tocs|>
|<mw rep/bk tocs|>
|<cut and toc at for options 1, 2, 3|> |%should be after mw ... tocs|%
|<mwcls configs|>
>>>

\<mwcls configs\><<<
|<mwcls index|>
|<config captions|>
|<shared bib env|>
|<thebib config|>
\def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}
|<config lists of figures and tables|> 
\ConfigureList{description}%
   {\EndP\HCode{<dl \a:LRdir class="description">}%
      \PushMacro\end:itm
\global\let\end:itm=\empty}
   {\PopMacro\end:itm \global\let\end:itm \end:itm
\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="description">}\bgroup \bf}
   {\egroup\EndP\HCode{</dt><dd\Hnewline class="description">}}

\ConfigureEnv{quote}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quote">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar\ShowIndent}
\Css{.quote  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}

\ConfigureEnv{verse}
   {\ifvmode \IgnorePar\fi\EndP\Tg<div class="verse">}
   {\ifvmode \IgnorePar\fi\EndP\Tg</div>}
   {}{}
\ConfigureList{verse}
   {}{}
   {\parindent=\z@}  {\par}
\Css{.verse{white-space:nowrap; margin-left:2em}}

{\Configure{Needs}{Font\string_Size: #1}\ifcase  \@ptsize
   \or \Needs{11}\or \Needs{12}\else \fi}

\ConfigureEnv{quotation}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quotation">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
\Css{.quotation  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}

\Configure{listof}{}{}{}{\HCode{<br\xml:empty>}}{}{}

\ConfigureEnv{abstract}
   {\IgnorePar\EndP
    \HCode{<\tbl:XV{abstract}><tr><td\Hnewline>}\par\ShowPar}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</td></tr></table>}}{}{}
\Css{.abstract p {margin-left:5\%; margin-right:5\%;}}
>>> 


\<mwcls divs\><<<
\ConfigureMark{part}
   {\ifHeadingNumbered \HCode{<span class="titlemark">}\partname
      \space \HeadingNumber \HCode{</span>}\fi}
\Configure{part}{}{}
   {\NoFonts\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h1 class="partHead"\a:LRdir>}\TitleMark
    \HCode{<br />}\HtmlParOff}
   {\HCode{</h1>}\HtmlParOn \EndNoFonts \IgnoreIndent \par}
\Configure{partTITLE+}{\thepart\space #1}
\Css{h1.partHead{text-align: left}}
>>>

\<mwcls divs\><<<
\Configure{likepart}{}{}
   {\IgnorePar\EndP\HCode{<h1 class="likepartHead"\a:LRdir>}}
   {\HCode{</h1>}\IgnoreIndent}
\Configure{likepartTITLE+}{#1}
>>>

\<mw rep/bk divs\><<<
\ConfigureMark{chapter}
   {\ifHeadingNumbered \HCode{<span class="titlemark">}\mw@seccntformat
    \HeadingNumber \HCode{</span>}\fi}
\Configure{chapter}{}{}
   {\NoFonts \ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark\HtmlParOff}
   {\HCode{</h2>}\HtmlParOn \EndNoFonts \IgnoreIndent \par}
\Configure{chapterTITLE+}{\thesection\space#1}
>>>

\<mw rep/bk divs\><<<
\Configure{likechapter}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\IgnorePar\HCode{<h2 class="likechapterHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h2>}\HtmlParOn \IgnoreIndent \par}
\Configure{likechapterTITLE+}{#1}
>>>

\<mwcls divs\><<<
\ConfigureMark{section}
   {\ifHeadingNumbered \HCode{<span class="titlemark">}\mw@seccntformat
    \HeadingNumber \HCode{</span>}\fi}
\Configure{section}{}{}
   {\NoFonts \ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \EndNoFonts \IgnoreIndent \par}
\Configure{sectionTITLE+}{\thesection\space#1}
>>>

\<mwcls divs\><<<
\Configure{likesection}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\IgnorePar\HCode{<h3 class="likesectionHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
\Configure{likesectionTITLE+}{#1}
>>>


\<mwcls divs\><<<
\Configure{paragraph}{}{}
  {\par\ShowPar\IgnoreIndent\HCode{<span 
      class="paragraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Css{.paragraphHead, .likeparagraphHead
   { margin-top:2em; font-weight: bold;}}
>>>

\<mwcls divs\><<<
\Configure{likeparagraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
  {\HCode{</span>}\IgnorePar}
>>>

\<mwcls divs\><<<
\ConfigureMark{subparagraph}{}
\Configure{subparagraph}{}{}
  {\par\ShowPar\IgnoreIndent 
   \HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
   \TitleMark\space}
  {\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead, .likesubparagraphHead
   { font-weight: bold;}}
>>>

\<mwcls divs\><<<
\Configure{likesubparagraph}{}{}
  {\par\ShowPar\IgnoreIndent 
   \HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
>>>

\<mwcls divs\><<<
\Configure{endpart}{likepart}
\Configure{endlikepart}{endpart}
\Configure{endsection}
   {likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesection}
   {section,chapter,likechapter,appendix,part,likepart}
\Configure{endsubsection}
   {likesubsection,section,likesection,chapter,%
      likechapter,appendix,part,likepart}
\Configure{endlikesubsection}
   {subsection,section,likesection,chapter,%
      likechapter,appendix,part,likepart}
\Configure{endsubsubsection}
   {likesubsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubsubsection}
   {subsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endparagraph}
   {likeparagraph,subsubsection,likesubsubsection,subsection,%
      likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikeparagraph}
   {paragraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endsubparagraph}
   {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubparagraph}
   {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
>>>





\<mwcls tocs\><<<
\ConfigureToc{part}
  {\HCode{<div class="partToc"><span class="mark">}}
  {\HCode{</span>}. }
  {}
  {\HCode{</div>}}
\ConfigureToc{likepart}
  {\HCode{<div class="likepartToc"><span class="mark">}}
  {\HCode{</span>}}
  {}
  {\HCode{</div>}}
\ConfigureToc{section}
  {\HCode{<div class="sectionToc"><span class="mark">}}
  {\HCode{</span>}. }
  {}
  {\HCode{</div>}}
\ConfigureToc{likesection}
  {\HCode{<div class="likesectionToc"><span class="mark">}}
  {\HCode{</span>}}
  {}
  {\HCode{</div>}}
\ConfigureToc{subsection}
  {\HCode{<div class="subsectionToc"><span class="mark">}}
  {\HCode{</span>}. }
  {}
  {\HCode{</div>}}
\ConfigureToc{likesubsection}
  {\HCode{<div class="likesubsectionToc"><span class="mark">}}
  {\HCode{</span>}}
  {}
  {\HCode{</div>}}
\ConfigureToc{subsubsection}
  {\HCode{<div class="subsubsectionToc"><span class="mark">}}
  {\HCode{</span>}. }
  {}
  {\HCode{</div>}}
\ConfigureToc{likesubsubsection}
  {\HCode{<div class="likesubsubsectionToc"><span class="mark">}}
  {\HCode{</span>}}
  {}
  {\HCode{</div>}}
\ConfigureToc{paragraph}
  {\HCode{<div class="paragraphToc"><span class="mark">}}
  {\HCode{</span>}. }
  {}
  {\HCode{</div>}}
\ConfigureToc{likeparagraph}
  {\HCode{<div class="likeparagraphToc"><span class="mark">}}
  {\HCode{</span>}}
  {}
  {\HCode{</div>}}
\ConfigureToc{subparagraph}
  {\HCode{<div class="subparagraphToc"><span class="mark">}}
  {\HCode{</span>}. }
  {}
  {\HCode{</div>}}
\ConfigureToc{likesubparagraph}
  {\HCode{<div class="likesubparagraphToc"><span class="mark">}}
  {\HCode{</span>}}
  {}
  {\HCode{</div>}}
>>>

\<mw rep/bk tocs\><<<
\ConfigureToc{chapter}
  {\HCode{<div class="chapterToc"><span class="mark">}}
  {\HCode{</span>}. }
  {}
  {\HCode{</div>}}
\ConfigureToc{likechapter}
  {\HCode{<div class="likechapterToc"><span class="mark">}}
  {\HCode{</span>}}
  {}
  {\HCode{</div>}}
>>>


\<mwcls tocs\><<<
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
        {line-height: 200\%; font-weight:bold; font-size:110\%;}}
\Css{.partToc, .likepartToc{text-align:center;margin-bottom:0.25em;
           margin-top:0.25em;}}
>>>

\<mwart tocs\><<<
\Css{.sectionToc, .likesectionToc            {white-space: nowrap;}}
\Css{.subsectionToc, .likesubsectionToc      
                            {margin-left:1em; white-space: nowrap;}}
\Css{.subsubsectionToc, .likesubsubsectionToc
                            {margin-left:2em; white-space: nowrap;}}
\Css{.paragraphToc, .likeparagraphToc        
                            {margin-left:3em; white-space: nowrap;}}
\Css{.subparagraphToc, .likesubparagraphToc  
                            {margin-left:4em; white-space: nowrap;}}
>>>

\<mw rep/bk tocs\><<<
\Css{.chapterToc, .likechapterToc            {white-space: nowrap;}}
\Css{.sectionToc, .likesectionToc
                            {margin-left:1em; white-space: nowrap;}}
\Css{.subsectionToc, .likesubsectionToc      
                            {margin-left:2em; white-space: nowrap;}}
\Css{.subsubsectionToc, .likesubsubsectionToc
                            {margin-left:3em; white-space: nowrap;}}
\Css{.paragraphToc, .likeparagraphToc        
                            {margin-left:4em; white-space: nowrap;}}
\Css{.subparagraphToc, .likesubparagraphToc  
                            {margin-left:5em; white-space: nowrap;}}
>>>



%%%%%%%%%%%%%%%%%%%%%
\section{texinfo}
%%%%%%%%%%%%%%%%%%%%%


\<configure html4 texinfo\><<<
\Configure{group}
   {\IgnorePar\EndP\HCode{<div class="group">}}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}
\Css{div.obeylines-v  div.group  p { margin-top:0; margin-bottom:0; }}
\Configure{multitable}
   {\IgnorePar \EndP\HCode{<table\Hnewline class="multitable">}\IgnorePar}
   {\HCode{</table>}}
   {\HCode{<tr>}}
   {\HCode{</tr>}}
   {\HCode{<td \Hnewline class="multitabl\the\colcount">}}
   {\IgnorePar \EndP\HCode{</td>}}
\Css{.multitable td{padding-left:1em; padding-right:1em;}}
>>>


\<configure html4 texinfo\><<<
\Configure{example}
   {\IgnorePar\EndP\HCode{<div class="example">}}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}
\Css{div.example { margin-left:2em; }}
\Configure{smallexample}
   {\IgnorePar\EndP\HCode{<div class="smallexample">}}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}
\Css{div.smallexample { margin-left:2em; }}
>>>


\<configure html4 texinfo\><<<
\ConfigureMark{chapter}{\the\chapno}
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h2>}\IgnoreIndent}
\ConfigureMark{appendix}{\appendixletter}
\Configure{appendix}{}{}
   {\IgnorePar\EndP
    \HCode{<h2 class="appendixHead"\a:LRdir>}Appendix \TitleMark\space}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{unnumbered}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="unnumberedHead"\a:LRdir>}}
   {\HCode{</h2>}\IgnoreIndent}
\ConfigureMark{numberedsec}{\the\chapno.\the\secno}
\Configure{numberedsec}{}{}
   {\IgnorePar\EndP\HCode{<h3 
       class="numberedsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h3>}\IgnoreIndent}
\ConfigureMark{appendixsec}{\appendixletter.\the\secno}
\Configure{appendixsec}{}{}
   {\IgnorePar\EndP\HCode{<h3 
       class="appendixsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h3>}\IgnoreIndent}
\Configure{unnumberedsec}{}{}
   {\IgnorePar\EndP\HCode{<h3 class="unnumberedsecHead"\a:LRdir>}}
   {\HCode{</h3>}\IgnoreIndent}
\ConfigureMark{numberedsubsec}{\the\chapno.\the\secno .\the\subsecno}
\Configure{numberedsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h4 
       class="numberedsubsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h4>}\IgnoreIndent}
\ConfigureMark{appendixsubsec}{\appendixletter .\the\secno.\the\subsecno}
\Configure{appendixsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h4 
     class="appendixsubsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h4>}\IgnoreIndent}
\ConfigureMark{appendixsubsec}{\appendixletter.\the\secno
                                        .\the\subsecno}
\Configure{appendixsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h4 
       class="appendixsubsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h4>}\IgnoreIndent}
\Configure{unnumberedsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h4 class="unnumberedsubsecHead"\a:LRdir>}}
   {\HCode{</h4>}\IgnoreIndent}
\ConfigureMark{numberedsubsubsec}{\the\chapno.\the\secno
                      .\the\subsecno.\the\subsubsecno}
\Configure{numberedsubsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h5 
       class="numberedsubsubsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h5>}\IgnoreIndent}
\ConfigureMark{appendixsubsubsec}{\appendixletter
             .\the\secno.\the\subsecno.\the\subsubsecno}
\Configure{appendixsubsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h5 
     class="appendixsubsubsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h5>}\IgnoreIndent}
\ConfigureMark{appendixsubsubsec}{\appendixletter.\the\secno
                                  .\the\subsecno.\the\subsubsecno}
\Configure{appendixsubsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h5 
       class="appendixsubsubsecHead"\a:LRdir>}\TitleMark\space}
   {\HCode{</h5>}\IgnoreIndent}
\Configure{unnumberedsubsubsec}{}{}
   {\IgnorePar\EndP\HCode{<h5 class="unnumberedsubsubsecHead"\a:LRdir>}}
   {\HCode{</h5>}\IgnoreIndent}
>>>

\<configure html4 texinfo\><<<
\ConfigureToc{chapter}
    {\Tg<span class="chapterToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{appendix}
    {\Tg<span class="appendixToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{unnumbered}
    {\Tg<span class="unnumberedToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{numberedsec}
    {\Tg<span class="numberedsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{appendixsec}
    {\Tg<span class="appendixsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{unnumberedsec}
    {\Tg<span class="unnumberedsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{numberedsubsec}
    {\Tg<span class="numberedsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{appendixsubsec}
    {\Tg<span class="appendixsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{appendixsubsec}
    {\Tg<span class="appendixsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{unnumberedsubsec}
    {\Tg<span class="unnumberedsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{numberedsubsubsec}
    {\Tg<span class="numberedsubsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{appendixsubsubsec}
    {\Tg<span class="appendixsubsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{appendixsubsubsec}
    {\Tg<span class="appendixsubsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
\ConfigureToc{unnumberedsubsubsec}
    {\Tg<span class="unnumberedsubsubsecToc">}{ }{}{\Tg</span>\Tg<br />}
>>>



\<configure html4 texinfo\><<<
\Configure{enumerate}
   {\IgnorePar\EndP\HCode{<ol\space class="enumerate"\Hnewline>}}
   {\IgnorePar\EndP\HCode{</li></ol>}\ShowPar}
   {\IgnorePar\EndP\ifnum \itemno>1 \Tg</li>\fi\DeleteMark}
   {\HCode{<li class="enumerate">}}
\Configure{itemize}
   {\IgnorePar\EndP\HCode{<ul\space\a:LRdir class="itemize"\Hnewline>}}
   {\IgnorePar\EndP\HCode{</li></ul>}\ShowPar}
   {\IgnorePar\EndP\ifnum \itemno>1 \Tg</li>\fi\DeleteMark}
   {\HCode{<li class="itemize">}}
\Configure{table}%
   {\IgnorePar\EndP\HCode{<dl \a:LRdir class="description">}%
    |<save end:itm|>\global\let\end:itm|=\empty}
   {|<recall end:itm|>\IgnorePar\EndP\HCode{</dd></dl>}}
   {\IgnorePar\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="description">}\bgroup \bf}
   {\egroup\IgnorePar\EndP\HCode{</dt><dd\Hnewline class="description">}}
>>>

\<configure html4 texinfo\><<<
\Configure{titlepage}
   {\IgnorePar\EndP\HCode{<div class="titlepage">}} 
   {\IgnorePar\EndP\HCode{</div>}}
\Configure{title}
   {\IgnorePar\EndP\HCode{<div class="title">}}  
   {\IgnorePar\EndP\HCode{</div>}}
\Configure{subtitle}
   {\IgnorePar\EndP\HCode{<div class="subtitle">}}
   {\IgnorePar\EndP\HCode{</div>}}
\Configure{author}
   {\IgnorePar\EndP\HCode{<div class="author">}}
   {\IgnorePar\EndP\HCode{</div>}}
>>>








%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Accents, encodings, and Languages}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Outline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%


\Link[http://lycos.basistech.com/info/standards/ISO-8859.txt]{}{}iso
 text\EndLink,
\Link[http://titus.uni-frankfurt.de/unicode/iso8859/iso8859.htm]{}{}titus glyphs\EndLink,
satto glyphs:
\Link[http://www.satto.co.yu/podrska/iso/iso8859-1.htm]{}{}1\EndLink{}
\Link[http://www.satto.co.yu/podrska/iso/iso8859-2.htm]{}{}2\EndLink{} ...,
microsoft glyphs:
\Link[http://www.microsoft.com/globaldev/reference/iso/28591.htm]{}{}1\EndLink{}
\Link[http://www.microsoft.com/globaldev/reference/iso/28592.htm]{}{}2\EndLink{} ...



\<configure html4 latex\><<<
\ifOption{charset=iso-8859-7}
   {|<T1 greek ldf iso-8859-7|>}
   {}
\:CheckOption{new-accents}     \if:Option
\else
   |<T1 old iso-8859-1 accents|>
\fi
\let\^^_|=\v
>>>


\<old plain,latex accents\><<<
|<old iso-8859-1 accents|>
|<OT1 old iso-8859-1 accents|>
|<optional iso-8859-2 accents|>
>>>

\<babel accents\><<<
|<optional iso-8859-2 accents|>
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Group Configurations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%





%%%%%%%%%%%%%%%%%%%%
\section{8859-1}
%%%%%%%%%%%%%%%%%%%%

\<acute codes\><<<
A{00C1}C{0106}D{010E}E{00C9}G{01F4}I{00CD}L{0139}N{0143}%
O{00D3}R{0154}S{015A}U{00DA}Y{00DD}Z{0179}a{00E1}c{0107}%
d{010F}e{00E9}g{01F5}i{00ED}l{013A}n{0144}o{00F3}r{0155}%
s{015B}u{00FA}y{00FD}z{017A}j{FFFD}J{FFDD}\i{00ED}\j{FFFD}%
>>>

\<add acute codes\><<<
   {A}{\add:acc{00C1}}
     {C}{\add:acc{0106}}
     {D}{\add:acc{010E}}
     {E}{\add:acc{00C9}}
     {G}{\add:acc{01F4}}
     {I}{\add:acc{00CD}}
     {L}{\add:acc{0139}}
     {N}{\add:acc{0143}}
     {O}{\add:acc{00D3}}
     {R}{\add:acc{0154}}
     {S}{\add:acc{015A}}
     {U}{\add:acc{00DA}}
     {Y}{\add:acc{00DD}}
     {Z}{\add:acc{0179}}
     {a}{\add:acc{00E1}}
     {c}{\add:acc{0107}}
     {d}{\add:acc{010F}}
     {e}{\add:acc{00E9}}
     {g}{\add:acc{01F5}}
     {i}{\add:acc{00ED}}
     {l}{\add:acc{013A}}
     {n}{\add:acc{0144}}
     {o}{\add:acc{00F3}}
     {r}{\add:acc{0155}}
     {s}{\add:acc{015B}}
     {u}{\add:acc{00FA}}
     {y}{\add:acc{00FD}}
     {z}{\add:acc{017A}}
     {j}{\add:acc{FFFD}}
     {J}{\add:acc{FFDD}}
     {\i}{\add:acc{00ED}}
     {\j}{\add:acc{FFFD}}      
>>>

\<acute iso-8859-1\><<<
|<acute codes|>%
>>>

\<acute iso-8859-2\><<<
|<acute codes|>%
>>>


\<double acute code\><<<
o{0151}O{0150}U{0170}u{0171}%
>>>

\<add double acute code\><<<
   {o}{\add:acc{0151}}
     {O}{\add:acc{0150}}
     {U}{\add:acc{0170}}
     {u}{\add:acc{0171}}
>>>

\<double acute iso-8859-1\><<<
|<double acute code|>%
>>>

\<double acute iso-8859-2\><<<
|<double acute code|>%
>>>








\<cedilla codes\><<<
K{0136}k{0137}L{013B}l{013C}N{0145}n{0146}%
R{0156}r{0157}S{015E}s{015F}T{0162}t{0163}%
E{0228}e{0229}D{1E10}d{1E11}H{1E28}h{1E29}%
C{00C7}c{00E7}G{0122}g{0123}%
>>>

\<add cedilla codes\><<<
     {K}{\add:acc{0136}}
     {k}{\add:acc{0137}}
     {L}{\add:acc{013B}}
     {l}{\add:acc{013C}}
     {N}{\add:acc{0145}}
     {n}{\add:acc{0146}}
     {R}{\add:acc{0156}}
     {r}{\add:acc{0157}}
     {S}{\add:acc{015E}}
     {s}{\add:acc{015F}}
     {T}{\add:acc{0162}}
     {t}{\add:acc{0163}}
     {E}{\add:acc{0228}}
     {e}{\add:acc{0229}}
     {D}{\add:acc{1E10}}
     {d}{\add:acc{1E11}}
     {H}{\add:acc{1E28}}
     {h}{\add:acc{1E29}}
     {C}{\add:acc{00C7}}
     {c}{\add:acc{00E7}}
     {G}{\add:acc{0122}}
     {g}{\add:acc{0123}}
>>>


\<cedilla iso-8859-1\><<<
|<cedilla codes|>%
>>>


\<cedilla iso-8859-2\><<<
|<cedilla codes|>%
>>>




\<dot above codes\><<<
C{010A}c{010B}E{0116}e{0117}G{0120}g{0121}%
I{0130}Z{017B}z{017C}A{0226}a{0227}O{022E}%
o{022F}B{1E02}b{1E03}D{1E0A}d{1E0B}F{1E1E}%
f{1E1F}H{1E22}h{1E23}M{1E40}m{1E41}N{1E44}%
n{1E45}P{1E56}p{1E57}R{1E58}r{1E59}S{1E60}%
s{1E61}T{1E6A}t{1E6B}W{1E86}w{1E87}X{1E8A}%
x{1E8B}Y{1E8E}y{1E8F}%
>>>

\<add dot above codes\><<<
     {C}{\add:acc{010A}}
     {c}{\add:acc{010B}}
     {E}{\add:acc{0116}}
     {e}{\add:acc{0117}}
     {G}{\add:acc{0120}}
     {g}{\add:acc{0121}}
     {I}{\add:acc{0130}}
     {Z}{\add:acc{017B}}
     {z}{\add:acc{017C}}
     {A}{\add:acc{0226}}
     {a}{\add:acc{0227}}
     {O}{\add:acc{022E}}
     {o}{\add:acc{022F}}
     {B}{\add:acc{1E02}}
     {b}{\add:acc{1E03}}
     {D}{\add:acc{1E0A}}
     {d}{\add:acc{1E0B}}
     {F}{\add:acc{1E1E}}
     {f}{\add:acc{1E1F}}
     {H}{\add:acc{1E22}}
     {h}{\add:acc{1E23}}
     {M}{\add:acc{1E40}}
     {m}{\add:acc{1E41}}
     {N}{\add:acc{1E44}}
     {n}{\add:acc{1E45}}
     {P}{\add:acc{1E56}}
     {p}{\add:acc{1E57}}
     {R}{\add:acc{1E58}}
     {r}{\add:acc{1E59}}
     {S}{\add:acc{1E60}}
     {s}{\add:acc{1E61}}
     {T}{\add:acc{1E6A}}
     {t}{\add:acc{1E6B}}
     {W}{\add:acc{1E86}}
     {w}{\add:acc{1E87}}
     {X}{\add:acc{1E8A}}
     {x}{\add:acc{1E8B}}
     {Y}{\add:acc{1E8E}}
     {y}{\add:acc{1E8F}}
>>>

\<dot above iso-8859-1\><<<
|<dot above codes|>%
>>>

\<dot iso-8859-1\><<<
|<dot above codes|>%
>>>

\<dot above iso-8859-2\><<<
|<dot above codes|>%
>>>




\<breve codes\><<<
g{011F}I{012C}i{012D}O{014E}o{014F}%
U{016C}u{016D}A{0102}a{0103}E{0114}%
e{0115}G{011E}\i{012D}%
>>>

\<add breve codes\><<<
   {g}{\add:acc{011F}}
     {I}{\add:acc{012C}}
     {i}{\add:acc{012D}}
     {O}{\add:acc{014E}}
     {o}{\add:acc{014F}}
     {U}{\add:acc{016C}}
     {u}{\add:acc{016D}}
     {A}{\add:acc{0102}}
     {a}{\add:acc{0103}}
     {E}{\add:acc{0114}}
     {e}{\add:acc{0115}}
     {G}{\add:acc{011E}}
     {\i}{\add:acc{012D}}
     {y}{y\add:acc{0306}}
>>>


\<breve iso-8859-1\><<<
|<breve codes|>%
>>>

\<breve iso-8859-2\><<<
|<breve codes|>%
>>>







\<caron codes\><<<
C{010C}c{010D}D{010E}d{010F}%
E{011A}e{011B}L{013D}l{013E}N{0147}n{0148}R{0158}r{0159}%
S{0160}s{0161}T{0164}t{0165}Z{017D}z{017E}A{01CD}a{01CE}I{01CF}%
i{01D0}O{01D1}o{01D2}U{01D3}u{01D4}G{01E6}g{01E7}K{01E8}k{01E9}%
j{01F0}H{021E}h{021F}\i{01D0}\j{01F0}%
>>>

\<add caron codes\><<<
   {C}{\add:acc{010C}}
     {c}{\add:acc{010D}}
     {D}{\add:acc{010E}}
     {d}{\add:acc{010F}}
     {E}{\add:acc{011A}}
     {e}{\add:acc{011B}}
     {L}{\add:acc{013D}}
     {l}{\add:acc{013E}}
     {N}{\add:acc{0147}}
     {n}{\add:acc{0148}}
     {R}{\add:acc{0158}}
     {r}{\add:acc{0159}}
     {S}{\add:acc{0160}}
     {s}{\add:acc{0161}}
     {T}{\add:acc{0164}}
     {t}{\add:acc{0165}}
     {Z}{\add:acc{017D}}
     {z}{\add:acc{017E}}
     {A}{\add:acc{01CD}}
     {a}{\add:acc{01CE}}
     {I}{\add:acc{01CF}}
     {i}{\add:acc{01D0}}
     {O}{\add:acc{01D1}}
     {o}{\add:acc{01D2}}
     {U}{\add:acc{01D3}}
     {u}{\add:acc{01D4}}
     {G}{\add:acc{01E6}}
     {g}{\add:acc{01E7}}
     {K}{\add:acc{01E8}}
     {k}{\add:acc{01E9}}
     {j}{\add:acc{01F0}}
     {H}{\add:acc{021E}}
     {h}{\add:acc{021F}}
     {\i}{\add:acc{01D0}}
     {\j}{\add:acc{01F0}}
>>>
% 


\<caron iso-8859-1\><<<
|<caron codes|>%
>>>

\<caron iso-8859-2\><<<
|<caron codes|>%
>>>

\<check iso-8859-1\><<<
|<caron codes|>%
>>>







\<ring codes\><<<
A{00C5}a{00E5}U{016E}u{016F}%
>>>

\<add ring codes\><<<
   {A}{\add:acc{00C5}}
     {a}{\add:acc{00E5}}
     {U}{\add:acc{016E}}
     {u}{\add:acc{016F}}
>>>


\<ring iso-8859-1\><<<
|<ring codes|>%
>>>

\<ring iso-8859-2\><<<
|<ring codes|>%
>>>














\<diaeresis codes\><<<
H{1E26}h{1E27}W{1E84}w{1E85}X{1E8C}x{1E8D}%
t{1E97}A{00C4}E{00CB}I{00CF}O{00D6}U{00DC}%
a{00E4}e{00EB}i{00EF}o{00F6}u{00FC}y{00FF}%
Y{0178}\i{00EF}%
>>>

\<add diaeresis codes\><<<
     {H}{\add:acc{1E26}}
     {h}{\add:acc{1E27}}
     {W}{\add:acc{1E84}}
     {w}{\add:acc{1E85}}
     {X}{\add:acc{1E8C}}
     {x}{\add:acc{1E8D}}
     {t}{\add:acc{1E97}}
     {A}{\add:acc{00C4}}
     {E}{\add:acc{00CB}}
     {I}{\add:acc{00CF}}
     {O}{\add:acc{00D6}}
     {U}{\add:acc{00DC}}
     {a}{\add:acc{00E4}}
     {e}{\add:acc{00EB}}
     {i}{\add:acc{00EF}}
     {o}{\add:acc{00F6}}
     {u}{\add:acc{00FC}}
     {y}{\add:acc{00FF}}
     {Y}{\add:acc{0178}}
     {\i}{\add:acc{00EF}}
     {m}{m\add:acc{0308}}
>>>



\<diaeresis iso-8859-1\><<<
|<diaeresis codes|>%
>>>

\<diaeresis iso-8859-2\><<<
|<diaeresis codes|>%
>>>







\<circumflex codes\><<<
A{00C2}E{00CA}I{00CE}O{00D4}U{00DB}a{00E2}e{00EA}%
i{00EE}o{00F4}u{00FB}C{0108}c{0109}G{011C}g{011D}%
H{0124}h{0125}J{0134}j{0135}S{015C}s{015D}W{0174}%
w{0175}Y{0176}y{0177}Z{1E90}z{1E91}\i{00EE}\j{0135}%
>>>

\<add circumflex codes\><<<
   {A}{\add:acc{00C2}}
     {E}{\add:acc{00CA}}
     {I}{\add:acc{00CE}}
     {O}{\add:acc{00D4}}
     {U}{\add:acc{00DB}}
     {a}{\add:acc{00E2}}
     {e}{\add:acc{00EA}}
     {i}{\add:acc{00EE}}
     {o}{\add:acc{00F4}}
     {u}{\add:acc{00FB}}
     {C}{\add:acc{0108}}
     {c}{\add:acc{0109}}
     {G}{\add:acc{011C}}
     {g}{\add:acc{011D}}
     {H}{\add:acc{0124}}
     {h}{\add:acc{0125}}
     {J}{\add:acc{0134}}
     {j}{\add:acc{0135}}
     {S}{\add:acc{015C}}
     {s}{\add:acc{015D}}
     {W}{\add:acc{0174}}
     {w}{\add:acc{0175}}
     {Y}{\add:acc{0176}}
     {y}{\add:acc{0177}}
     {Z}{\add:acc{1E90}}
     {z}{\add:acc{1E91}}
     {\i}{\add:acc{00EE}}
     {\j}{\add:acc{0135}}
>>>



\<circumflex iso-8859-1\><<<
|<circumflex codes|>%
>>>

\<circumflex iso-8859-2\><<<
|<circumflex codes|>%
>>>


\<grave codes\><<<
A{00C0}E{00C8}I{00CC}N{01F8}O{00D2}U{00D9}W{1E80}%
Y{1EF2}a{00E0}e{00E8}i{00EC}n{01F9}o{00F2}u{00F9}%
w{1E81}y{1EF3}\i{00EC}%
>>>


\<add grave codes\><<<
{A}{\add:acc{00C0}}
  {E}{\add:acc{00C8}}
  {I}{\add:acc{00CC}}
  {N}{\add:acc{01F8}}
  {O}{\add:acc{00D2}}
  {U}{\add:acc{00D9}}
  {W}{\add:acc{1E80}}
  {Y}{\add:acc{1EF2}}
  {a}{\add:acc{00E0}}
  {e}{\add:acc{00E8}}
  {i}{\add:acc{00EC}}
  {n}{\add:acc{01F9}}
  {o}{\add:acc{00F2}}
  {u}{\add:acc{00F9}}
  {w}{\add:acc{1E81}}
  {y}{\add:acc{1EF3}}
  {\i}{\add:acc{00EC}}
>>>

\<grave iso-8859-1\><<<
|<grave codes|>%
>>>

\<grave iso-8859-2\><<<
|<grave codes|>%
>>>



\<tilde codes\><<<
A{00C3}N{00D1}O{00D5}a{00E3}n{00F1}o{00F5}I{0128}%
i{0129}U{0168}u{0169}V{1E7C}v{1E7D}E{1EBC}e{1EBD}%
Y{1EF8}y{1EF9}\i{0129}%
>>>

\<add tilde codes\><<<
     {A}{\add:acc{00C3}}
     {N}{\add:acc{00D1}}
     {O}{\add:acc{00D5}}
     {a}{\add:acc{00E3}}
     {n}{\add:acc{00F1}}
     {o}{\add:acc{00F5}}
     {I}{\add:acc{0128}}
     {i}{\add:acc{0129}}
     {U}{\add:acc{0168}}
     {u}{\add:acc{0169}}
     {V}{\add:acc{1E7C}}
     {v}{\add:acc{1E7D}}
     {E}{\add:acc{1EBC}}
     {e}{\add:acc{1EBD}}
     {Y}{\add:acc{1EF8}}
     {y}{\add:acc{1EF9}}
     {\i}{\add:acc{0129}}
>>>

\<tilde iso-8859-1\><<<
|<tilde codes|>%
>>>


\<tilde iso-8859-2\><<<
|<tilde codes|>%
>>>
















\<vec iso-8859-1\><<<
>>>













\<old iso-8859-1 accents\><<<
\Configure{accent}\widetilde\widetilde{{}{}} 
   {\a:accents{widetilde}{#1}} {\b:accents{widetilde}{#1}{#2}}
\Configure{accent}\widehat\widehat{{}{}} 
   {\a:accents{widehat}{#1}} {\b:accents{widehat}{#1}{#2}}
>>>

\verb'\vec', \verb'\widetilde', and \verb'\widehat' are for math mode.
\verb'\b', \verb'\c', \verb'\d', \verb'\t', and \verb'\H' are for text mode.






\<bar iso-8859-1\><<<
>>>










NOT USED!!!!!


\<bar below codes\><<<
B{1E06}b{1E07}%
D{1E0E}d{1E0F}K{1E34}k{1E35}L{1E3A}l{1E3B}N{1E48}n{1E49}%
R{1E5E}r{1E5F}T{1E6E}t{1E6F}Z{1E94}z{1E95}h{1E96}%
>>>




\<dot below codes\><<<
A{1EA0}a{1Ea1}B{1E04}b{1E05}D{1E0C}d{1E0D}%
E{1EB8}e{1EB9}H{1E24}h{1E25}I{1ECA}i{1ECB}%
K{1E32}k{1E33}L{1E36}l{1E37}M{1E42}m{1E43}%
N{1E46}n{1E47}O{1ECC}o{1ECD}R{1E5A}r{1E5B}%
S{1E62}s{1E63}T{1E6C}t{1E6D}U{1EE4}u{1EE5}%
V{1E7E}v{1E7F}W{1E88}w{1E89}Y{1EF4}y{1EF5}%
>>>




\<macron codes\><<<
A{0100}a{0101}E{0112}%
e{0113}I{012A}i{012B}O{014C}o{014D}U{016A}u{016B}Y{0232}%
y{0233}G{1E20}g{1E21}%
>>>

%%%%%%%%%%%%%%%%%%%%
\section{T1 8859-1}
%%%%%%%%%%%%%%%%%%%%

\<T1 old iso-8859-1 accents\><<<
\expand:after{\Configure{accent}}\csname T1\string\`\expandafter\endcsname
   \csname T1\string\`\endcsname{|<grave iso-8859-1|>{}{}}
   {\a:accents{grave}{#1}}   {\b:accents{grave}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\'\expandafter\endcsname
   \csname T1\string\'\endcsname{|<acute iso-8859-1|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\^\expandafter\endcsname
   \csname T1\string\^\endcsname{|<circumflex iso-8859-1|>{}{}}
   {\a:accents{circ}{#1}}   {\b:accents{circ}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\~\expandafter\endcsname
   \csname T1\string\~\endcsname{|<tilde iso-8859-1|>{}{}}
   {\a:accents{tilde}{#1}}   {\b:accents{tilde}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\"\expandafter\endcsname
   \csname T1\string\"\endcsname{|<diaeresis iso-8859-1|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\r\endcsname}%
   \csname T1\string\r\endcsname{|<ring iso-8859-1|>{}{}}
   {\a:accents{ring}{#1}}   {\b:accents{ring}{#1}{#2}}
>>>



\<T1 old iso-8859-1 accents\><<<
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\c\endcsname}%
   \csname T1\string\c\endcsname{|<cedilla iso-8859-1|>{}{}}
   {\a:accents{cedil}{#1}}     {\b:accents{cedil}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\t\endcsname}%
   \csname T1\string\t\endcsname{{}{}}
   {\a:accents{udot}{#1}}     {\b:accents{udot}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\H\endcsname}%
   \csname T1\string\H\endcsname{{}{}} 
   {\a:accents{Huml}{#1}} {\b:accents{Huml}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\b\endcsname}%
   \csname T1\string\b\endcsname{{}{}}
   {\a:accents{b}{#1}}     {\b:accents{b}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\d\endcsname}%
   \csname T1\string\d\endcsname{{}{}}
   {\a:accents{d}{#1}}     {\b:accents{d}{#1}{#2}}
>>>



\<T1 old iso-8859-1 accents\><<<
\expand:after{\Configure{accent}}\csname T1\string\.\expandafter\endcsname
   \csname T1\string\.\endcsname
   {|<dot iso-8859-1|>{}{}}
   {\a:accents{dot}{#1}} {\b:accents{dot}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\u\expandafter\endcsname
   \csname T1\string\u\endcsname
   {|<breve iso-8859-1|>{}{}}
   {\a:accents{breve}{#1}} {\b:accents{breve}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\vec\expandafter\endcsname
   \csname T1\string\vec\endcsname
   {|<vec iso-8859-1|>{}{}}
   {\a:accents{vec}{#1}} {\b:accents{vec}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\v\expandafter\endcsname
   \csname T1\string\v\endcsname
   {|<check iso-8859-1|>{}{}}
   {\a:accents{check}{#1}} {\b:accents{check}{#1}{#2}} 
\expand:after{\Configure{accent}}\csname T1\string\=\expandafter\endcsname
   \csname T1\string\=\endcsname
   {|<bar iso-8859-1|>{}{}}  
   {\a:accents{bar}{#1}} {\b:accents{bar}{#1}{#2}}
>>>


%%%%%%%%%%%%%%%%%%%%
\section{T1 on Empty Base}
%%%%%%%%%%%%%%%%%%%%

\<latex accents\><<<
\Configure{add accent}{T1:2}
  {}{\ht:special{t4ht@+\string&\#x005E;}x}
  {}{}
>>>

%%%%%%%%%%%%%%%%%%%%
\section{OT1 8859-1}
%%%%%%%%%%%%%%%%%%%%

\<OT1 old iso-8859-1 accents\><<<
\expand:after{\Configure{accent}}\csname OT1\string\`\endcsname
   \grave{|<grave iso-8859-1|>{}{}}
   {\a:accents{grave}{#1}}   {\b:accents{grave}{#1}{#2}}
\expand:after{\Configure{accent}}\csname OT1\string\'\endcsname
   \acute{|<acute iso-8859-1|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
\expand:after{\Configure{accent}}\csname OT1\string\^\endcsname
   \hat{|<circumflex iso-8859-1|>{}{}}
   {\a:accents{circ}{#1}}   {\b:accents{circ}{#1}{#2}}
\expand:after{\Configure{accent}}\csname OT1\string\~\endcsname
   \tilde{|<tilde iso-8859-1|>{}{}}
   {\a:accents{tilde}{#1}}   {\b:accents{tilde}{#1}{#2}}
\expand:after{\Configure{accent}}\csname
           OT1\string\"\expandafter\endcsname
   \csname OT1\string\"\endcsname{|<diaeresis iso-8859-1|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
\Configure{accent}\ddot\ddot{|<diaeresis iso-8859-1|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
\expand:after{\Configure{accent}}\csname OT1\string\r\endcsname
   \mathring{|<ring iso-8859-1|>{}{}}
   {\a:accents{ring}{#1}}   {\b:accents{ring}{#1}{#2}}
>>>








The following are also placed under accents configuration.

\<OT1 old iso-8859-1 accents\><<<
\expand:after{\expand:after{\Configure{accent}}%
   \csname OT1\string\c\endcsname}%
   \csname OT1\string\c\endcsname{|<cedilla iso-8859-1|>{}{}}
   {\a:accents{cedil}{#1}}     {\b:accents{cedil}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname OT1\string\t\endcsname}%
   \csname OT1\string\t\endcsname{{}{}}
   {\a:accents{udot}{#1}}     {\b:accents{udot}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname OT1\string\H\endcsname}%
   \csname OT1\string\H\endcsname{{}{}}
   {\a:accents{Huml}{#1}} {\b:accents{Huml}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname OT1\string\b\endcsname}%
   \csname OT1\string\b\endcsname{{}{}}
   {\a:accents{b}{#1}}     {\b:accents{b}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname OT1\string\d\endcsname}%
   \csname OT1\string\d\endcsname{{}{}}
   {\a:accents{d}{#1}}     {\b:accents{d}{#1}{#2}}
>>>



The following originally have been defined to be parameter-less.

\<OT1 old iso-8859-1 accents\><<<
\expand:after{\Configure{accent}}\csname OT1\string\.\endcsname
   \dot{|<dot iso-8859-1|>{}{}}
   {\a:accents{dot}{#1}} {\b:accents{dot}{#1}{#2}}
\expand:after{\Configure{accent}}\csname OT1\string\u\endcsname
   \breve{|<breve iso-8859-1|>{}{}}
   {\a:accents{breve}{#1}} {\b:accents{breve}{#1}{#2}}
\expand:after{\Configure{accent}}\csname OT1\string\vec\endcsname
   \vec{|<vec iso-8859-1|>{}{}}
   {\a:accents{vec}{#1}} {\b:accents{vec}{#1}{#2}}
\expand:after{\Configure{accent}}\csname OT1\string\v\endcsname
   \check{|<check iso-8859-1|>{}{}}
   {\a:accents{check}{#1}} {\b:accents{check}{#1}{#2}} 
\expand:after{\Configure{accent}}\csname OT1\string\=\endcsname
   \bar{|<bar iso-8859-1|>{}{}}
   {\a:accents{bar}{#1}} {\b:accents{bar}{#1}{#2}}
>>>

\<OT1 old iso-8859-1 accents\><<<
|<ot1enc.def unicode|>
>>>

\<ot1enc.def unicode\><<<
\expandafter\def
   \csname OT1\string\l\endcsname{\ht:special{t4ht@+\string&{35}x0142;}x}
\expandafter\def
   \csname OT1\string\L\endcsname{\ht:special{t4ht@+\string&{35}x0141;}x}
>>>


\<configure html4 plain\><<<
\Configure{l}{\ht:special{t4ht@+\string&{35}x0142;}x}
\Configure{L}{\ht:special{t4ht@+\string&{35}x0141;}x}
>>>



%%%%%%%%%%%%%%%%%%%%
\section{8859-2}
%%%%%%%%%%%%%%%%%%%%



\<optional iso-8859-2 accents\><<<
\def\:temp{charset=iso-8859-2}
\ifx \a:charset\:UnDef
      \ifx  \A:charset\:temp \let\:temp=\def \fi
\else \ifx  \a:charset\:temp \let\:temp=\def \fi
\fi
\ifx \:temp\def
   \:CheckOption{new-accents}     \if:Option \else
      |<old iso-8859-2 accents|>
\fi \fi
>>>

\<old iso-8859-2 accents\><<<
|<T1 old iso-8859-2 accents|>
>>>











% d{239}
























\<old iso-8859-2 accents\><<<
\Configure{accent}\`\grave{|<grave iso-8859-2|>{}{}}
   {\a:accents{grave}{#1}}   {\b:accents{grave}{#1}{#2}}
\Configure{accent}\'\acute{|<acute iso-8859-2|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
\Configure{accent}\^\hat{|<circumflex iso-8859-2|>{}{}}
   {\a:accents{hat}{#1}}   {\b:accents{hat}{#1}{#2}}
\Configure{accent}\~\tilde{|<tilde iso-8859-2|>{}{}}
   {\a:accents{tilde}{#1}}   {\b:accents{tilde}{#1}{#2}}
\Configure{accent}\"\ddot{|<diaeresis iso-8859-2|>{}{34}}
   {\a:accents{uml}{#1}}   {\b:accents{uml}{#1}{#2}}
>>>





The following are also placed under accents configuration.

\<old iso-8859-2 accents\><<<
\Configure{accent}\c\c{|<cedilla iso-8859-2|>{}{}}
   {\a:accents{cedil}{#1}}     {\b:accents{cedil}{#1}{#2}}
\Configure{accent}\t\t{{}{}}
   {\a:accents{udot}{#1}}     {\b:accents{udot}{#1}{#2}}
\Configure{accent}\H\H{|<double acute iso-8859-2|>{}{}}
   {\a:accents{Huml}{#1}}     {\b:accents{Huml}{#1}{#2}}
\Configure{accent}\b\b{{}{}}
   {\a:accents{b}{#1}}     {\b:accents{b}{#1}{#2}}
\Configure{accent}\d\d{{}{}}
   {\a:accents{d}{#1}}     {\b:accents{d}{#1}{#2}}
>>>

The following originally have been defined to be parameter-less.

\<old iso-8859-2 accents\><<<
\Configure{accent}\.\.{|<dot above iso-8859-2|>{}{}}  
   {\a:accents{dot}{#1}}      {\b:accents{dot}{#1}{#2}}
\Configure{accent}\dot\dot{|<dot above iso-8859-2|>{}{}}  
   {\a:accents{dot}{#1}}      {\b:accents{dot}{#1}{#2}}
\Configure{accent}\u\breve{|<breve iso-8859-2|>{}{}}
   {\a:accents{breve}{#1}}      {\b:accents{breve}{#1}{#2}}
\Configure{accent}\vec\vec{{}{}}
   {\a:accents{vec}{#1}}      {\b:accents{vec}{#1}{#2}}
\Configure{accent}\v\v{|<caron iso-8859-2|>{}{}}
   {\a:accents{check}{#1}}      {\b:accents{check}{#1}{#2}} 
\Configure{accent}\check\check{|<caron iso-8859-2|>{}{}}
   {\a:accents{check}{#1}}      {\b:accents{check}{#1}{#2}} 
\Configure{accent}\=\bar{{}{}} 
   {\a:accents{bar}{#1}}      {\b:accents{bar}{#1}{#2}}
>>>


\<old 8859-2 accents\><<<
\Configure{accent}\widetilde\widetilde{{}{}} 
   {\a:accents{widetilde}{#1}} {\b:accents{widetilde}{#1}{#2}}
\Configure{accent}\widehat\widehat{{}{}} 
   {\a:accents{widehat}{#1}} {\b:accents{widehat}{#1}{#2}}
>>>

\verb'\vec', \verb'\widetilde', and \verb'\widehat' are for math mode.
\verb'\b', \verb'\c', \verb'\d', \verb'\t', and \verb'\H' are for text mode.


%%%%%%%%%%%%%%%%%%%%
\section{T1 8859-2}
%%%%%%%%%%%%%%%%%%%%


\<T1 old iso-8859-2 accents\><<<
\expand:after{\Configure{accent}}\csname T1\string\`\expandafter\endcsname
   \csname T1\string\`\endcsname{|<grave iso-8859-2|>{}{}}
   {\a:accents{grave}{#1}}   {\b:accents{grave}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\'\expandafter\endcsname
   \csname T1\string\'\endcsname{|<acute iso-8859-2|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\^\expandafter\endcsname
   \csname T1\string\^\endcsname{|<circumflex iso-8859-2|>{}{}}
   {\a:accents{circ}{#1}}   {\b:accents{circ}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\~\expandafter\endcsname
   \csname T1\string\~\endcsname{|<tilde iso-8859-2|>{}{}}
   {\a:accents{tilde}{#1}}   {\b:accents{tilde}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\"\expandafter\endcsname
   \csname T1\string\"\endcsname{|<diaeresis iso-8859-2|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\r\endcsname}%
   \csname T1\string\r\endcsname{|<ring iso-8859-2|>{}{}}
   {\a:accents{ring}{#1}}   {\b:accents{ring}{#1}{#2}}
>>>






\<T1 old iso-8859-2 accents\><<<
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\c\endcsname}%
   \csname T1\string\c\endcsname{|<cedilla iso-8859-2|>{}{}}
   {\a:accents{cedil}{#1}}     {\b:accents{cedil}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\t\endcsname}%
   \csname T1\string\t\endcsname{{}{}}
   {\a:accents{udot}{#1}}     {\b:accents{udot}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\H\endcsname}%
   \csname T1\string\H\endcsname{|<double acute iso-8859-2|>{}{}}
   {\a:accents{Huml}{#1}}{\b:accents{Huml}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\b\endcsname}%
   \csname T1\string\b\endcsname{{}{}}
   {\a:accents{b}{#1}}     {\b:accents{b}{#1}{#2}}
\expand:after{\expand:after{\Configure{accent}}%
   \csname T1\string\d\endcsname}%
   \csname T1\string\d\endcsname{{}{}}
   {\a:accents{d}{#1}}     {\b:accents{d}{#1}{#2}}
>>>



\<T1 old iso-8859-2 accents\><<<
\expand:after{\Configure{accent}}\csname T1\string\.\expandafter\endcsname
   \csname T1\string\.\endcsname
   {|<dot iso-8859-2|>{}{}} 
   {\a:accents{dot}{#1}}{\b:accents{dot}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\u\expandafter\endcsname
   \csname T1\string\u\endcsname
   {|<breve iso-8859-2|>{}{}}
   {\a:accents{breve}{#1}}{\b:accents{breve}{#1}{#2}}
\expand:after{\Configure{accent}}\csname T1\string\vec\expandafter\endcsname
   \csname T1\string\vec\endcsname
   {|<vec iso-8859-2|>{}{}}
   {\a:accents{vec}{#1}}{\b:accents{vec}{#1}{#2}}
\expandafter\let\csname T1\string\v\endcsname\:UnDef
\expand:after{\Configure{accent}}\csname T1\string\v\expandafter\endcsname
   \csname T1\string\v\endcsname
   {|<caron iso-8859-2|>{}{}}
   {\a:accents{check}{#1}}{\b:accents{check}{#1}{#2}} 
\expand:after{\Configure{accent}}\csname T1\string\=\expandafter\endcsname
   \csname T1\string\=\endcsname
   {|<bar iso-8859-2|>{}{}}
   {\a:accents{bar}{#1}}{\b:accents{bar}{#1}{#2}}
>>>



%%%%%%%%%%%%%%%%%%%%
\section{T1, OT1 8859-7}
%%%%%%%%%%%%%%%%%%%%



\<T1 greek ldf iso-8859-7\><<<
\expand:after{\Configure{accent}}\csname T1\string\'\expandafter\endcsname
   \csname T1\string\'\endcsname
   {|<acute iso-8859-7|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
>>>

\<greek ldf iso-8859-7\><<<
\expand:after{\Configure{accent}}\csname OT1\string\'\endcsname
   \acute{|<acute iso-8859-7|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
>>>

\<acute iso-8859-7\><<<
A{\ht:special{t4ht@+\string&{35}x00C1;}A}%
E{\ht:special{t4ht@+\string&{35}x00C9;}E}%
I{\ht:special{t4ht@+\string&{35}x00CD;}I}%
O{\ht:special{t4ht@+\string&{35}x00D3;}O}%
U{\ht:special{t4ht@+\string&{35}x00DA;}U}%
Y{\ht:special{t4ht@+\string&{35}x00DD;}Y}%
a{\ht:special{t4ht@+\string&{35}x00E1;}a}%
e{\ht:special{t4ht@+\string&{35}x00E9;}e}%
i{\ht:special{t4ht@+\string&{35}x00ED;}i}%
\i{\ht:special{t4ht@+\string&{35}x00ED;}i}%
o{\ht:special{t4ht@+\string&{35}x00F3;}o}%
u{\ht:special{t4ht@+\string&{35}x00FA;}u}%
y{\ht:special{t4ht@+\string&{35}x00FD;}y}%
{\@use@text@encoding \@curr@enc a}{\ht:special{t4ht@220}a}%
{\@use@text@encoding \@curr@enc e}{\ht:special{t4ht@221}e}%
{\@use@text@encoding \@curr@enc h}{\ht:special{t4ht@222}h}%
{\@use@text@encoding \@curr@enc i}{\ht:special{t4ht@223}i}%
{\@use@text@encoding \@curr@enc o}{\ht:special{t4ht@252}o}%
{\@use@text@encoding \@curr@enc u}{\ht:special{t4ht@253}u}%
{\@use@text@encoding \@curr@enc w}{\ht:special{t4ht@254}w}%
>>>





%%%%%%%%%%%%%%%%%%%%%%%
\section{LaTeX Encodings}
%%%%%%%%%%%%%%%%%%%%%%%



\<32,4 plain,latex\><<<
\:CheckOption{new-accents}     \if:Option \else 
  \Configure{accents}
    {\expandafter\ifx \csname #1-num\endcsname\relax
       \ht:special{t4ht@+\string&{35}x#2;}x%
     \else
       \ht:special{t4ht@+\string&\#x#2;}X%
     \fi
    }
    {\Picture+{ \a:@Picture{#1}}#2{#3}\EndPicture}
    \expandafter\let\csname ring-num\endcsname=\def
\fi
>>>

\<32,4 latexPRE-CSS\><<<
\:CheckOption{new-accents}     \if:Option \else 
   \Configure{textscaccent}
      {\Tg<small class="small-caps">}{\Tg</small>}
\fi
>>>

\<latex ltoutenc\><<<
\Configure{textcircled}
   {\@use@text@encoding \@curr@enc c}       
   {\leavevmode \special{t4ht@+\string&\#x00A9;}c}
   {\@use@text@encoding \@curr@enc \scshape r}
   {\leavevmode \special{t4ht@+\string&\#x00AE;}r}
   {}
>>>

\<latex accents\><<<
\:CheckOption{new-accents}     \if:Option
   |<new accents|>
\else
   |<old plain,latex accents|>
\fi
\let\^^_|=\v
>>>

\<latex accents\><<<
\Configure{@TITLE}{|<env for titles|>}
>>>

\<env for titles\><<<
\let\"=\:same \let\~=\:same \let\^=\:same
\PictureOff
>>>




\<0,32,4 latex\><<<
|<latex accents|>
\let\@acci|=\' \let\@accii|=\` \let\@acciii|=\=       
>>>

\<new accents\><<<
\:CheckOption{accent-}     \if:Option
  \Configure{HAccent}\acute{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\bar{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\breve{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\check{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\ddot{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\dot{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\grave{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\hat{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\tilde{AOaoNn{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\vec{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\widehat{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\widetilde{}{\Picture+{}}{\EndPicture}
\fi
\:CheckOption{mathaccent-}     \if:Option
  \Configure{HAccent}\"{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\'{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\.{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\={}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\H{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\^{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\`{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\b{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\c{Cc{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\d{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\t{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\u{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\v{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\~{AOaoNn{}}{\Picture+{}}{\EndPicture}
\fi
>>>

\<new accents\><<<
\Configure{accent}{*}
   {<!--tex4ht:accent\Hnewline font="}{" char="}{" type="}{"-->}
   {<!--tex4ht:end accent-->}
\Configure{mathaccent}{*}
   {<!--tex4ht:mathaccent\Hnewline font="}{" char="}{" type="}{"-->}
   {<!--tex4ht:end mathaccent-->}
\Configure{accented}{*}
   {<!--tex4ht:accented\Hnewline font="}{" char="}{" type="}{"-->}
   {<!--tex4ht:end accented-->}
\Configure{accenting}{*}
   {<!--tex4ht:accenting\Hnewline-->}
   {<!--tex4ht:end accenting-->}
>>>







\<0,32,4 plain\><<<
\:CheckOption{new-accents}     \if:Option
   |<new plain accents|>
\else
   |<old plain accents|>
   \Configure{accents}
      {\ht:special{t4ht@+\string&{35}x#2;}x}
      {\Picture+{ \:Picture:{#1}}#2{#3}\EndPicture}
\fi
\let\^^_|=\v
>>>



\<new plain accents\><<<
\:CheckOption{accent-}     \if:Option
  \Configure{HAccent}\acute{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\bar{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\breve{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\check{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\ddot{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\dot{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\grave{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\hat{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\tilde{AOaoNn{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\vec{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\widehat{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\widetilde{}{\Picture+{}}{\EndPicture}
\fi
\:CheckOption{mathaccent-}     \if:Option
  \Configure{HAccent}\"{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\'{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\.{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\={}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\H{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\^{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\`{AEIOUaeiou{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\b{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\c{Cc{}}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\d{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\t{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\u{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\v{}{\Picture+{}}{\EndPicture}
  \Configure{HAccent}\~{AOaoNn{}}{\Picture+{}}{\EndPicture}
\fi
>>>

\<new plain accents\><<<
\Configure{accent}{*}
   {<!--tex4ht:accent\Hnewline font="}{" char="}{" type="}{"-->}
   {<!--tex4ht:end accent-->}
\Configure{mathaccent}{*}
   {<!--tex4ht:mathaccent\Hnewline font="}{" char="}{" type="}{"-->}
   {<!--tex4ht:end mathaccent-->}
\Configure{accented}{*}
   {<!--tex4ht:accented\Hnewline font="}{" char="}{" type="}{"-->}
   {<!--tex4ht:end accented-->}
\Configure{accenting}{*}
   {<!--tex4ht:accenting\Hnewline-->}
   {<!--tex4ht:end accenting-->}
>>>





\<old plain accents\><<<
\Configure{accent}\`\grave{|<grave codes|>{}{}}
   {\a:accents{grave}{#1}}   {\b:accents{grave}{#1}{#2}}
\Configure{accent}\'\acute{|<acute codes|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
\Configure{accent}\^\hat{|<circumflex codes|>{}{}}
   {\a:accents{circ}{#1}}   {\b:accents{hat}{#1}{#2}}
\Configure{accent}\~\tilde{|<tilde codes|>{}{}}
   {\a:accents{tilde}{#1}}   {\b:accents{tilde}{#1}{#2}}
\Configure{accent}\"\ddot{|<diaeresis codes|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
>>>

The following are also placed under accents configuration.

\<old plain accents\><<<
\Configure{accent}\c\c{C{C}c{c}{}{}}
   {\a:accents{cedil}{#1}}     {\b:accents{cedil}{#1}{#2}}
\Configure{accent}\t\t{{}{}}
   {\a:accents{udot}{#1}}     {\b:accents{udot}{#1}{#2}}
\Configure{accent}\H\H{{}{}}
    {\a:accents{Huml}{#1}} {\b:accents{Huml}{#1}{#2}}
\Configure{accent}\b\b{{}{}}
    {\a:accents{b}{#1}} {\b:accents{b}{#1}{#2}}
\Configure{accent}\d\d{{}{}}
    {\a:accents{d}{#1}} {\b:accents{d}{#1}{#2}}
>>>

The following originally have been defined to be parameter-less.

\<old plain accents\><<<
\Configure{accent}\.\.{{}{}} 
   {\a:accents{dot}{#1}} {\b:accents{dot}{#1}{#2}}
\Configure{accent}\dot\dot{{}{}}
   {\a:accents{dot}{#1}} {\b:accents{dot}{#1}{#2}}
\Configure{accent}\u\breve{{}{}}{\a:accents{breve}{#1}}
   {\b:accents{breve}{#1}{#2}}
\Configure{accent}\vec\vec{{}{}}{\a:accents{vec}{#1}}
   {\b:accents{vec}{#1}{#2}}
\Configure{accent}\v\v{{}{}}{\a:accents{check}{#1}}
   {\b:accents{check}{#1}{#2}} 
\Configure{accent}\check\check{{}{}}{\a:accents{check}{#1}}
   {\b:accents{check}{#1}{#2}} 
\Configure{accent}\=\bar{{}{}}
   {\a:accents{bar}{#1}} {\b:accents{bar}{#1}{#2}}
>>>
%  \= macron

\<old plain accents\><<<
\Configure{accent}\widetilde\widetilde{{}{}} 
   {\a:accents{widetilde}{#1}} {\b:accents{widetilde}{#1}{#2}}
\Configure{accent}\widehat\widehat{{}{}} 
   {\a:accents{widehat}{#1}} {\b:accents{widehat}{#1}{#2}}
>>>
\verb'\vec', \verb'\widetilde', and \verb'\widehat' are for math mode.
\verb'\b', \verb'\c', \verb'\d', \verb'\t', and \verb'\H' are for text mode.


%%%%%%%%%%%%%%%%%%%
\section{AMS Encodings}
%%%%%%%%%%%%%%%%%%%




\<ams 2000 art + book + proc\><<<
\def\:tempc#1#2#3#4#5{%
  \expandafter\ifx \csname #1mathaccentV\endcsname\relax
     \o:mathaccentV:{#1}{#2}{#3}{#4}{#5}%
  \else  \csname #1mathaccentV\endcsname{#5}\fi}
\HLet\mathaccentV\:tempc
\:CheckOption{new-accents}     \if:Option \else
   |<ams 2000 iso-8859-1 accents|>
\fi
\def\:temp{charset=iso-8859-2}
\ifx \a:charset\:UnDef
      \ifx  \A:charset\:temp \let\:temp=\def \fi
\else \ifx  \a:charset\:temp \let\:temp=\def \fi
\fi
\ifx \:temp\def
   \:CheckOption{new-accents}     \if:Option \else
      |<old ams 2000 iso-8859-2 accents|>
\fi \fi
>>>


\<ams 2000 iso-8859-1 accents\><<<
\HRestore\grave
\expandafter\let\csname gravemathaccentV\endcsname=\grave
\expandafter\let\csname GRAVEmathaccentV\endcsname=\grave
\expand:after{\Configure{accent}}\csname
           gravemathaccentV\expandafter\endcsname
   \csname GRAVEmathaccentV\endcsname{|<grave iso-8859-1|>{}{}}
   {\a:accents{grave}{#1}}   {\b:accents{grave}{#1}{#2}}
\HRestore\acute
\expandafter\let\csname acutemathaccentV\endcsname=\acute
\expandafter\let\csname ACUTEmathaccentV\endcsname=\acute
\expand:after{\Configure{accent}}\csname 
           acutemathaccentV\expandafter\endcsname
   \csname ACUTEmathaccentV\endcsname{|<acute iso-8859-1|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
\HRestore\hat
\expandafter\let\csname hatmathaccentV\endcsname=\hat
\expandafter\let\csname HATmathaccentV\endcsname=\hat
\expand:after{\Configure{accent}}\csname
           hatmathaccentV\expandafter\endcsname
   \csname HATmathaccentV\endcsname{|<hat iso-8859-1|>{}{}}
   {\a:accents{hat}{#1}}   {\b:accents{hat}{#1}{#2}}
\HRestore\tilde
\expandafter\let\csname tildemathaccentV\endcsname=\tilde
\expandafter\let\csname TILDEmathaccentV\endcsname=\tilde
\expand:after{\Configure{accent}}\csname
           tildemathaccentV\expandafter\endcsname
   \csname TILDEmathaccentV\endcsname{|<tilde iso-8859-1|>{}{}}
   {\a:accents{tilde}{#1}}   {\b:accents{tilde}{#1}{#2}}
\HRestore\ddot
\expandafter\let\csname DDOTmathaccentV\endcsname=\ddot
\expand:after{\Configure{accent}}\csname
           DDOTmathaccentV\expandafter\endcsname
   \csname DDOTmathaccentV\endcsname{|<ddot iso-8859-1|>{}{}}
   {\a:accents{ddot}{#1}}   {\b:accents{ddot}{#1}{#2}}
\expandafter\let\csname ddotmathaccentV\endcsname=\ddot
\expand:after{\Configure{accent}}\csname
           ddotmathaccentV\expandafter\endcsname
   \csname ddotmathaccentv\endcsname{|<ddot iso-8859-1|>{}{}}
   {\a:accents{ddot}{#1}}   {\b:accents{ddot}{#1}{#2}}
\HRestore\check
\expandafter\let\csname checkmathaccentV\endcsname=\check
\expandafter\let\csname CHECKmathaccentV\endcsname=\check
\expand:after{\Configure{accent}}\csname
           checkmathaccentV\expandafter\endcsname
   \csname CHECKmathaccentV\endcsname{|<check iso-8859-1|>{}{}}
   {\a:accents{check}{#1}}   {\b:accents{check}{#1}{#2}}
\HRestore\dot
\expandafter\let\csname dotmathaccentV\endcsname=\dot
\expandafter\let\csname DOTmathaccentV\endcsname=\dot
\expand:after{\Configure{accent}}\csname
           dotmathaccentV\expandafter\endcsname
   \csname DOTmathaccentV\endcsname{|<dot iso-8859-1|>{}{}}
   {\a:accents{dot}{#1}}   {\b:accents{dot}{#1}{#2}}
\HRestore\breve
\expandafter\let\csname brevemathaccentV\endcsname=\breve
\expandafter\let\csname BREVEmathaccentV\endcsname=\breve
\expand:after{\Configure{accent}}\csname
           brevemathaccentV\expandafter\endcsname
   \csname BREVEmathaccentV\endcsname{|<breve iso-8859-1|>{}{}}
   {\a:accents{breve}{#1}}   {\b:accents{breve}{#1}{#2}}
\HRestore\bar
\expandafter\let\csname barmathaccentV\endcsname=\bar
\expandafter\let\csname BARmathaccentV\endcsname=\bar
\expand:after{\Configure{accent}}\csname
           barmathaccentV\expandafter\endcsname
   \csname BARmathaccentV\endcsname{|<bar iso-8859-1|>{}{}}
   {\a:accents{bar}{#1}}   {\b:accents{bar}{#1}{#2}}
\HRestore\vec
\expandafter\let\csname vecmathaccentV\endcsname=\vec
\expandafter\let\csname VECmathaccentV\endcsname=\vec
\expand:after{\Configure{accent}}\csname
           vecmathaccentV\expandafter\endcsname
   \csname VECmathaccentV\endcsname{|<vec iso-8859-1|>{}{}}
   {\a:accents{vec}{#1}}   {\b:accents{vec}{#1}{#2}}
>>>

\<old ams 2000 iso-8859-2 accents\><<<
\HRestore\acute
\expandafter\let\csname acutemathaccentV\endcsname=\acute
\expandafter\let\csname ACUTEmathaccentV\endcsname=\acute
\expand:after{\Configure{accent}}\csname 
           acutemathaccentV\expandafter\endcsname
   \csname ACUTEmathaccentV\endcsname{|<acute iso-8859-2|>{}{}}
   {\a:accents{acute}{#1}}   {\b:accents{acute}{#1}{#2}}
>>>

The upper case is needed for cases like 

\begin{verbatim}
\documentclass[12pt]{amsart}
\begin{document}
\title{BUDOWA J''ADER ATOM{O}W PIERWIASTK{O}W}
\author{Rafa''l ``Raba--P{o}''lg''l{o}wek\'o$\acute{o}$}
\def\datename{Wersja z}
\date{\today}
\maketitle
\end{document}
\end{verbatim}


%%%%%%%%%%%%%%%%%%
\section{ot4enc}
%%%%%%%%%%%%%%%%%%

\<configure html4 ot4enc\><<<
\def\add:acc#1{\ht:special{t4ht@+\string&\#x#1;}x}
\Configure{add accent}{OT4:18} %\`
  |<add grave codes|>  {}{} 
\Configure{add accent}{OT4:127} %\"
  |<add diaeresis codes|>  {}{}
\Configure{add accent}{OT4:19} %\'
  |<add acute codes|>  {}{}
\Configure{add accent}{OT4:95} %\.
  |<add dot above codes|>  {}{}
\Configure{add accent}{OT4:22} %\=
     {}{}
\Configure{add accent}{OT4:94} %\^
  |<add circumflex codes|>  {}{}
\Configure{add accent}{OT4:126} %\~
  |<add tilde codes|>  {}{}
\Configure{add accent}{OT4:125} %\H
  |<add double acute code|>  {}{}
\Configure{add accent}{OT4:21} %\u
  |<add breve codes|>  {}{}
\Configure{add accent}{OT4:20} %\v
  |<add caron codes|>  {}{}
\Configure{add accent}{OT4:23} %\r
  |<add ring codes|>   {}{}
\Configure{add accent}{OT4:24} %\c
  |<add cedilla codes|>  {}{}
>>>

%%%%%%%%%%%%%%%%%%
\section{pd1enc}
%%%%%%%%%%%%%%%%%%

\<configure html4 pd1enc\><<<
\def\add:acc#1{\ht:special{t4ht@+\string&\#x#1;}x}
\Configure{add accent}{PD1:96} %\`
  |<add grave codes|>  {}{} 
\Configure{add accent}{PD1:168} %\"
  |<add diaeresis codes|>  {}{}
\Configure{add accent}{PD1:180} %\'
  |<add acute codes|>  {}{}
\Configure{add accent}{PD1:27} %\.
  |<add dot above codes|>  {}{}
\Configure{add accent}{PD1:26} %\^
  |<add circumflex codes|>  {}{}
\Configure{add accent}{PD1:31} %\~
  |<add tilde codes|>  {}{}
\Configure{add accent}{PD1:24} %\u
  |<add breve codes|>  {}{}
\Configure{add accent}{PD1:20} %\v
  |<add caron codes|>  {}{}
\Configure{add accent}{PD1:21} %\r
  |<add ring codes|>   {}{}
\Configure{add accent}{PD1:184} %\c
  |<add cedilla codes|>  {}{}
>>>

% \Configure{add accent}{PD1:22} %\=     {}{}

% \Configure{add accent}{PD1:125} %\H
%  |<add double acute code|>  {}{}


%%%%%%%%%%%%%%%%%%%
\section{Languages}
%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%
\subsection{Babel}
%%%%%%%%%%%%%%%%%%%


\<babel.def\><<<
|<quotedblbase|>
>>>


\<babel macros\><<<
|<babel.def|>
>>>




\<config tex4ht\><<<
\NewConfigure{charset}[1]{\def\a:charset{#1}}
\def\:temp#1charset=#2,#3|<par del|>{%
   \if !#2!%
     \Log:Note{for alternative charset, use
          the command line option `charset=...'}
   \else \Configure{charset}{charset=#2}\fi}
\expandafter\:temp\Preamble ,charset=,|<par del|>
>>>




\<configure html4 CJK\><<<
\def\A:charset{charset=utf-8}
|<simplified chinese (mainland)|>
|<traditional chinese (taiwanese)|>
|<japanese charset|>
|<korean charset|>
\Configure{CJKbold}{\HCode{<b>}}{\HCode{</b>}}
>>>



The following are from CJK.enc
\begin{verbatim}
% CEF:          CEFX    C80
%               CEFY    C81
\end{verbatim}


\<traditional chinese (taiwanese)\><<<
\Configure{CJK.enc}{Bg5}{\def\A:charset{charset=big5}}
\Configure{CJK.enc}{Bg5pmC}{\def\A:charset{charset=big5}}
\Configure{CJK.enc}{Bg5+}{\def\A:charset{charset=big5}}
>>>


GB2312 (1980) has been superceded by GBK (circa 1993?) and GB18030 (2000).

\<simplified chinese (mainland)\><<<
\Configure{CJK.enc}{GBpmC}{\def\A:charset{charset=gbk}}
\Configure{CJK.enc}{GBK}{\def\A:charset{charset=gbk}}
\Configure{CJK.enc}{GBt}{\def\A:charset{charset=gbk}}
\Configure{CJK.enc}{GBtpmC}{\def\A:charset{charset=gbk}}
\Configure{CJK.enc}{CNS1-7}{\def\A:charset{charset=gbk}}
>>>


\<japanese charset\><<<
\Configure{CJK.enc}{JIS}{\def\A:charset{charset=iso-2022-jp}}
\Configure{CJK.enc}{JISpmC}{\def\A:charset{charset=iso-2022-jp}}
\Configure{CJK.enc}{JISdnp}{\def\A:charset{charset=iso-2022-jp}}
\Configure{CJK.enc}{JISwn}{\def\A:charset{charset=iso-2022-jp}}
\Configure{CJK.enc}{JIS2}{\def\A:charset{charset=iso-2022-jp}}
\Configure{CJK.enc}{JIS2dnp}{\def\A:charset{charset=iso-2022-jp}}
\Configure{CJK.enc}{SJIS}{\def\A:charset{charset=iso-2022-jp}}
>>>

\<korean charset\><<<
\Configure{CJK.enc}{KS}{\def\A:charset{charset=iso-2022-kr}}
\Configure{CJK.enc}{KSpmC}{\def\A:charset{charset=iso-2022-kr}}
\Configure{CJK.enc}{KSHL}{\def\A:charset{charset=iso-2022-kr}}
>>>





\<configure html4 hebtex\><<<
\def\A:charset{charset=iso-8859-8}
\Configure{arabtext}
   {\ifhmode \let\end:arabtex=\empty \IgnorePar
    \else
         \HCode{<div align="right"><table class="arabtex"><tr><td\Hnewline
              style="white-space:nowrap;" align="right">}%
         \def\end:arabtex{\HCode{</td></tr></table></div>}}%
    \fi
    \global\let\start:arab=\relax}
   {\end:arabtex}
   {\ifx \start:arab\relax \global\let\start:arab=\empty
    \else \Tg<br />\fi}
   {}
\:CheckOption{nikud}     \if:Option
   \Configure{chireq}{\char5 }
   \Configure{cholem}{\char3 }
   \Configure{chpatach}{\char1\char7 }
   \Configure{chqames}{\char2\char7 }
   \Configure{chsegol}{\char3\char7 }
   \Configure{dagesh}{\char46 }
   \Configure{meteg}{\char44 }
   \Configure{patachf}{\char1 }
   \Configure{patach}{\char1 }
   \Configure{qameschat}{\char6\char7 }
   \Configure{qames}{\char6 }
   \Configure{qibbus}{\HCode{<!--qibbus-->}}
   \Configure{rdot}{\HCode{<!--rdot-->}}
   \Configure{segol}{\char3 }
   \Configure{sere}{\char9 }
   \Configure{shindot}{\HCode{<!--shindot-->}}
   \Configure{shwa}{\char7 }
   \Configure{sindot}{\HCode{<!--sindot-->}}
\else
   \Log:Note{for hebrew vowels, use
        the command line option `nikud'}
   \Configure{chireq}{\HCode{<!--chireq-->}}
   \Configure{cholem}{\HCode{<!--cholem-->}}
   \Configure{chpatach}{\HCode{<!--chpatach-->}}
   \Configure{chqames}{\HCode{<!--chqames-->}}
   \Configure{chsegol}{\HCode{<!--chsegol-->}}
   \Configure{dagesh}{\HCode{<!--dagesh-->}}
   \Configure{meteg}{\HCode{<!--meteg-->}}
   \Configure{patachf}{\HCode{<!--patachf-->}}
   \Configure{patach}{\HCode{<!--patach-->}}
   \Configure{qameschat}{\HCode{<!--qameschat-->}}
   \Configure{qames}{\HCode{<!--qames-->}}
   \Configure{qibbus}{\HCode{<!--qibbus-->}}
   \Configure{rdot}{\HCode{<!--rdot-->}}
   \Configure{segol}{\HCode{<!--segol-->}}
   \Configure{sere}{\HCode{<!--sere-->}}
   \Configure{shindot}{\HCode{<!--shindot-->}}
   \Configure{shwa}{\HCode{<!--shwa-->}}
   \Configure{sindot}{\HCode{<!--sindot-->}}
\fi
>>>


\<configure html4 abidir\><<<
\:CheckOption{pic-RL}\if:Option
   \Configure{RL}
      {\ifvmode \IgnorePar\EndP \def\RL:tag{div}\else \def\RL:tag{span}\fi
       \HCode{<\RL:tag\space class="pic-RL">}\Picture*{}} 
      {\EndPicture\HCode{</\RL:tag>}}
      {}  {} {} {}
   \Css{div.pic-RL{text-align:right;}}
\else 
   \Log:Note{for pictorial RL, use
             the command line option `pic-RL'}
   \Configure{RL}
      {\HCode{<span class="RL">}} {\HCode{</span>}}
      {}  {\HCode{<br />}} {} {}

\fi
>>>

% \:CheckOption{RL2LR}\if:Option
%    \Configure{RL}
%       {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="RL" 
%           dir="rtl" >}}
%       {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
%       {}  {} {} {}
% \else
%    \Configure{RL}
%       {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="RL" 
%           dir="rtl" >}}
%       {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
%       {}  {\HCode{<br />}} {} {}
% \fi 


\<configure html4-uni babel\><<<
\def\A:charset{charset=utf-8}%
>>>


\<configure html4-uni austrian\><<<
\def\A:charset{charset=utf-8}
>>>

\<configure html4-uni catalan\><<<
\def\A:charset{charset=utf-8}
>>>

\<configure html4-uni croatian\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni czech\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni danish\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni dutch\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni english\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni esperant\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni estonian\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni finnish\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni francais\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni galician\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni germanb\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni greek\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni hebrew\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni ngermanb\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni norsk\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni polish\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni polski\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni portuges\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni romanian\><<<
\def\A:charset{charset=utf-8}
>>>


\<configure html4-uni scottish\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni slovak\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni slovene\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni spanish\><<<
\def\A:charset{charset=utf-8}
|<spanish configs|>
>>>
\<configure html4-uni swedish\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni turkish\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni ukraineb\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni usorbian\><<<
\def\A:charset{charset=utf-8}
>>>
\<configure html4-uni welsh\><<<
\def\A:charset{charset=utf-8}
>>>

\<configure html4-uni CJK\><<<
\def\A:charset{charset=utf-8}  
\Configure{CJKbold}{\HCode{<b>}}{\HCode{</b>}}
>>>

\<configure html4-uni hebtex\><<<
\def\A:charset{charset=utf-8}
>>>

\<configure html4-uni exerquiz\><<<
\def\A:charset{charset=utf-8}  
>>>

\<configure html4 romanian\><<<
\def\A:charset{charset=iso-8859-2}
\:CheckOption{new-accents}     \if:Option \else
   |<old iso-8859-2 accents|>
\fi
>>>

%%%%%%%%%%%%%%%%%%%
\subsection{Umlaut}
%%%%%%%%%%%%%%%%%%%

\<configure html4 german\><<<
\:CheckOption{new-accents}     \if:Option \else
   \Configure{accent}\grmn@OTumlaut
      \grmn@OTumlaut{|<diaeresis codes|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
\fi
>>>

\<babel.def\><<<
\:CheckOption{new-accents}     \if:Option \else
   \Configure{accent}\lower@umlaut\lower@umlaut{|<diaeresis codes|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
\fi
>>>



\<u mlaut\><<<
\Configure{accent}\bbl@umlauta
   \bbl@umlaute{|<diaeresis iso-8859-1|>{}{34}}
   {\a:accents{uml}{#1}}     {\b:accents{uml}{#1}{#2}}
>>>

%%%%%%%%%%%%%%%%%%%
\subsection{Russian and Cyrillic}
%%%%%%%%%%%%%%%%%%%



\<configure html4 t2benc\><<<
\def\:temp{charset=koi8-r}\ifx \A:charset\:temp \else
   \def\A:charset{charset=iso-8859-5}
\fi
>>>



\<configure html4 koi8-r\><<<
\def\A:charset{charset=koi8-r}
>>>



\<set babel charset\><<<
\def\:temp{charset=koi8-r}\ifx \A:charset\:temp \else
   \a:temp{russian}{iso-8859-5}
\fi
>>>

\<configure html4-uni russianb\><<<
\NewConfigure{dtd-lang}{1}  \Configure{dtd-lang}{RU}
\def\A:charset{charset=utf-8}

\ifx \@begindocumenthook\:UnDef\else
   \:CheckOption{new-accents}     \if:Option \else
         |<russian|>
\fi\fi
>>>



\<configure html4 russianb\><<<
\NewConfigure{dtd-lang}{1}  \Configure{dtd-lang}{RU}
\def\:temp{charset=koi8-r}\ifx \A:charset\:temp \else
   \def\A:charset{charset=iso-8859-5}
\fi
\ifx \@begindocumenthook\:UnDef\else
   \:CheckOption{new-accents}     \if:Option \else
%      \def\:temp{russian}\ifx \languagename\:temp
         |<russian|>
%      \fi
\fi\fi
>>>


We had also \verb'\append:def\@begindocumenthook{\HLet\"|=\ddot}' in
babel. It gets russian and brazil into infinite loop.  Why it was
inserted.

ERROR: The non ascii characters  might translate wrongly in the 4ht
file (e.g., \verb'^^e5' for 00EB below). They also  not show in the
documentation since a cmtt10 font is in use and it doesn't covet those
symbols. The problem will probably vanish once the new accent approach
will kick in.


\<russian\><<<
\Configure{accent}\"\ddot{|<diaeresis codes|>å{00EB}%
           {\@use@text@encoding \@curr@enc A}{00C4}%
           {\@use@text@encoding \@curr@enc E}{00CB}%
           {\@use@text@encoding \@curr@enc I}{00CF}%
           {\@use@text@encoding \@curr@enc O}{00D6}%
           {\@use@text@encoding \@curr@enc U}{00DC}%
           {\@use@text@encoding \@curr@enc Y}{0178}%
           {\@use@text@encoding \@curr@enc a}{00E4}%
           {\@use@text@encoding \@curr@enc e}{00EB}%
           {\@use@text@encoding \@curr@enc i}{00EF}%
           {\@use@text@encoding \@curr@enc \i}{00EF}%
           {\@use@text@encoding \@curr@enc o}{00F6}%
           {\@use@text@encoding \@curr@enc u}{00FC}%
           {\@use@text@encoding \@curr@enc y}{00FF}%
           {\@use@text@encoding \@curr@enc å}{00EB}%
           {}{34}}
   {\a:accents{uml}{#1}}    
   {\def\:temp{>}\def\:tempa{#2}\ifx \:temp\:tempa\HCode{»}%
    \else \def\:temp{<}\ifx \:temp\:tempa\HCode{«}%
    \else \b:accents{uml}{#1}{#2}\fi\fi}
>>> 



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Features}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%
\section{Margin Comments}
%%%%%%%%%%%%%%%%%%


We need to consider cases like
 \verb+\marginpar{ Consider: \par *one \par *two}+
for margin pars.



\<configure html4 latex\><<<
\Configure{marginpar}
   {\ifvmode
      \IgnorePar\EndP\HCode{<div class="marginpar">}%
      \def\end:margp{\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}%
      \par
    \else
      \SaveEndP
      \HCode{<span class="marginpar">}%
      \bgroup
         \Configure{HtmlPar}{\HCode{<br />}}{\HCode{<br />}}{}{}%
      \def\end:margp{\egroup\HCode{</span>}\RecallEndP}%
    \fi
   }
   {\end:margp}
\Css{.marginpar {width:20\%; float:right; text-align:left;
  margin-left:auto; margin-top:0.5em; font-size:85\%;
  text-decoration:underline;}}
\Css{.marginpar p{margin-top:0.4em; margin-bottom:0.4em;}}
>>>

\verb'margin-left:auto'  instead of \verb'margin-left:1em'
-- this makes margin paragraphs float correctly in  Netscape 4.06
 browser


%%%%%%%%%%%%%%%%%%
\section{Pictures in Margins}
%%%%%%%%%%%%%%%%%%



\<configure html4 picins\><<<
\Css{.picins-dr, .picins-rd { float:right; 
  padding: 2px; margin-left:5px; margin-bottom:3px;
  border: 1px dashed black; 
  }} 
\Css{.picins-dl, .picins-ld, .picins-d { float:left; 
  padding: 2px; margin-right:5px; margin-bottom:3px;
  border: 1px dashed black; 
  }} 
\Css{.picins-fr, .picins-rf { float:right; 
  padding: 2px; margin-left:5px; margin-bottom:3px;
  border: 1px dashed black; 
  }} 
\Css{.picins-fl, .picins-lf, .picins-f { float:left; 
  padding: 2px; margin-right:5px; margin-bottom:3px;
  border: 1px solid black; 
  }} 
\Css{.picins-sr, .picins-rs { float:right; 
  padding: 2px; margin-left:5px; margin-bottom:3px;
  border-left: 1px solid black; 
  border-top: 1px solid black; 
  border-right: 4px solid black; 
  border-bottom: 4px solid black; 
  }} 
\Css{.picins-sl, .picins-ls, .picins-s { float:left; 
  padding: 2px; margin-right:5px; margin-bottom:3px;
  border-left: 1px solid black; 
  border-top: 1px solid black; 
  border-right: 4px solid black; 
  border-bottom: 4px solid black; 
  }} 
\Css{.picins-xr, .picins-rx { float:right; 
  padding: 2px; margin-left:5px; margin-bottom:3px;
  border-left: 1px solid black; 
  border-top: 1px solid black; 
  border-right: 1px double black; 
  border-bottom: 1px double black; 
  }} 
\Css{.picins-xl, .picins-lx, .picins-x { float:left; 
  padding: 2px; margin-right:5px; margin-bottom:3px;
  border-left: 1px solid black; 
  border-top: 1px solid black; 
  border-right: 1px double black; 
  border-bottom: 1px double black; 
  }} 
\Css{.picins-r { float:right; 
  padding: 2px; margin-left:5px; margin-bottom:3px;
  }} 
\Css{.picins-l, .picins- { float:left; 
  padding: 2px; margin-right:5px; margin-bottom:3px;
  }} 
>>>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Style Files}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%
\subsection{MeX}
%%%%%%%%%%%%%%%%%%


\<configure html4 mex\><<<
\def\MeX{\HCode{<span class="MeX">}MeX\HCode{</span>}}
>>>

%%%%%%%%%%%%%%%%%%
\subsection{eplain}
%%%%%%%%%%%%%%%%%%


\<configure html4 eplain\><<<
\Configure{columns}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="columns"><!--cols=\NumColumns-->}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Css{div.columns { margin-left:2em; margin-right:2em; }}
>>>


\<configure html4 eplain\><<<
\Configure{bibliography}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="bibliography">}\par}
   {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}\par}
>>>



\<configure html4 eplain\><<<
\Configure{makecolumns}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<table class="makecolumns"><tr><td>}%
     \gdef\make:col{\gdef\make:col{\HCode{<br />}}}}
    {\HCode{</td></tr></table>}}
    {\HCode{</td><td>}%
     \gdef\make:col{\gdef\make:col{\HCode{<br />}}}}
    {\make:col}
    {}
\Css{table.makecolumns{width:100\%;}}
\Css{table.makecolumns td {vertical-align:top;}}
>>>


\<configure html4 eplain\><<<
\Configure{flushleft}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="flushleft">}}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{</div>}}
   {\HCode{<br />}}
\Configure{flushright}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="flushright">}}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{</div>}}
   {\HCode{<br />}}
\Configure{center}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="center">}}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{</div>}}
   {\HCode{<br />}}
\Css{div.center {text-align:center;}}
\Css{div.flushright {text-align:right;}}
\Css{div.flushleft {text-align:left;}}
>>>



\<configure html4 eplain\><<<
|<eplain dates|>
\Configure{numberedlist}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<ol>}\let\end:itm=\empty}
   {\ifvmode \IgnorePar\fi \end:itm \HCode{</ol>}}
   {\end:itm \def\end:itm{\EndP\Tg</li>}\HCode{<li>}\special{t4ht@[}\IgnorePar}
   {\special{t4ht@]}}
\Configure{orderedlist}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<ol>}\let\end:itm=\empty}
   {\ifvmode \IgnorePar\fi \end:itm \HCode{</ol>}}
   {\end:itm \def\end:itm{\EndP\Tg</li>}\HCode{<li>}\special{t4ht@[}\IgnorePar}
   {\special{t4ht@]}}
\Configure{unorderedlist}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<ul>}\let\end:itm=\empty}
   {\ifvmode \IgnorePar\fi \end:itm \HCode{</ul>}}
   {\ifvmode \IgnorePar\fi \EndP
    \end:itm \def\end:itm{\EndP\Tg</li>}%
    \HCode{<li>}\special{t4ht@[}\IgnorePar}
   {\special{t4ht@]}}
>>>

\<configure html4 eplain\><<<
\Configure{listing}
   {\IgnorePar\EndP \HCode{<div class="listing">}\par
    \Configure{HtmlPar}
      {\EndP}
      {\EndP}
      {~\HCode{<br />}}
      {~\HCode{<br />}}
   }
   {\HCode{</div>}\par}
>>>


\<configure html4-math eplain\><<<
\Configure{PicDisplay}
  {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\endgraf\EndP
   \HCode{<div class="\if@leftdisplays leftdisplay\else centereddisplay\fi">}}
  {\HCode{</div>}}  {}  {class="\MathPar math-display" } 
\Css{div.lsftdisplay {text-align:left;}}
\Css{div.centereddisplay {text-align:center;}}
>>>


\<configure html4-math eplain\><<<
\Configure{contents}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="contents">}}
   {\HCode{</div>}}
\Configure{tocchapterentry}
   {\HCode{<span class="tocchapterentry">}}
   {\HCode{</span><span class="toc-num">}}
   {\HCode{</span>}}
\Configure{tocsectionentry}
   {\HCode{<span class="tocsectionentry">}}
   {\HCode{</span><span class="toc-num">}}
   {\HCode{</span>}}
\Configure{tocsubsectionentry}
   {\HCode{<span class="tocsubsectionentry">}}
   {\HCode{</span><span class="toc-num">}}
   {\HCode{</span>}}
\Css{span.tocchapterentry{width:30em}}
\Css{span.tocsectionentry{width:30em; padding-left:1.5em}}
\Css{span.tocsectionentry{width:30em; padding-left:3em}}
\Css{span.toc-num{width:6em; padding-left:2em}}
>>>



\<eplain dates\><<<
\Configure{monthname}
   {\HCode{<span class="month">}}
   {\HCode{</span>}}
\Configure{timestring}
   {\HCode{<span class="time">}}
   {\HCode{</span>}}
\Configure{timestamp}
   {\HCode{<span class="timestamp">}}
   {\HCode{</span>}}
\Configure{today}
   {\HCode{<span class="today">}}
   {\HCode{</span>}}
>>>



%%%%%%%%%%%%%%%%%%%
\section{Drawing Utilitis}
%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%
\subsection{Diagrams}
%%%%%%%%%%%%%%%%%%%

\<configure html4 epsf\><<<
\Configure{epsfsetgraph}
  {\Picture+[\PicName]{}}
  {\EndPicture}
>>>




%%%%%%%%%%%%%%%%%%%
\subsection{Diagrams}
%%%%%%%%%%%%%%%%%%%

  \<configure html4 diagrams\><<<
\ConfigureEnv{diagram}
   {\ifvmode \IgnorePar \EndP
      \Tg<div class="diagrams">\def\End:Diagrams{\Tg</div>}%
    \else \let\End:Diagrams\empty
    \fi }
   {\End:Diagrams}
   {}{}
\Configure{diagram}
   {\Picture*{}$} {$\EndPicture}
\Css{.diagrams {text-align: center;}}
>>>

%%%%%%%%%%%%%%%%%%%
\subsection{dratex}
%%%%%%%%%%%%%%%%%%%

  \<configure html4 dratex\><<<
\Css{div.Draw{text-align:center}} 
>>>>


%%%%%%%%%%%%%%%%%%%
\subsection{pgf}
%%%%%%%%%%%%%%%%%%%

\<configure html4 pgf\><<<
\ConfigureEnv{pgfpicture}
   {\hbox\bgroup\Picture+[picture]{}}
   {\EndPicture\egroup} 
   {}{}
>>>




%%%%%%%%%%%%%%
\subsection{psfig}
%%%%%%%%%%%%%%

\<configure html4 psfig\><<<
|<0,32,4 psfig|>
>>>

\<0,32,4 psfig\><<<
\Configure{psfig} {\Picture+[psfig]{}}{\EndPicture}
>>>



%%%%%%%%%%%%%%%%%%%
\subsection{graphics}
%%%%%%%%%%%%%%%%%%%

\<configure html4 graphics\><<<
\:CheckOption{graphics-} \if:Option
   \Configure{graphics}
     {\bgroup
        \let\E:IMG=\e:IMG \let\e:IMG=\empty
      \Picture+[\a:GraphicsAlt]{ class="graphics"}}
     {\EndPicture
         \E:IMG\HCode{<!--tex4ht:graphics 
         \Hnewline  name="\PictureFile"  src="\Gin@base\Gin@ext"
         \Hnewline -->}%
      \egroup}
\else
   |<graphics quality|>
   \Configure{graphics}
     {\bgroup
        \let\E:IMG=\e:IMG \let\e:IMG=\empty
      \Picture+[\a:GraphicsAlt]{ class="graphics"}}
     {\EndPicture        \ifx\noBoundingBox\UnDefined
          |<pixels graphics width/height|>\fi
         \E:IMG\HCode{<!--tex4ht:graphics 
         \Hnewline  name="\PictureFile"  src="\Gin@base\Gin@ext"
         \Hnewline -->}%
      \egroup}
\fi
\Css{.figure img.graphics {margin-left:10\%;}}
\Configure{graphics*}
   {gif}
   {\Picture[\a:GraphicsAlt]{\Gin@base.gif |<graphics dim|>}}
\Configure{graphics*}
   {png}
   {\Picture[\a:GraphicsAlt]{\Gin@base.png |<graphics dim|>}}
\Configure{graphics*}
   {jpg}
   {\Picture[\a:GraphicsAlt]{\Gin@base.jpg |<graphics dim|>}}
\Configure{graphics*}
   {jpeg}
   {\Picture[\a:GraphicsAlt]{\Gin@base.jpeg |<graphics dim|>}}
\NewConfigure{GraphicsAlt}{1}
\Configure{GraphicsAlt}{PIC}
|<includegraphics dim|>
>>>

\<graphics quality\><<<
\def\:temp#1graphics-#2,#3|<par del|>{\def\gr:density{#2}}
\expandafter\:temp\Preamble,graphics-,|<par del|>
\ifx \gr:density\empty 
   \Log:Note{if included graphics are
      of degraded quality, try the command line options
      `graphics-num' or `graphics-'. The `num' should provide
      the density of pixels in the bitmaps (e.g., 110).
   }
\else
   \def\int:pt#1.#2|<par del|>{#1}
\fi
>>>



\<graphics dim\><<<
\csname a:Gin-dim\endcsname
>>>


\<includegraphics dim\><<<
\NewConfigure{Gin-dim}{1}
\:CheckOption{Gin-dim} \if:Option
   \Configure{Gin-dim}
     {\ifx\noBoundingBox\UnDefined 
        |<graphics width/height|>%
      \else
        |<graphicx width/height|>%
      \fi
      class="includegraphics"
     }
\else \:CheckOption{Gin-dim+} \if:Option
   \Configure{Gin-dim}
     {\ifx \Gin:ewidth\Gin@exclamation
         \ifx \Gin:eheight\Gin@exclamation
            \ifx\noBoundingBox\UnDefined 
               |<graphics width/height|>%
            \fi
         \else
            height="\Gin:eheight"
         \fi
      \else
         width="\Gin:ewidth"
         \ifx \Gin:eheight\Gin@exclamation \else
            height="\Gin:eheight"
         \fi
      \fi
      class="includegraphics"
     }
\else
   \Log:Note{for key dimensions try the option
       `Gin-dim'; for key dimensions when bounding box is unavailable 
       try `Gin-dim+'; neither is recommended}
   \Configure{Gin-dim}
     {\ifx\noBoundingBox\UnDefined 
        |<graphics width/height|>%
      \fi
     }
\fi \fi
>>>

\<pixels graphics width/height\><<<
\ifx \gr:density\empty
   \HCode{
      width="\the\Gin@req@width"
      height="\the\Gin@req@height"
   }%
\else
   \bgroup
     \divide\Gin@req@width by 72 
     \multiply\Gin@req@width by \gr:density \relax   
     \divide\Gin@req@height by 72 
     \multiply\Gin@req@height by \gr:density \relax   
     \HCode{
        width="\expandafter\int:pt\the\Gin@req@width|<par del|>"
        height="\expandafter\int:pt\the\Gin@req@height|<par del|>"
     }%   
   \egroup
\fi
>>>


\<graphics width/height\><<<
width="\the\Gin@req@width"
height="\the\Gin@req@height"
>>>

\<graphicx width/height\><<<
\ifx \Gin:ewidth\Gin@exclamation \else
   width="\Gin:ewidth"
\fi
\ifx \Gin:eheight\Gin@exclamation \else
   height="\Gin:eheight"
\fi
>>>


%%%%%%%%%%%%%%%%%%
\subsection{xy}
%%%%%%%%%%%%%%%%%%

\<configure html4 xy\><<<
|<32,4 xy|>
>>>

\<32,4 xy\><<<
\Configure{xypic}
   {\Picture*{}} {\EndPicture}
>>>



%%%%%%%%%%%%%%%%%%
\subsection{pstricks}
%%%%%%%%%%%%%%%%%%


\<configure html4 pst-all\><<<
\ConfigureEnv{psmatrix}
   {\Picture*{}}
   {\EndPicture}
   {}{}
>>>
         
\<configure html4 pstricks\><<<
\Configure{pspicture}
   {\ifvmode \ifinner\else \vfill\break\fi
    \leavevmode\fi
    \bgroup 
       \ifdim \pst@dimh<\z@ \pst@dimh=-\pst@dimh \fi
       \HCode{<!--width="\ifdim \wd\pst@hbox=\z@  \the\pst@dimg
                         \else\the\wd\pst@hbox\fi"  
                 height="\ifdim \ht\pst@hbox=\z@ \the\pst@dimh
                         \else \the\ht\pst@hbox\fi"-->}%
     \egroup
     \Picture+[\a:pspictureAlt]{ class="pspicture"}}
   {\EndPicture}
\NewConfigure{pspictureAlt}{1}
\Configure{pspictureAlt}{PIC}
>>>




%%%%%%%%%%%%%%%%%%
\subsection{pb-diagram}
%%%%%%%%%%%%%%%%%%

\<configure html4 pb-diagram\><<<
\ConfigureEnv{diagram}
   {\Picture*{ class="pb-diagram"}$} {$\EndPicture} {}{}
\Css{.pb-diagram {align:center}}
>>>


%%%%%%%%%%%%%%%%%%%
\subsection{pictex}
%%%%%%%%%%%%%%%%%%%

\<configure html4 pictex\><<<
\Configure{pictex}
   {\:xhtml{\IgnorePar\EndP}\HCode{<div 
    class="pictex">}}{\HCode{</div>}}{+[PICT]}
\Css{div.pictex {text-align:center;}}
>>>




%%%%%%%%%%%%%%%%%%%
\section{Slides}
%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%
\subsection{Beamer}
%%%%%%%%%%%%%%%%%%%




\<configure html4 beamer\><<<
|<beamer slides|>
|<beamer environments|>
>>>

\<beamer environments\><<<
\let\block:Name=\empty
\ConfigureEnv{block}
   {\par\IgnorePar\EndP 
    \ifx \block:Name\empty \def\block:Name{block}\fi
    \HCode{<div class="\block:Name">}\global\let\block:Name=\empty}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {} {}
\ConfigureEnv{alertblock}
   {\par\IgnorePar\EndP 
    \ifx \block:Name\empty \def\block:Name{alertblock}\fi
    \HCode{<div class="\block:Name">}\global\let\block:Name=\empty}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {} {}
\ConfigureEnv{Problem}
   {\def\block:Name{Problem}} {} {} {}
\ConfigureEnv{Loesung}
   {\def\block:Name{Loesung}} {} {} {}
\ConfigureEnv{Definition}
   {\def\block:Name{Definition}} {} {} {}
\ConfigureEnv{Satz}
   {\def\block:Name{Satz}} {} {} {}
\ConfigureEnv{Beweis}
   {\def\block:Name{Beweis}} {} {} {}
\ConfigureEnv{Folgerung}
   {\def\block:Name{Folgerung}} {} {} {}
\ConfigureEnv{Lemma}
   {\def\block:Name{Lemma}} {} {} {}
\ConfigureEnv{Fakt}
   {\def\block:Name{Fakt}} {} {} {}
\ConfigureEnv{Theorem}
   {\def\block:Name{Theorem}} {} {} {}
\ConfigureEnv{Proof}
   {\def\block:Name{Proof}} {} {} {}
\ConfigureEnv{Corollary}
   {\def\block:Name{Corollary}} {} {} {}
\ConfigureEnv{Fact}
   {\def\block:Name{Fact}} {} {} {}
\ConfigureEnv{definition}
   {\def\block:Name{definition}} {} {} {}
\ConfigureEnv{definitions}
   {\def\block:Name{definitions}} {} {} {}
\ConfigureEnv{theorem}
   {\def\block:Name{theorem}} {} {} {}
\ConfigureEnv{proof}
   {\def\block:Name{proof}} {} {} {}
\ConfigureEnv{corollary}
   {\def\block:Name{corollary}} {} {} {}
\ConfigureEnv{fact}
   {\def\block:Name{fact}} {} {} {}
>>>

\<beamer environments\><<<
\ConfigureEnv{exampleblock}
   {\par\IgnorePar\EndP 
    \ifx \block:Name\empty \def\block:Name{exampleblock}\fi
    \HCode{<div class="\block:Name">}\global\let\block:Name=\empty}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {} {}
\ConfigureEnv{Beispiel}
   {\def\block:Name{Beispiel}} {} {} {}
\ConfigureEnv{Beispiele}
   {\def\block:Name{Beispiele}} {} {} {}
\ConfigureEnv{Example}
   {\def\block:Name{Example}} {} {} {}
\ConfigureEnv{Examples}
   {\def\block:Name{Examples}} {} {} {}
\ConfigureEnv{example}
   {\def\block:Name{example}} {} {} {}
\ConfigureEnv{examples}
   {\def\block:Name{examples}} {} {} {}
\Css{div.Example, div.examplblock, div.Beispiele,
     div.Beispiel, div.Examples, div.example, div.examples{color:green;}}
>>>

\<beamer slides\><<<
\:CheckOption{1} \if:Option
  \ConfigureEnv{slide}
     {\ifvmode \IgnorePar\fi \EndP 
      \ifnum \Slide:cnt>0 \HPage{}\fi
      \ifvmode \IgnorePar\fi \EndP  
      |<beamer header|>%
      \HCode{<div class="slide">}\par
     }
     {\ifvmode \IgnorePar\fi \EndP 
      \HCode{</div>}\ifnum \Slide:cnt>1\relax \EndHPage{}\fi}
     {} {}
  \Css{div.slide {border-top:solid black 0.4pt;}}
\else
   \Log:Note{for pagination of slides,
          use the command line option `1'}
   \ConfigureEnv{slide}
      {\ifvmode \IgnorePar\fi \EndP  
       \HCode{<hr class="hidden" />}%
       |<beamer header|>%
       \HCode{<div class="slide">}\par
      }
      {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
      {} {}
   \Css{div.slide {border:solid black 0.4pt;}}
\fi
>>>





\<configure html4 beamer\><<<

\Configure{frametitle}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<h2 class="frametitle">}\bgroup
    \Configure{HtmlPar}{ }{ }{}{}%
   }
   {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</h2>}}



\Css{h1, h2, span.inst sup{font-size:100\%;}}

\ConfigureEnv{overlayarea}
  {\bgroup
    \ConfigureEnv{minipage}
       {\bgroup \IgnorePar\EndP
          \ConfigureEnv{minipage}
             {\bgroup \IgnorePar\EndP
              \HCode{<table class="minipage"><tr><td>}}
             {\EndP\HCode{</td></tr></table>}\egroup }
             {}{}%
       }
       {\EndP\egroup }
       {}{}
  }
  {\egroup} {}{}
>>>


\<configure html4 beamer\><<<
\Configure{sec@slide}
    {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="hidden">}}
    {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par
     |<beamer cross links|>\par}
\Css{.hidden {visibility:hidden;}}

\Css{table.columns {width:100\%;}}
\Css{td.column {vertical-align:top;}}
>>>


\<configure html4 beamer\><<<
\Configure{inst}
   {\HCode{<span class="inst">}}
   {\HCode{</span>}}

\Configure{titlepage}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="titlepage">}%
     \gHAdvance\Slide:cnt by 1     
     \Link{}{sl1}\EndLink
     |<beamer cross links|>%
   }
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{title}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<h1 class="title">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</h1>}}
\Configure{author}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="author">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{institute}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="institute">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{date}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="date">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{andtitle}{\HCode{<br />}}
\Css{div.titlepage {text-align:center;}}
\Css{div.institute { margin-bottom: 1em; margin-top: 1em;}}
>>>


\<configure html4 beamer\><<<
\ConfigureEnv{columns}
  {\ifvmode \IgnorePar\fi \EndP 
   \HCode{<table class="columns"><tr>}}
  {\ifvmode \IgnorePar\fi \EndP \HCode{</tr></table>}}
  {}{}

\ConfigureEnv{column}
  {\bgroup
    \ConfigureEnv{minipage}
       {\bgroup \IgnorePar\EndP
          \ConfigureEnv{minipage}
             {\bgroup \IgnorePar\EndP
              \HCode{<table class="minipage"><tr><td>}}
             {\EndP\HCode{</td></tr></table>}\egroup }
             {}{}%
       }
       {\EndP\egroup }
       {}{}%   
   \HCode{<td class="column">}%
  }
  {\ifvmode \IgnorePar\fi \EndP  \HCode{</td>}\egroup} 
  {}{}
>>>


\<configure html4 beamer\><<<
\ConfigureToc{toc}
   {}
   {\Configure{TocLink}
       {\def\hyperlink########1########2{\Link{####2}{}########2\EndLink}####4}%
    \leavevmode}
   {}{\par}

%\Configure{TocLink}{\def\hyperlink##1##2{\Link{#2}{}##2\EndLink}#4} 
\Configure{sectionshadedintoc}
   {\HCode{<div class="sectionshadedintoc">}}
   {\ifvmode \IgnorePar\fi \HCode{</div>}}
\Configure{sectionintoc}
   {\HCode{<div class="sectionintoc">}}
   {\ifvmode \IgnorePar\fi \HCode{</div>}}
\Configure{subsectionshadedintoc}
   {\HCode{<div class="subsectionshadedintoc">}}
   {\ifvmode \IgnorePar\fi \HCode{</div>}}
\Configure{subsectionintoc}
   {\HCode{<div class="subsectionintoc">}}
   {\ifvmode \IgnorePar\fi \HCode{</div>}}

\Css{div.sectionintoc, div.sectionshadedintoc{ margin-top:1em; }}
\Css{div.tableofcontents
   { padding-left:1em; padding-right:1em; padding-bottom:1em; }}
\Css{.tableofcontents div.subsectionintoc,
     .tableofcontents div.subsectionshadedintoc{ margin-left:1em; }}

\Configure{tableofcontents}
   {\IgnorePar\EndP \HCode{<div class="TableOfContents">}}{}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\ShowPar}
   {}{}
>>>


\<beamer cross links\><<<
\slides:toc
>>>

\<beamer header\><<<
\gHAdvance\Slide:cnt by 1     
\ifx \sec:name\empty 
   \HCode{<div class="hidden">}\Link{}{sl\Slide:cnt}\EndLink
   \HCode{</div>}%
\else
   \HCode{<div class="header">}\Link{}{sl\Slide:cnt}\EndLink
      \sec:name
      \ifx \subsec:name\empty \else \HCode{<br />}\subsec:name\fi
   \HCode{</div>}%
\fi
>>>

\<configure html4 beamer\><<<
\let\beamer:section=\@section
\def\@section[#1]#2{\beamer:section[#1]{#2}%
   \gHAdvance\:bookmarkN by 1
   \def\sec:name{#2}\let\subsec:name=\empty}
\append:defI\subsection{%
   \gHAdvance\:bookmarkN by 1
   \def\subsec:name{#1}}
\HAssign\:bookmarkN=0 
\let\sec:name=\empty
\let\subsec:name=\empty
\Css{div.header{ margin:0; text-align:right; font-size:70\%; }}
>>>
    




\<configure html4 beamer\><<<
\gHAssign\Slide:cnt=0
\def\slides:toc{%
   |<beamer bookmarks|>%
   |<beamer toc frames|>%   
   \gdef\slides:toc{\ifvmode \IgnorePar\fi \EndP
       \HCode{<p class="links">}|<set beamer cross links|>%
       \HCode{</p>}\par}%
   \slides:toc
}
\Css{p.links{ margin:0; float:right; text-align:right; 
              font-size:70\%; }}
>>>


\<set beamer cross links\><<<
\bgroup
   \HAdvance\Slide:cnt by 1\relax
   \ifTag{)Qsl\Slide:cnt}{\Link{sl\Slide:cnt}{}next\EndLink\HCode{<br />}}{}%
\egroup
\ifnum \Slide:cnt>1
  \bgroup
     \HAdvance\Slide:cnt by -1
     \Link{sl\Slide:cnt}{}prev\EndLink\HCode{<br />}%
     \ifnum \:bookmarkN>0\relax
        \Link[ target="|<tex4ht-menu|>"
             ]{tc-\:bookmarkN}{}toc\EndLink\HCode{<br />}%
     \fi
     \Link{sl1}{}top\EndLink\HCode{<br />}%
     {\HAdvance\Slide:cnt by 1\relax \Slide:cnt}%
  \egroup
\else
  \Link[ target="|<tex4ht-menu|>"]{bookmark}{}toc\EndLink
\fi
>>>







\<beamer bookmarks\><<<
\:CheckOption{frames}\if:Option\else
  \bgroup
     \HPage{}{\beamer:bookmarks\tableofcontents}\EndHPage{}%
  \egroup
\fi
>>>


\<configure html4 beamer\><<<
\:CheckOption{frames}\if:Option
   \:CheckOption{ver}\if:Option
      |<beamer ver frames|>
   \else
      \Log:Note{for vertically stacked frames,
          use the command line options `frames' and `ver'}
      |<beamer hor frames|>
   \fi
   \Css{body\#tex4ht-menu{ background-color:\#EEEEEE; }}
\fi
\def\beamer:bookmarks{%
    \Link{}{bookmark}\EndLink
    \HAssign\:bookmarkN=0 
    |<beamer bookmark config|>%
    \Configure{tableofcontents}
       {\IgnorePar\EndP \HCode{<div class="bookmarks">}}{}
       {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\ShowPar}
       {}{}
     \let\std:tableofcontents\tableofcontents
     \def\tableofcontents{\std:tableofcontents[section,subsection]}%
  }
>>>


\<beamer bookmark config\><<<
\:CheckOption{frames}\if:Option
    \Configure{TocLink}
       {\HAdvance\:bookmarkN by 1\relax
        \Link{##2}{tc-\:bookmarkN}##4\ifvmode
           \IgnorePar\fi \EndLink}
\else
    \Configure{TocLink}
       {\HAdvance\:bookmarkN by 1\relax
        \Link[ target="|<tex4ht-main|>"]{##2}{tc-\:bookmarkN}##4\ifvmode
           \IgnorePar\fi \EndLink}
\fi
>>>



\<configure html4 beamer\><<<
\ConfigureToc{section}
   {}{\HCode{<div class="sectionintoc">}} {\HCode{</div>}} {}{}
\ConfigureToc{subsection}
   {}
   {\HCode{<div class="subsectionintoc">}}
   {\HCode{</div>}} {}{}
\Css{div.bookmarks {white-space: nowrap;}}
\Css{div.bookmarks div.subsectionintoc a { text-decoration: none; 
        font-size:80\%;}}
>>>


\<configure html4 beamer\><<<
\Configure{alert}
   {\HCode{<span class="alert">}}
   {\HCode{</span>}}
\Css{span.alert {color:\#FF0000;}}
\Hinclude{%
  \Configure{HColor}{alert}{rgb(100\%,0\%,0\%)}% 
  \Configure{HColor}{blockstructure}{rgb(20\%,20\%,70\%)}%
  \Configure{HColor}{darkgreen}{rgb(15\%,60\%,15\%)}%
  \Configure{HColor}{lightgray}{rgb(90\%,90\%,90\%)}%
  \Configure{HColor}{shaded}{rgb(60\%,60\%,60\%)}%
  \Configure{HColor}{structuremedium}{rgb(30\%,30\%,30\%)}%
  \Configure{HColor}{structureshaded}{rgb(75\%,75\%,75\%)}%
  \Configure{HColor}{structure}{rgb(0\%,0\%,0\%)}%
}{color}
>>>

The following is problematic when used on titles.

\begin{verbatim}
\Configure{structure}
   {\HCode{<span class="structure">}}
   {\HCode{</span>}}
\Css{span.structure {color:\#000000;}}
\end{verbatim}



%%%%%%%%%%%%%%%
\subsection{foils}
%%%%%%%%%%%%%%%

\<configure html4 foils\><<<
|<32,4 foils|>
>>>

\<32,4 foils\><<<
\Configure{foilheads} {}{} 
   {\IgnorePar\EndP\HCode{<h1 class="foilheadsHead"\a:LRdir>}}
   {\HCode{</h1>}\IgnorePar}
\ConfigureEnv{Theorem}{\par\leavevmode}{\ShowPar}{}{}
\ConfigureEnv{Lemma}{\par\leavevmode}{\ShowPar}{}{}
\ConfigureEnv{Corollary}{\par\leavevmode}{\ShowPar}{}{}
\ConfigureEnv{Corollary*}{\par\leavevmode}{\ShowPar}{}{}
\ConfigureEnv{Proposition}{\par\leavevmode}{\ShowPar}{}{}
\ConfigureEnv{Definition}{\par\leavevmode}{\ShowPar}{}{}
\ConfigureEnv{Proof}{\par\leavevmode}{\ShowPar}{}{}
|<foils bib|>
\:CheckOption{1}  \if:Option 
    \CutAt{foilheads}
    |<foils toc 1|>%
\else
    \Log:Note{for pagination of slides, 
          use the command line option `1'}
\fi
>>>





%%%%%%%%%%%%%%%%%%
\subsection{slides}
%%%%%%%%%%%%%%%%%%

\<configure html4 slides\><<<
\:CheckOption{1} \if:Option
   |<multi slides|>
\else
   \Log:Note{for pagination of slides, 
          use the command line option `1'}
   \ConfigureEnv{slide}
     {\ifnum \c@slide=0
        \IgnorePar\EndP\HCode{<hr />}\fi}
     {\rightline{\a:slidename}%
      \IgnorePar\EndP\par\HCode{<hr />}}
     {}{}
\fi
>>>

\<multi slides\><<<
\ConfigureEnv{slide}
   {\ifnum \c@slide=0 \EndP\ShowPar\else\IgnorePar\fi}
   {}
   {}{}
\CutAt{slide}
\Configure{crosslinks}{[}{] }{next}{prev}{}{}{}{up}
\Configure{crosslinks+}
   {}{}
   {\IgnorePar\EndP \HCode{<div
         class="crosslinks"><p class="noindent">}%
    {\advance\c@slide by -1 \the\c@slide}: }
   {\HCode{</p></div>}\par}
\Css{.crosslinks{text-align:right;font-size:80\%;}}
>>>

\<configure html4 slides\><<<
|<quote 4|>
|<quotations|>
|<description 4|>
\ConfigureEnv{verse}
   {\Tg<div class="verse">}
   {\Tg</div>}
   {}{}
\ConfigureEnv{note}
   {\Tg<div class="note">}
   {\Tg</div>}
   {}{}
\ConfigureEnv{titlepage}
   {\Tg<div class="titlepage">}
   {\Tg</div>}
   {}{}
>>>


\<configure html4 slides\><<<
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi \EndP |<title for TITLE|>%
    \vtop\bgroup \IgnorePar \EndP \HCode{<div  class="maketitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\egroup}
   {\NoFonts\IgnorePar\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
   {\HCode{</h2>}\IgnoreIndent\EndNoFonts}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; text-align:center; }}
\Configure{author date}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="author" >}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="date">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Css{div.author, div.date {text-align:center;}}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Prosper}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\<configure html4 prosper\><<<
|<prosper maketitle|>
|<prosper lists|>
>>>



\<configure html4 prosper\><<<
\Configure{slidetitle}
   {\NoFonts \ifvmode \IgnorePar\fi \EndP
    \HCode{<h2 class="slidetitle">} }
   {\ifvmode \IgnorePar\fi \EndP \HCode{</h2>}\EndNoFonts}
\Css{h2.slidetitle {text-align:center;}}
>>>

\<configure html4 prosper\><<<
\Configure{Subtitle}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="Subtitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}} 
\Configure{email}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="email">}\Link[mailto:\@email]{}{}}
   {\EndLink \ifvmode \IgnorePar\fi \EndP \HCode{</div>}} 
\Configure{institution}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<div class="institution">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}} 
\Css{div.email, div.institution {text-align:center;}}
>>>


\<configure html4 prosper\><<<
\:CheckOption{1} \if:Option
   |<paginated prosper|>
\else
   \Log:Note{for pagination of slides,
          use the command line option `1'}
   |<non paginated prosper|>
\fi
\:CheckOption{nolayers} \if:Option
    \def\itemstep{\itemize}
    \def\enditemstep{\enditemize}
    \let\overlays=\:gobble
\else
   \Log:Note{to remove overlays of slides,
       use the command line option `nolayers'}
\fi
>>>


\<non paginated prosper\><<<
\ConfigureEnv{slide}
  {\ifvmode \IgnorePar\fi \EndP\HCode{<hr />}\par}  
  {\rightline{\bgroup
     \ifx \slide\SlideNormal \advance\c@slide by -1 \fi
     \ifnum \c@slide>0
         \the\c@slide 
         \ifx \slide\SlideOverlay .\the\c@overlaysCount\fi
     \fi
   \egroup
  }}{}{}
>>>


\<paginated prosper\><<<
\HAssign\Slide:cnt=0
\ConfigureEnv{slide}
  {\ifnum \Slide:cnt>0
      \ifnum \Slide:cnt>1
         \ifvmode\IgnorePar\fi  
      \fi  |<start prosper page|>%
  }
  {\ifnum \Slide:cnt=1
   \else |<end prosper page|>\fi
  }
  {}{}
>>>



\<start prosper page\><<<
\ifnum \Slide:cnt=1
    \IgnorePar   \par\EndP \HCode{<hr />}\par
\fi
\noindent
\HPage{\the\c@slide
       \ifx \slide\SlideOverlay .\the\c@overlaysCount\fi
   }\fi
\gHAdvance\Slide:cnt by 1
\Tag{f-\Slide:cnt}{\FileName}%
>>>


\<end prosper page\><<<
\rightline{|<foot paginated prosper|>}%
\EndHPage{}~~
>>>   


\<foot paginated prosper\><<<
\bgroup
   \ifx \slide\SlideNormal \advance\c@slide by -1 \fi
   \the\c@slide
\egroup
\ifx \slide\SlideOverlay .\the\c@overlaysCount\fi,
\bgroup
   \HAdvance\Slide:cnt by 1
   \ifTag{f-\Slide:cnt}{\Link
             [\LikeRef{f-\Slide:cnt}]{}{}next\EndLink, }{}%
\egroup
\bgroup
\ifnum \Slide:cnt>1 
    \HAdvance\Slide:cnt by -1
    \Link[\LikeRef{f-\Slide:cnt}]{}{}prev\EndLink,
\fi
\egroup
\Link[\LikeRef{f-1}]{}{}up\EndLink%
\ifTag{prosperTOC}{%
   \edef\:temp{\FileName}\edef\:tempa{\LikeRef{prosperTOC}}%
   \ifx \:temp\:tempa \else, 
         \Link[\LikeRef{prosperTOC}]{}{}toc\EndLink}{}\fi
>>>

\<paginated prosper\><<<    
\Configure{tableofcontents}
   {\ifx \prosperTOCtag\:UnDef
       \global\let\prosperTOCtag\def
       \Tag{prosperTOC}{\FileName}%
    \fi
    \IgnorePar\EndP
    \HCode{<div class="tableofcontents">}\IgnorePar}
   {}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
   {\HCode{<br />}}   {}
>>>

FROM MANUAL: 
When translated into PDF files, \texttt{prosper} slides benefit from
additional possibilities such as transition effects between slides and
incremental display of a slide with several animation effects. The
currently supported transitions are:
\begin{itemize}
\item {Split}: two lines sweep across the screen revealing the
  new slide;
\item {Blinds}: multiple lines, evenly distributed across the
  screen, appear and synchronously sweep in the same direction to
  reveal the new slide;
\item {Box}: a box sweeps from the center, revealing the new slide;
\item {Wipe}: a single line sweeps across the screen from one
  edge to the other, revealing the new slide;
\item {Dissolve}: the old page image dissolves to reveal the new slide;
\item {Glitter}: similar to \texttt{Dissolve}, except the
  effect sweeps across the image in a wide band moving from one side
  of the screen to the other;
\item {Replace}: the effect is simply to replace the old page
  with the new page.
\end{itemize}



%%%%%%%%%%%%%%%%%%
\subsection{seminar}
%%%%%%%%%%%%%%%%%%






\<configure html4 seminar\><<<
\ConfigureEnv{slide}
  {\ifvmode \IgnorePar\fi \EndP\HCode{<hr />}\par}  
  {\rightline{\the\c@slide}}{}{}
>>>
%%%%%%%%%%%%%%%%%%%
\subsection{slidesec}
%%%%%%%%%%%%%%%%%%%

\<configure html4 slidesec\><<<
   \ConfigureToc{slidesection}
      {\HCode{<span class="tocslidesection">}}{\ }{}{\HCode
           {</span><br\xml:empty>}}
>>>

%%%%%%%%%%%%%%%%%%%
\section{Lit Prog and Verbatim}
%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%
\subsection{ProTex}
%%%%%%%%%%%%%%%%%%%

\<configure html4 ProTex\><<<
\def\NAME:{ id=}
\:CheckProtexOption{[[]]}\if:Option
   |<frame protex code|>
\fi
>>>

\<frame protex code\><<<
\Configure{FrameCode}
   {\ifvmode \IgnorePar\fi  \EndP
    |<lynx separator|>%
        \HCode{<div class="ShowCode">\ifx \:test\:minus  
                 \else<div class="head">\fi}\par\IgnorePar}
   {\ifvmode \IgnorePar\fi \EndP
        \HCode{</div></div>}}
\Configure{ShowCode}
   {\HCode{\ifx \:test\:minus  \else </div>\fi
       \html:src<div class="body"><span class="ShowCode"
        style="font-family:monospace;white-space:nowrap;"
     >\html:invisible}%
     \nobreak
   }
   {\special{t4ht=\html:src</span>%
           \ifx \:test\:minus \else
              </div><div class="tail">\html:BackTitle\fi}}
   {\HCode{<br />\html:invisible}}
   {\HCode{<i>}}
   {\HCode{</i>}}
   {|<nbsp|>}
\Css{div.ShowCode{background-color:\#EEEEEE; border: 1px white solid;}} 
\Css{div.ShowCode div.head{background-color:\#E0E0E0;}} 
\Css{div.ShowCode div.tail{background-color:\#E0E0E0;}} 
>>>

\<nbsp\><<<
\leavevmode\special{t4ht@+\string&{35}x00A0;}x%
>>>

\<lynx separator\><<<
\ifx \par:end\empty \HCode{<p></p>}\fi
>>>


%%%%%%%%%%%%%%%%%%%
\subsection{moreverb}
%%%%%%%%%%%%%%%%%%%

\<configure html4 moreverb\><<<
|<moreverb.sty config 4.0t|>
>>>

\<moreverb.sty config 4.0t\><<<
\ConfigureEnv{verbatimtab}
   {\env:verb{verbatim}}
   {\endenv:verb}{}{}
\Configure{verbatimtab}
   {\HAdvance\Verb:N by 1 \ifnum \Verb:N>1 \:nbsp \HCode{<br />}\fi}
   {\a:sp}
\ConfigureEnv{boxedverbatim}
   {\env:verb{boxedverbatim}}{\endenv:verb}{}{}
\ConfigureEnv{boxedverbatim*}
   {\env:verb{boxedverbatim}}{\endenv:verb}{}{}
>>>

\<moreverb.sty config 4.0t\><<<
\ConfigureEnv{boxedverbatim}
   {\env:verB{boxedverbatim}}{\endenv:verb}{}{}
\ConfigureEnv{boxedverbatim*}
   {\env:verB{boxedverbatim}}{\endenv:verb}{}{}
\def\env:verB#1{\IgnorePar\HCode{<table  \Hnewline
   class="#1"><tr class="#1"><td \Hnewline
   class="#1"><pre class="#1">}\EndNoFonts}
\Css{ pre.boxedverbatim{border:solid 1px; padding-right:1em;} }
\Css{table.boxedverbatim {text-align:center;}}
>>>


\<moreverb.sty config 4.0t\><<<
\Configure{listinginput}
   {\HCode{<div class="listinginput">}}
   {\IgnorePar\HCode{</div>}}
\Css{.listinginput p{ margin-bottom:0em; margin-top:0em; }}
>>>


\<moreverb.sty config 4.0t\><<<
\Configure{verbatimtabinput}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="verbatimtabinput"\a:LRdir>}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
>>>


%%%%%%%%%%%%%%%%%%%
\subsection{fancyvrb}
%%%%%%%%%%%%%%%%%%%

\<configure html4 fancyvrb\><<<
|<fancyvrb.sty config 4.0t|>
>>>

\<fancyvrb.sty config 4.0t\><<<
\HAssign\fancyvrbNo|=0
\Configure{fancyvrb}
   {\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
    \HCode{<div class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
   {\EndP\HCode{</div>}}
   {\HCode{<br class="fancyvrb"\xml:empty>}} {}
   {\ \ }{}
\Css{P.fancyvrb {white-space: nowrap; margin:0em;}}
>>>



The following is harmful at the start of section 1.1 in
listings.dtx.

\begin{verbatim}
\ConfigureEnv{verbatim}{\HAssign\Verb:N=0\relax}{\empty}{}{}
\ConfigureEnv{verbatim*}{\HAssign\Verb:N=0\relax}{\empty}{}{}
\end{verbatim}





\<fancyvrb.sty config 4.0t\><<<
\Configure{fancyvrbcolor}
  {\Css{div\#fancyvrb\fancyvrbNo { color: \HColor; }}}
  {\Css{div\#fancyvrb\fancyvrbNo { background-color: \HColor;}}}
  {\Css{div\#fancyvrb\fancyvrbNo { border-color: \HColor;}}}
>>>

\<fancyvrb.sty config 4.0t\><<<
\Configure{fancyvrbframe}
   {\Css{div\#fancyvrb\fancyvrbNo { border-top: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo { border-left: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo { border-bottom: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo { border-right: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo {border-width:\HSize;}}}
   {\Css{div\#fancyvrb\fancyvrbNo {padding:\HSize;}}}
>>>

\<fancyvrb.sty config 4.0t\><<<
\Configure{BVerbatimInput}
   {\ifvmode \IgnorePar \fi \EndP 
    \gHAssign\HRow=0
    \HCode{<div class="BVerbatimInput">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
   {\gHAdvance\HRow by 1 \ifnum \HRow>1 \HCode{<br />}\fi}{}
>>>


%%%%%%%%%%%%%%%%%%%%%
\subsection{Listings}
%%%%%%%%%%%%%%%%%%%%%

\<configure html4 listings\><<<
\Configure{lstinline}
   {\HCode{<span class="lstinline">}}
   {\HCode{</span}}
>>>

\<configure html4 listings\><<<
\Log:Note{to ensure proper alignments use
   fixed size fonts (see listings.dtx)}
\Configure{listings}
   {\ifvmode \IgnorePar\fi \EndP
    {\everypar{}\leavevmode}\HCode{<!--l. \the\inputlineno-->}%
     \HCode{<pre class="listings">}%
   }
   {{\everypar{}\leavevmode}\HCode{</pre>}}
   {}{}
>>>

\<configure html4 listings\><<<
\ConfigureEnv{lstlisting}
   {\ifvmode \IgnorePar\fi \EndP  
    \HCode{<!--l. \the\inputlineno-->}%
    \HCode{<div class="lstlisting">}%
    \bgroup \special{t4ht@(}%
       \Configure{listings}
         {{\everypar{}\leavevmode}}
         {{\everypar{}\leavevmode}}
         {|<nbsp|>\HCode{<br />}}{}%
   }
   {\special{t4ht@)}\egroup
    \ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
   {} {}
>>>

\<configure html4 listings\><<<
\Configure{lstinputlisting}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno-->}%
    \HCode{<div class="lstinputlisting">}%
    \bgroup \tt \special{t4ht@(}%
       \Configure{listings}
         {{\everypar{}\leavevmode}}
         {{\everypar{}\leavevmode}}
         {|<nbsp|>\HCode{<br />}} 
         {}%
   }
   {\special{t4ht@)}\egroup
    \ifvmode \IgnorePar\fi \EndP  \HCode{</div>}\par}
\Css{div.lstinputlisting{
   font-family: monospace;
   white-space: nowrap;
}}
>>>



%%%%%%%%%%%%%%%%%%%%%
\subsection{Verbatim}
%%%%%%%%%%%%%%%%%%%%%





\<configure html4 verbatim\><<<
\Configure{verbatiminput}
  {\HAssign\Verb:N=0 \ifvmode \IgnorePar\fi \EndP
   \HCode{<div class="verbatiminput"\a:LRdir>}}
  {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Css{div.verbatiminput
       {font-family: monospace; white-space: nowrap; }}
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{mdwlist}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 sverb\><<<
\HAssign\demoN=0
\Configure{demo}
   {\HAdvance\demoN by 1
    \ifvmode \IgnorePar \fi \EndP
    \ifnum \demoN=1       
       \HCode{<table class="demo"><tr>}%
    \fi
    \HCode{<td>}%
   }
   {\ifvmode \IgnorePar \fi \EndP
    \HCode{</td>}
    \ifnum \demoN=2
        \HAssign\demoN=0
        \HCode{</tr></table>}%
    \fi    
   }
>>>


%%%%%%%%%%%%%%%%%%%%%
\subsection{verbatimlisting}
%%%%%%%%%%%%%%%%%%%%%


\<configure html4 verbatimlisting\><<<
\Configure{verbatimlisting}
  {\ifvmode \EndP\fi \EndP\HCode{<div class="verbatimlisting"\a:LRdir>}} 
  {\HCode{</div>}}
  {\ifnum \c@lineno > 1 \HCode{<br />}\fi
   \ifnum \c@lineno<10 ~\fi
   \ifnum \c@lineno<100 ~\fi
   \ifnum \c@lineno<1000 ~\fi
  }
  {}
>>>



%%%%%%%%%%%%%%%%%%%%%
\subsection{doc}
%%%%%%%%%%%%%%%%%%%%%

\<configure html4 doc\><<<
\ConfigureEnv{macrocode}
  {\ifvmode \IgnorePar\fi\EndP\HCode{<pre class="macrocode">}}
  {\ifvmode \IgnorePar \HCode{</pre>}\par\else \HCode{</pre>}\fi}
  {}{}
>>>


%%%%%%%%%%%%%%%%%%%
\section{Boxes and Multiple columns}
%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%
\subsection{fancybox}
%%%%%%%%%%%%%%%%%%%











\<configure html4 fancybox\><<<
  \Configure{ovalbox}
     {\ifvmode \IgnorePar\EndP 
               \HCode{<div class="ovalbox">}%
               \def\end:bx{\HCode{</div>}\par}%
      \else
               \HCode{<span class="ovalbox">}%
               \def\end:bx{\HCode{</span>}}%
      \fi}
     {\end:bx}
  \Css{.ovalbox {
          padding-left:3pt;
          padding-right:3pt;
          border:solid thin;
      }}
>>>

\<configure html4 fancybox\><<<
  \Configure{Ovalbox}
     {\ifvmode \IgnorePar\EndP 
               \HCode{<div class="Ovalbox-thick">}%
               \def\end:bx{\HCode{</div>}\par}%
      \else
               \HCode{<span class="Ovalbox-thick">}%
               \def\end:bx{\HCode{</span>}}%
      \fi}
     {\end:bx}
  \Css{.Ovalbox-thick {
          padding-left:3pt;
          padding-right:3pt;
          border:solid thick;
      }}
>>>


IE doesn't distinguish between upper and lower case characters in css



\<configure html4 fancybox\><<<
  \Configure{shadowbox}
     {\ifvmode \IgnorePar\EndP 
               \HCode{<div class="shadowbox">}%
               \def\end:bx{\HCode{</div>}\par}%
      \else
               \HCode{<span class="shadowbox">}%
               \def\end:bx{\HCode{</span>}}%
      \fi}
     {\end:bx}
  \Css{.shadowbox {
          padding-left:3pt;
          padding-right:3pt;
          border:solid thin; 
          border-right:solid thick; 
          border-bottom:solid thick;
      }}
>>>




\<configure html4 fancybox\><<<
  \Configure{doublebox}
     {\ifvmode \IgnorePar\EndP 
               \HCode{<div class="doublebox">}%
               \def\end:bx{\HCode{</div>}\par}%
      \else
               \HCode{<span class="doublebox">}%
               \def\end:bx{\HCode{</span>}}%
      \fi}
     {\end:bx}
  \Css{.doublebox {
          padding-left:3pt;
          padding-right:3pt;
          border-style:double;
          border:solid thick;
      }}
>>>





%%%%%%%%%%%%%%%%%%%
\subsection{boxedminipage}
%%%%%%%%%%%%%%%%%%%

\<configure html4 boxedminipage\><<<
\ConfigureEnv{boxedminipage}
   {\ifvmode \IgnorePar \EndP 
       \def\after:bmp{\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par\ShowPar}%
       \HCode{<div class="boxedminipage">}%
       \expandafter\everymath\expandafter{\expandafter
                                 \everymath\expandafter{\the\everymath}}%
    \else \def\after:bmp{\HCode{</span>}}% 
       \HCode{<span class="boxedminipage">}%
    \fi 
    \bgroup \fboxrule=\z@}
   {\egroup \after:bmp}
   {}{}
\Css{div.boxedminipage{border : 1px solid; 
   margin-top:1pt; margin-bottom:1pt;}}
>>>

%%%%%%%%%%%%%%%%%%%
\subsection{Multicol}
%%%%%%%%%%%%%%%%%%%

\<configure html4 multicol\><<<
\HAssign\MultiCols=0
\ConfigureEnv{multicols}
   {\par\IgnorePar\EndP
    \gHAdvance\MultiCols by 1\relax
    \HCode{<table class="multicols"
                     id="multicols-\MultiCols"><tr><td class="multicol-1">}%
    \let\sv:HCol=\HCol
    \bgroup  \gHAssign\HCol=1\relax
   }
   {\egroup
    \global\let\HCol=\sv:HCol
    \ifvmode\IgnorePar\fi\EndP
    \HCode{</td></tr></table>}\par
   }
   {}{}
\Configure{columnbreak}
   {\gHAdvance\HCol by 1\relax
    \par \IgnorePar \EndP
    \HCode{</td><td class="multicol-\HCol">}}
\Css{table.multicols {
   width:100\%; margin-left:1em; margin-top:1em; margin-bottom:1em;
}}
>>>


%%%%%%%%%%%%%%%%
\section{array.sty}
%%%%%%%%%%%%%%%%

\<configure html4 array\><<<
|<html latex array/tabular Config 4.0t|>
>>>


\<configure html4-math array\><<<
|<math html latex array/tabular|>
>>>



%%%%%%%%%%%%%%%%%%%
\section{algorithmic}
%%%%%%%%%%%%%%%%%%%

\<configure html4 algorithmic\><<<
\ConfigureEnv{algorithmic}
   {\ifvmode\IgnorePar\fi \EndP
    \HCode{<div class="algorithmic">}%
    \bgroup 
      \Configure{HtmlPar}{}{}{}{}}
   {\egroup \ifvmode \IgnorePar\fi \HCode{</div>}}
   {}{}
\Configure{ALCitem}
   {\HCode{\ifnum \c@ALC@line>1 <br />\fi <span class="ALCitem">}}
   {\HCode{</span><span style="width:\the\ALC@tlm ;">&nbsp;</span>}}
\Css{.ALCitem {width:2em; text-align:right;}}
>>>


\<configure html4 algorithmic\><<<
\ConfigureEnv{ALC@for}
   {\HCode{<span class="for-body">}} 
   {\HCode{</span>}}
   {}{}
\ConfigureEnv{ALC@whl}
   {\HCode{<span class="while-body">}} 
   {\HCode{</span>}}
   {}{}
\ConfigureEnv{ALC@loop}
   {\HCode{<span class="loop-body">}} 
   {\HCode{</span>}}
   {}{}
\ConfigureEnv{ALC@rpt}
   {\HCode{<span class="repeat-body">}} 
   {\HCode{</span>}}
   {}{}
\Configure{ALCif}
   {\HCode{<span class="if-body">}} 
   {\HCode{</span>}}
   {\HCode{<span class="else-body">}} 
   {\HCode{</span>}}
\Configure{algorithmiccomment}
   {\HCode{<span class="ALC-comment">}} 
   {\HCode{</span>}}
   {}{}  
>>>




%%%%%%%%%%%%%%%%%%%
\section{Bibliography}
%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%
\subsection{jurabib}
%%%%%%%%%%%%%%%%%%%

\<configure html4 jurabib\><<<
\Configure{jblink}{\Link}{\EndLink}
\Configure{jbanchor}{\Link}{\EndLink}
>>>

%%%%%%%%%%%%%%%%%%%
\subsection{Harvard}
%%%%%%%%%%%%%%%%%%%

\<configure html4 harvard\><<<
\Configure{harvardyear}
   {\HCode{<span class="bib-year">}}
   {\HCode{</span>}}
>>>


%%%%%%%%%%%%%%%%%%
\section{Text Decoration}
%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%
\subsection{color}
%%%%%%%%%%%%%%%%%%%

\<configure html4 color\><<<
\Configure{HColor}{red}{\#FF0000}
\Configure{HColor}{rgb 1 0 0}{\#FF0000}
\Configure{HColor}{blue}{\#0000FF}
\Configure{HColor}{rgb 0 0 1}{\#0000FF}
\Configure{HColor}{green}{\#00FF00}
\Configure{HColor}{rgb 0 1 0}{\#00FF00}
\Configure{HColor}{white}{\#FFFFFF}
\Configure{HColor}{gray 1}{\#FFFFFF}
\Configure{HColor}{rgb 1 1 1}{\#FFFFFF}
\Configure{HColor}{black}{\#000000}
\Configure{HColor}{gray 0}{\#000000}
\Configure{HColor}{rgb 0 0 0}{\#000000}
\Configure{HColor}{cyan}{\#00FFFF}
\Configure{HColor}{cmyk 1 0 0 0}{\#00FFFF}
\Configure{HColor}{magenta}{\#FF00FF}
\Configure{HColor}{cmyk 0 1 0 0}{\#FF00FF}
\Configure{HColor}{yellow}{\#FFFF00}
\Configure{HColor}{cmyk 0 0 1 0}{\#FFFF00}
\Configure{color}{\:gobble}
|<color.sty config 4.0t|>
>>>





% \Configure{pagecolor}
%   {\Configure{color}
%       {\Configure{SetHColor}{\Css{body {background-color:\HColor}}}}}



\<configure html4 color\><<<
\Configure{HColor:gray}{%
   \int:of\:tempa{255}{#1}%
   \Configure{HColor}{}{rgb(\:tempa,\:tempa,\:tempa)}%
}
\Configure{HColor:rgb}{%
   \int:of\:tempa{255}{#1}%
   \int:of\:tempb{255}{#2}%
   \int:of\:tempc{255}{#3}%
   \Configure{HColor}{}{rgb(\:tempa,\:tempb,\:tempc)}%
}
\Configure{HColor:cmyk}{%
   \int:of\:Cyan{255}{#1}%
   \int:of\:Magenta{255}{#2}%
   \int:of\:Yellow{255}{#3}%
   \int:of\:Black{255}{#4}%
   \:cmyk\:tempa\:Cyan
   \:cmyk\:tempb\:Magenta
   \:cmyk\:tempc\:Yellow
   \Configure{HColor}{}{rgb(\:tempa,\:tempb,\:tempc)}%
}
|<HColor util|>
>>>


\<HColor util\><<<
\def\int:of#1#2#3{%
   \tmp:dim=#3pt \tmp:dim=#2\tmp:dim
   \edef\:temp{\tmp:cnt\the\tmp:dim//}%
   \def#1##1//{}\afterassignment#1\:temp
   \edef#1{\the\tmp:cnt}%
}
>>>


\begin{verbatim}
cmyk -> gray
(1 - 0.299c - 0.587m - 0.114y)(1 - k) 

cmyk -> rgb
Red   = 1-minimum(1,Cyan   *(1-Black)+Black)
Green = 1-minimum(1,Magenta*(1-Black)+Black)
Blue  = 1-minimum(1,Yellow *(1-Black)+Black)
\end{verbatim}



\<HColor util\><<<
\def\:cmyk#1#2{%
   \tmp:cnt=255 \advance\tmp:cnt by -\:Black
   \multiply\tmp:cnt by#2 \advance\tmp:cnt by \:Black 
   \advance\tmp:cnt by -255 \tmp:cnt=-\tmp:cnt
   \ifnum \tmp:cnt<0 \tmp:cnt=0 \fi
   \edef#1{\the\tmp:cnt}%
}
>>>




\<color.sty config 4.0t\><<<
\HAssign\textcolorN=0
\Configure{textcolor}
   {\gHAdvance\textcolorN by 1
    \Configure{color}%
      {\Configure{SetHColor}
           {\Css{span\#textcolor\textcolorN{color:\HColor}}}}%
    \HCode{<span id="textcolor\textcolorN">}}%
   {\HCode{</span>}}
>>>

\<color.sty config 4.0t\><<<
\Configure{colorbox}
    {\bgroup
     \gHAdvance\textcolorN by 1
     \ifvmode \let\v:colorbox\def \IgnorePar \EndP
     \else \let\v:colorbox=\relax \fi
     |<colorbox background|>%
     \HCode{<\ifx \v:colorbox\def div\else span\fi \Hnewline
                  class="colorbox" id="colorbox\textcolorN">}}%
    {\ifx \v:colorbox\def \EndP\HCode{</div>}\par
     \else \HCode{</span>}\fi 
     \egroup
    }
>>>


\<colorbox background\><<<
\let\A:color=\a:color
\Configure{color}%
  {\let\a:color=\A:color
   \Configure{SetHColor}
       {\Css{\ifx \v:colorbox\def div\else span\fi
             \#colorbox\textcolorN{background-color:\HColor;}}}}%
>>>


\<\><<<
\Configure{fcolorbox}
   {\gHAdvance\textcolorN by 1
    \let\A:color=\a:color
    \Configure{color}%
        {\Configure{SetHColor}{\Css{\#colorbox\textcolorN{border: 
                                  solid 1px \HColor;}}}}%
     \Configure{fbox}{\leavevmode
              \gHAdvance\textcolorN by -1  \let\a:color=\A:color}{}}
    {}
>>>


\<color.sty config 4.0t\><<<
\Configure{fcolorbox}
   {\bgroup\gHAdvance\textcolorN by 1
     \ifvmode \let\v:colorbox\def \IgnorePar \EndP 
     \else \let\v:colorbox=\relax \fi
     \HCode{<\ifx \v:colorbox\def div\else span\fi \Hnewline
                  class="colorbox" id="colorbox\textcolorN">}%    
    |<fcolorbox border|>%
    \Configure{fbox}{\leavevmode }{}%
}
{\ifx \v:colorbox\def \EndP\HCode{</div>}\par
 \else \HCode{</span>}\fi  \egroup}
>>>

\<fcolorbox border\><<<
\let\A:color=\a:color
\Configure{color}%
    {|<fcolor background|>%
     \Configure{SetHColor}{%
         \Css{\#colorbox\textcolorN{border: solid 1px  \HColor;}}}%
    }%
>>>

\<fcolor background\><<<
\Configure{color}%
    {\let\a:color=\A:color
     \Configure{SetHColor}{%           
         \Css{\#colorbox\textcolorN{background-color: \HColor;}}%
    }}%
>>>

%%%%%%%%%%%%%%%%%%%%%%%
\subsection{colortbl.sty}
%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 colortbl\><<<
\Configure{@classz}
   {\let\begin:current@color|=\relax
    \let\end:current@color|=\relax }
   {%
     \ifx \CT@column@color\relax \else 
     \ifx \CT@column@color\empty \else{%
         \def\CT@color{\@ifnextchar[\color:ii\color:i}%
         \CT@column@color|<par del|>%
         \edef\:temp{\noexpand\add:color
            {background-color}{\:temp}{\ar:cnt}}\:temp
     }\fi \fi
   }
   {\begin:current@color}
   {\end:current@color}
\Configure{rowcolor}{\row:clr}
\def\row:clr#1{{%
%  \HAdvance\HRow by 1
  \add:color{background-color}{#1}{\HRow-}}}
\Configure{text-colortbl}
  {\add:color{color}{\current@color}{\HRow-\HCol}}
\Configure{cell-colortbl}
   {\add:color{background-color}{\current@color}{\HRow-\HCol}}
\def\add:color#1#2#3{%
  \Configure{SetHColor}{\Css{ \#TBL-\TableNo-#3{ #1:\HColor }}}{#2}}
>>>


%%%%%%%%%%%%%
\subsection{Soul}
%%%%%%%%%%%%%

\<configure html4 soul\><<<
\Configure{textcaps}
   {\HCode{<span class="textcaps">}}
   {\HCode{</span>}}
\Configure{texthl}
   {\HCode{<span class="texthl">}\bgroup 
     \ifx\sethlcolor\:gobble\else |<soul color|>\fi}
   {\egroup \HCode{</span>}}
\Configure{textso}
   {\HCode{<span class="textso">}}
   {\HCode{</span>}}
\Configure{textst}
   {\HCode{<span class="textst">}\bgroup 
     \ifx\setstcolor\:gobble\else |<soul color|>\fi}
   {\egroup \HCode{</span>}}
\Configure{textul}
   {\HCode{<span class="textul">}\bgroup 
     \ifx\setulcolor\:gobble\else |<soul color|>\fi}
   {\egroup \HCode{</span>}}
\Css{span.textso{letter-spacing: 0.3em; word-spacing: 0.3em}}
\Css{span.textul{text-decoration:underline}}
\Css{span.textst{text-decoration:line-through}}
\Css{span.textcaps{font-variant:small-caps}}
>>>

\<soul color\><<<
\Configure{textcolor} 
   {\gHAdvance\textcolorN by 1 
    \Configure{color}% 
      {\Configure{SetHColor} 
           {\Css{span\#textcolor\textcolorN{background-color:\HColor}}}}% 
    \HCode{<span id="textcolor\textcolorN">}}% 
   {\HCode{</span>}}%
>>>


%%%%%%%%%%%%%%%%
\section{verse}
%%%%%%%%%%%%%%%%%

\<configure html4 verse\><<<
\Configure{poemtitle}
   {\par\IgnorePar\EndP     
       \HCode{<div class="poemtitle"><span class="poemtitlemark">}}
   {\HCode{</span>}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
\Configure{likepoemtitle}
   {\par\IgnorePar\EndP  \HCode{<div class="likepoemtitle">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
\Css{.poemtitle, likepoemtitle {margin-left:2em; margin-bottom:0.5em;}}
>>>



\<configure html4 verse\><<<
\ConfigureEnv{verse}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{<div class="verse">}%
    \bgroup
       \Configure{hspace}
          {\HCode{<span style="margin-right:\the\tmp:dim">}\:nbsp}
          {\HCode{</span>}} {}
       \let\end:verseln\empty
   }
   {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
   {}{}

\ConfigureList{verse}
   {} {\ifvmode \IgnorePar\fi \EndP \end:verseln}
   {\parindent=\z@}  {}

\Configure{verseline}
   {\ifvmode \IgnorePar\fi \EndP \end:verseln  
    \HCode{<div class="verseline">}\def\end:verseln{\HCode{</div>}}}
   {\ifvmode \IgnorePar\fi \EndP \end:verseln
    \HCode{<div class="skip-verseline">}%
    \def\end:verseln{\HCode{</div>}}}  

\Configure{flagverse}
   {\HCode{<span class="flagverse">}\bgroup \setlength{\vleftskip}{0em}}
   {\egroup \HCode{</span>}\ignorespaces}

\Css{.skip-verseline {margin-top: 1em;}}
\Css{.skip-verseline, .verseline {white-space: nowrap;}}
\Css{.flagverse {float:right; font-size:85\%;
                   text-decoration:underline;}}
>>>


%%%%%%%%%%%%%%%%
\section{OpenOffice writer}
%%%%%%%%%%%%%%%%

\<configure html4 writer\><<<
\Configure{WriterEnv}
   {%
     \ConfigureEnv{#1}
        {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="#1">}}
        {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
        {}{}%
   }
   {%
       \tmp:dim=\parindent 
       \divide\tmp:dim by \ten:Em\relax
       \tmp:dim=10\tmp:dim
     \Css{div.#1 {text-indent:\expandafter\x:Em \the\tmp:dim em;}}%
       \tmp:dim=\leftskip
       \divide\tmp:dim by \ten:Em\relax
       \tmp:dim=10\tmp:dim
     \Css{div.#1 {margin-left:\expandafter\x:Em \the\tmp:dim em;}}%
       \tmp:dim=\rightskip
       \divide\tmp:dim by \ten:Em\relax
       \tmp:dim=10\tmp:dim
     \Css{div.#1 {margin-right:\expandafter\x:Em \the\tmp:dim em;}}%
     \Css{div.#1 {margin-top:0.75em;
                  margin-bottom:0.75em;
         }}%
}
|<10 em constant|>
>>>

\<10 em constant\><<<
{
  \def\x:Em{%
    \catcode`\p=12
    \catcode`\t=12
    \gdef\x:Em}
  \x:Em#1pt{#1}
}
\tmp:dim=10em
\edef\ten:Em#1.#2//{#1}
\edef\ten:Em{\expandafter\ten:Em \the\tmp:dim//}
>>>

%%%%%%%%%%%%%%%%%%
\section{manmac}
%%%%%%%%%%%%%%%%%%

\<configure html4 manmac\><<<
\Configure{chapter}
   {\IgnorePar\EndP
    \HCode{<!--l. \the\inputlineno--><div class="chapter">}\IgnorePar    }
   {\IgnorePar\EndP\HCode{</div><!--end chapter-->}\par\ShowPar}
   {\HCode{<div class="chapterTitle">}\par \ShowPar \noindent
    \let\sv:rightline=\rightline \let\rightline=\hbox }
   {\IgnorePar\EndP  \let\rightline=\sv:rightline
    \HCode{</div><!--end chapter title-->}\par\ShowPar}
\Configure{titlepage}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{<!--l. \the\inputlineno--><div class="titlepage">}\par}
   {\IgnorePar\EndP\HCode{</div><!--end titlepage-->}\par\ShowPar}
>>>

\<configure html4 manmac\><<<
\Configure{mathdemo}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno--><table class="mathdemo">}}
   {\HCode{</table>}\par\ShowPar}
   {\HCode{<tr>}}
   {\HCode{</tr>}}
   {\HCode{<td>}}
   {\HCode{</td>}}
\Css{table.mathdemo{margin-left:2em}}
\Configure{longdisplaymathdemo}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno--><table class="longdisplaymathdemo">}}
   {\HCode{</table>}\par\ShowPar}
   {\HCode{<tr>}}
   {\HCode{</tr>}}
   {\HCode{<td>}}
   {\HCode{</td>}}
\Css{table.longdisplaymathdemo{margin-left:2em}}
\Configure{longmathdemo}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno--><table class="longmathdemo">}}
   {\HCode{</table>}\par\ShowPar}
   {\HCode{<tr>}}
   {\HCode{</tr>}}
   {\HCode{<td>}}
   {\HCode{</td>}}
\Css{table.longmathdemo{margin-left:2em}}
\Configure{displaymathdemo}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno--><table class="displaymathdemo">}}
   {\HCode{</table>}\par\ShowPar}
   {\HCode{<tr>}}
   {\HCode{</tr>}}
   {\HCode{<td>}}
   {\HCode{</td>}}
\Css{table.displaymathdemo{margin-left:2em}}
>>>


\<configure html4 manmac\><<<
\Configure{exercise}
  {\ifvmode \IgnorePar\fi \EndP 
   \HCode{<!--l. \the\inputlineno--><h5 class="exercise">}%
   \bgroup \Configure{HtmlPar}{}{}{}{}}
  {\egroup\HCode{</h5>}\IgnoreIndent\par}

\Configure{manmac-display}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno--><table class="manmac-display">}}
   {\HCode{</table>}\IgnoreIndent\par}
   {\HCode{<tr>}}
   {\HCode{</tr>}}
   {\HCode{<td>}\ShowPar}
   {\ifvmode \IgnorePar\fi\EndP \HCode{</td>}}

\Configure{ttenv}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<!--l. \the\inputlineno--><div class="ttenv">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par\noindent}
>>>



\<configure html4 manmac\><<<
\Configure{sampleglue}
   {\HCode{<table class="sampleglue">}}
   {\HCode{</table>}}
   {\HCode{<tr>}}
   {\HCode{</tr>}}
   {\HCode{<td>}}
   {\HCode{</td>}}
>>>

\<configure html4 manmac\><<<
\Configure{danger}
   {\HCode{<!--l. \the\inputlineno--><!--danger-->}}
   {\HCode{<!--end danger-->}}
\Configure{ddanger}
   {\HCode{<!--l. \the\inputlineno--><!--ddanger-->}}
   {\HCode{<!--end ddanger-->}}
>>>


%%%%%%%%%%%%%%%%
\section{?????}
%%%%%%%%%%%%%%%%





\<0,32,4 preambles\><<<
|<hook utility|>
|<cascade style sheets|>
\Configure{Preamble}
   {|<default cascade style sheets|>} {}
>>>

\<default cascade style sheets\><<<
{\ifdim \lastskip>\z@ \unskip\fi  \IgnorePar\parindent\z@
\leavevmode}%
\immediate\write-1{--- file \aa:CssFile\space ---}%
\ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
\ht:special{t4ht<\aa:CssFile}%
>>>



\verb'\special' are like \verb'\hbox', and they so they may introduve empty lines in
vertical mode. That might be a problem if we don't want empty lines at
the start of the files. Hence, in latex we give them special treatment.

\<cascade style sheets\><<<
\ScriptCommand{\CssFile}{%
    \immediate\write-1{--- file \aa:CssFile\space ---}%
    \def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}%
    \def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}%
    \def\:Context##1{\ht:special{t4ht>\jobname.tmp}##1\ht:special
       {t4ht>\aa:CssFile}}%
    \ht:special{t4ht>\jobname.tmp}\ht:special{t4ht>\aa:CssFile}%
    \bgroup \everypar{}\NoFonts  \bb:CssFile \hfil\break}
  {\egroup \EndNoFonts
    \ht:special{t4ht<\aa:CssFile}\ht:special{t4ht<\jobname.tmp}}
\let\Css:File|=\CssFile
\def\CssFile{\futurelet\:temp\Css:Fl}
\def\Css:Fl{\ifx [\:temp  \expandafter\Css:fl
   \else \expand:after{\Css:File \space}\fi}
\def\Css:fl[#1]{\Css:File\space \css:files #1,,|<par del|>}
\def\css:files#1,#2|<par del|>{\def\:temp{#1}\ifx \:temp\empty
   \else \def\:temp{\in:css#1.|<par del|>\css:files#2,,|<par del|>}\fi
   \:temp }
\def\in:css#1.#2|<par del|>{\def\:temp{#2}\ifx \:temp\empty
      \inc:ss#1.css|<par del|>
   \else \inc:ss#1.#2|<par del|>\fi}
\def\inc:ss#1.|<par del|>{|<input css file|> }
\NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}}
>>>


\<input css file\><<<
     \immediate\openin15=#1
     \ifeof15 \immediate\closein15
        \:warning{Missing file: #1}%
     \else \immediate\closein15     \input #1 \fi
>>>


\verb'\CssFile[file-name,filename.ext,..]...\EndCssFile'.

Default file, just in case the user doesn't provide one. If
the user does, the following file will be overwritten.

Can't use below \verb'\a:CssFile' and \verb'\b:CssFile', because
\verb'\ScriptFile{\CssFile}' also needs them.

\verb'\Css' changes its definition upon reachin \verb'\CssFile'.  The 
first definition is needed within the sty files, and the info is
sent to the lg file (where else it can be sent?).


\<cascade style sheets\><<<
\def\Css#1{{\def\:temp{\Configure{Needs}}%
   \expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}}
>>>

\<cascade style sheets-DISABLE\><<<
\let\send:css|=\Css
\ScriptCommand{\Css}{\HCode{<style
   type="text/css">\Hnewline}\NoFonts}{\EndNoFonts\HCode{</style>}}
\let\loc:css|=\Css
\def\Css{\futurelet\:temp\:Css}
\def\:Css{\ifx \:temp\bgroup \expandafter\send:css
   \else \expandafter\loc:css\fi}
>>>


\<hook utility\><<<
\:CheckOption{hooks++} \if:Option
    \else \:CheckOption{hooks+}  
          \if:Option \else \:CheckOption{hooks}\fi
    \fi
\if:Option
   \Configure{hooks}
      {\HCode{<strong class="hooks">&lt;}}{\HCode{&gt;</strong>}}{}{}  
\fi
>>>




The following provides a faster version
than \verb'\LinkCommand\Link{a,href,name,}' for the \verb'\Link'
command

\<config tex4ht\><<<
\Configure{Link}{a}{href=}{id=}{}
>>>


\section{Shared}
%%%%%%%%%%%%%%%%%%


\<config book-report-article\><<<
|<makeketitle config 4.0t|>
>>>



\<config book-report-article\><<<
|<latex shared div config|>
|<shared bib env|>
\ifx \part\:UnDef \else
   |<latex shared part config|>
\fi
|<config lists of figures and tables|>
|<description 4|>
>>>


\<config lists of figures and tables\><<<
\ConfigureToc{lof}
  {\HCode{<span class="lofToc">}}{\ }{}{\HCode{</span><br\xml:empty>}}
\ConfigureToc{lot}
  {\HCode{<span class="lotToc">}}{\ }{}{\HCode{</span><br\xml:empty>}}
>>>

\<config book-report-article\><<<
|<thebib config|>
|<latex config div 4.0t|>
>>>


\<32,4 latex\><<<
|<config bibitem|>
>>>






\<config book-report-article\><<<
|<quote 4|>
>>>

\<quote 4\><<<
\ConfigureEnv{quote}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quote">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar\ShowIndent}
\Css{.quote  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}
>>>



\<config book-report-article\><<<
\ConfigureEnv{verse}
   {\ifvmode \IgnorePar\fi\EndP\Tg<div class="verse">}
   {\ifvmode \IgnorePar\fi\EndP\Tg</div>}
   {}{}
\ConfigureList{verse}
   {}{}
   {\parindent=\z@}  {\par}
\Css{.verse{white-space:nowrap; margin-left:2em}}
>>>


\<config book-report-article\><<<
|<maketitle 4|>
>>>



\<config book-report-article\><<<
|<article,report,book|>

>>>




%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{lineno.sty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 lineno\><<<
\:warning{The line numbers are commented out. To reintroduce them, use
    the \string\Configure{lineno}{...}{...} command}
\Configure{lineno}
    {\bgroup \let\LineNumber=\empty}
    {\egroup}
>>>

%%%%%%%%%%%%%%%%%%%%%%%%
\section{epigraph.sty}
%%%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 epigraph\><<<
\Configure{epigraphhead}
   {\IgnorePar\EndP\HCode{<div class="epigraphhead">}}
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}

\Configure{epigraph}
   {\IgnorePar\EndP\HCode{<div class="epigraph">}} 
   {\IgnorePar\EndP\HCode{<div class="episource">}} 
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div></div>}}


\ConfigureEnv{epigraphs}
   {\IgnorePar\EndP\HCode{<div class="epigraphs">}} 
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}} {}{}

\Configure{qitem}
   {\IgnorePar\EndP\HCode{<div class="qitem">}} 
   {\IgnorePar\EndP\HCode{<div class="episource">}} 
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div></div>}}

\Css{.epigraph, .epigraphhead, epigraphs {margin-left:60\%}}
\Css{.epigraphhead .epigraph {margin-left:0\%}}

\Css{.episource {text-align:right}}
\Configure{epirule} {\ifvmode \IgnorePar\fi \EndP\Tg<hr />\par}

\Css{.epigraphs table { width:40\% ;}}
\Css{.epigraphs table div .episource { text-align:right;  width:100\%;}}
>>>


%%%%%%%%%%%%%%
\section{revtex (aps)}
%%%%%%%%%%%%%%

\<configure html4 aps\><<<   
\ifx \@authoraddress\:UnDef
  |<revtex4 aps.rtx|>
\else 
  |<revtex3 aps.sty|>
\fi
>>>

\<revtex3 aps.sty\><<<
|<revtex sections|>
|<revtex title page|>
|<shared bib env|>
|<thebib config|>
>>>


\<revtex sections\><<<
    \def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}
>>>



 
\<revtex sections\><<<
\:CheckOption{4}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
         \CutAt{part}
\CutAt{likepart}
|<cut toc: part|>

         \CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
|<cut toc: sec|>%
         \CutAt{subsection,section,likesection,%
                  chapter,likechapter,appendix,part}
\CutAt{likesubsection,section,likesection,%
                  chapter,likechapter,appendix,part}
       |<cut toc: subsec|>%
       |<tocat: part|>%
       |<tocat: section|>%
    \else
         \CutAt{part}
\CutAt{likepart}
|<cut toc: part|>

         \CutAt{chapter,likechapter,appendix,part}
\CutAt{likechapter,appendix,part}
\CutAt{appendix,chapter,likechapter,part}
|<tocat: ch|>%

         \CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
|<cut toc: sec|>%
         \CutAt{subsection,section,likesection,%
                  chapter,likechapter,appendix,part}
\CutAt{likesubsection,section,likesection,%
                  chapter,likechapter,appendix,part}
      |<cut toc: subsec|>%
      |<tocat: part|>%
      |<tocat: ch|>%
      |<tocat: section|>%
    \fi
\else\:CheckOption{3}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
         \CutAt{part}
\CutAt{likepart}
|<cut toc: part|>

         \CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
|<cut toc: sec|>%
         \CutAt{subsection,section,likesection,%
                  chapter,likechapter,appendix,part}
\CutAt{likesubsection,section,likesection,%
                  chapter,likechapter,appendix,part}
      |<cut toc: subsec|>%
      |<tocat: part|>%
      |<tocat: section|>%
    \else
         \CutAt{part}
\CutAt{likepart}
|<cut toc: part|>

         \CutAt{chapter,likechapter,appendix,part}
\CutAt{likechapter,appendix,part}
\CutAt{appendix,chapter,likechapter,part}
|<tocat: ch|>%

         \CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
       |<cut toc: sec|>%
       |<tocat: part|>%
       |<tocat: ch|>%
    \fi
\else\:CheckOption{2}     \if:Option
    \expandafter\ifx \csname @chapter\endcsname\relax
         \CutAt{part}
\CutAt{likepart}
|<cut toc: part|>

         \CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
      |<cut toc: sec|>%
      |<tocat: part|>%
    \else
         \CutAt{part}
\CutAt{likepart}
|<cut toc: part|>

         \CutAt{chapter,likechapter,appendix,part}
\CutAt{likechapter,appendix,part}
\CutAt{appendix,chapter,likechapter,part}
       |<tocat: ch|>%
       |<tocat: part|>%
    \fi
\else\:CheckOption{1}     \if:Option
         \CutAt{part}
\CutAt{likepart}
|<cut toc: part|>

\else
    \Log:Note{for automatic sectioning pagination,
          use the command line option `1', `2', or `3'}%
\fi \fi \fi \fi

\:CheckOption{1}     \if:Option
  |<toc article,report options 1|>
\fi
|<shared h5 subsubsection|>
\Configure{endlikesubsubsection}
   {subsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikeparagraph}
   {paragraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endsubparagraph}
   {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubparagraph}
   {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}

\ifx \part\:UnDef \else
   |<latex shared part config|>
\fi

\Configure{endsection}
     {likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesection}
     {section,chapter,likechapter,appendix,part,likepart}
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
    \else
       \HCode{<span class="titlemark">}\thesection\HCode{</span>}\fi }
\Configure{section}{}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar
    \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark.\space\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \par}
\Configure{sectionTITLE+}{\thesection\space#1}
\Configure{likesection}{}{}
   {\ifvmode \IgnorePar\fi
    \EndP\IgnorePar\HCode{<h3 class="likesectionHead"\a:LRdir>}\HtmlParOff}
   {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
\Configure{likesectionTITLE+}{#1}

\Css{h3.sectionHead, h3.likesectionHead {text-align:center;}}

\Configure{endsubsection}
   {likesubsection,section,likesection,chapter,%
      likechapter,appendix,part,likepart}
\Configure{endlikesubsection}
   {subsection,section,likesection,chapter,%
      likechapter,appendix,part,likepart}
|<shared h4 subsection|>

\Css{h4.subsectionHead {text-align:center;}}

\Configure{endsubsubsection}
   {likesubsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likepart}

\Configure{endparagraph}
   {likeparagraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likepart}
\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likeparagraph}{}{}
  {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
  {\HCode{</span>}\IgnorePar}
\Css{.paragraphHead, .likeparagraphHead
   { margin-top:2em; font-weight: bold;}}

\ConfigureMark{subparagraph}{}
\Configure{subparagraph}{}{}
  {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
   \TitleMark\space}
  {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likesubparagraph}{}{}
  {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
  {\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead, .likesubparagraphHead
   { font-weight: bold;}}
>>>





%%%%%%%%%%%%%%%%%%%
\section{Spatial Math}
%%%%%%%%%%%%%%%%%%%

\<configure html4 longdiv\><<<
\Configure{longdiv}
  {\Configure{halign} 
      {\HCode{<table class="longdiv">}}
      {\HCode{</table>}}
      {\HCode{<tr>}} 
      {\HCode{</tr>\Hnewline}}
      {\tmp:cnt=\HRow \divide\tmp:cnt by 2 \multiply\tmp:cnt by 2
       \advance\tmp:cnt by -\HRow
       \HCode{<td \ifnum\HCol=2 \ifnum\HRow=2 class="longdiv"\fi \fi>%
              <span \ifnum \tmp:cnt=-1
                 \ifnum \HRow>2 class="longdiv"\fi\fi >}%
      }
      {\HCode{</span></td>}}%
  }
  {}
\Css{table.longdiv {text-align: right;}}
\Css{td.longdiv {border-top:solid 1px black;
                 border-left:solid 1px black;}}
\Css{span.longdiv {text-decoration:underline;}}
>>>



%%%%%%%%%%%%%%%%%%%
\section{lncse}
%%%%%%%%%%%%%%%%%%%

\<configure html4 lncse\><<<
|<lncse chapter|>
\Configure{paragraph}{}{}
  {\ShowPar\IgnoreIndent
   \HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\it}
  {\endgroup\HCode{</span>}\IgnorePar}
>>>


\<lncse chapter\><<<
\ConfigureMark{chapter}
   {\if@mainmatter
       \HCode{<span class="titlemark">}\chaptername
     \ \thechapter\HCode{</span>}\fi}
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}%
    \TitleMark{\HCode{<br\xml:empty>}}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{chapterTITLE+}{\if@mainmatter\thechapter\space\fi#1}
\renewcommand\thechapter {\if@mainmatter\@arabic\c@chapter\fi}

\ConfigureMark{appendix}{\HCode{<span class="titlemark">}%
   \appendixname \ \thechapter\HCode{</span>}}
\Configure{appendix}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}%
     \TitleMark{\HCode{<br\xml:empty>}}}
   {\HCode{</h2>}\IgnoreIndent}
\Configure{appendixTITLE+}{\thechapter\space#1}
\Configure{likechapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="likechapterHead">}}
   {\HCode{</h2>}\IgnoreIndent}
>>>



%%%%%%%%%%%%%%%%%%%
\section{babel.sty}
%%%%%%%%%%%%%%%%%%%





\<configure html4 babel\><<<
|<babel macros|>
|<babel char set|>
|<babel accents|>
|<u mlaut|>
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Character Set}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<babel char set\><<<
\def\a:temp#1#2{%
   \ifOption{charset=#2}{\def\a:charset{charset=#2}}{}%
   \def\:tempa{#1}\ifx \languagename\:tempa
      \def\A:charset{#2}\ifx \A:charset\empty\else
         \def\A:charset{charset=#2}%
   \fi\fi}
\a:temp{afrikaans}{iso-8859-1}
\a:temp{arabic}{iso-8859-6}
\a:temp{austrian}{iso-8859-1}
\a:temp{brazilian}{iso-8859-1}
\a:temp{brazil}{iso-8859-1}
\a:temp{catalan}{iso-8859-1}
\a:temp{croatian}{iso-8859-2}
\a:temp{czech}{iso-8859-2}
\a:temp{danish}{iso-8859-1}
\a:temp{dutch}{iso-8859-1}
\a:temp{esperanto}{iso-8859-3}
\a:temp{estonian}{iso-8859-5}
\a:temp{finnish}{iso-8859-1}
\a:temp{francais}{iso-8859-1}
\a:temp{frenchb}{iso-8859-1}
\a:temp{french}{iso-8859-1}
\a:temp{galician}{iso-8859-1}
\a:temp{germanb}{iso-8859-1}
\a:temp{german}{iso-8859-1}
\a:temp{greek}{iso-8859-7}
\a:temp{hebrew}{iso-8859-8}
\a:temp{hungarian}{iso-8859-2}
\a:temp{ngerman}{iso-8859-1}
\a:temp{norsk}{iso-8859-1}
\a:temp{nynorsk}{iso-8859-1}
\a:temp{polish}{iso-8859-2}
\a:temp{polski}{iso-8859-2}
\a:temp{polutonikogreek}{iso-8859-7}
\a:temp{portuges}{iso-8859-1}
\a:temp{portuguese}{iso-8859-1}
\a:temp{romanian}{iso-8859-2}
\a:temp{scottish}{iso-8859-1}
\a:temp{slovak}{iso-8859-2}
\a:temp{slovene}{iso-8859-2}
\a:temp{spanish}{iso-8859-1}
\a:temp{swedish}{iso-8859-1}
\a:temp{turkish}{iso-8859-9}
\a:temp{ukrainian}{iso-8859-5}
\a:temp{uppersorbian}{iso-8859-2}
\a:temp{welsh}{iso-8859-1}
|<set babel charset|>
>>>







\<configure html4 german\><<<
|<quotedblbase|>
>>>





\<quotedblbase\><<<
\Configure{quotedblbase}{\leavevmode\ht:special{t4ht@+&{35}8222;}x}
\Configure{quotesinglbase}{\leavevmode\ht:special{t4ht@+&{35}8218;}x}
>>>


% \HCode{&}\HChar{-35}\HCode{8222;}}

\<configure html4 austrian\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 catalan\><<<
\def\A:charset{charset=iso-8859-1}
>>>

\<configure html4 croatian\><<<
\def\A:charset{charset=iso-8859-2}
\:CheckOption{new-accents}     \if:Option \else
   |<old iso-8859-2 accents|>
\fi
>>>


\<configure html4 latin2\><<<
\def\A:charset{charset=iso-8859-2}
>>>




\<configure html4 czech\><<<
\def\A:charset{charset=iso-8859-2}
>>>
\<configure html4 danish\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 dutch\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 english\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 esperant\><<<
\def\A:charset{charset=iso-8859-3}
>>>
\<configure html4 estonian\><<<
\def\A:charset{charset=iso-8859-5}
>>>
\<configure html4 finnish\><<<
\def\A:charset{charset=iso-8859-1}
>>>

\<configure html4 francais\><<<
\def\A:charset{charset=iso-8859-1}
>>>


\<configure html4 frenchb\><<<
\def\A:charset{charset=iso-8859-1}
\Configure{@TITLE}{\Configure{frenchb-thinspace}{}{}}
>>>



\<configure html4 frenchb\><<<
\Configure{system-nbsp}
   {\ht:special{t4ht@[unhskip}}
   {\ht:special{t4ht@]unhskip}}
>>>

\<configure html4 frenchb\><<<
\ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi
\Configure{frenchb-nbsp}
   {\ht:special{t4ht@?unhskip}\HCode{<span class="frenchb-nbsp">}%
    \HCode{&nbsp;}\setbox\tmp:bx=\hbox\bgroup}
   {\egroup \HCode{</span>}}
\Css{.frenchb-nbsp{font-size:75\%;}}
>>>  


\<configure html4 frenchb\><<<    
\Configure{frenchb-thinspace}
   {\ht:special{t4ht@?unhskip}\HCode{<span class="frenchb-thinspace">}%
    \HCode{&nbsp;}\setbox\tmp:bx=\hbox\bgroup}
   {\egroup \HCode{</span>}}
\Css{.frenchb-thinspace{font-size:75\%;}}
>>>




\<configure html4 galician\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 germanb\><<<
\def\A:charset{charset=iso-8859-1}
>>>

\<configure html4 greek\><<<
\def\A:charset{charset=iso-8859-7}
\ifOption{charset=iso-8859-7}
   {|<greek ldf iso-8859-7|>}
   {\Log:Note{for iso-8859-7 accents 
          use the command line option `charset=iso-8859-7'}}
\ifOption{sgreek}
  {\:CheckOption{new-accents}     \if:Option \else 
       |<greek ldf sgreek|>
   \fi}
  {\Log:Note{for Sgreek font
          use the command line option `sgreek'}}
\ifOption{oldgreek}
  {\:CheckOption{new-accents}     \if:Option \else 
       |<greek ldf Greek Old Face|>
   \fi}
  {\Log:Note{for Greek Old Face font
          use the command line option `oldgreek'}}
>>>



\<greek ldf sgreek\><<<
\def\A:charset{charset=iso-8859-1}
\Configure{htf}{254}{+}{<font \Hnewline
   face="}{}{}{}{}{Sgreek">}{</font>}
\Configure{htf}{252}{+}{<font \Hnewline
   face="}{}{}{}{}{Sgreek" class="small-caps">}{</font>}
\Configure{htf-css}{252}{.small-caps{font-variant: small-caps; }}  
\Configure{accents}
   {\ht:special{t4ht@+\string&{35}x#2;}x}
   {\expandafter \ifx \csname \@curr@enc :#1\endcsname\relax
       \Picture+{ \a:@Picture{#1}}#2{#3}\EndPicture
    \else
       \csname \@curr@enc :#1\endcsname {#3}%
    \fi
   }
\def\LGR:acute#1{%
  \LGR:gobble\ifx #1\i \HChar{237}%
  \else #1\HCode{<font face="Sgreek">/</font>}\fi }
\def\LGR:grave#1{%
  \LGR:gobble\ifx #1\i \HChar{236}%
  \else #1\HCode{<font face="Sgreek">\string\</font>}\fi}
\def\LGR:circ#1{%
  \LGR:gobble\ifx #1\i \HChar{238}%
  \else #1\HCode{<font face="Sgreek">=</font>}\fi}
\def\LGR:tilde#1{#1\HCode{<font face="Sgreek">@</font>}}
\def\LGR:uml#1{%
  \LGR:gobble\ifx #1\i \HChar{239}%
  \else #1\HCode{<font face="Sgreek">+</font>}\fi}
\def\LGR:gobble#1#2#3{#1}
>>>


The accented \''\i' arrives in the form of \''\@use@text@encoding
\@curr@enc \i'.



\<greek ldf Greek Old Face\><<<
\def\A:charset{charset=iso-8859-1}
\Configure{htf}{254}{+}{<font \Hnewline
   face="}{}{}{}{}{Greek Old Face">}{</font>}
\Configure{htf}{252}{+}{<font \Hnewline
   face="}{}{}{}{}{Greek Old Face" class="small-caps">}{</font>}
\Configure{htf-css}{252}{.small-caps{font-variant: small-caps; }}  
\Configure{accents}
   {\ht:special{t4ht@+\string&{35}x#2;}x}
   {\expandafter \ifx \csname \@curr@enc :#1\endcsname\relax
       \Picture+{ \a:@Picture{#1}}#2{#3}\EndPicture
    \else
       \csname \@curr@enc :#1\endcsname {#3}%
    \fi
   }
\def\LGR:acute#1{%
  \LGR:gobble\ifx #1\i \HChar{237}%
  \else 
     \edef\:temp{\:gobbleII#1\empty\empty}%
     \LGR:ch{i}{133}\LGR:ch{w}{232}\LGR:ch{u}{218}\LGR:ch{o}{210}%
     \LGR:ch{h}{187}\LGR:ch{a}{163}\LGR:ch{e}{154}%
     \ifx \:temp\empty\else #1\HChar{-180}\fi
  \fi }
\def\LGR:grave#1{%
  \LGR:gobble\ifx #1\i \HChar{236}%
  \else 
     \edef\:temp{\:gobbleII#1\empty\empty}%
     \LGR:ch{i}{136}\LGR:ch{235}{232}\LGR:ch{u}{221}\LGR:ch{o}{213}%
     \LGR:ch{h}{190}\LGR:ch{a}{166}\LGR:ch{e}{157}%
     \ifx \:temp\empty\else #1`\fi
  \fi }
\def\LGR:circ#1{%
  \LGR:gobble\ifx #1\i \HChar{238}%
  \else 
     \edef\:temp{\:gobbleII#1\empty\empty}%
     \LGR:ch{i}{139}\LGR:ch{w}{238}\LGR:ch{u}{224}\LGR:ch{o}{253}%
     \LGR:ch{h}{193}\LGR:ch{a}{169}\LGR:ch{e}{252}%
     \ifx \:temp\empty\else #1\string^\fi
  \fi}
\def\LGR:tilde#1{#1}
\def\LGR:uml#1{%
  \LGR:gobble\ifx #1\i \HChar{239}%
  \else 
     \edef\:temp{\:gobbleII#1\empty\empty}%
     \LGR:ch{u}{227}\LGR:ch{i}{142}%
     \ifx \:temp\empty\else  #1\HChar{168}\fi
  \fi}
\def\LGR:gobble#1#2#3{#1}
\def\LGR:ch#1#2{\def\:tempa{#1}\ifx \:temp\:tempa 
   \HCode{<font face="Greek Old Face">}\HChar{#2}\HCode{</font>}%
   \let\:temp=\empty \fi }
>>>









\<configure html4 hebrew\><<<
\def\A:charset{charset=iso-8859-8}
>>>

\<configure html4 ngermanb\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 norsk\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 polish\><<<
\def\A:charset{charset=iso-8859-2}
>>>
\<configure html4 polski\><<<
\def\A:charset{charset=iso-8859-2}
>>>
\<configure html4 portuges\><<<
\def\A:charset{charset=iso-8859-1}
>>>



\<configure html4 scottish\><<<
\def\A:charset{charset=iso-8859-1}
>>>

\<configure html4 slovak\><<<
\def\A:charset{charset=iso-8859-2}
\:CheckOption{new-accents}     \if:Option \else
   |<old iso-8859-2 accents|>
\fi
>>>


\<configure html4 slovene\><<<
\def\A:charset{charset=iso-8859-2}
\:CheckOption{new-accents}     \if:Option \else
   |<old iso-8859-2 accents|>
\fi
>>>

\<configure html4 spanish\><<<
\def\A:charset{charset=iso-8859-1}
|<spanish configs|>
>>>


\<spanish configs\><<<
\Configure{spanish"a}
   {\HCode{<sup><u>a</u></sup>}}
\Configure{spanish"o}
   {\HCode{<sup><u>o</u></sup>}}
\Configure{@TITLE}{%
   \Configure{spanish"a}{\HCode{&\#170;}}%
   \Configure{spanish"o}{\HCode{&\#176;}}%
}
>>>


\<configure html4 swedish\><<<
\def\A:charset{charset=iso-8859-1}
>>>
\<configure html4 turkish\><<<
\def\A:charset{charset=iso-8859-9}
>>>
\<configure html4 ukraineb\><<<
\def\A:charset{charset=iso-8859-5}
>>>
\<configure html4 usorbian\><<<
\def\A:charset{charset=iso-8859-2}
>>>
\<configure html4 welsh\><<<
\def\A:charset{charset=iso-8859-1}
>>>


%%%%%%%%%%%%%%%%%%%%%%%%%  
\section{right to left babel}
%%%%%%%%%%%%%%%%%%%%%%%%%  


tex4ht.sty indert  Rregion  and Lregion end hooks within
\verb+\beginL/R+ and \verb+\endL/R+, mainly to void the 
inverse produced by the elatex compiler.

\<configure html4 rlbabel\><<<
\Configure{TITLE+}{\HCode{\jobname}}
\Configure{Rregion} {\beginL} {\endL}
\Configure{!P}{\a:LRdir} 
\Configure{!BODY}{\a:LRdir} 
\Configure{LRdir}{ |<dir ltr/rtl|> } 
>>>

\<dir ltr/rtl\><<<
dir="\if@rl rtl\else ltr\fi"
>>>


\<configure html4 rlbabel\><<<
\Configure{moreL}
  {\ifvmode \let\end:moreRL=\empty
   \else\HCode{<span dir="ltr" >}\def\end:moreRL{\HCode{</span>}}\fi}
  {\end:moreRL}
\Configure{moreR}
  {\ifvmode \let\end:moreRL=\empty 
   \else\HCode{<span dir="rtl" >}\def\end:moreRL{\HCode{</span>}}\fi}
  {\end:moreRL}
>>>


\<configure html4-math rlbabel\><<<
\:CheckOption{pic-m} \if:Option
\else
   \Configure{$}
      {\HCode{<span |<dir ltr/rtl|>>}}
      {\HCode{</span>}}{}
\fi
>>>



% \def\HCode{<#1>}{\HCode{<#1 |<dir ltr/rtl|>>}}

\<configure html4-math rlbabel\><<<
\Configure{[]} 
   {\bgroup
       \protect\nested:math
       \PicDisplay 
       $$\everymath{}\everydisplay{}}
   {$$\EndPicDisplay \egroup
    |<try inline par|>\if@rl \beginL\fi \beginR }
>>>

Test data

\begin{verbatim}
\def\providehyphenmins#1#2{}
\documentclass[english,hebrew]{article}
\usepackage[T1]{fontenc}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Bold symbol macro for standard LaTeX users
\newcommand{\boldsymbol}[1]{\mbox{\boldmath $#1$}}


\usepackage{babel}
\makeatother
\begin{document}
ôéñ÷ä áòáøéú
 \[F=ma\quad(\textrm{\L{Newton's 2nd Law}\R{áòáøéú }})\]
 \[F=ma\quad(\mbox{Newton's 2nd Law áòáøéú} )\]
 \R{\[F=ma\quad(\mbox{Newton's 2nd Law áòáøéú} )\]}
åòåã ÷öú òáøéú
\end{document}

\end{verbatim}



%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Scientific Word}
%%%%%%%%%%%%%%%%%%%%%%%%%


% When \verb+\BOXEDSPECIAL+ is defined we don't want the
% following configuration, because the frame may enclose 
% a graphics-like file that we might not want to translate.
% 
% \<configure html4 tcilatex\><<<
% \ifx \BOXEDSPECIAL\:UnDef   
%    \Configure{BOXTHEFRAME}
%      {\Picture+[PICT]{}}  {\EndPicture}
% \fi
% >>>

\<configure html4 tcilatex\><<<
\Configure{GRAPHICSPS}
   {\Picture+[PICT]{}}  {\EndPicture}
\Configure{GRAPHICSHP}
   {\Picture+[PICT]{}}  {\EndPicture}
\Configure{DFRAME}
  {\EndP \IgnorePar\HCode{<div class="FRAME">}}
  {\HCode{</div>}\par\ShowPar}
\Configure{FFRAME}
  {\EndP \IgnorePar\HCode{<div class="FRAME">}}
  {\HCode{</div>}\par\ShowPar}
\Configure{IFRAME}
  {\ifvmode \IgnorePar \fi}  {}
\Css{div.FRAME {text-align:center;}}
\expandafter\ifx \csname @TCItagstar\endcsname\relax 
   |<tcilatex 2.5|>
\else
   |<tcilatex 3.5|>
\fi
>>>



\<configure html4-math tcilatex\><<<
\expandafter\ifx \csname @TCItagstar\endcsname\relax 
   |<tcilatex 2.5 math|>
\else
   |<tcilatex 3.5 math|>
   \ifx \@msidraft\:Undef
      |<tcilatex 3.5 not 4.0 math|>
\fi \fi
>>>

\<tcilatex 3.5 not 4.0 math\><<<
\Configure{dfrac}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
\Configure{tfrac}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
\Configure{binom}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
\Configure{tbinom}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
\Configure{dbinom}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
>>>

\<tcilatex 3.5 math\><<<
\Configure{QATOP}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
\Configure{QDATOP}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
\Configure{QTATOP}
   {\Picture+{ align="middle"}\bgroup} {}
   {} {\egroup\EndPicture}
>>>







\<configure html4 seslideb\><<<
\ConfigureEnv{center}
  {\IgnorePar \par \EndP \HCode{<div class="center"\Hnewline>}}
  {\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
  {} {}
{\Configure{Needs}{Font\string_Size: #1}%
   \expandafter\Needs\expandafter{\csname normalsize@fsize\endcsname}}
>>>

\<configure html4 seslideb\><<<
\ConfigureToc{swSlide}
   {} {\relax  }  {}  { }
\:CheckOption{0}     
   \if:Option  \else    \:CheckOption{1} \fi
\if:Option 
   \:CheckOption{1} \if:Option
      \CutAt{swSlide} 
      \Configure{crosslinks}{}{}{}{}{}{}{}{}
   \fi
   |<seslideb toc|>
   |<seslideb page break|>
\else
   |<handle my missing sw fonts|>
   \Log:Note{pagination may be obtained
       through the option `0' or `1', at locations marked with
       \noexpand\csname PageBreak\string\endcsname}
\fi
>>>

\<handle my missing sw fonts\><<<
\Configure{swSlide}{}{}{\bgroup\bf}{\egroup}
>>>



\<seslideb toc\><<<
\def\:temp{%
   \ifOption{1}{\par\IgnorePar\EndP\HCode{<hr />}\par}{}
   \HAssign\TocN=1
   \def\swTitle{\gHAdvance\TocN by 1 \TocN}\:TableOfContents[swSlide]
   \let\swTitle=\relax 
   \ifOption{0}{\par\IgnorePar\EndP\HCode{<hr />}\par}{}
   \let\swSlide=\o:swSlide: \let\o:swSlide:=\empty \swSlide}
\HLet\swSlide=\:temp   
>>>


\<seslideb page break\><<<
\Configure{swSlide}
  {\gHAdvance\swSlideN by 1 \Link{}{s-\swSlideN}\EndLink }
  {\rightline{
       {\HAdvance\swSlideN by -1 \Link{s-\swSlideN}{}\swSlideN\EndLink}
       \Link[\jobname.html]{}{}\HCode{&lt;&gt;}\EndLink{}
       {\HAdvance\swSlideN by 1 
         \ifTag{)Qs-\swSlideN}{\Link{s-\swSlideN}{}\swSlideN\EndLink}{}}
     }
     \ifOption{0}{\par \IgnorePar\EndP\HCode{<hr />}\par}{}
   }
   {\IgnorePar\bgroup \bf }
   {\egroup \ShowPar\IgnoreIndent\par}
\HAssign\swSlideN=1
>>>





%%%%%%%%%%%%%%%%%%
\section{minitoc}

\<configure html4 minitoc\><<<
   |<minitoc.sty Configure 4.0t|>
>>>

\<minitoc.sty Configure 4.0t\><<<
\Configure{minitoc}
   {\Configure{tableofcontents}
      {\HCode{<div class="minitoc"><hr\xml:empty>}\IgnorePar}{}
      {\IgnorePar\HCode{<hr\xml:empty></div>}\ShowPar}
      {\HCode{<br\xml:empty>}}{}}  {}
   {\HCode{<div class="minitoc-\TocOption">}}  {\HCode{</div>}}
\Configure{minilof}
   {\Configure{tableofcontents}
      {\HCode{<div class="minilof"><hr\xml:empty>}\IgnorePar}{}
      {\IgnorePar\HCode{<hr\xml:empty></div>}\ShowPar}
      {\HCode{<br\xml:empty>}}{}}  {}
   {\HCode{<div class="minilof-\TocOption">}}  {\HCode{</div>}}
\Configure{minilot}
   {\Configure{tableofcontents}
      {\HCode{<div class="minilot"><hr\xml:empty>}\IgnorePar}{}
      {\IgnorePar\HCode{<hr\xml:empty></div>}\ShowPar}
      {\HCode{<br\xml:empty>}}{}}  {}
   {\HCode{<div class="minilot-\TocOption">}}  {\HCode{</div>}}
\Css{.minitoc-l,.minilot-l,.minilof-l
   {text-align:left;margin-left:3em;}}
\Css{.minitoc-c,.minilot-c,.minilof-c
   {text-align:center;margin-left:3em;}}
\Css{.minitoc-r,.minilot-r,.minilof-r
   {text-align:right;margin-left:3em;}}
\Css{DIV.minitoc,DIV.minilot,DIV.minilof{margin-left:3em;}}
\Css{.minitoc .sectionToc { font-weight:bold;} }
>>>

Only one of the following is needed for a given document!!!

\<minitoc.sty Configure 4.0t\><<<
\Configure{parttoc}{}{}
   {\HCode{<div class="parttoc-\TocOption">}} {\HCode{</div>}}
\Configure{partlof}{}{}
   {\HCode{<div class="partlof-\TocOption">}} {\HCode{</div>}}
\Configure{partlot}{}{}
   {\HCode{<div class="partlot-\TocOption">}} {\HCode{</div>}}
\Css{.parttoc-l,.partlof-l,.partlot-l{text-align:left;}}
\Css{.parttoc-c,.partlof-c,.partlot-c{text-align:center;}}
\Css{.parttoc-r,.partlof-r,.partlot-r{text-align:right;}}
>>>
\<minitoc.sty Configure 4.0t\><<<
\Configure{secttoc}{}{}
   {\HCode{<div class="secttoc-\TocOption">}} {\HCode{</div>}}
\Configure{sectlof}{}{}
   {\HCode{<div class="sectlof-\TocOption">}} {\HCode{</div>}}
\Configure{sectlot}{}{}
   {\HCode{<div class="sectlot-\TocOption">}} {\HCode{</div>}}
\Css{.secttoc-l,.sectlof-l,.sectlot-l{text-align:left;}}
\Css{.secttoc-c,.sectlof-c,.sectlot-c{text-align:center;}}
\Css{.secttoc-r,.sectlof-r,.sectlot-r{text-align:right;}}
>>>

%%%%%%%%%%%%%%%%%%%
\section{alltt.sty}
%%%%%%%%%%%%%%%%%%%

\<configure html4 alltt\><<<
\ConfigureEnv{alltt}
   {\IgnorePar\EndP\HCode{<div class="alltt">}}
   {\IgnorePar\EndP\HCode{</div>}} {}{}
\Css{.alltt P { margin-bottom : 0em; margin-top : 0em; }}
\Css{.alltt { margin-bottom : 1em; margin-top : 1em; }}
>>>

%%%%%%%%%%%%%%%%%%%
\section{url.sty}
%%%%%%%%%%%%%%%%%%%

\<configure html4 url\><<<
\:CheckOption{url-il2-pl} \if:Option
\else \:CheckOption{url-enc} \fi
\if:Option
   \Configure{string-encoder}{url-encoder}
%   \:CheckOption{url-il2-pl} \if:Option
      |<il2-pl.tcx url encoder|>
%   \else      
      |<default url encoder WAIT|>
%      \Log:Note{for il2-pl url encoding,
%                        use the command line option 'url-il2-pl'}
%   \fi
   \Configure{url}%
     {|<:temp = url encoded string|>%
      \Link[\noexpand\the\tmp:toks \space
               class="url"]{}{}{\let\UrlBigBreaks\empty
                         \let\UrlBreaks\empty #1}\EndLink}
   |<url encoded string utilities|>
\else
   \Log:Note{for URL encoding within href
          use the command line option `url-enc'}
   \Configure{url}%
     {\tmp:toks{#1}\Link[\noexpand\the\tmp:toks\space
               class="url"]{}{}{\let\UrlBigBreaks\empty
                         \let\UrlBreaks\empty #1}\EndLink}
\fi
|<path config|>
>>>

\<:temp = url encoded string\><<<
\tmp:toks={}\set:spaces#1|<par del|>%
\edef\:temp{\tmp:toks{\csname url-encoder\expandafter\endcsname
                      \the\tmp:toks |<par del|>}}\:temp
>>>

\<url encoded string utilities\><<<
\def\set:spaces{\futurelet\:temp\set:spacesoo}
\def\set:spacesoo{%
   \expandafter\ifx \space\:temp 
      \tmp:toks\expandafter{\the\tmp:toks{ }}%
   \fi    
   \set:spaceso
} 
\def\set:spaceso#1#2|<par del|>{%
   \tmp:toks\expandafter{\the\tmp:toks #1}%
   \if :#2:\else \set:spaces#2|<par del|>\fi
}
>>>

\<default url encoder\><<<
\Configure{url-encoder}
     {%}{%25}
     {&}{%26}
     {'}{%27}
     {<}{%3C}
     {>}{%3E}
     {_}{_}
     {^}{^}
     {}{}
\Log:Note{current url encoding setting: \string\Configure{url-encoder}%
     {\%}{\%25}%
     {&}{\%26}%
     {'}{\%27}%
     {<}{\%3C}%
     {>}{\%3E}%
     {\string _}{\string _}%
     {\string ^}{\string ^}%
     {}{}}
>>>




\<il2-pl.tcx url encoder\><<<
\Configure{url-encoder}
      {%}{%25}
      {&}{%26}
      {'}{%27}
      {<}{%3C}
      {>}{%3E}
      {_}{_}
      {^}{^}
      {±}{&#x0105;}
      {æ}{&#x0107;}
      {ê}{&#x0119;}
      {³}{&#x0142;}
      {ó}{&#x00F3;}
      {ñ}{&#x0144;}
      {¶}{&#x015B;}
      {¼}{&#x017A;}
      {¿}{&#x017C;}
      {¡}{&#x0104;}
      {Æ}{&#x0106;}
      {Ê}{&#x0118;}
      {£}{&#x0141;}
      {Ó}{&#x00D3;}
      {Ñ}{&#x0143;}
      {¦}{&#x015A;}
      {¬}{&#x0179;}
      {¯}{&#x017B;}
      {}{}
>>>


\Link[http://www.faqs.org/rfcs/rfc2396.html]{}{}http://www.faqs.org/rfcs/rfc2396.html\EndLink

See issues in:

\begin{verbatim}
\documentclass{article} 
  \usepackage{url} 
\begin{document} 
 
\url{a%b c&d} 
 
\url{a%25b+c&amp;d} 
 
\end{document} 
\end{verbatim}

\<\><<<
\expandafter\ifx\csname Url@OT1encSpecials\endcsname\relax
   |<url.sty|>  
\else
   |<url-2004.sty|>  
\fi
>>>

\<url-2004.styNO\><<<

>>>

\<url.styNO\><<<
\Configure{url}{\Link[#1 class="url"]{}{}{\let\UrlBigBreaks\empty
                   \let\UrlBreaks\empty #1}\EndLink}
>>>

%%%%%%%%%%%%%%%%%%
\section{Path.sty}
%%%%%%%%%%%%%%%%%%

\<path config\><<<
\Configure{path}
  {\HCode{<span class="path">}\bgroup
   \Configure{obeylines}{}{}{}%
  }
  {\egroup\HCode{</span>}}
>>>

\<configure html4 path\><<<
|<path config|>
>>>


%%%%%%%%%%%%%%%%%%%%%%%%
\section{fontmath}
%%%%%%%%%%%%%%%%%%%%%%%%



\<configure html4 latex\><<<
\:CheckOption{fonts} \if:Option
  \Configure{textbf}{\Protect\HCode{<span class="textbf">}}
                    {\Protect\HCode{</span>}}
  \Configure{textit}{\Protect\HCode{<span class="textit">}}
                    {\Protect\HCode{</span>}}
  \Configure{textrm}{\Protect\HCode{<span class="textrm">}}
                    {\Protect\HCode{</span>}}
  \Configure{textup}{\Protect\HCode{<span class="textup">}}
                    {\Protect\HCode{</span>}}  
  \Configure{textsc}{\Protect\HCode{<span class="textsc">}}
                    {\Protect\HCode{</span>}}
  \Configure{textsf}{\Protect\HCode{<span class="textsf">}}
                    {\Protect\HCode{</span>}}  
  \Configure{textsl}{\Protect\HCode{<span class="textsl">}}
                    {\Protect\HCode{</span>}}
  \Configure{texttt}{\Protect\HCode{<span class="texttt">}}
                    {\Protect\HCode{</span>}}
  \Configure{emph}{\Protect\HCode{<span class="emph">}}
                    {\Protect\HCode{</span>}}
  \Css{span.textbf { font-weight: bold; }}
  \Css{span.textit { font-style: italic; }}
  \Css{span.textrm { font-family: serif; }}
  \Css{span.textsc { font-variant: small-caps; }}
  \Css{span.textsf { font-family: sans-serif; }}
  \Css{span.texttt { font-family: monospace; }}
\else
  \Log:Note{for tracing of latex font commands, 
          use the command line option `fonts'}
\fi
>>>

\<configure html4-math fontmath\><<<
\:CheckOption{fonts} \if:Option
  \Configure{mathit}{\Protect\HCode{<span class="mathit">}}
                    {\Protect\HCode{</span>}}
  \Configure{mathbf}{\Protect\HCode{<span class="mathbf">}}
                    {\Protect\HCode{</span>}}
  \Configure{mathtt}{\Protect\HCode{<span class="mathtt">}}
                    {\Protect\HCode{</span>}}
  \Configure{mathsf}{\Protect\HCode{<span class="mathsf">}}
                    {\Protect\HCode{</span>}}
  \Configure{mathrm}{\Protect\HCode{<span class="mathrm">}}
                    {\Protect\HCode{</span>}}
\fi
>>>









\<configure html4-math amsfonts\><<<  
\:CheckOption{fonts} \if:Option
  \Configure{mathbb}{\Protect\HCode{<span class="mathbb">}}
                    {\Protect\HCode{</span>}}
  \Configure{mathfrak}{\Protect\HCode{<span class="mathfrak">}}
                    {\Protect\HCode{</span>}}
\fi
>>>






\subsection{1: Large Operators}

\begin{verbatim}
\mathchardef\coprod="1360
\mathchardef\bigvee="1357
\mathchardef\bigwedge="1356
\mathchardef\biguplus="1355
\mathchardef\bigcap="1354
\mathchardef\bigcup="1353
\mathchardef\intop="1352 \def\int{\intop\nolimits}
\mathchardef\prod="1351
\mathchardef\sum="1350
\mathchardef\bigotimes="134E
\mathchardef\bigoplus="134C
\mathchardef\bigodot="134A
\mathchardef\ointop="1348 \def\oint{\ointop\nolimits}
\mathchardef\bigsqcup="1346
\mathchardef\smallint="1273
\end{verbatim}



\<plain tex classes\><<<
\Configure{MathClass}{1}{}{}{}{
   \mathchar"1360
   \mathchar"1357
   \mathchar"1356
   \mathchar"1355
   \mathchar"1354
   \mathchar"1353
   \mathchar"1352
   \mathchar"1351
   \mathchar"1350
   \mathchar"134E
   \mathchar"134C
   \mathchar"134A
   \mathchar"1348
   \mathchar"1346
   \mathchar"1273
}
>>>
\subsection{2: Binary Operations}

\begin{verbatim}
\mathchardef\triangleleft="212F
\mathchardef\triangleright="212E
\mathchardef\bigtriangleup="2234
\mathchardef\bigtriangledown="2235
\mathchardef\wedge="225E \let\land=\wedge
\mathchardef\vee="225F \let\lor=\vee
\mathchardef\cap="225C
\mathchardef\cup="225B
\mathchardef\ddagger="227A
\mathchardef\dagger="2279
\mathchardef\sqcap="2275
\mathchardef\sqcup="2274
\mathchardef\uplus="225D
\mathchardef\amalg="2271
\mathchardef\diamond="2205
\mathchardef\bullet="220F
\mathchardef\wr="226F
\mathchardef\div="2204
\mathchardef\odot="220C
\mathchardef\oslash="220B
\mathchardef\otimes="220A
\mathchardef\ominus="2209
\mathchardef\oplus="2208
\mathchardef\mp="2207
\mathchardef\pm="2206
\mathchardef\circ="220E
\mathchardef\bigcirc="220D
\mathchardef\setminus="226E % for set difference A\setminus B
\mathchardef\cdot="2201
\mathchardef\ast="2203
\mathchardef\times="2202
\mathchardef\star="213F
\mathcode`\*="2203 % \ast
\mathcode`\+="202B
\mathcode`\-="2200
\end{verbatim}

\<plain tex classes\><<<
\Configure{MathClass}{2}{}{}{}{
*-+/
\mathchar"212F
\mathchar"212E
\mathchar"2234
\mathchar"2235
\mathchar"225E 
\mathchar"225F 
\mathchar"225C
\mathchar"225B
\mathchar"227A
\mathchar"2279
\mathchar"2275
\mathchar"2274
\mathchar"225D
\mathchar"2271
\mathchar"2205
\mathchar"220F
\mathchar"226F
\mathchar"2204
\mathchar"220C
\mathchar"220B
\mathchar"220A
\mathchar"2209
\mathchar"2208
\mathchar"2207
\mathchar"2206
\mathchar"220E
\mathchar"220D
\mathchar"226E 
\mathchar"2201
\mathchar"2203
\mathchar"2202
\mathchar"213F
}
>>>
\subsection{3: Relational Operations}

The catcode is needed because 303A is \verb':'.

\<plain tex classes\><<<
\Configure{MathClass}{3}{}{}{}{
   \mathchar"3128
   \mathchar"3129
   \mathchar"312A
   \mathchar"312B
   \mathchar"315E
   \mathchar"315F
   \mathchar"3210
   \mathchar"3211
   \mathchar"3212
   \mathchar"3213
   \mathchar"3214
   \mathchar"3215
   \mathchar"3216
   \mathchar"3217
   \mathchar"3218
   \mathchar"3219
   \mathchar"321A
   \mathchar"321B
   \mathchar"321C
   \mathchar"321D
   \mathchar"321E
   \mathchar"321F
   \mathchar"3220
   \mathchar"3221
   \mathchar"3224
   \mathchar"3227
   \mathchar"3232
   \mathchar"3233
   \mathchar"3236
   \mathchar"3237
   \mathchar"323F
   :=><
   \mathchar"322F
   \mathchar"3276
   \mathchar"3277
   \mathchar"326B
   \mathchar"326A
   \mathchar"3261
   \mathchar"3260
   \mathchar"3225
   \mathchar"3226
   \mathchar"322D
   \mathchar"322E
   \mathchar"322C
   \mathchar"3228
   \mathchar"3229
}
>>>



\begin{verbatim}
\mathcode`\>="313E
\mathcode`\<="313C
\mathcode`\=="303D
\mathcode`\:="303A
\mathchardef\leq="3214 \let\le=\leq
\mathchardef\geq="3215 \let\ge=\geq
\mathchardef\succ="321F
\mathchardef\prec="321E
\mathchardef\approx="3219
\mathchardef\succeq="3217
\mathchardef\preceq="3216
\mathchardef\supset="321B
\mathchardef\set="321A
\mathchardef\supseteq="3213
\mathchardef\seteq="3212
\mathchardef\in="3232
\mathchardef\ni="3233 \let\owns=\ni
\mathchardef\gg="321D
\mathchardef\ll="321C
\mathchardef\not="3236
\mathchardef\leftrightarrow="3224
\mathchardef\leftarrow="3220 \let\gets=\leftarrow
\mathchardef\rightarrow="3221 \let\to=\rightarrow
\mathchardef\mapstochar="3237 \def\mapsto{\mapstochar\rightarrow}
\mathchardef\sim="3218
\mathchardef\simeq="3227
\mathchardef\perp="323F
\mathchardef\equiv="3211
\mathchardef\asymp="3210
\mathchardef\smile="315E
\mathchardef\frown="315F
\mathchardef\leftharpoonup="3128
\mathchardef\leftharpoondown="3129
\mathchardef\rightharpoonup="312A
\mathchardef\rightharpoondown="312B
\mathchardef\propto="322F
\mathchardef\sqsubseteq="3276
\mathchardef\sqsupseteq="3277
\mathchardef\parallel="326B
\mathchardef\mid="326A
\mathchardef\dashv="3261
\mathchardef\vdash="3260
\mathchardef\nearrow="3225
\mathchardef\searrow="3226
\mathchardef\nwarrow="322D
\mathchardef\swarrow="322E
\mathchardef\Leftrightarrow="322C
\mathchardef\Leftarrow="3228
\mathchardef\Rightarrow="3229
\end{verbatim}
\subsection{4/5: Delimiters}

\begin{verbatim}
\mathcode`\(="4028
\mathcode`\)="5029
\mathcode`\[="405B
\mathcode`\]="505D
\mathcode`\{="4266
\mathcode`\}="5267
\delcode`\(="028300
\delcode`\)="029301
\delcode`\[="05B302
\delcode`\]="05D303
\def\lmoustache{\delimiter"437A340 } % top from (, bottom from )
\def\rmoustache{\delimiter"537B341 } % top from ), bottom from (
\def\lgroup{\delimiter"462833A } % extensible ( with sharper tips
\def\rgroup{\delimiter"562933B } % extensible ) with sharper tips
\def\backslash{\delimiter"26E30F } % for double coset G\backslash H
\def\rangle{\delimiter"526930B }
\def\langle{\delimiter"426830A }
\def\rbrace{\delimiter"5267309 } \let\}=\rbrace
\def\lbrace{\delimiter"4266308 } \let\{=\lbrace
\def\rceil{\delimiter"5265307 }
\def\lceil{\delimiter"4264306 }
\def\rfloor{\delimiter"5263305 }
\def\lfloor{\delimiter"4262304 }
\def\arrowvert{\delimiter"26A33C } % arrow without arrowheads
\def\Arrowvert{\delimiter"26B33D } % double arrow without arrowheads
\def\bracevert{\delimiter"77C33E } % the vertical bar that extends braces
\def\Vert{\delimiter"26B30D } \let\|=\Vert         How should these be treated?
\def\vert{\delimiter"26A30C }                       "   "       "    "   "
\def\uparrow{\delimiter"3222378 }
\def\downarrow{\delimiter"3223379 }
\def\updownarrow{\delimiter"326C33F }
\def\Uparrow{\delimiter"322A37E }
\def\Downarrow{\delimiter"322B37F }
\def\Updownarrow{\delimiter"326D377 }
\end{verbatim}

The comamnds \verb'\Configure{MathClass}{4}...'
and \verb'\Configure{MathClass}{5}...'
are for unmatched delimiters, and the comamnd
\verb'\Configure{MathDelimiters}{(}{)}' is for matched ones.


\<plain tex classes\><<<
\Configure{MathClass}{4}{}{}{}{}
\Configure{MathDelimiters}{(}{)}
\Configure{MathDelimiters}{[}{]}
\Configure{MathDelimiters}{\mathchar"4262}{\mathchar"5263}
\Configure{MathDelimiters}{\mathchar"4264}{\mathchar"5265}
\Configure{MathDelimiters}{\mathchar"4266}{\mathchar"5267}
\Configure{MathDelimiters}{\mathchar"4268}{\mathchar"5269}
\Configure{MathDelimiters}{\mathchar"4300}{\mathchar"5301}
\Configure{MathDelimiters}{\mathchar"4302}{\mathchar"5303}
\Configure{MathDelimiters}{\mathchar"4304}{\mathchar"5305}
\Configure{MathDelimiters}{\mathchar"4306}{\mathchar"5307}
\Configure{MathDelimiters}{\mathchar"4308}{\mathchar"5309} 
\Configure{MathDelimiters}{\mathchar"430A}{\mathchar"530B}
>>>

\begin{verbatim}
\mathcode`\?="503F
\end{verbatim}


\subsection{6: Punctuation Marks}

\begin{verbatim}
\mathchardef\ldotp="613A % ldot as a punctuation mark
\mathchardef\cdotp="6201 % cdot as a punctuation mark
\mathchardef\colon="603A % colon as a punctuation mark
\mathcode`\;="603B
\mathcode`\,="613B
\end{verbatim}



\<plain tex classes\><<<
\Configure{MathClass}{6}{}{}{}{
\mathchar"613A 
\mathchar"6201 
\mathchar"603A 
?; ,
}
>>>


\subsection{Questions}

\begin{verbatim}
\delcode`\<="26830A
\delcode`\>="26930B
\delcode`\|="26A30C
\delcode`\\="26E30F

% N.B. { and } should NOT get delcodes; otherwise parameter grouping fails!

\def\mathhexbox#1#2#3{\leavevmode
  \hbox{$\m@th \mathchar"#1#2#3$}}
\def\dag{\mathhexbox279}
\def\ddag{\mathhexbox27A}
\def\S{\mathhexbox278}
\def\P{\mathhexbox27B}
\end{verbatim}


\subsection{Type 4: Math Open}
latex.ltx, fontmath.ltx, plain.tex



\section{fleqn.sty}

\<configure html4-math fleqn\><<<
\Configure{equation}
  {\:xhtml{\IgnorePar\EndP}%
           \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
   \Configure{$}{\PicMath}{\EndPicMath}{}%
  }
  {\IgnorePar\HCode{</td><td width="5\%">}}
  {\end:TTT\IgnorePar\par}
>>>
\section{emulateapj.clo}

\<configure html4 emulateapj\><<<
\Configure{slugcomment}
   {\HCode{<div class="slugcomment">}}
   {\HCode{</div>}}
\Css{.slugcomment{text-align:center;font-size:80\%;
                  font-style: italic;}}
\Configure{subtitle}{\HCode{<div class="subtitle">}}{\HCode{</div>}}
\Configure{submitted}{}{\Tg<br\xml:empty>}
\Configure{title}{\HCode{<h1 class="title">}}{\HCode{</h1>}}
\Css{.title{text-align:center;}}
\Configure{author}
   {\IgnorePar\EndP\HCode{<div class="author">}}{\HCode{</div>}}
\Css{div.author{text-align:center;}}
\Configure{affil}{\HCode{<div class="affil"><div>}}{\HCode{</div></div>}}
\Css{.affil{text-align:center;}}
\Css{.affil div{text-align:left;
   margin-right:15pt;margin-left:15pt;}}
\Configure{keywords}
   {\IgnorePar\EndP\HCode{<div class="keywords"><div>}}
   {\HCode{</div></div>}}
\Css{.keywords{text-align:center;}}
\Css{.keywords div{text-align:left; margin-right:15pt;margin-left:30pt;
   text-indent:-15pt;}}
\Configure{subjectheadings}
   {\HCode{<div class="subjectheadings"><div>}}{\HCode{</div></div>}}
\Css{.subjectheadings{text-align:center;}}
\Css{.subjectheadings div{text-align:left;
   margin-right:15pt;margin-left:15pt;}}

\Css{.abstract {margin-right:15pt;margin-left:15pt;}}
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else 
       \HCode{<span class="titlemark">}\@seccntformat{section}%
       \thesection\HCode{</span>}\fi}
\Configure{section}{}{}
   {\IgnorePar \EndP\IgnorePar\HCode{<h3 class="sectionHead"\a:LRdir>}
    \TitleMark{. \space}}
   {\HCode{</h3>}\IgnoreIndent \par}
\ConfigureEnv{references}
  {\IgnorePar\EndP\Tg<div class="references">}  
  {\IgnorePar\EndP\Tg</div>} {}{}
\Css{.references p { margin: 0.35em; text-indent:-2em;margin-left:2em;}}
>>>

%%%%%%%%%%%%%%%%%
\section{vanilla}

\<configure html4 vanilla\><<<
|<32 amsppt, 32,4 vanilla|>
|<32,4 vanilla|>
|<config vanilla.sty 4.0t|>
>>>


\<32,4 vanilla\><<<
\Configure{matrix}
   {\EndP\HCode{<center><table\Hnewline
        border="0" cellpadding="0" cellspacing="15" class="matrix">}}
   {\HCode{</table></center>}\IgnorePar}
   {\HCode{<tr\Hnewline valign="top">}}{\HCode{</tr>}}
   {\HCode{<td>}}   {\HCode{</td>}}
\Configure{align}
   {\EndP\HCode{<center><table\Hnewline
        border="0" cellpadding="0" cellspacing="15" class="align">}}
   {\HCode{</table></center>}\IgnorePar}
   {\HCode{<tr\Hnewline valign="top">}}{\HCode{</tr>}}
   {\HCode{<td>}}   {\HCode{</td>}}
>>>
\<config vanilla.sty 4.0t\><<<
\Configure{heading}
   {}{}{\IgnorePar\EndP\HCode{<h2 class="heading">}}{\HCode{</h2>}}
\ConfigureToc{heading}
  {}{\HCode{<span class="heading">}}{}{\HCode{</span><br\xml:empty>}}
\Configure{subheading}
  {}{}{\EndP\HCode{<h3 class="subheading">}}{.\HCode{</h3>}}
\ConfigureToc{subheading}
  {}{\HCode{<span class="subheading">}}{}{\HCode{</span><br\xml:empty>}}
\Configure{demo}
    {\IgnorePar\EndP\HCode{<div class="demo"><span class="demo">}}
    {\HCode{</span>}}    {\IgnorePar\EndP\HCode{</div>}}
>>>


\<config vanilla.sty 4.0t\><<<
\Configure{aligned}
   {\EndP\HCode{<center><table\Hnewline
        border="0" cellpadding="0" cellspacing="15" class="aligned">}}
   {\HCode{</table></center>}\IgnorePar}
   {\HCode{<tr\Hnewline valign="top">}}{\HCode{</tr>}}
   {\HCode{<td>}}   {\HCode{</td>}}
>>>



%%%%%%%%%%%%%%%%%%%%%%
\section{tugboat}
%%%%%%%%%%%%%%%%%%%%%%


\<configure html4 tugboat\><<<
\Configure{head}{}{} 
   {\NoFonts \ifvmode \IgnorePar\fi \EndP\IgnorePar 
    \HCode{<h3 class="headHead"\a:LRdir>}\HtmlParOff} 
   {\HCode{</h3>}\HtmlParOn \EndNoFonts \IgnoreIndent \ShowPar \par} 
\Configure{subhead}{}{} 
   {\NoFonts \ifvmode \IgnorePar\fi \EndP\IgnorePar 
    \HCode{<h4 class="subheadHead"\a:LRdir>}\HtmlParOff} 
   {\HCode{</h4>}\HtmlParOn \EndNoFonts \IgnoreIndent \ShowPar \par} 
\Configure{subsubhead}{}{} 
   {\NoFonts \ifvmode \IgnorePar\fi \EndP\IgnorePar 
    \HCode{<h5 class="subsubheadHead"\a:LRdir>}\HtmlParOff} 
   {\HCode{</h5>}\HtmlParOn \EndNoFonts \IgnoreIndent \ShowPar \par} 
>>>


\<configure html4 tugboat\><<<
\Configure{figure}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="figure">}\par\ShowPar}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}  
>>>


\<configure html4 tugboat\><<<
\Configure{verbatim}
   {{\everypar{}\leavevmode}\EndP
    \HCode{<div class="verbatim\:ruled">}\par\ShowPar}  
   {{\everypar{}\leavevmode}\EndP \HCode{</div>}\par\ShowPar}  
\Configure{verb}
   {\HCode{<span class="verb">}}  
   {\HCode{</span>}}  
\Css{div.verbatim p, div.verbatim-ruled p {margin:0.2em}}
\Css{div.verbatim-ruled { border-top: 1px solid black; 
                          border-bottom: 1px solid black; }}
>>>


\<configure html4 tugboat\><<<
\Configure{display-list}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="list"><!--cols: \the\@cols-->}\par\ShowPar}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}  
   {\HCode{<span class="listitem">}}
   {\HCode{</span>}}
\Configure{inline-list}
   {\HCode{<span class="list"><!--cols: \the\@cols-->}\par\ShowPar}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</span>}\par}  
   {\HCode{<span class="listitem">}}
   {\HCode{</span>}}
\Css{div.list p span.listitem {text-indent:-3em; margin-right:1em;}} 
\Css{div.list { margin-left:3em;}} 
>>>

\<configure html4 tugboat\><<<
\Configure{rtitle}
   {\ifvmode \IgnorePar \fi  \EndP  
    \HCode{<div class="rtitle">}\IgnorePar}  
   {\HCode{</div>}\ShowPar\par}
\Configure{title} 
   {\ifvmode \IgnorePar \fi  \EndP 
    \HCode{<h2 class="title">}\IgnorePar} 
   {\HCode{</h2>}\IgnoreIndent\par} 
\Configure{address} 
   {\ifx\@addressstyle\@inlinestyle
       \HCode{<span class="address">}%
    \else
       \ifvmode \IgnorePar \fi  \EndP 
       \HCode{<div class="address">}%
    \fi } 
   {\ifx\@addressstyle\@inlinestyle
       \HCode{</span>}%
    \else
       \ifvmode \IgnorePar \fi  \EndP 
       \HCode{</div>}%
    \fi } 
\Configure{netaddress} 
   {\HCode{<span class="netaddress">}} 
   {\HCode{</span>}} 
\Configure{author} 
   {\HCode{<span class="author">}} 
   {\HCode{</span>}} 
\Configure{authorlist}
   {\ifvmode \IgnorePar \fi  \EndP 
    \HCode{<div class="authorlist">}\IgnorePar} 
   {\ifvmode \IgnorePar \fi  \EndP 
    \HCode{</div>}\IgnoreIndent\par\ShowPar}    
\Css{div.authorlist {margin-left:2em;}}
|<tugboat cmn|>
>>>

\<tugboat cmn\><<<
\Configure{signature}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="signature">}\par\ShowPar}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\ShowPar\par}  
\Css{div.signature p{ margin-top:0.3em; margin-bottom:0.3em;}}
\Css{div.signature { white-space:nowrap; margin-left:70\%;  }}
\Configure{signaturemark}
   {\HCode{<span class="signaturemark">} }  
   {\HCode{</span>}}  
\Css{span.signaturemark {margin-top:1.5em;}}
>>>



\<tugboat cmn\><<<
\Configure{issno}
   {\hbox{\HCode{<span class="issno">}}}
   {\hbox{\HCode{</span>}}}
\Configure{volyr}
   {\hbox{\HCode{<span class="volyr">}}}
   {\hbox{\HCode{</span>}}}
\Configure{volno}
   {\hbox{\HCode{<span class="volno">}}}
   {\hbox{\HCode{</span>}}}
>>>

%%%%%%%%%%%%%%%%%%%%%%
\section{ltug boat/proc}
%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 ltugboat\><<<
|<quote 4|>
\ConfigureEnv{verbatim}
   {\par}{|<try inline par|>}{}{}
\Configure{author}
   {\hbox{\HCode{<span class="author">}}}
   {\hbox{\HCode{</span>}}}
\Configure{address}
   {\hbox{\HCode{<span class="address">}}}
   {\hbox{\HCode{</span>}}}
\Configure{netaddress}
   {\hbox{\HCode{<span class="netaddress">}}}
   {\hbox{\HCode{</span>}}}
\Configure{PersonalURL}
   {\hbox{\HCode{<span class="PersonalURL">}}}
   {\hbox{\HCode{</span>}}}
\Configure{signaturemark}
   {\hbox{\HCode{<span class="signaturemark">}}}
   {\hbox{\HCode{</span> }}}
>>>


\<configure html4 ltugboat\><<<
\Configure{makesignature}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="makesignature">}%
    \bgroup     \Configure{HtmlPar}{}{}{}{}%
       \Configure{rightline}{}{}%
       \IgnorePar
   }
   {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
\Configure{signature}
   {\def\||{\HCode{<br />}}%
    \Configure{HtmlPar}
       {}{\HCode{<br />}}
       {}{\HCode{}}%
   }
\Css{.makesignature{margin-left:60\%; white-space: nowrap;}}
>>>




\<configure html4 ltugboat\><<<
|<tug boat maketitle|>
\Configure{titlex}
   {\HCode{<div class="titlex">}}
   {\HCode{</div>}}
\Css{div.titlex p{margin-bottom:1em;}}
|<ltugboat congig|>
>>>


\<ltugboat congig\><<<
\Configure{sectitle}
   {\ifvmode \IgnorePar\fi 
    \EndP \HCode{<div class="sectitle">}%
    \SaveEndP\bgroup\everypar{}}
   {\egroup\RecallEndP \ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
>>>


\<configure html4 ltugproc\><<<
|<tug proc maketitle|>
\ConfigureEnv{abstract}
   {}{} {}{}
\Configure{abstract}
   {\bgroup
    \HCode{<div class="abstract">}\IgnoreIndent\par}
   {\ifvmode\IgnorePar\fi \EndP\HCode{</div>}\egroup}
\Css{div.abstract {margin-left:1em; margin-right:1em; 
                   text-align:left;}}
\Css{div.maketitle div.centerline {margin-top:1em;}}
>>>

\<configure html4 ltugproc\><<<
\Configure{abstractHead}
   {\bgroup
      \Configure{centerline}{}{}
      \NoFonts
      \ifvmode \IgnorePar\fi \EndP \HCode{<h3>}%
   }
   {\ifvmode \IgnorePar\fi \EndP \HCode{</h3>}%
    \EndNoFonts \egroup}
>>>




%%%%%%%%%%%%%%%%%
\section{tex4ht}
%%%%%%%%%%%%%%%%%

\<configure html4 tex4ht\><<<
|<config tex4ht|>
|<title for hypertext page|>
|<tex4ht doctype|>
>>>
   

\<config tex4ht\><<<
\:CheckOption{NoFonts} \if:Option
   \NoFonts
\else
   \Log:Note{to ignore CSS font decoration, use the `NoFonts'
       command line option}
\fi
>>>



\<config tex4ht\><<<
\Configure{HVerbatim+}{\z@}{\:nbsp}
\:CheckOption{jpg} \if:Option
   \Configure{Picture}{.jpg}  
\else
   \Log:Note{for jpg bitmaps, use the `jpg'
       command line option}
\fi
\:CheckOption{gif} \if:Option 
   \Configure{Picture}{.gif}  
\else
   \Log:Note{for gif bitmaps, use the `gif'
       command line option}
\fi
>>>





\<configure html4 tex4ht\><<<
|<tex4ht HTML|>
>>>

\<configure html4 tex4ht\><<<
\newif\ifHCond
|<global HtmlPar|>
\Css{p.noindent { text-indent: 0em }}
\Css{p.nopar { text-indent: 0em; }}
\Css{p.indent{ text-indent: 1.5em }}
\NewConfigure{!P}[1]{\expandafter\concat:config\csname a:!P\endcsname{#1}}
\expandafter\let\csname a:!P\endcsname|=\relax
\Configure{!P}{}
>>>

\<global HtmlPar\><<<
\Configure{HtmlPar}
  {\EndP\HCode{|<show input line no|><p \csname a:!P\endcsname
         class="no\ifHCond par\else indent\fi">}}
  {\EndP\HCode{|<show input line no|><p \csname a:!P\endcsname
        class="\ifdim \parindent=\z@ no\fi indent">}}
  {\:xhtml{\Tg</p>}}
  {\:xhtml{\Tg</p>}}%
>>>

\<configure html4 tex4ht\><<<
\NewConfigure{!BODY}[1]{\expandafter\concat:config
  \csname a:!BODY\endcsname{#1}}
\expandafter\let\csname a:!BODY\endcsname|=\relax
\Configure{!BODY}{}
>>>

\<configure html4 tex4ht\><<<
\NewConfigure{LRdir}[1]{\concat:config\a:LRdir{#1}}
\let\a:LRdir|=\relax
\Configure{LRdir}{}
>>>


\<configure html4 tex4ht\><<<
\Configure{crosslinks+}
   {\IgnorePar\EndP\HCode{|<show input line no|>%
                          <div class="crosslinks"><p class="noindent">}}
   {\HCode{</p></div>}\par\ShowPar}
   {\IgnorePar\EndP\HCode{|<show input line no|>%
                          <div class="crosslinks"><p class="noindent">}}
   {\HCode{</p></div>}\par\ShowPar}
\Css{@media print {div.crosslinks {visibility:hidden;}}}

\Configure{halignTR} 
   {\HCode{ valign="baseline"}}
\Configure{halignTBL} 
% %   {t}{\HCode{ valign="top"}}
% %   {b}{\HCode{ valign="baseline"}}
% %   {c}{\HCode{ valign="middle"}}
    {}

\Configure{halign}
   {\EndP\halignTB{halign}}   {\HCode{</table>}}
   \R:HA\r:HA\D:HA\d:HA
\Configure{pic-halign}{}
>>>

The following should be just under LaTeX.

\<configure html4 tex4ht\><<<
\Configure{halignTD} {}{}
   {<}{\HCode{ style="white-space:nowrap; text-align:left;"}}
   {-}{\HCode{ style="white-space:nowrap; text-align:center;"}}
   {>}{\HCode{ style="white-space:nowrap; text-align:right;"}}
   {^}{\HCode{ valign="top" style="white-space:nowrap;"}}
   {=}{\HCode{ valign="baseline" style="white-space:nowrap;"}}
   {||}{\HCode{ valign="middle" style="white-space:nowrap;"}}
   {_}{\HCode{ valign="bottom" style="white-space:nowrap;"}}
   {p}{\HCode{ style="text-align:left;"}\Protect\a:HColWidth}
   {m}{\HCode{ style="white-space:nowrap; text-align:left;" valign="middle"}}
   {b}{\HCode{ style="white-space:nowrap; text-align:left;" valign="baseline"}}
   {}
\NewConfigure{HColWidth}{1}
\Configure{HColWidth}{}
>>>


The following code allows width specifications of p-columns of tables
through the command line option `p-width'.

The command line option activates a configuration similar to the
following ones.

   \Configure{HColWidth}
      {\HCode{ style="width:\HColWidth"}}

   \Configure{HColWidth}
      {\HCode{ style="width:
                      \ifnum \HCol=1 160\fi
                      \ifnum \HCol=3 500\fi
       "}}

Try the above examples with the following source under different font
sizes in the browser.

   \begin{tabular}{p{2cm}cp{3cm}}
   1 2 3 1 2 3 & x & 1 2 3 1 2 3
   \end{tabular}

The configuration provided through the command line option `p-width'
takes to some degree into account the size of fonts in use within the
HTML displays.  Yet, not all browsers react properly to the size
changes.





\<configure html4 latex\><<<
\:CheckOption{p-width} \if:Option 
  |<10 em constant|>
  \Configure{HColWidth}
     {\tmp:dim=\HColWidth \divide\tmp:dim by \ten:Em\relax
      \tmp:dim=10\tmp:dim
      \HCode{ style="width:\expandafter\x:Em \the\tmp:dim em;"}}
\else
   \Log:Note{for width specifications of tabular p entries, use
       the `p-width' command line option or a configuration similar
       to \string\Configure{HColWidth}{\string\HCode
       { style="width:\string\HColWidth"}}}
\fi
>>>

\<configure html4 tex4ht\><<<
|<img src dir|>
\Configure{IMG}
  {\ht:special{t4ht=<img\Hnewline src="|<a:imgdir|> }}
  {\ht:special{t4ht=" alt="}}
  {" }
  {\ht:special{t4ht=" }}
  {\ht:special{t4ht=\xml:empty>}}
\Css{a img { border-top: 0; border-left: 0; border-right: 0; }}
>>>




A change from the \verb'-' in the \verb'%' patterns of c to, say \verb'@',
requires a \verb'Font_hyphen: @' in the \verb'.lg' file for a match in the
css output of t4ht.

\<configure html4 tex4ht\><<<
\Configure{htf}{0}{+}{<span\Hnewline
   class="}{\%s}{-\%s}{x-x-\%d}{}{">}{</span>}
|<img src dir|>
\Configure{htf}{1}{+}{<img\Hnewline
   src="|<a:imgdir|> }{" alt="}{" class="}{\%s}{-\%d}{x-x-\%x}{" />}
\Configure{htf}{3}{+}{<img\Hnewline
   src="|<a:imgdir|> }{" alt="}{" class="\%s-}{\%s}{-\%d}{x-x-\%x}%
   {" align="middle" />}
>>>


\<configure html4 tex4ht\><<<
\Configure{htf}{4}{+}{<span\Hnewline
   class="}{}{}{}{}{small-caps">}{</span>}
\Configure{htf}{6}{+}{<u\Hnewline
   class="}{}{}{}{}{underline">}{</u>}
>>>

% \Configure{htf}{4}{+}{<span\Hnewline                               
%    class="}{}{}{}{}{small-caps">}{</span>}
% \Configure{htf}{6}{+}{<span\Hnewline                               
%    class="}{}{}{}{}{underline">}{</span>}


\<configure html4 tex4ht\><<<
\Configure{htf}{8}{+}
   {<sup class="htf"><strong>}{}{}{}{}{}{</strong></sup>}
\Configure{htf}{10}{+}
   {<span class="htf-cmbx">}{}{}{}{}{}{</span>}
\Configure{htf}{12}{+}
   {<span\Hnewline class="htf-calligraphy">}{}{}{}{}{}{</span>}
\Configure{htf}{14}{+}
   {<span\Hnewline class="htf-italic">}{}{}{}{}{}{</span>}
\Configure{htf}{16}{+}
   {<span\Hnewline class="htf-bold">}{}{}{}{}{}{</span>}
\Configure{htf}{18}{+}
   {<span\Hnewline class="htf-calligraphy-bold">}{}{}{}{}{}{</span>}
\Configure{htf}{20}{+}
   {<span\Hnewline class="htf-flip-hor">}{}{}{}{}{}{</span>}
\Configure{htf-css}{4}{.small-caps{font-variant: small-caps; }}  
\Configure{htf-css}{10}{.htf-cmbx {font-weight: bold; font-style:normal;}}
\Configure{htf-css}{12}{.htf-calligraphy {font-family:cursive}}   
\Configure{htf-css}{14}{.htf-italic {font-style: italic;}}
\Configure{htf-css}{16}{.htf-bold {font-weight: bold;}}   
\Configure{htf-css}{12}{.htf-calligraphy-bold {font-family:cursive ; 
   font-weight: bold; }}   
>>>



\verb'\Configure{htf}{0}{+}{<!--span  class="}{\%s}{-\%s}{--\%d}{}{"-->}{<!--/span-->}' caused netscape to
loose spaces between comments.

\<configure html4 tex4ht\><<<
\Configure{@Picture}{\:class}
\def\:class#1{ class="#1"
       \expandafter\ifx\csname a:@#1\endcsname\relax\else
       \csname a:@#1\endcsname\fi}
>>>

\<contribute to picmath of 4.0t\><<<
\NewConfigure{@neq}{1}
\Configure{@neq}{align="middle"}
\NewConfigure{@buildrelover}{1}
\Configure{@buildrelover}{align="middle"}
\NewConfigure{@doteq}{1}
\Configure{@doteq}{align="middle"}
\NewConfigure{@underbrace}{1}
\NewConfigure{@frac}{1}
\Configure{@frac}{align="middle"}
\NewConfigure{@left}{1}
\Configure{@left}{align="middle"}
>>>





\<configure html4 tex4ht\><<<
\Css{center { margin-top:1em; margin-bottom:1em; }}
\Css{td center { margin-top:0em; margin-bottom:0em; }}
>>>

\<configure html4 tex4ht\><<<
\NewConfigure{Canvas}[4]{\ht:special{t4ht"%
   *<span\Hnewline class="Canvas">%
   *X<span style="position:relative;\Hnewline
     width:\%.2f#4;"></span></span>%
   **<span\Hnewline style="position:absolute; left:\%.2f#4;
     top:\%.2f#4;"\Hnewline class="Canvas-xy"><span\Hnewline
     class="Canvas-char">%
   *</span></span>%
   *<span class="Canvas-HR"\Hnewline style="position:absolute;
     left:\%.2f#4;top:\%.2f#4;width:\%.2f#4;"
     ><hr\Hnewline style="height:\%.2f#4;"></span>%
   *#1*#2*#1*#2*#3}}
\Configure{Canvas}{0.00000290646}{0.0}{0.5}{ex}
\Css{.Canvas { position:relative; }}
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Subdirectories for Images}
%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<a:imgdir\><<<
\a:imgdir >>>

\<img src dir\><<<
\ifx \a:imgdir\:UnDef
   \let\a:imgdir=\empty
   \catcode`\:=12
      \expandafter
      \def\csname :temp\endcsname#1imgdir:#2,#3|<par del|>{%
         \if !#2!\else \expandafter
                          \def\csname a:imgdir\endcsname{#2}\fi}
      \expandafter\csname :temp\expandafter\endcsname
         \Preamble ,imgdir:,|<par del|>%
   \catcode`\:=11
   \Log:Note{for addressing images in
       a subdirectory,  use the command line option `imgdir:.../'}
\fi
>>>

A = instead of \verb+->+ works well on Windows NT but unfortunately
 there's a problem with Windows 98. This OS insists on seeing = as a
 delimiter and reports an error.



\<configure html4 tex4ht2\><<<
\ifx \a:imgdir\empty\else
   \let\GIF:NAME=\gif:name
   \def\gif:name#1{%
     \let\:temp=\GIF:NAME
     \ifx \gif:nm\cond:imgs
        \def\:next{\edef\:tempa{#1}\expandafter\I:images \:tempa/....}%
     \else
        \def\:next{\GIF:NAME{#1}}%
      \fi \:next}

   \def\cond:imgs{\edef\gif:nm}

   \def\I:images#1/#2....{%
      \edef\:next{\noexpand\:temp{\:tempa}}%
      \if .#2.\else \edef\:next{\noexpand\no:images{\:tempa}}\fi
      \:next}
   \def\no:images#1{\let\a:imgdir=\empty \:temp{#1}}
\fi
>>>

Test file:

\begin{verbatim}
\documentclass{article}
\begin{document}
\Picture{xx.png}
\Picture{http://wwww.foo.goo/xx.png}

With image: $\left( x_{n}\right) \alpha_m$.

\end{document}
\end{verbatim}







%%%%%%%%%%%%%%%%
\section{th4}
%%%%%%%%%%%%%%%%

\<configure html4 th4\><<<
|<th4 for non-private use|>
\:CheckOption{th4}\if:Option \else \expandafter\endinput\fi
|<th4 sections|>
|<th4 tocs|>
|<th4 lists|>
|<th4 tables|>
|<th4 verbatim|>
|<th4 columns|>
|<th4 index|>
>>>


\<th4 for non-private use\><<<
\:CheckOption{javascript}
   \if:Option  \else\:CheckOption{th4}\fi
\if:Option 
   \Configure{JavaScript}
      {\HCode{<script type="text/JavaScript" ><!--\Hnewline}}
      {\HCode{//-->\Hnewline </script>}}
\fi
>>>


\<th4 for non-private use\><<<
\:CheckOption{draw} \if:Option \:CheckOption{th4} \if:Option 
   \Configure{Fig}
      {\ifx \AltFig\empty \Picture*{ \a:@Picture{Fig}}%
       \else              \Picture*[\AltFig]{ \a:@Picture{Fig}}\fi} 
      {\EndPicture}
\fi \fi
>>>


\<th4 columns\><<<
\Configure{Columns}
  {\IgnorePar\EndP
      \HCode{<table \Hnewline cellspacing="15"><tr valign="top">}}
  {\HCode{</tr></table>}}
  {\HCode{<td>}\ColMag{1.03}}
  {\IgnorePar\EndP\HCode{</td>}}
>>>

\<th4 index\><<<
\:CheckOption{index}\if:Option 
   \Configure{index}
     {\bgroup
         \Configure{Columns}
           {\IgnorePar\EndP
               \HCode{<table \Hnewline class="index" width="100\%"
                           cellspacing="15"><tr valign="top">}}
           {\HCode{</tr></table>}}
           {\HCode{<td>}\ColMag{1.1}}
           {\IgnorePar\EndP\HCode{</td>}}
        \Columns{2}\IndexFonts} 
     {\EndColumns \egroup}
     {\bgroup\IgnorePar\EndP
         \expandafter\ifx \csname prev:A\endcsname\relax
            \else \hfil\break \Tg<br />\par\IgnorePar \fi \IndexSec}
     {\egroup~~~~}
     {\bgroup\hfil\break\Tg<br />~~~}{\egroup~~~~}
     {~}{}
   \def\Idx:ch{0}
   \def\IndexSec#1{%
      \tmp:cnt=`#1\relax
      \ifnum \tmp:cnt>`Z\advance\tmp:cnt by -32 \fi
      \ifnum \tmp:cnt<`A\else \ifnum \tmp:cnt>`Z \else
          \ifnum \Idx:ch<\tmp:cnt
          \bgroup
            \Configure{centerline}
               {\HCode{<div\Hnewline class="IndexSec">}}{\HCode{</div>}}
             \leftline{\bf \char\tmp:cnt }%
             \global\let\prev:A|=\:UnDef
             \xdef\Idx:ch{\the\tmp:cnt}%
          \egroup
          \fi
      \fi \fi #1%
   }
   \Css{.IndexSec {margin-top:1em; margin-bottom:0.5em;}}
\fi
>>>


\<th4 sections\><<< 
\Configure{Part}{}{}{%
  \html:rightskip
  \bgroup
     \html:rightskip  \ht:everypar{} 
     \IgnorePar\EndP\HCode{<h1 class="PartHead">}\HtmlParOff}
  {\HCode{</h1>}\HtmlParOn\IgnoreIndent \egroup\par\ShowPar   \IgnoreIndent}
\Configure{LikeSection}{}{}
  {\IgnorePar  \EndP\HCode{<h3 class="LikeSectionHead">}}
  {\HCode{</h3>}\IgnoreIndent
    |<addr for Tag and Ref of Sec|>%
    \par \IgnoreIndent
  }
\ConfigureMark{Section}
  {\theSection}
\Configure{Section}
  {}{}
  {\IgnorePar\EndP\HCode{<h3 class="SectionHead">}%
   \gHAdvance\SectionCounter |by 1 \TitleMark\space
  }{\HCode{</h3>}\IgnoreIndent
     |<addr for Tag and Ref of Sec|>%
     \par \IgnoreIndent
  }
\Configure{SubSection}
  {}{}
  {\par \IgnorePar\EndP\HCode{<h3 class="SubSectionHead">}}
  {\HCode{</h3>}\IgnoreIndent \ShowPar}
>>>



\<th4 sections\><<<
\ConfigureMark{Chapter}
   {Chapter  \theChapterCounter}
\Configure{Chapter}
   {}{}   
   {\IgnorePar\EndP\HCode{<h2 class="ChapterHead"\a:LRdir>}%
      \TitleMark{\HCode{<br />}}}
   {\HCode{</h2>}\IgnoreIndent\IgnorePar}
\ConfigureMark{Appendix}{Appendix  \theChapterCounter}
\Configure{Appendix}
   {}{}   
   {\IgnorePar\EndP\HCode{<h2 class="AppendixHead"\a:LRdir>}%
         \TitleMark {\HCode{<br />}}}
   {\HCode{</h2>}\IgnoreIndent\IgnorePar}
\Configure{LikeChapter}
   {}{}   
   {\IgnorePar\EndP\HCode{<h2 class="LikeChapterHead"\a:LRdir>}\noindent
     \bgroup \def\uppercase##1{##1}}
   {\egroup \HCode{</h2>}\IgnoreIndent\IgnorePar }
>>>

\<th4 sections\><<< 
\Configure{+CutAt}{Chapter}{[}{] }
\Configure{+CutAt}{Section}{[}{] }
\Configure{+CutAt}{LikeSection}{[}{] }
\Configure{+CutAt}{SubSection}{[}{] }
>>>


\<th4 tocs\><<< 
\ConfigureToc{Chapter}
  {\HCode{<span class="ChapterToc">}}
  {~}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{Section}
  {\HCode{<span class="SectionToc">}~~~}
  {~}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{LikeSection}
  {}
  {\HCode{<span class="LikeSectionToc">}~~~}
  {}
  {\HCode{</span><br\xml:empty>}}
\ConfigureToc{SubSection}
  {}
  {\HCode{<span class="SubSectionToc">}~~~~~~}
  {}
  {\HCode{</span><br\xml:empty>}}
>>>


\<th4 verbatim\><<<
\Configure{Verbatim}
   {\ifvmode \IgnorePar\fi
    \HAssign\Verb:N = 0
    \EndP\HCode{<div class="Verbatim">}}
   {\IgnorePar\HCode{</div>}\par\ShowPar}
   {\HAdvance\Verb:N by 1 \ifnum \Verb:N>1 \HCode{<br />}\fi}
   {\:nbsp}
\Css{div.Verbatim { font-family: monospace; white-space: nowrap; }}  
\Css{body .Verbatim { margin: 1em; }}
>>>

\<th4 lists\><<<
\Configure{buttonList+}
    {\ifnum \ListCounter>1 \IgnorePar\EndP\HCode{<hr\xml:empty>}\fi
     \ShowPar\par\IgnoreIndent
    }
    {. #1\ShowPar} {\IgnorePar\EndP}  {\ListCounter}
>>>

\<th4 lists\><<<
\Configure{UList}
  {\IgnorePar\EndP\def\:tempB{disc}%
   \ifx\:tempA\:tempB \else \def\:tempB{square}\fi
   \ifx\:tempA\:tempB \else \def\:tempB{circle}\fi
   \hbox{\IgnorePar\EndP\HCode{<ul
   \ifx\:tempA\:tempB type="\:tempA" \fi \:UL:>}}}
  {\ht:everypar{}\EndP\HCode{</li></ul>}\ShowPar\par}
  {\ifnum \ListCounter>1  \EndP\HCode{</li>}\fi \hfil\break \HCode{<li>}}
\Configure{OList}
  {\IgnorePar\EndP\hbox{\HCode{<ol 
   \ifx \:temp\empty \else  type="\:temp" \fi 
   \:OL:>}}}
  {\ht:everypar{}\EndP
   \HCode{\ifnum \ListCounter=0<li>\fi </li></ol>}\ShowPar\par}
  {\ifnum \ListCounter>1  \EndP\HCode{</li>}\fi \hfil\break \HCode{<li>}}
>>>


\<th4 lists\><<< 
\Configure{Item}{}{\par}%
\Configure{DList}
   {\IgnorePar\EndP\HCode{<dl \:DL:>}}
   {\ht:everypar{}\EndP\HCode{\End:dd</dl>}%
    \ShowPar\par }
   {\IgnorePar\EndP\ifnum \ListCounter>1  \HCode{</dd>}\fi
    \HCode{<dt>}}
   {\HCode{</dt><dd>}\ShowPar \def\End:dd{</dd>}\hfil\break}
\Configure{buttonList}{}{}
  {}{.\ #1 }{\ListCounter}
>>>



\<th4 tables\><<< 
\HAssign\TableNo=0
\Configure{HTable}
  {\gHAdvance\TableNo by 1
   \ht:everypar{}\EndP\HCode{<table id="TBL-\TableNo"
       \Hnewline\TABLE:\:HTable:>}%
       \def\BR{\HCode{<br\xml:empty>}}}
  {\HCode{</table>}}
  {\HCode{<tr \:TR>}}{\HCode{</tr>}}
  {\ht:everypar{}\HCode{<\TD:typ\TD:more\Hnewline>}}
  {\ht:everypar{}\HCode{</\TD:typ>}}
\let\:HTable:|=\empty
\Configure{HTable+}
   {B}{ cellspacing="0" cellpadding="3pt" frame="border" border="1" }
   {<}{ align="left" }
   {>}{ align="right" }
   {-}{ align="center" }
   {^}{ valign="top" }
   {||}{ valign="middle" }
   {_}{ valign="bottom" }
   {=}{ valign="baseline" }
   {}{}
>>>










%%%%%%%%%%%%%%%%%%%%%%%
\section{nicefrac}
%%%%%%%%%%%%%%%%%%%%%%%

\<configure html4 nicefrac\><<<
\Configure{nicefrac}
  {\HCode{<sup class="nicefrac">}}
  {\HCode{</sup>}/\HCode{<sub class="nicefrac">}}
  {\HCode{</sub>}}
>>>


\<configure html4 bibtopic\><<<
\ConfigureEnv{btSect}
   {\ifvmode \IgnorePar\fi \EndP\HCode{<div class="btSect">}} 
   {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}} 
   {}{}
>>>








\section{ntheorem}

\<configure html4 ntheorem\><<<
|<32,4 ntheorem|>
>>>

\<32,4 ntheorem\><<<
\ConfigureEnv{Anmerkung}
   {\HCode{<div class="Anmerkung">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Beispiel}
   {\HCode{<div class="Beispiel">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Bemerkung}
   {\HCode{<div class="Bemerkung">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Beweis}
   {\HCode{<div class="Beweis">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Corollary}
   {\HCode{<div class="Corollary">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Definition}
   {\HCode{<div class="Definition">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Example}
   {\HCode{<div class="Example">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Korollar}
   {\HCode{<div class="Korollar">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Lemma}
   {\HCode{<div class="Lemma">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Proof}
   {\HCode{<div class="Proof">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Proposition}
   {\HCode{<div class="Proposition">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Remark}
   {\HCode{<div class="Remark">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Satz}
   {\HCode{<div class="Satz">}} {\HCode{</div>}} {}{}
\ConfigureEnv{Theorem}
   {\HCode{<div class="Theorem">}} {\HCode{</div>}} {}{}
\ConfigureEnv{anmerkung}
   {\HCode{<div class="anmerkung">}} {\HCode{</div>}} {}{}
\ConfigureEnv{beispiel}
   {\HCode{<div class="beispiel">}} {\HCode{</div>}} {}{}
\ConfigureEnv{bemerkung}
   {\HCode{<div class="bemerkung">}} {\HCode{</div>}} {}{}
\ConfigureEnv{beweis}
   {\HCode{<div class="beweis">}} {\HCode{</div>}} {}{}
\ConfigureEnv{corollary}
   {\HCode{<div class="corollary">}} {\HCode{</div>}} {}{}
\ConfigureEnv{definition}
   {\HCode{<div class="definition">}} {\HCode{</div>}} {}{}
\ConfigureEnv{example}
   {\HCode{<div class="example">}} {\HCode{</div>}} {}{}
\ConfigureEnv{korollar}
   {\HCode{<div class="korollar">}} {\HCode{</div>}} {}{}
\ConfigureEnv{lemma}
   {\HCode{<div class="lemma">}} {\HCode{</div>}} {}{}
\ConfigureEnv{proof}
   {\HCode{<div class="proof">}} {\HCode{</div>}} {}{}
\ConfigureEnv{proposition}
   {\HCode{<div class="proposition">}} {\HCode{</div>}} {}{}
\ConfigureEnv{remark}
   {\HCode{<div class="remark">}} {\HCode{</div>}} {}{}
\ConfigureEnv{satz}
   {\HCode{<div class="satz">}} {\HCode{</div>}} {}{}
\ConfigureEnv{theorem}
   {\HCode{<div class="theorem">}} {\HCode{</div>}} {}{}
>>>

\section{hyperref}

\<config hyperref form 4\><<<
\Configure{Form}
   {\IgnorePar\EndP\leavevmode \Tg<form \Hnewline \Attributes>}
   {\IgnorePar\EndP\Tg</form>}
>>>

\<configure html4 hyperref\><<<
|<config hyperref form 4|>
|<hyperref shared|>
|<hyperref TextField|>
|<hyperref multiline|>
|<hyperref password|>
|<hyperref radio|>
|<hyperref on...|>
\NewConfigure{::action}{1}
\Configure{::action}
   {\edef\Attributes{\Attributes\space action="\AttributeVal"}}
\NewConfigure{::method}{1}
\Configure{::method}
   {\edef\Attributes{\Attributes\space method="\AttributeVal"}}
\NewConfigure{PushButton::}{1}
\Configure{PushButton::}
   {\leavevmode\Tg<input type="button" \Attributes\space/>}
\NewConfigure{Reset::}{1}
\Configure{Reset::}
  {\leavevmode\Tg<input type="reset" \Attributes\space/>}
\NewConfigure{Submit::}{1}
\Configure{Submit::}
  {\leavevmode\Tg<input type="submit" \Attributes\space/>}
\NewConfigure{CheckBox::}{2}
\Configure{CheckBox::}
  {\leavevmode\Tg<input type="checkbox" \Attributes\space/>}{}
\NewConfigure{CheckBox::checked}{2}
\Configure{CheckBox::checked}
  {\leavevmode\Tg<input type="checkbox" checked="checked"
      \Attributes\space/>}{}
\HAssign\form:id=0
>>>

\<hyperref shared\><<<
\NewConfigure{::value}{1}
\Configure{::value}
   {\edef\Attributes{\Attributes\space value="\AttributeVal"}}
\NewConfigure{::name}{1}
\Configure{::name}
   {\edef\Attributes{\Attributes\space name="\AttributeVal"}}
\NewConfigure{::default}{1}
\Configure{::default}
   {\let\::default=\AttributeVal}
\def\get:int#1.#2//{\tmp:cnt=#1 }
>>>

\<\><<<
\NewConfigure{::borderwidth}{1}
\Configure{::borderwidth}
   {\Css{div\#form-\form:id {border-width: \AttributeVal;
                              border-style:solid;}}}
\NewConfigure{::bordercolor}{1}
\Configure{::bordercolor}
   {\expandafter\get:colors\AttributeVal//%
      \Css{div\#form-\form:id {border-color:\AttributeVal}}}
\def\get:colors#1 #2 #3//{%
   \get:color{#1}\edef\AttributeVal{\the\tmp:cnt\%}%
   \get:color{#2}\edef\AttributeVal{\AttributeVal,
        \the\tmp:cnt\%}%
   \get:color{#3}\edef\AttributeVal{rgb(\AttributeVal,
        \the\tmp:cnt\%)}%
}
\def\get:color#1{%
   \tmp:dim=#1pt \multiply\tmp:dim by 100
   \expandafter\get:int\the\tmp:dim//}
>>>



\<hyperref on...\><<<
\def\:tempc#1{%
  \NewConfigure{::#1}{1}%
  \Configure{::#1}%
    {\edef\Attributes{\Attributes\space #1="\AttributeVal"}}}
\:tempc{onclick}
\:tempc{onblur}
\:tempc{onchange}
\:tempc{onclick}
\:tempc{ondblclick}
\:tempc{onfocus}
\:tempc{onkeydown}
\:tempc{onkeypress}
\:tempc{onkeyup}
\:tempc{onmousedown}
\:tempc{onmousemove}
\:tempc{onmouseout}
\:tempc{onmouseover}
\:tempc{onmouseup}
\:tempc{onselect}
>>>

\<hyperref TextField\><<<
\NewConfigure{TextField::}{2}
\Configure{TextField::}{}{ \Tg<input type="text" \Attributes />}
\NewConfigure{TextField::width}{1}
\Configure{TextField::width}
   {\tmp:dim=\AttributeVal   \divide\tmp:dim by 6
    \expandafter\get:int\the\tmp:dim//%
    \edef\Attributes{\Attributes\space size="\the\tmp:cnt"}}
\NewConfigure{TextField::default}{1}
\Configure{TextField::default}
   {\edef\Attributes{\Attributes\space value="\AttributeVal"}}
>>>
\<hyperref multiline\><<<
\NewConfigure{TextField::multiline}{2}
\Configure{TextField::multiline}
  {}
  { \Tg<textarea
        \Attributes>\expandafter\set:ln\multiline:value,|<par del|>%
  \global\let\multiline:value=\empty \Tg</textarea>}

\let\multiline:value=\empty
\def\set:ln#1,#2|<par del|>{#1%
  \def\:temp{#2}\ifx \:temp\empty \else
     \hfil\break  \def\:temp{\set:ln#2|<par del|>}%
  \fi \:temp}

\NewConfigure{multiline::value}{1}
\Configure{multiline::value}
  {\let\multiline:value=\AttributeVal}

\NewConfigure{multiline::width}{1}
\Configure{multiline::width}
   {\tmp:dim=\AttributeVal   \divide\tmp:dim by 6
    \expandafter\get:int\the\tmp:dim//%
    \edef\Attributes{\Attributes\space cols="\the\tmp:cnt"}}

\NewConfigure{multiline::height}{1}
\Configure{multiline::height}
   {\tmp:dim=\AttributeVal   \divide\tmp:dim by 6
    \expandafter\get:int\the\tmp:dim//%
    \edef\Attributes{\Attributes\space rows="\the\tmp:cnt"}}
>>>

\<hyperref password\><<<
\NewConfigure{TextField::password}{2}
\Configure{TextField::password}
  {}{\Tg<input type="password" \Attributes />}
>>>

\<hyperref shared\><<<
\def\Default:Checked#1{%
   \ifx #1\Un:Def \let\:temp=\empty \else
      \let\:temp=\relax
      \let\:tempa=\relax
      \edef\:temp{\def\:temp####1#1#1####2//{\def\:temp{####2}}%
                      \:temp \AttributeVal #1=#1#1//%
          \def\:tempa####1=####2//{\def\noexpand\AttributeVal{####1}}%
              \:tempa\AttributeVal=//}%
      \:temp
   \fi
}
>>>

\<hyperref radio\><<<
\NewConfigure{ChoiceMenu::radio}{5}
\Configure{ChoiceMenu::radio}
   {\IgnorePar\EndP\leavevmode
      \Tg<div id="form-\form:id">\gHAdvance\form:id by 1 }
   { }{\IgnorePar\EndP\Tg</div>}
   {\Default:Checked\radio::default
    \Tg<input\Hnewline type="radio" 
            \ifx \:temp\empty\else checked="checked" \fi
            \Attributes\space />}
   {}
\NewConfigure{radio::default}{1}
\Configure{radio::default}
   {\let\radio::default=\AttributeVal}
>>>

\<hyperref radio\><<<
\NewConfigure{ChoiceMenu::combo}{5}
\Configure{ChoiceMenu::combo}
   {}
   {~\Tg<select\Hnewline \Attributes \Hnewline size="1">}
   {\Tg</select>}
   {\Tg<option \ifx\::default\AttributeVal selected="selected"\fi
        \Hnewline>} 
   {\Tg</option>}
\NewConfigure{combo::default}{1}
\Configure{combo::default}
   {\let\combo::default=\AttributeVal}
>>>

\<hyperref radio\><<<
\NewConfigure{ChoiceMenu::popdown}{5}
\Configure{ChoiceMenu::popdown}
   {}{\HCode{\Hnewline <select \Attributes \Hnewline size="1">}}
   {\Tg</select>}
   {\Tg<option \ifx\::default\AttributeVal selected="selected"\fi
        \Hnewline>} {\Tg</option>}
>>>

The \verb'size="1"' makes the select a popout memnu
\<hyperref radio\><<<
\NewConfigure{ChoiceMenu::}{5}
\Configure{ChoiceMenu::}
   {}{\HCode{\Hnewline <select\Hnewline \Attributes>}}{\Tg</select>}
   {\Tg<option \ifx\::default\AttributeVal selected="selected"\fi
        \Hnewline>}  {\Tg</option>}
\NewConfigure{::menulength}{1}
\Configure{::menulength}
   {\edef\Attributes{\Attributes\space size="\AttributeVal"}}
>>>


\<configure html4 hyperref\><<<
\ifx \@baseurl\@empty \else
   \Configure{@HEAD}
      {\HCode{<base href="\:baseurl" />}}
   \let\:baseurl\@baseurl
   \let\@baseurl=\@empty
\fi
>>>


%%%%%%%%%%%%%%%%%%%%
\section{web}
%%%%%%%%%%%%%%%%%%%%

\<configure html4 web\><<<
\Configure{webversion} {\\} {}
\Configure{webuniversity}
   {\Tg<div class="webuniversity">} {\Tg</div>}
\Css{div div.webuniversity {color : rgb(0\%,0\%,80\%); 
        margin-bottom: 1em; text-align: center;}}

\Configure{maketitle}
   {\IgnorePar\EndP\par\Tg<div class="maketitle">}
   {\IgnorePar\EndP\par\Tg</div>}
\Css{div.maketitle {text-align: center;
      margin-left: 3em;   margin-right: 3em; }}

\Configure{HColor}{webgreen}{rgb(0\%,50\%,0\%)}
\Configure{HColor}{webbrown}{rgb(60\%,0\%,0\%)}
\Configure{HColor}{webyellow}{rgb(98\%,92\%,73\%)}
\Configure{HColor}{webgray}{rgb(75.3\%,75.3\%,75.3\%)}
\Configure{HColor}{webblue}{rgb(0\%,0\%,80\%)}
>>>

\section{exerquiz}

\<configure html4 exerquiz\><<<
|<32,4 exerquiz|>
|<4 exerquiz|>
>>>

\<32,4 exerquiz\><<<
\Configure{Form}{}{}
\Configure{@HEAD}{\input exerqz.4ht }
\Css{.onClick {color:green;}}
\Configure{TextField::}{}{%
   \IgnorePar \EndP
   \HCode{<form action="." name="form\quiz@total"><input
       type="text"\Hnewline  \Attributes /></form>}%
}
\Configure{javascript}{JavaScript:}
>>>

\<32,4 exerquiz\><<<
\ifx \eq@sqrtmsg\:UnDef
   \def\eq@sqrtmsg{"Right!"}
\fi
\ifx \eq@sqwgmsg\:UnDef
   \def\eq@sqwgmsg{"Wrong!"}
\fi
\Configure{shortquiz}
   {(\alph{quizno})}
   {alert(\eq@sqrtmsg,3);}
   {alert(\eq@sqwgmsg,3);}
\Configure{quiz}
   {(\alph{quizno})}
   {qthis=this;
     ProcessQuestion (\ANS,"\alph{quizno}",\thequestionno,
      1,"\eq@bqlabel",\Quiz:N)}
   {InitializeQuiz("\quiz@total",
      \ifeq@nocorrections0\else1\fi,\Quiz:N,\LikeRef{ans-\Quiz:N},
      "(",")")}
   {QuizEnd("\:bqlabel",\thequestionno,"\quiz@total",\Quiz:N)}
   {Corrections("\eq@RC","\eq@AC",\Quiz:N)}
\Configure{quiz*}
   {[]}
   {qthis=this;
     ProcessQuestion (\ANS,"[]",\thequestionno,
      0,"\eq@bqlabel",\Quiz:N)}
   {InitializeQuiz("\quiz@total",
      \ifeq@nocorrections0\else1\fi,\Quiz:N,
      \LikeRef{ans-\Quiz:N},"","")}
>>>

\<-NOPE\><<<
\Configure{quiz*}
   {qthis=this;
    ProcessQuestion(\ANS,"\alph{quizno}",\thequestionno,
      0,"\eq@bqlabel",\Quiz:N)}
>>>
 

\<32,4 exerquiz\><<<
\ConfigureEnv{shortquiz}
   {\IgnorePar\EndP\leavevmode} {} {}{}
\Configure{ReturnTo}{\begin{flushright}}{\end{flushright}}
>>>

\<4 exerquiz\><<<
\ConfigureList{questions}%
   {\EndP\HCode{<ol type="1" class="questions"\Hnewline
        >}|<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</li></ol>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
   {\HCode{<li class="questions">}\AnchorLabel}
>>>



\<4 exerquiz\><<<
\def\a:temp#1#2{%
   \ifOption{#2}{\def\a:charset{#2}}{}
   \def\:tempa{#1}\ifx \eqOutOf\:tempa
      \def\A:charset{#2}\ifx \A:charset\empty\else
          \def\A:charset{#2}%
   \fi\fi}
\a:temp{sur}{charset=iso-8859-2}
\a:temp{von}{charset=iso-8859-2}
>>>



\<exerqz\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% exerqz.4ht                            |version %
% Copyright (C) |CopyYear.1999.                          %
%                      Donald P. Story & Eitan M. Gurari %
|<TeX4ht copyright|>
|<exerqz's vars|>
|<predefined exerquiz javascript|>
>>>

\<predefined exerquiz javascript\><<<
\JavaScript-$
var QuizInitialized;
var EndQuizPushed;
var CurrentQuizNo;
var Responses;
var ResponsesAddr;
var Cor;
var CorAddr;
var qthis;
var prev_notify;
function InitializeQuiz(qtfield,mark,quizN,ansN,lbrc,rbrc) {
  Score=0;
  QuizInitialized=1;
  CurrentQuizNo=quizN;
  eval( 'document.form'+qtfield+'.'+qtfield+'.value="$eqScore";' )  
  RightWrong=new Array();
  |<hide sol|>
  Responses=new Array();
  ResponsesAddr=new Array();
  |<hide cor|>  
  Cor=new Array();
  CorAddr=new Array();
  EndQuizPushed=0;
  for(var i=1; i<=ansN; i++){
     RightWrong[i]=0;
  }
}
\EndJavaScript
>>>

\<show sol\><<<
if( ResponsesAddr[probno] != null ){
  if (notify == 0 ) {
    ResponsesAddr[probno].value=Responses[probno];
  } else {
    ResponsesAddr[probno].value="("+Responses[probno]+")";
} }
qthis.value = "#";  ResponsesAddr[probno]=qthis;
>>>

\<hide sol\><<<
for(var i in Responses){
  if (prev_notify == 0 ) {
    ResponsesAddr[i].value=Responses[i];
  } else {
    ResponsesAddr[i].value="("+Responses[i]+")"; 
} }
>>>

% if( Responses != null ){
\<record cor\><<<
var k=Cor.length;
eval('Cor[k]=thisform'+quizN+'.ans'+quizN+'x'+i+'.value');
eval('CorAddr[k]=thisform'+quizN+'.ans'+quizN+'x'+i);
>>>
\<hide cor\><<<
for(var i in Cor){
  CorAddr[i].value=Cor[i];
} 
>>>

% if( Cor != null ){

\<predefined exerquiz javascript\><<<
\JavaScript
function href(addr) { top.location.href=addr; }
\EndJavaScript
>>>

% function href(addr) { window.navigate(addr); }


\<predefined exerquiz javascript\><<<
\JavaScript
function Corrections(lbl1,lbl2,quizN) {
  if ( (EndQuizPushed == 1) && ( CurrentQuizNo == quizN ) ){
    for(var i in RightWrong){
      if( (RightWrong[i]==0) ){
        |<record cor|>
        eval('thisform'+quizN+'.ans'+quizN+'x'+i+'.value= "*"');
  } }
} } 
\EndJavaScript
>>>

\<32,4 exerquiz\><<<
\immediate\write16{%
***********************************************************\Hnewline
The `\eq@CA' button fails under Netscape, \Hnewline
due to a code of the following form.\Hnewline
\Hnewline
<html><head><title>?</title>\Hnewline
<script\space type="text/JavaScript"\space ><!--\space \Hnewline
\space \space \space function\space f()\space {\Hnewline
\space \space \space \space \space formxx.inputxx.value="BBB";\Hnewline
\space \space \space}\Hnewline
//-->\space \Hnewline
</script>\space \space </head>\space <body>\Hnewline
\Hnewline
<form\space id="formxx">\space \space \Hnewline
\space \space \space <input\space type="text"\space 
\space name="foo"\space id="inputxx"\space 
\space value="AAA"\space />\Hnewline
\space \space \space <input\space value="\eq@CA"\space 
type="button"\space \space \space onClick="f()"\space />\Hnewline
\space \space \space <input\space value="CLEAR"\space 
type="reset"\space \space \space onClick="clear()"\space />\Hnewline
</form>\Hnewline
    \Hnewline
</body> \Hnewline
</html> \Hnewline
\Hnewline
If you know how to fix the function f() above for Netscape,\Hnewline
without changing the id attribute names, please consider\Hnewline
emailing the fix to gurari@cse.ohio-state.edu. Thanks\Hnewline
***********************************************************}
>>>
\<predefined exerquiz javascript\><<<
\JavaScript
function LinkTo(addr) {
}
\EndJavaScript
>>>

\<exerqz's vars\><<<
\def\eqXInitQuizMsg{\hbox{%
   \let\noexpand|=\string
   \csname eq@InitQuizMsg\endcsname}}
\expandafter\ifx \csname eq@InitQuizMsg\endcsname\relax
    \expandafter\def\csname eq@InitQuizMsg\endcsname{
        "You must initialize the Quiz! Click on "+bqlabel}
\fi
\def\eqXQuizTotalMsg{\hbox{%
   \let\noexpand|=\string
   \def\thequestionno{"+thequestionno+"}%
   \csname eq@QuizTotalMsg\endcsname}}
\expandafter\ifx \csname eq@QuizTotalMsg\endcsname\relax
    \expandafter\def\csname eq@QuizTotalMsg\endcsname{"Score: '
         +Score +' out of '+thequestionno+'"}
\fi
\def\eqXMadeChoice{\hbox{%
   \let\noexpand|=\string
   \csname eq@MadeChoice\endcsname}}
\expandafter\ifx \csname eq@MadeChoice\endcsname\relax
    \expandafter\def\csname eq@MadeChoice\endcsname{
            "You have already made a choice. Your choice was ("
            +Responses[probno]+")."
            +" Do you want to change it?"}
\fi
\expandafter\ifx \csname eqScore\endcsname\relax
    \def\eqScore{Score:}
\fi
>>>

The \verb'Wollen Sie dies \noexpand\344ndern?' is a problem because it
takes the \verb'\344' into \verb'44'. A \verb'\string' will properly 
produce \verb'\344'; hence, the above dirty trick.

\begin{verbatim}
Doesn't IE escape in the way that Acrobat JavaScript does?

Another possibility is to use String.fromCharCode()

Convert Octal \344 to decimal 228, then use
String.fromCharCode(228)

   
          How to deliver browser specific content using JavaScript
                                      

<SCRIPT LANGUAGE="JavaScript">
<!--
  if( -1 != navigator.userAgent.
      indexOf ("AOL") )
  {
    // load America Online version
    location.href="aol.htm";
  }
  else
  if( -1 != navigator.userAgent.
      indexOf ("MSIE") )
  {
    // load Microsoft Internet
    // Explorer version
    location.href="msie.htm";
  }
  else
  if( -1 != navigator.userAgent.
      indexOf ("Mozilla") )
  {
    // load Netscape version
    location.href="netscape.htm";
  }
  else
  {
    // load other version
    location.href="other.htm";
  }
-->
</SCRIPT>

\end{verbatim}

\<predefined exerquiz javascript\><<<
\JavaScript-$
function QuizEnd(bqlabel,thequestionno,quiztotal,quizN){
  if ((QuizInitialized !=1) |||| ( CurrentQuizNo!= quizN )){   
     alert($eqXInitQuizMsg,3);
  } else {
     eval( 'document.form'+quiztotal+'.'+quiztotal+
       '.value=$eqXQuizTotalMsg');
         QuizInitialized=-1;
         EndQuizPushed=1; 
} }
\EndJavaScript

\JavaScript-$
function  ProcessQuestion
  (key,letterresp,probno,notify,bqlabel,quizN) {
    if ((QuizInitialized !=1) |||| ( CurrentQuizNo!= quizN )){   
      alert($eqXInitQuizMsg,3);
    } else {
      |<function ProcUserResp(key,letterresp,probno,notify)|> 
      prev_notify = notify;
}   }
\EndJavaScript
>>>

\<function ProcUserResp(key,letterresp,probno,notify)\><<<
if (Responses[probno] == null) {
   if (key==1) {
      Score++;
      RightWrong[probno]=1;
   }
   else
      RightWrong[probno]=0;
   |<show sol|>
   Responses[probno]=letterresp;
}
else {
   if (notify==0)
      User=true;
   else
      User=confirm($eqXMadeChoice);
   if (User) {
      if (RightWrong[probno]==1) {
          if (key==0) {
            Score -= 1;
            RightWrong[probno]=0;
            |<show sol|>
            Responses[probno]=letterresp;
         }
      }
      else {
          if (key==1) {
            Score++;
            RightWrong[probno]=1;
            |<show sol|>
            Responses[probno]=letterresp;
         }
         else {
            RightWrong[probno]=0;
            |<show sol|>
            Responses[probno]=letterresp;
         }
      }
   }
}
>>>











\section{tex4ht}

\<title for hypertext page\><<<
\Configure{TITLE+}{\HCode{\jobname.\:html}}
>>>

\<0,32,4 latex\><<<
\ifTag{TITLE+}{\Configure{TITLE+}{\LikeRef{TITLE+}}}{}
>>>

Was \verb'\ifTag{TITLE+}{\Configure{TITLE+}{\HCode{\LikeRef{TITLE+}}}}{}',
but the \verb'\HCode' leaves \verb'\Protect' in for the latter comamnds which arrive
to the title--the original motivation for the \verb'\HCode' was to
protect the title from undesirable tags. Something like \verb+H\`ello+ can
send it.  It now sems to be more trouble than help.




\<config tex4ht\><<<
|<0,32,4 preambles|>
\ifx \a:FontCss:\:UnDef
   \Configure{FontCss}{Font\string_Css##1}
                   {Font\string_Css\string_Plus\space##1}
\fi
\expandafter\ifx \csname aa:Css\endcsname\relax
   \Configure{Css}{Css: ##1}
\fi
\:CheckOption{edit} \if:Option 
   \Configure{edit}{\HCode{<strong>&lt;}}{\HCode{&gt;</strong>}}
                {<strong>&lt;}{&gt;</strong>}
\fi
\:CheckOption{hooks++} \if:Option
\else \:CheckOption{hooks+}  \if:Option
\else \:CheckOption{hooks}  \if:Option
\fi\fi\fi
\if:Option
   \Configure{hooks}
      {\HCode{<strong class="hooks">&lt;}}{\HCode{&gt;</strong>}}{}{}  
\fi
\Configure{ExitHPage}{exit}{exit }{}
\Configure{TocLink}{\Link{#2}{#3}#4\ifvmode\IgnorePar\fi\EndLink}
\Configure{MiniHalign}{\hlg:a}{\hlg:b}\hlg:c\hlg:d{\hlg:e}\hlg:f
\:CheckOption{no-halign} \if:Option \else
  \Configure{noalign-}{}{}
\fi
\Configure{PictureAlt*+}
   {\let\sv:HtmlPar|=\HtmlPar   \let\HtmlPar|=\empty
     |<postscript for /Picture|>%
     |<tex halign and cr/crcr|>%
     \NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
     \let\HCode|=\:gobble     |%\offinterlineskip|%
     \let\EndPicture|=\empty}
   {\let\HCode|=\:HCode
     \let\EndPicture|=\:UnDef \let\HtmlPar|=\sv:HtmlPar \SUBOn \SUPOn
     \csname EndPauseMathClass\endcsname \EndNoFonts
     |<tex4ht halign and cr/crcr|>%
     |<delay postscript|>}
>>>


Was \verb+\SUBOff \SUPOff+. Any problems?

\<postscript for /Picture\><<<
\def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
>>>

\<tex halign and cr/crcr\><<<
\iffalse{\fi   
\let\sv:halign|=\halign
\let\sv:cr|=\cr
\let\sv:crcr|=\crcr
\iffalse}\fi 
\RecallTeXcr \let\halign |=\TeXhalign
>>>

\<tex4ht halign and cr/crcr\><<<
\iffalse{\fi   
\let\halign|=\sv:halign
\let\cr|=\sv:cr
\let\crcr|=\sv:crcr
\iffalse}\fi 
>>>

\<delay postscript\><<<
\let\PsCode|=\relax
>>>

\<config tex4ht\><<<
  \Configure{writetoc}{}
>>>

\<config tex4ht\><<<
\Configure{CutAtTITLE+}{}
\Configure{HPageTITLE+}{}
\Configure{AtBeginDocument} 
  {\edef\recallcatcodes{%
      \catcode`\noexpand\_|=\the\catcode`\_
      \catcode`\noexpand\^|=\the\catcode`\^ }%
   \catcode`\_=8\catcode`\^=7}
  {\recallcatcodes}
>>>

\<config tex4ht\><<<
\Configure{crosslinks}{[}{]
   }{next}{prev}{prev-|<tail|>}{front}{tail}{up}
\:CheckOption{next}     \if:Option   
   \Configure{next}
     {\ShowPar\par\noindent \HCode{<span class="next">}[}
     {]\HCode{</span>}}
   \Css{@media print {span.next {visibility:hidden;}}}
\fi

\Configure{halignTB}{\HCode{<table }}{\HCode{>}}
\def\R:HA{\HCode{<tr \Hnewline}\halignTR\HCode{>}}
\def\r:HA{\HCode{</tr>}}
\def\D:HA{\SaveEndP \HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
   \halignTD \HCode{\Hnewline>}\ShowPar\par}
\def\d:HA{\ifvmode \IgnorePar \fi \EndP\HCode{</td>}\RecallEndP}
\Configure{HVerbatim+}{\z@}{\:nbsp}
\Configure{CssFile}{\jobname.css}
  {/* \aa:CssFile\space from \jobname.tex (TeX4ht, \:today) */}
\Configure{Picture+}{}{}
\Configure{Picture*}{}{}
\Configure{Picture-alt}{[Picture]}
\Configure{Needs}{l. 
   \the\inputlineno\space--- needs --- #1 ---}
\Configure{Needs-}{l.
   \the\inputlineno\space--- needs --- #1 ---}
|<yes css|>
>>>

\<config tex4ht\><<<
\Configure{moveright}{\leavevmode\endgraf }
\Configure{HChar}{x}
>>>


\<yes css\><<<
   \def\SPAN:#1{\HCode{<span class="#1">}}
   \def\EndSPAN:{\HCode{</span>}} 
   \def\DIV:#1{\HCode{<div class="#1">}}
   \def\EndDIV:{\HCode{</div>}} 
>>>



\section{Interpretation for the Entries}




Use \verb'\ ', and not \verb'~', in style files, because some
users redefine the latter macro.

\<html latex tocs\><<<
\def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}} 
>>>


\section{latin1.def}


\<configure html4 latin1\><<<
\def\HTitleText#1{%
   \bgroup
      \uccode`\~#1%
      \uppercase{%
   \egroup
      \edef~{\string~}%
   }%
}
\Configure{@TITLE}
  {\DeclareInputText{168}{"}%
   \HTitleText{209}%
    \HTitleText{194}%
    \HTitleText{210}%
    \HTitleText{195}%
    \HTitleText{211}%
    \HTitleText{196}%
    \HTitleText{212}%
    \HTitleText{197}%
    \HTitleText{213}%
    \HTitleText{198}%
    \HTitleText{214}%
    \HTitleText{199}%
    \HTitleText{215}%
    \HTitleText{200}%
    \HTitleText{216}%
    \HTitleText{201}%
    \HTitleText{217}%
    \HTitleText{202}%
    \HTitleText{218}%
    \HTitleText{203}%
    \HTitleText{219}%
    \HTitleText{204}%
    \HTitleText{220}%
    \HTitleText{205}%
    \HTitleText{221}%
    \HTitleText{206}%
    \HTitleText{222}%
    \HTitleText{207}%
    \HTitleText{223}%
    \HTitleText{224}%
    \HTitleText{240}%
    \HTitleText{225}%
    \HTitleText{241}%
    \HTitleText{226}%
    \HTitleText{242}%
    \HTitleText{227}%
    \HTitleText{243}%
    \HTitleText{228}%
    \HTitleText{244}%
    \HTitleText{229}%
    \HTitleText{245}%
    \HTitleText{230}%
    \HTitleText{246}%
    \HTitleText{231}%
    \HTitleText{247}%
    \HTitleText{232}%
    \HTitleText{248}%
    \HTitleText{233}%
    \HTitleText{249}%
    \HTitleText{234}%
    \HTitleText{250}%
    \HTitleText{235}%
    \HTitleText{251}%
    \HTitleText{236}%
    \HTitleText{252}%
    \HTitleText{237}%
    \HTitleText{253}%
    \HTitleText{238}%
    \HTitleText{254}%
    \HTitleText{239}%
    \HTitleText{255}%
}

>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{syntax}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<configure html4 syntax\><<<
\ConfigureEnv{grammar}
   {\Picture*{}}  {\EndPicture}
   {}{}
>>>



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{???????????}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\<article,report,book\><<<
|<quotations|>
\Configure{listof}{}{}{}{\HCode{<br\xml:empty>}}{}{}
>>>

\<quotations\><<<
\ConfigureEnv{quotation}
   {}{}
   {\IgnorePar\EndP\HCode{<div class="quotation">}}
   {\IgnorePar\EndP\HCode{</div>}\ShowPar}
\Css{.quotation  {margin-bottom:0.25em;
           margin-top:0.25em; margin-left:1em; }}
>>>
















\<PICT dot tabbing\><<<
\:CheckOption{pic-tabbing'} \if:Option
  \edef\:temp{\LikeRef{|<tabbing tag|>.}}%
  \def\:tempa{.}\ifx \:temp\:tempa 
      \ConfigureEnv{tabbing}{\Picture*{}}{\EndPicture}{}{}
  \fi
\fi 
>>>


   























   



\section{titlesec}

\<configure html4 titlesec\><<<
\ConfigureMark{section}
   {\ifnum \c:secnumdepth>\c@secnumdepth  \expandafter\:gobble
    \else  \csname thetitlesection\endcsname\fi}
\Configure{section}{}{}
   {\IgnorePar \EndP\IgnorePar\HCode{<h3 class="sectionHead"\a:LRdir>}
    \TitleMark\space}
   {\HCode{</h3>}\IgnoreIndent}
>>>







\section{fontmath.ltx}


\<configure html4-math fontmath\><<<
|<32,4 picmath: plain, fontmath, amsmath, amstex1|>
|<picmath plain,fontmath|>
|<html4-math plain,fontmath|>
>>>
































\section{tex4ht}


\<configure html4-math tex4ht\><<<
|<32,4 picmath tex4ht|>
\Configure{PicMath}{}{}{}{ class="math" }
\Css{img.math{vertical-align:middle;}}
|<contribute to picmath of 4.0t|>
>>>


% \Configure{$$}
%    {\:xhtml{\IgnorePar\EndP}%
%     \HCode{<div class="displaymath">}} 
%    {\HCode{</div>}|<try env inline par|>} {}
% \Css{div.displaymath{text-align:center;}}




\<try env inline par\><<<
\ShowPar 
>>>

\<try inline par\><<<
\ShowPar \par{\HCondtrue\noindent}%
>>>



\<32,4 picmath tex4ht\><<<
\:CheckOption{no_^} 
\if:Option \else \:CheckOption{no_}\fi
\if:Option \else
   \Configure{SUB}
      {\HCode{<sub \csname :SUB:\endcsname>}}{\HCode{</sub>}}
   \let\:SUB:|=\empty
\fi 
\:CheckOption{no_^} 
\if:Option \else \:CheckOption{no^}\fi
\if:Option \else
   \Configure{SUP}
      {\HCode{<sup \csname :SUP:\endcsname>}}{\HCode{</sup>}}
   \let\:SUP:|=\empty
\fi
\:CheckOption{no_^} 
 \if:Option \else \:CheckOption{no_}\fi
 \if:Option \else \:CheckOption{no^}\fi
\if:Option \else
   \Configure{SUBSUP}
      {\HCode{<sub>}}{\HCode{</sub><sup>}}{\HCode{</sup>}}
\fi
\Configure{left}
  {\Picture+{ \a:@Picture{left}}}
  {\aftergroup\EndPicture   }
\Configure{mathchoice}{\PictureOff}{\PictureOn}
>>>


\verb'\endgraf' is safer than \verb'\par', because the latter may be redefined.
For instance, see p 262 in texbook.

\<configure html4-math tex4ht\><<<
\let\MathPar|=\empty 
\Configure{PicDisplay}
  {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\endgraf\EndP
   \HCode{<center class="\MathPar math-display" \a:LRdir >}}
  {\HCode{</center>}}  {}  {class="\MathPar math-display" } 
>>>

% \Css{img.mathdisplay, div.displaymath, img.par-mathdisplay,
%      div.par-displaymath { margin-top: 1em; 
%                            margin-bottom: 1em; }}
% \Css{center img.mathdisplay, td img.mathdisplay,
%      center img.par-mathdisplay,
%      td img.par-mathdisplay { margin-top: 0; 
%                              margin-bottom:0 ; }}
% 








\<temp hcode accents\><<<
\HCode{&\expandafter \ifx\csname U#2#1\endcsname\relax
                 #2#1\else \#x\csname U#2#1\endcsname\fi;}%
>>>



\<xmlns\><<<
xmlns="http://www.w3.org/1999/xhtml"
>>>






\subsection{TeX Engine}


The \verb'\trap:base' is to catch empty bases of exponents like, e.g.,
in \verb'$a^{^b}$'.




\<?\><<<
\def\MathRow#1{%
   \Configure{\expandafter\:gobble\string#1*}{*}%
      {<|.mrow\Hnewline 
         class="\expandafter\:gobble\string#1">}{</|.mrow>}%
      {\Configure{\expandafter\:gobble\string#1}{}{}{}{}}#1}%
>>>
\<recall dvimath par\><<<
\sv:ignore
>>>

\<sv dvimath par\><<<
\edef\sv:ignore{\if:nopar  
    \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
>>>


The \verb'\MathRow' requests a \verb'<|.mrow\Hnewline>...</|.mrow>', instead of the contributions
of \verb'\mathop', \verb'\mathrel',...., for the next parameter.






\subsection{latex.ltx}





Definitions like \verb'\def\mathbf#1{\a:mathbf#1\b:mathbf}'
can't be done on a global level, because \verb'\mathbf' is just
a name of a font. So, for instance, \verb'\bf' expands to \verb'\mathbf',
and so  \verb'$\bf R$' indirectly brings up the latter command.





\subsection{Palin + LaTeX}

The default \verb'\left' and \verb'\right' in their default definition
with tex produce multi-part delimiters, from cmex, on large
subformulas. Hence, the `'.' below is needed.



%    \def\:tempa{\{}\ifx \:tempa\:DEL  \let\:DEL\lbrc: \else
%    \def\:tempa{\}}\ifx \:tempa\:DEL  \let\:DEL\rbrc: \else
%    \def\:tempa{<}\ifx \:tempa\:DEL  \def\:DEL{\string&lt;}\else
%    \def\:tempa{>}\ifx \:tempa\:DEL  \def\:DEL{\string&gt;}%
%    \fi\fi\fi\fi }
% \edef\lbrc:{\string{}     \edef\rbrc:{\string}}

% \HCode{\string&#2#1;}%

\section{Eqnarray}

Had `BASELINE' before `MIDDLE', but changed to conform with math
in page 252-- in intro to theory book.



\section{Big, BIG, ....}

The 
\verb'\special{t4ht@[}...\special{t4ht@]}' gobble the enclosed stuff.
The external pair is provided as grouping mechanism for
sub/super-scripts cases like \verb'\bigl(...\bigr)^x' within dvimath
mode. The \verb'{\HCode{}}' is neded for creating content delimiters
\verb'.' delimiters like in \verb'$\bigl. a_b \bigr)$'; without that mathml 
gets something wrong there. 
\verb+\bigl{.}+ et al produce empty para,etr , hence the \verb+\:EMPTY+ is a ompensation for such cases.





\section{Exams}



\<configure html4 exam\><<<
\ifx \ps@examheadings\:unDef \else
   |<Meers' exam|>
\fi
\ifx \@checkqueslevel\:unDef  \else
   |<Hirschhorns' exam|>
\fi
\ifx \@OneKeyHook\:unDef \else
   |<Alexanders' exam|>
\fi
>>>


\<Hirschhorns' exam\><<<
\Configure{uplevel}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="uplevel">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
\Configure{fullwidth}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="fullwidth">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
\Css{dl .uplevel, .fullwidth{margin-left:-2.5em;}}
\Css{dl dl .fullwidth {margin-left:-5em;}}
\Css{dl dl dl .fullwidth {margin-left:-7.5em;}}
>>>

\<Hirschhorns' exam\><<<
\ConfigureEnv{questions}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="questions">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
   {}{}
\ConfigureEnv{parts}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="parts">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
   {}{}
\ConfigureEnv{subparts}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="subparts">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
   {}{}
>>>


\<Hirschhorns' exam\><<<
\Configure{setpoints}
   {\HCode{<span class="setpoints">}}   {\HCode{</span>}}
>>>




\<Meers' exam\><<<
\ConfigureEnv{exam}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="exam">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
   {}{}
\ConfigureEnv{problem}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="problem">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
   {}{}
\Css{.problem{border-bottom: 1px solid black;}}
\Configure{scorebox}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="scorebox">}
    \bgroup\Configure{fbox}{\leavevmode}{}}
   {\egroup\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
\Css{.scorebox{margin-left:90\%; border: 1px solid black;}}
>>>


\<Alexanders' exam\><<<
\Configure{sectiontitle}
   {\ifvmode\IgnorePar\fi
      \EndP \HCode{<h4 class="sectiontitle">}\IgnorePar}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</h4>}}
>>>

\<Alexanders' exam\><<<
\Configure{answer}
     {\HCode{<span class="answer">}}    {\HCode{</span>}}
\Css{.answer {text-decoration:underline;}}
\Configure{question}
    {\HCode{<span class="question">}}    {\HCode{</span>}}
>>>

\<Alexanders' exam\><<<
\Configure{instructions}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="instructions">}}
   {\IgnorePar\EndP \HCode{</div>}}
>>>


\<Alexanders' exam\><<<
\ConfigureEnv{examtop} 
   {\ifvmode \IgnorePar \fi \EndP \HCode{<table class="examtop"><tr><td>}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</td></tr></table>}}
   {}{}
\Configure{namedata} 
   {\ifvmode \IgnorePar \fi \EndP 
    \Configure{newline}{\HCode{</td><td
          class="namedata-rule"><hr /></td></tr><tr><td>}}%
    \HCode{</td><td><div class="namedata"><table><tr><td>}}
   {\ifvmode \IgnorePar \fi \EndP 
       \HCode{</td><td
           class="namedata-rule"><hr /></td></tr></table></div>}}
\Css{td.namedata-rule {width:10em; vertical-align:bottom; }}
\Css{div.namedata{text-align:right;}}
\Configure{classdata} 
   {\ifvmode \IgnorePar \fi \EndP \HCode{<h3 class="classdata">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</h3>}}
>>>



\<Alexanders' exam\><<<
\ConfigureEnv{keytop} 
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="keytop">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
   {}{}
>>>


\<Alexanders' exam\><<<
\Configure{frontmatter} 
   {\ifvmode \IgnorePar \fi \EndP \HCode{<div class="frontmatter">}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
>>>
















%%%%%%%%%%%%%%%%%%
\section{Etc}
%%%%%%%%%%%%%%%%%%


\<configure html4 rotating\><<<
\ConfigureEnv{turn}
   {\Picture+{}} {\EndPicture}
   {}{}
>>>


\<configure html4 manju\><<<
\Configure{@TITLE}{\let\@title=\empty}
>>>




\<configure html4 mls\><<<
\Configure{@TITLE}{\let\@title=\empty}
>>>










\<configure html4 ulem\><<<
\Configure{uline}
   {\HCode{<span class="underline">}} {\HCode{</span>}}
\Configure{uuline}
   {\HCode{<span class="underline">}} {\HCode{</span>}}
\Configure{sout}
   {\HCode{<span class="sout">}} {\HCode{</span>}}
\Css{span.sout {text-decoration: line-through }}
\Configure{xout}
   {\HCode{<span class="xout"><span class="underline">}} 
   {\HCode{</span></span>}}
\Css{span.xout {text-decoration: line-through }}
\Configure{uwave}
   {\HCode{<span class="underline">}} 
   {\HCode{</span>}}
\Css{span.uwave {text-decoration: line-through }}
>>>



\<configure html4 go\><<<
\Configure{showdiagram}
    {\Picture*[go]{}}  {\EndPicture}
>>>






\<configure html4 pifont\><<<
\ConfigureList{dingautolist}
   {\EndP\HCode{<dl \a:LRdir class="dingautolist\expandafter\the
         \csname @listdepth\endcsname">}%
      |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="dingautolist">}}
   {\HCode{</dt><dd\Hnewline class="dingautolist">}}
\ConfigureList{Piautolist}
   {\EndP\HCode{<dl \a:LRdir class="Piautolist\expandafter\the
         \csname @listdepth\endcsname">}%
      |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="Piautolist">}}
   {\HCode{</dt><dd\Hnewline class="Piautolist">}}
\ConfigureList{Pilist}
   {\EndP\HCode{<dl \a:LRdir class="Pilist\expandafter\the
         \csname @listdepth\endcsname">}%
      |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="Pilist">}}
   {\HCode{</dt><dd\Hnewline class="Pilist">}}
>>>


\<configure html4 paralist\><<<
\ConfigureList{asparaitem}%
   {\EndP\HCode{<div class="asparaitem">}\ShowPar\ShowIndent}
   {\EndP\HCode{</div>}\ShowPar}
   {\par\ShowPar{\parindent=10pt\leavevmode}}
   {}
\ConfigureList{asparaenum}%
   {\EndP\HCode{<div class="asparaenum">}\ShowPar\ShowIndent}
   {\EndP\HCode{</div>}\ShowPar}
   {\par\ShowPar{\parindent=10pt\leavevmode}}
   {}
\ConfigureList{asparadesc}%
   {\EndP\HCode{<div class="asparadesc">}\ShowPar\ShowIndent}
   {\EndP\HCode{</div>}\ShowPar}
   {\par\ShowPar{\parindent=10pt\leavevmode}}
   {}
\ConfigureList{compactdesc}%
   {\EndP\HCode{<dl \a:LRdir class="compactdesc">}%
      |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
        class="compactdesc">}\bgroup \bf}
   {\egroup\EndP\HCode{</dt><dd\Hnewline class="compactdesc">}}
\ConfigureList{compactitem}%
   {\EndP\HCode{<ul>}%
      |<save end:itm|>\global\let\end:itm=\empty}
   {|<recall end:itm|>\EndP\HCode{</li></ul>}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
   {\HCode{<li class="compactitem">}}
\ConfigureEnv{enumerate}
   {}{|<try env inline par|>}{}{}
\ConfigureList{enumerate}%
   {\if@plalwaysadjust
        \EndP \HCode{<dl \a:LRdir class="enumerate">}%
           |<save end:itm|>\global\let\end:itm=\empty
       \def\para:enumII{|<recall end:itm|>\EndP
                        \HCode{</dd></dl>}\ShowPar}%
       \def\para:enumIII{\end:itm \global
          \def\end:itm{\EndP
                       \Tg</dd>}\HCode{<dt class="enumerate">}}%
       \def\para:enumIV{\EndP
                  \HCode{</dt><dd\Hnewline class="enumerate">}}%
    \else
       |<enumerate I|>%
       \def\para:enumII{|<enumerate II|>}%
       \def\para:enumIII{|<enumerate III|>}%
       \def\para:enumIV{|<enumerate IV|>}%
    \fi
    }
    {\para:enumII}    {\para:enumIII}    {\para:enumIV}
>>>





\<configure html4 alphanum\><<<
\def\:tempc#1#2#3#4{%
   \ConfigureMark{toclvl#1}
      {\HCode{<span class="titlemark">}\csname thelvl#1\endcsname
       \HCode{</span>}}%
   \Configure{toclvl#1}
      {}{}
      {\ifvmode \IgnorePar\fi \EndP\IgnorePar
       \HCode{<#4 class="toclvl#1Head"\a:LRdir>}\TitleMark\space\HtmlParOff}
      {\HCode{</#4>}\HtmlParOn \IgnoreIndent \par}%
   \ConfigureToc{toclvl#1}
      {|<alphanum toc spaces|>\def\:temp{\J@INumberRoot{#2}{\tmp:cnt}}%
       \afterassignment\:temp \tmp:cnt}
      {#3 \HCode{<span class="toclvl#1">}}{}
      {\HCode{</span><br\xml:empty>}}%
   \ConfigureToc{liketoclvl#1}
      {} {|<alphanum toc spaces|>\HCode{<span class="liketoclvl#1">}}{}
      {\HCode{</span><br\xml:empty>}}%
}
\:tempc a1{.}{h3}
\:tempc b2{.}{h4}
\:tempc c3{.}{h5}
\:tempc d4{)}{h5}
\:tempc e5{)}{h5}
\:tempc f6{)}{h5}
\:tempc g7{)}{h5}
\:tempc h8{)}{h5}
\:tempc i9{)}{h5}
\:tempc j{10}{)}{h5}
\:tempc k{11}{)}{h5}
\:tempc l{12}{)}{h5}
>>>

\<alphanum toc spaces\><<<
\tmp:cnt=0 \loop \advance\tmp:cnt by 1
                  \ifnum \tmp:cnt<#2 ~~\repeat
>>>

\<\><<<
\ConfigureMark{toc}
   {\HCode{<span class="titlemark">}\csname thelvl\alph{tiefe}\endcsname
    \HCode{</span>}}
\Configure{toc}
   {}{}
   {\ifvmode \IgnorePar\fi \EndP\IgnorePar  
    \HCode{<h5 class="tocHead"\a:LRdir>}\TitleMark\space\HtmlParOff}
   {\HCode{</h5>}\HtmlParOn \IgnoreIndent \par}
>>>







\<configure html4 alphanum\><<<
\bgroup
   \let\ifx=\relax
   \let\:temp=\relax
   \let\:tempa=\expandafter
   \let\expandafter=\relax
   \let\:TableOfContents=\relax
   \let\else=\relax
   \let\if=\relax
   \let\fi=\relax
   \def\Auto:ent#1{\noexpand\Auto:ent{#1,toclvla,liketoclvla,toclvlb,%
      liketoclvlb,toclvlc,liketoclvlc,toclvld,liketoclvld,toclvle,%
      liketoclvle,toclvlf,liketoclvlf,toclvlg,liketoclvlg,toclvlh,%
      liketoclvlh,toclvli,liketoclvli,toclvlj,%
      liketoclvlj,toclvlk,liketoclvlk,toclvll,liketoclvll}}
   \edef\:TOC{\def\noexpand\:TOC{\:TOC}}
   \:tempa 
\egroup \:TOC
>>>













  \<configure html4 gloss\><<<
\ConfigureList{glosslist}{}{}{}{}
\Configure{gloss}  {\Link{\gls@b}{}}  {\EndLink}
\Configure{glosslist}%
   {\IgnorePar\EndP
    \HCode{<dl \a:LRdir class="glosslist">}\global\let\end:glitm=\empty}
   {\IgnorePar\EndP\HCode{</dd></dl>}\ShowPar}
   {\end:glitm\gdef\end:glitm{\EndP\Tg</dd>}\HCode{<dt
        class="glosslist">}\Link{}{\GlossLabel}\EndLink }
   {\HCode{</dt><dd\Hnewline class="glosslist">}}
\Css{dl.glosslist {margin-left:2em;}}
>>>





\<configure html4 booktabs\><<<
\Configure{toprule}
   {|<booktabs rule mag|>%
    \Css{tr\#TBL-\TableNo-\ifnum \HRow=0 
          1- td{border-top:|<booktabs rule height|> solid}
     \else
          \HRow- td{border-bottom:|<booktabs rule height|> solid}
     \fi
   }}
\Configure{bottomrule}
   {|<booktabs rule mag|>%
    \Css{tr\#TBL-\TableNo-\HRow-
            td{border-bottom:|<booktabs rule height|> solid}}}
\Configure{midrule}
   {|<booktabs rule mag|>%
    \Css{tr\#TBL-\TableNo-\HRow- 
            td{border-bottom:|<booktabs rule height|> solid}}}
\Configure{cmidrule}
   {|<booktabs rule mag|>%
    \Css{tr\#TBL-\TableNo-\HRow- 
            td{border-bottom:|<booktabs rule height|> solid}}%
    \HCode{<!--cmidrule-->}}
>>>



The cmidrule introduces ruler segments at different rows, instead of all of
them in the same row.

\<booktabs rule height\><<<
\expandafter\x:Em \the\@thisrulewidth em 
>>>

\<booktabs rule mag\><<<
\@thisrulewidth=\csname a:rule-mag\endcsname\@thisrulewidth    
>>>

\<configure html4 booktabs\><<<
\NewConfigure{rule-mag}{1}
\Configure{rule-mag}{0.14}
{
  \def\x:Em{%
    \catcode`\p=12
    \catcode`\t=12
    \gdef\x:Em}
  \x:Em#1pt{#1}
}
>>>




%%%%%%%%%%%%%%%%%%
\section{Endnotes.sty}
%%%%%%%%%%%%%%%%%%





\<configure html4 endnotes\><<<
\Configure{makeenmark}
   {\Link{ennote-\endnoteN}{enmark-\endnoteN}} {\EndLink}
\Configure{enoteformat}
   {\Link{enmark-\endnoteN}{ennote-\endnoteN}} {\EndLink}
>>>





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Shared}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\<TeX4ht copyright\><<<
%                                                        %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 of this license or (at your option) any    %
% later version. The latest version of this license is   %
% in                                                     %
%   http://www.latex-project.org/lppl.txt                %
% and version 1.3 or later is part of all distributions  %
% of LaTeX version 2003/12/01 or later.                  %
%                                                        %
% This work has the LPPL maintenance status "maintained".%
%                                                        %
% This Current Maintainer of this work                   %
% is Eitan M. Gurari.                                    %
%                                                        %
% If you modify this program your changing its signature %
% with a directive of the following form will be         %
% appreciated.                                           %
%            \message{signature}                         %
%                                                        %
%                             gurari@cse.ohio-state.edu  %
%                 http://www.cse.ohio-state.edu/~gurari  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version |version}
>>>
\<par del\><<<
!*?: >>>
\<tag of Tag\><<<
 cw:>>>

\<tail\><<<
tail>>>

\<addr for Tag and Ref of Sec\><<<
\xdef\:cursec{|<section html addr|>}%
>>>









 \OutputCode[4ht]\<exerqz\>
 \OutputCodE\<onmouseover.4ht\>         

\endinput






