<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% $Id: tex4ht-docbook.tex 1450 2024-01-22 21:33:00Z karl $
% compile 3 times:     latex tex4ht-docbook   
%                or  xhlatex tex4ht-docbook "html,3,sections+"
%
% Copyright 2009-2024 TeX Users Group
% Copyright 2000-2009 Eitan M. Gurari
% Released under LPPL 1.3c+.
% See tex4ht-cpright.tex for license text.

\ifx \HTML\UnDef
   \def\HTML{docbook,docbook-math,docbook-mml}                         
   \def\CONFIG{\jobname}
   \def\MAKETITLE{\title{Source for DocBook}% 
                  \author{Eitan M. Gurari}}   
   \def\PREAMBLE{\usepackage{url}}
   \def\next{\input mktex4ht.4ht  \endinput}
   \expandafter\next
\fi

\input{common}
\input{tex4ht-cpright}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{File Organization}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\&lt;docbook\&gt;&lt;&lt;&lt;
% docbook.4ht (|version), generated from |jobname.tex
% Copyright 2009-2024 TeX Users Group
% Copyright |CopyYear.2000. Eitan M. Gurari
|&lt;TeX4ht copywrite|&gt;
&gt;&gt;&gt;


\&lt;docbook-math\&gt;&lt;&lt;&lt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% docbook-math.4ht (|version), generated from |jobname.tex
% Copyright (C) 2009-2010 TeX Users Group
% Copyright (C) |CopyYear.2000. Eitan M. Gurari
|&lt;TeX4ht copywrite|&gt;
&gt;&gt;&gt;


\&lt;docbook-mml\&gt;&lt;&lt;&lt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% docbook-mml.4ht (|version), generated from |jobname.tex
% Copyright (C) 2009-2010 TeX Users Group
% Copyright (C) |CopyYear.2000. Eitan M. Gurari
|&lt;TeX4ht copywrite|&gt;
&gt;&gt;&gt;


\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt;
\if:latex  |&lt;Hinclude latex|&gt;
\else      |&lt;Hinclude plain|&gt;  \fi
&gt;&gt;&gt;

\&lt;configure docbook plain\&gt;&lt;&lt;&lt;
|&lt;Hinclude plain lib|&gt;
|&lt;Hinclude plain + latex lib|&gt;
&gt;&gt;&gt;

\&lt;configure docbook latex\&gt;&lt;&lt;&lt;
|&lt;Hinclude latex lib|&gt;
|&lt;Hinclude plain + latex lib|&gt;
&gt;&gt;&gt;

\&lt;configure docbook Preamble\&gt;&lt;&lt;&lt;    
\Configure{ext}{xml}
\edef\Preamble{\Preamble,refcaption}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Origin of Hooks}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%
\section{tex4ht}
%%%%%%%%%%%%%%%%%%

\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt;    
|&lt;tex4ht wrapper|&gt;
|&lt;tex4ht paragraphs|&gt;
|&lt;tex4ht cross-linking|&gt;
&gt;&gt;&gt;


%%%%%%%%%%%%%%%
\section{latex}
%%%%%%%%%%%%%%%

\&lt;configure docbook latex\&gt;&lt;&lt;&lt; 
|&lt;latex ltsec|&gt;
|&lt;latex environments|&gt;
|&lt;latex lists|&gt;
|&lt;latex tables|&gt;
|&lt;latex etc|&gt;
|&lt;obey lines|&gt;
|&lt;latex, plain|&gt;
&gt;&gt;&gt;


\&lt;configure docbook plain\&gt;&lt;&lt;&lt;
|&lt;latex, plain|&gt;
&gt;&gt;&gt;




\&lt;latex etc\&gt;&lt;&lt;&lt;
\Configure{ref}{\refLink}{\EndLink}{}      
\def\refLink#1#2#3\EndLink{
   \ifvmode
     \HCode{&lt;note role="ref"&gt;&lt;para&gt;}
     \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg&lt;!--ref: \RefArg--&gt;\fi\EndLink
     #3\HCode{&lt;/para&gt;&lt;/note&gt;}
   \else
     \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg&lt;!--ref: \RefArg--&gt;\fi#3\EndLink
   \fi}
&gt;&gt;&gt;


We reuse old accents code from unicode.4ht, because 
we got errors for accented characters without explicit
configuration for accents.

\&lt;latex etc\&gt;&lt;&lt;&lt;
\Configure{accents}
{\ifmmode \expandafter\mathord\fi
{\leavevmode
\if !#1!\ht:special{t4ht@+&amp;\#x#2;}%
\else \expandafter \ifx\csname U#2#1\endcsname\relax
    \ht:special{t4ht@+&amp;{35}x#2;}%
\else
    \ht:special{t4ht@+&amp;{35}x\csname U#2#1\endcsname;}%
\fi \fi x%
\ht:special{t4ht@[}x\ht:special{t4ht@]}}}
{\ifmmode \expandafter\mathord\fi
{#3}}
&gt;&gt;&gt;


\&lt;configure docbook-mml latex\&gt;&lt;&lt;&lt; 
\def\refLink#1#2#3\EndLink{%
   \ifvmode
      \ifmathml\else
          \HCode{&lt;note role="ref"&gt;&lt;para role="ref"&gt;}
      \fi
      \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg&lt;!--ref: \RefArg--&gt;\fi\EndLink
      \ifmathml\else #3\HCode{&lt;/para&gt;&lt;/note&gt;}\par\fi
   \else
      \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg&lt;!--ref: \RefArg--&gt;\fi\EndLink
   \fi
}
&gt;&gt;&gt;





\&lt;latex etc\&gt;&lt;&lt;&lt;
\Configure{newline}{\HCode{&lt;!--br\Hnewline/--&gt;}}             
&gt;&gt;&gt;

\&lt;configure docbook-mml tex4ht\&gt;&lt;&lt;&lt; 
\LinkCommand\mtxt:link{mtext,xreflabel,id, class="label" ,,\empty}
\LinkCommand\msp:link{mstyle,xreflabel,id, class="label" ,,\empty}
&gt;&gt;&gt;



\&lt;configure docbook-mml latex\&gt;&lt;&lt;&lt; 
\Configure{newline}
  {\ifmtext \HCode{&lt;/mtext&gt;&lt;mtext\Hnewline class="newline"&gt;}%
   \else \HCode{&lt;!--br\Hnewline role="newline" /--&gt;}\fi}
&gt;&gt;&gt;

\&lt;configure docbook-mml latex\&gt;&lt;&lt;&lt;
\Configure{equation}
   {\IgnorePar\EndP\HCode{&lt;para role="equation"&gt;}}
   {\HCode{&lt;/para&gt;&lt;para role="equation-label"&gt;}}
   {\IgnorePar\HCode{&lt;/para&gt;}\ShowPar\par}
&gt;&gt;&gt;







\&lt;latex etc\&gt;&lt;&lt;&lt;
\Configure{newtheorem}
   {\IgnorePar\EndP\HCode{&lt;blockquote role="newtheorem"&gt;&lt;title&gt;}}
   {\HCode{&lt;/title&gt;}\ShowPar\par}
   {\IgnorePar\EndP\HCode{&lt;/blockquote&gt;}\ShowPar\par}
&gt;&gt;&gt;

\verb+&lt;section&gt;+ and \verb+&lt;blockquote&gt;+ allow recursion,
but the first can't be followed by \verb+&lt;para&gt;+.


\&lt;configure docbook plain\&gt;&lt;&lt;&lt; 
|&lt;plain prologue|&gt;
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Class Roots}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\&lt;configure docbook article\&gt;&lt;&lt;&lt; 
|&lt;article, report, book|&gt;
|&lt;article prologue|&gt;
|&lt;article maketitle|&gt;
|&lt;article sections|&gt;
|&lt;article tocs|&gt;
|&lt;article,report,book lists|&gt;
|&lt;article,report,book figures|&gt;
|&lt;article,report|&gt;
|&lt;article,report,book indexes|&gt;
&gt;&gt;&gt;

% |&lt;amsart + article sec|&gt;


\&lt;configure docbook report\&gt;&lt;&lt;&lt; 
|&lt;article, report, book|&gt;
|&lt;report, book|&gt;
|&lt;report prologue|&gt;
|&lt;report maketitle|&gt;
|&lt;report sections|&gt;
|&lt;report,book tocs|&gt;
|&lt;article,report,book lists|&gt;
|&lt;article,report,book figures|&gt;
|&lt;article,report|&gt;
|&lt;article,report,book indexes|&gt;
&gt;&gt;&gt;



\&lt;configure docbook book\&gt;&lt;&lt;&lt; 
|&lt;article, report, book|&gt;
|&lt;report, book|&gt;
|&lt;book prologue|&gt;
|&lt;book maketitle|&gt;
|&lt;book sections|&gt;
|&lt;report,book tocs|&gt;
|&lt;article,report,book lists|&gt;
|&lt;article,report,book figures|&gt;
|&lt;article,report,book indexes|&gt;
&gt;&gt;&gt;



\&lt;configure docbook scrartcl\&gt;&lt;&lt;&lt; 
|&lt;article, report, book|&gt;
|&lt;article prologue|&gt;
|&lt;article maketitle|&gt;
|&lt;article sections|&gt;
|&lt;article tocs|&gt;
|&lt;article,report,book lists|&gt;
|&lt;article,report,book figures|&gt;
|&lt;article,report|&gt;
|&lt;article,report,book indexes|&gt;
&gt;&gt;&gt;

\&lt;configure docbook scrbook\&gt;&lt;&lt;&lt; 
|&lt;article, report, book|&gt;
|&lt;report, book|&gt;
|&lt;book prologue|&gt;
|&lt;book maketitle|&gt;
|&lt;scr title page|&gt;
|&lt;book sections|&gt;
|&lt;scrbook sections|&gt;
|&lt;report,book tocs|&gt;
|&lt;scrbook tocs|&gt;
|&lt;article,report,book lists|&gt;
|&lt;article,report,book figures|&gt;
|&lt;article,report,book indexes|&gt;
&gt;&gt;&gt;

\&lt;configure docbook scrreprt\&gt;&lt;&lt;&lt; 
|&lt;article, report, book|&gt;
|&lt;report, book|&gt;
|&lt;report prologue|&gt;
|&lt;report maketitle|&gt;
|&lt;report sections|&gt;
|&lt;report,book tocs|&gt;
|&lt;article,report,book lists|&gt;
|&lt;article,report,book figures|&gt;
|&lt;article,report|&gt;
|&lt;article,report,book indexes|&gt;
&gt;&gt;&gt;

\&lt;configure docbook memoir\&gt;&lt;&lt;&lt; 
|&lt;article, report, book|&gt;
|&lt;report, book|&gt;
|&lt;book prologue|&gt;
|&lt;book maketitle|&gt;
|&lt;book sections|&gt;
|&lt;report,book tocs|&gt;
|&lt;article,report,book lists|&gt;
|&lt;article,report,book figures|&gt;
|&lt;article,report,book indexes|&gt;
&gt;&gt;&gt;

\&lt;article, report, book\&gt;&lt;&lt;&lt;
|&lt;config lists of figures and tables|&gt;
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Front and Back Matter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Front and Back Matter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\begin{verbatim}
&lt;TEI.2&gt;
    &lt;teiHeader&gt; [ TEI Header information ]  &lt;/teiHeader&gt;
    &lt;text&gt;
        &lt;front&gt; [ front matter ... ]   &lt;/front&gt;
        &lt;body&gt;  [ body of text ... ]   &lt;/body&gt;
        &lt;back&gt;  [ back matter ...  ]   &lt;/back&gt;
    &lt;/text&gt;
&lt;/TEI.2&gt;
\end{verbatim}

The front and back elements are optional.

\&lt;tex4ht wrapper\&gt;&lt;&lt;&lt;
\Configure{HTML}{}{}
\Configure{HEAD}{\bgroup \Configure{TITLE}{}{}}{\egroup}
\Configure{BODY}{}{}
\Configure{TITLE+} {}
\ifx \a:TITLE\:UnDef
\Configure{TITLE}{}{}
\fi
&gt;&gt;&gt;

There used to be this configuration, but the resulting title element was empty.
Publication title should be inside info element anyway. This element is inserted by maketitle.
% \Configure{TITLE}{\Protect\IgnorePar
%    \HCode{&lt;title&gt;}}{\HCode{&lt;/title&gt;\Hnewline}}








\&lt;article prologue\&gt;&lt;&lt;&lt;
\def\:gobbleM#1-&gt;{}
\Configure{BODY}
   {|&lt;tex4ht sig|&gt;%
    \HCode{&lt;article |&lt;xml name spaces|&gt; &gt;}%
    \a:TITLE\bgroup \:TITLE: \c:TITLE \egroup \b:TITLE 
    \par\ShowPar
   } 
   {\IgnorePar\EndP\HCode{&lt;/article&gt;}}
|&lt;tex4ht log sig|&gt;
&gt;&gt;&gt;


\&lt;plain prologue\&gt;&lt;&lt;&lt;
\def\:gobbleM#1-&gt;{}
\Configure{BODY}
   {|&lt;tex4ht sig|&gt;%
    \HCode{&lt;article |&lt;xml name spaces|&gt; &gt;}%
    \par\ShowPar} 
   {\IgnorePar\EndP\HCode{&lt;/article&gt;}}
|&lt;tex4ht log sig|&gt;
&gt;&gt;&gt;



\&lt;report prologue\&gt;&lt;&lt;&lt;
\def\:gobbleM#1-&gt;{}
\Configure{BODY}
   {|&lt;tex4ht sig|&gt;%
    \HCode{&lt;article role="report" |&lt;xml name spaces|&gt; &gt;}%
    \a:TITLE\bgroup \:TITLE: \c:TITLE \egroup \b:TITLE 
    \par\ShowPar}
   {\IgnorePar\EndP\HCode{&lt;/article&gt;}}
|&lt;tex4ht log sig|&gt;
&gt;&gt;&gt;



\&lt;book prologue\&gt;&lt;&lt;&lt;
\def\:gobbleM#1-&gt;{}
\Configure{BODY}
   {|&lt;tex4ht sig|&gt;%
    \HCode{&lt;article role="book" |&lt;xml name spaces|&gt; &gt;}%
    \a:TITLE\bgroup \:TITLE: \c:TITLE \egroup \b:TITLE 
    \par\ShowPar
   }
   {\IgnorePar\EndP\HCode{&lt;/article&gt;}}
|&lt;tex4ht log sig|&gt;
&gt;&gt;&gt;



\&lt;tex4ht sig\&gt;&lt;&lt;&lt;
\HCode{\Hnewline&lt;!--translated from \jobname.tex
     \Hnewline by TeX4ht  (https://tug.org/tex4ht/) 
     \expandafter\:gobbleM\meaning\Preamble\space--&gt;\Hnewline}
\:CheckOption{-xtpipes} \if:Option 
   \Log:Note{Use the `-xtpipes' command line option to 
             avoid xtpipes post processing}
\else
   \HCode{&lt;?xtpipes file="docbook.4xt" ?&gt;\Hnewline}
\fi
&gt;&gt;&gt;

\&lt;tex4ht log sig\&gt;&lt;&lt;&lt;
\immediate\write-1{TeX4ht package options:
    \expandafter\:gobbleM\meaning\Preamble}
&gt;&gt;&gt;







%%%%%%%%%%%%%%%%%%
\subsection{DTD's}
%%%%%%%%%%%%%%%%%%

\&lt;xml name spaces\&gt;&lt;&lt;&lt;
xmlns="http://docbook.org/ns/docbook"                        \Hnewline  
xmlns:xlink="http://www.w3.org/1999/xlink"                   \Hnewline  
version="5.0"                                                \Hnewline  
&gt;&gt;&gt;

\&lt;\&gt;&lt;&lt;&lt;
xmlns="http://relaxng.org/ns/structure/1.0"                  \Hnewline  
xmlns:svg="http://www.w3.org/2000/svg"                       \Hnewline  
xmlns:s="http://www.ascc.net/xml/schematron"                 \Hnewline  
xmlns:rng="http://relaxng.org/ns/structure/1.0"              \Hnewline  
xmlns:mml="http://www.w3.org/1998/Math/MathML"               \Hnewline  
xmlns:html="http://www.w3.org/1999/xhtml"                    \Hnewline  
xmlns:db="http://docbook.org/ns/docbook"                     \Hnewline  
xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/"         \Hnewline  
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"\Hnewline  
xmlns:xsd="http://www.w3.org/2001/XMLSchema"                 \Hnewline  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"        \Hnewline  
&gt;&gt;&gt;

% datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" \Hnewline  
% ns="http://docbook.org/ns/docbook"                           \Hnewline 



\&lt;article prologue\&gt;&lt;&lt;&lt;
\Configure{VERSION}
  {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;

\&lt;doctype 5.0\&gt;&lt;&lt;&lt;
PUBLIC "-//OASIS//DTD DocBook V5.0//|&lt;dtd lang|&gt;"\Hnewline
       "http://www.oasis-open.org/docbook/xml/5.0/docbook.dtd"
&gt;&gt;&gt;



%   {\HCode{&lt;!--!DOCTYPE article [|&lt;docbook dtd|&gt;]\Hnewline 
%     DocBook V5.0CR5 --&gt;\Hnewline }}


\&lt;plain prologue\&gt;&lt;&lt;&lt;
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;




\&lt;report prologue\&gt;&lt;&lt;&lt;
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;




\&lt;book prologue\&gt;&lt;&lt;&lt;
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;


\&lt;docbook dtd\&gt;&lt;&lt;&lt;
&lt;!ENTITY \% docbook.dtd PUBLIC\Hnewline
    "-//OASIS//DTD DocBook XML V4.2CR1//|&lt;dtd lang|&gt;"\Hnewline
       "http://www.oasis-open.org/docbook/xml/4.2CR1/docbookx.dtd"&gt;
\Hnewline \%docbook.dtd; \Hnewline
&gt;&gt;&gt;


\&lt;dtd lang\&gt;&lt;&lt;&lt;
\expandafter
\ifx \csname a:dtd-lang\endcsname\relax EN\else
  \csname a:dtd-lang\endcsname
\fi
&gt;&gt;&gt;



\&lt;configure docbook-mml article\&gt;&lt;&lt;&lt; 
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;


\&lt;configure docbook-mml report\&gt;&lt;&lt;&lt; 
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;


\&lt;configure docbook-mml book\&gt;&lt;&lt;&lt; 
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;

%   {\HCode{&lt;!--!DOCTYPE article [|&lt;docbook-mml dtd tex4ht|&gt;]\Hnewline 
%     DocBook V5.0CR5 --&gt;\Hnewline }}

\&lt;configure docbook-mml scrbook\&gt;&lt;&lt;&lt; 
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;





\&lt;configure docbook-mml plain\&gt;&lt;&lt;&lt; 
\Configure{VERSION}
   {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
&gt;&gt;&gt;



\&lt;docbook-mml dtd tex4ht\&gt;&lt;&lt;&lt;
|&lt;docbook-mml dtd|&gt;%
|&lt;docbook dtd|&gt;%
|&lt;mathml dtd|&gt;%
&gt;&gt;&gt;


\&lt;docbook-mml dtd\&gt;&lt;&lt;&lt;
&lt;!ELEMENT equation (math)&gt;\Hnewline
&lt;!ELEMENT inlineequation (math)&gt;\Hnewline
|&lt;duplicated mathml entities|&gt;%
&gt;&gt;&gt;

\&lt;duplicated mathml entities\&gt;&lt;&lt;&lt;
&lt;!ENTITY \% ent-isopub  ""&gt;
&lt;!ENTITY \% ent-isonum  ""&gt;\Hnewline    
&lt;!ENTITY \% ent-isolat2  ""&gt;
&lt;!ENTITY \% ent-isolat1  ""&gt;\Hnewline    
&lt;!ENTITY \% ent-isodia  ""&gt;
&lt;!ENTITY \% ent-isocyr2  ""&gt;\Hnewline    
&lt;!ENTITY \% ent-isocyr1  ""&gt;
&lt;!ENTITY \% ent-isobox  ""&gt;\Hnewline    
&lt;!ENTITY \% ent-isotech  ""&gt;
&lt;!ENTITY \% ent-isogrk3  ""&gt;\Hnewline    
&lt;!ENTITY \% ent-isoamsr  ""&gt;
&lt;!ENTITY \% ent-isoamso  ""&gt;\Hnewline    
&lt;!ENTITY \% ent-isoamsn  ""&gt;
&lt;!ENTITY \% ent-isoamsc  ""&gt;\Hnewline    
&lt;!ENTITY \% ent-isoamsb  ""&gt;
&lt;!ENTITY \% ent-isoamsa  ""&gt;\Hnewline  
&gt;&gt;&gt;



\&lt;mathml dtd\&gt;&lt;&lt;&lt;
&lt;!ENTITY \% mathml.dtd PUBLIC
    "-//W3C//DTD MathML 2.0//|&lt;dtd lang|&gt;"\Hnewline\space\space
    "mathml.dtd"&gt;  
    \Hnewline \%mathml.dtd;\Hnewline
&gt;&gt;&gt;







%%%%%%%%%%%%%%%%%%%%
\chapter{LaTeX}
%%%%%%%%%%%%%%%%%%%%





%%%%%%%%%%%%%%%%%%
\section{Title Page}
%%%%%%%%%%%%%%%%%%

\&lt;article maketitle\&gt;&lt;&lt;&lt;
\Configure{maketitle}
   {\HCode{&lt;info role="maketitle"&gt;}}
   {\HCode{&lt;/info&gt;}\par\ShowPar}
   {\HCode{&lt;title&gt;}}{\HCode{&lt;/title&gt;}}
\Configure{thanks author date and} {}{}
   {\HCode{&lt;author&gt;&lt;personname&gt;&lt;othername&gt;}}
   {\HCode{&lt;/othername&gt;&lt;/personname&gt;&lt;/author&gt;}}
   {\HCode{&lt;date&gt;}}
   {\HCode{&lt;/date&gt;}}
   {}{}
&gt;&gt;&gt;

\&lt;report maketitle\&gt;&lt;&lt;&lt;
\Configure{maketitle}
   {\HCode{&lt;info role="maketitle"&gt;}}
   {\HCode{&lt;/info&gt;}\par\ShowPar}
   {\HCode{&lt;title&gt;}}{\HCode{&lt;/title&gt;}}
\Configure{thanks author date and} {}{}
   {\HCode{&lt;author&gt;&lt;personname&gt;&lt;othername&gt;}}
   {\HCode{&lt;/othername&gt;&lt;/personname&gt;&lt;/author&gt;}}
   {\HCode{&lt;date&gt;}}
   {\HCode{&lt;/date&gt;}}
   {}{}
&gt;&gt;&gt;

\&lt;book maketitle\&gt;&lt;&lt;&lt;
\Configure{maketitle}
   {\HCode{&lt;info role="maketitle"&gt;}}
   {\HCode{&lt;/info&gt;}\par\ShowPar}
   {\HCode{&lt;title&gt;}}{\HCode{&lt;/title&gt;}}
\Configure{thanks author date and} {}{}
   {\HCode{&lt;author&gt;&lt;personname&gt;&lt;othername&gt;}}
   {\HCode{&lt;/othername&gt;&lt;/personname&gt;&lt;/author&gt;}}
   {\HCode{&lt;date&gt;}}
   {\HCode{&lt;/date&gt;}}
   {}{}
&gt;&gt;&gt;


\&lt;article maketitle\&gt;&lt;&lt;&lt;
\ConfigureEnv{abstract}
   {\IgnorePar\EndP\HCode{&lt;abstract&gt;}}
   {\IgnorePar\EndP\HCode{&lt;/abstract&gt;}}
   {\HCode{&lt;title&gt;}}
   {\HCode{&lt;/title&gt;}}
&gt;&gt;&gt;



\&lt;report maketitle\&gt;&lt;&lt;&lt;
\ConfigureEnv{abstract}
   {\IgnorePar\EndP\HCode{&lt;abstract&gt;}}
   {\IgnorePar\EndP\HCode{&lt;/abstract&gt;}}
   {\HCode{&lt;note role="title"&gt;&lt;para&gt;}}
   {\HCode{&lt;/para&gt;&lt;/note&gt;}}
&gt;&gt;&gt;





\&lt;scr title page\&gt;&lt;&lt;&lt;
\ConfigureEnv{titlepage}
   {\bgroup 
      \ifvmode \IgnorePar\fi \EndP
%     \HCode{&lt;para class="titlepage"&gt;}%
      \Configure{tabular}{}{}{}{}{}{}% 
      \ConfigureEnv{tabular}{}{}{}{}{}{}% 
      \ConfigureEnv{center}{}{}{}{}}
   {\ifvmode \IgnorePar\fi \EndP
%     \HCode{&lt;/para&gt;}%
    \egroup}
   {} {}
\Configure{dedication}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{&lt;para role="dedication" &gt;}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;/para&gt;}}
&gt;&gt;&gt;




%%%%%%%%%%%%%%%%%%
\section{Sections}
%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%
\subsection{Special Cases for Sectioning Titles}
%%%%%%%%%%%%%




\&lt;latex ltsec\&gt;&lt;&lt;&lt;
\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  
   |&lt;nolink ref|&gt;%
  }
  {\let\index=\sv:index \let\label=\sv:label 
   |&lt;restore ref|&gt;%
   \let\newline=\sv:newline    \let\@setfontsize=\sv:setfontsize 
  }
&gt;&gt;&gt;



\&lt;nolink ref\&gt;&lt;&lt;&lt;
\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
&gt;&gt;&gt;

\&lt;restore ref\&gt;&lt;&lt;&lt;
\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  
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Titles and Bodies}
%%%%%%%%%%%%%%%%%%%%%%%%%


\&lt;book sections\&gt;&lt;&lt;&lt;
|&lt;article sections|&gt;
\Configure{chapter}
   {\OpenDiv{chapter}}   {\CloseDiv{chapter}}
   {\HCode{&lt;title&gt;}} {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{likechapter}
   {\OpenDiv{likechapter}}   {\CloseDiv{likechapter}}
   {\HCode{&lt;title&gt;}} {\HCode{&lt;/title&gt;}\par\ShowPar}
&gt;&gt;&gt;


\&lt;report sections\&gt;&lt;&lt;&lt;
|&lt;book sections|&gt;
&gt;&gt;&gt;



\&lt;article sections\&gt;&lt;&lt;&lt;
|&lt;amsart + article sec|&gt;
&gt;&gt;&gt;



\&lt;TitleMark\&gt;&lt;&lt;&lt;
\TitleMark
&gt;&gt;&gt;



\&lt;sectioning utilities\&gt;&lt;&lt;&lt;
\def\OpenDiv#1{%
   \IgnorePar\EndP \HCode{&lt;!--l.
       \the\inputlineno--&gt;&lt;section\Hnewline role="#1"&gt;}%
}
\def\CloseDiv#1{%
   \IgnorePar\EndP\HCode{&lt;/section&gt;&lt;!--end #1--&gt;}%
}
\def\AppOpenDiv#1{%
   \IgnorePar\EndP \HCode{&lt;!--l.
       \the\inputlineno--&gt;&lt;appendix\Hnewline role="#1"&gt;}%
}
\def\AppCloseDiv#1{%
   \IgnorePar\EndP\HCode{&lt;/appendix&gt;&lt;!--end #1--&gt;}%
}
&gt;&gt;&gt;


% \HAssign\DivLevel=0
% \def\OpenDiv#1{%
%    \IgnorePar\EndP   \gHAdvance\DivLevel by 1
%    \HCode{&lt;sect\DivLevel\Hnewline role="#1"&gt;}%
% }
% \def\CloseDiv#1{%
%    \IgnorePar\EndP\HCode{&lt;/sect\DivLevel&gt;&lt;!--end #1--&gt;}%
%    \gHAdvance\DivLevel by -1
% }


%   \PopStack\text:stack\:temp \def\:tempa{body}%
%   \ifx \:temp\:tempa \else \HCode{&lt;/\:temp&gt;&lt;body&gt;}\fi
%   \PushStack\text:stack{body}



\&lt;article sections\&gt;&lt;&lt;&lt;
\Configure{likepart}
   {\OpenDiv{likepart}}   {\CloseDiv{likepart}}
   {\HCode{&lt;title&gt;}} {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{likesection}
   {\OpenDiv{likesection}}   {\CloseDiv{likesection}}
   {\HCode{&lt;title&gt;}}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{likesubsection}
   {\OpenDiv{likesubsection}}   {\CloseDiv{likesubsection}}
   {\HCode{&lt;title&gt;}}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{likesubsubsection}
   {\OpenDiv{likesubsubsection}}   {\CloseDiv{likesubsubsection}}
   {\HCode{&lt;title&gt;}}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{likeparagraph}
   {\OpenDiv{likeparagraph}}   {\CloseDiv{likeparagraph}}
   {\HCode{&lt;title&gt;}}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{likesubparagraph}
   {\OpenDiv{likesubparagraph}}   {\CloseDiv{likesubparagraph}}
   {\HCode{&lt;title&gt;}}   {\HCode{&lt;/title&gt;}\par\ShowPar}
&gt;&gt;&gt;




\&lt;scrbook sections\&gt;&lt;&lt;&lt;
\Configure{addchap}
   {\OpenDiv{addchap}}   {\CloseDiv{addchap}}
   {\HCode{&lt;title&gt;}}   {\HCode{&lt;/title&gt;}\par\ShowPar}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{End Points}
%%%%%%%%%%%%%%%%%%%%%%%%%

\&lt;article sections\&gt;&lt;&lt;&lt;
\Configure{endlikesection}
     {section,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubsection}
   {subsection,section,likesection,chapter,%
      likechapter,appendix,part,likpart}
\Configure{endlikesubsubsection}
   {subsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likpart}
\Configure{endlikeparagraph}
   {paragraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likpart}
\Configure{endlikesubparagraph}
   {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likpart}
\ifx \part\:UnDef \else
   \Configure{endlikepart}{endpart}
\fi
&gt;&gt;&gt;

\&lt;scrbook sections\&gt;&lt;&lt;&lt;

\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}

\ifx \part\:UnDef \else
   \Configure{endpart}{likepart}
   \Configure{endlikepart}{endpart}
\fi
&gt;&gt;&gt;

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


\&lt;latex lists\&gt;&lt;&lt;&lt;
\ConfigureList{trivlist}%
   {\EndP\HCode{&lt;glosslist&gt;}\let\end:itm=\empty}
   {\EndP\HCode{&lt;/glossdef&gt;&lt;/glossentry&gt;&lt;/glosslist&gt;}\ShowPar}
   {\end:itm\def\end:itm{\EndP\HCode{&lt;/glossdef&gt;&lt;/glossentry&gt;}}%
      \HCode{&lt;glossentry&gt;&lt;glossterm&gt;&lt;remark&gt;}\bgroup \bf}
   {\egroup\HCode{&lt;/remark&gt;&lt;/glossterm&gt;&lt;glossdef\Hnewline&gt;}\par\ShowPar}
\ConfigureList{list}%
   {\EndP\HCode{&lt;glosslist&gt;}\let\end:itm=\empty}
   {\EndP\HCode{&lt;/glossdef&gt;&lt;/glossentry&gt;&lt;/glosslist&gt;}\ShowPar}
   {\end:itm\def\end:itm{\EndP\HCode{&lt;/glossdef&gt;&lt;/glossentry&gt;}}%
      \HCode{&lt;glossentry&gt;&lt;glossterm&gt;&lt;remark&gt;}\bgroup \bf}
   {\egroup\HCode{&lt;/remark&gt;&lt;/glossterm&gt;&lt;glossdef\Hnewline&gt;}\par\ShowPar}
\ConfigureList{itemize}%
   {\EndP\HCode{&lt;itemizedlist&gt;}\let\end:itm=\empty}
   {\EndP\HCode{&lt;/listitem&gt;&lt;/itemizedlist&gt;}\ShowPar}
   {\end:itm\def\end:itm{\EndP\Tg&lt;/listitem&gt;}\DeleteMark}
   {\HCode{&lt;listitem&gt;}\par\ShowPar}
\ConfigureList{enumerate}%
   {\EndP\HCode{&lt;orderedlist\Hnewline&gt;}\let\end:itm=\empty}
   {\EndP\HCode{&lt;/listitem&gt;&lt;/orderedlist&gt;}\ShowPar}
   {\end:itm\def\end:itm{\EndP\Tg&lt;/listitem&gt;}\DeleteMark}
   {\HCode{&lt;listitem&gt;}\AnchorLabel\par\ShowPar}
\ConfigureList{description}%
   {\EndP\HCode{&lt;variablelist\Hnewline&gt;}%
      |&lt;save end:itm|&gt;\global\let\end:itm=\empty}
   {|&lt;recall end:itm|&gt;\EndP
    \HCode{&lt;/listitem&gt;&lt;/varlistentry&gt;&lt;/variablelist&gt;}\ShowPar}
   {\end:itm \global\def\end:itm{\EndP
                          \HCode{&lt;/listitem&gt;&lt;/varlistentry&gt;}}%
    \HCode{&lt;varlistentry&gt;&lt;term\Hnewline&gt;}\bgroup \bf}
   {\egroup\EndP\HCode{&lt;/term&gt;&lt;listitem&gt;}\par\ShowPar}
&gt;&gt;&gt;


\&lt;save end:itm\&gt;&lt;&lt;&lt;
\PushMacro\end:itm
&gt;&gt;&gt;


\&lt;recall end:itm\&gt;&lt;&lt;&lt;
\PopMacro\end:itm \global\let\end:itm \end:itm 
&gt;&gt;&gt;


% \LinkCommand\DBLink{link, linkend,,,,\empty}

\&lt;tex4ht cross-linking\&gt;&lt;&lt;&lt;
%\LinkCommand\DBLink{ulink, url}
\LinkCommand\DBLink{link, xlink:href}
\LinkCommand\Anchor{anchor,, xml:id,,,\empty}
\Odef\Link[#1]#2#3{%
   \global\let\EndLink=\empty
   \if ]#3]\else \Anchor{}{#3}\EndAnchor
             \gdef\M:EndLink{\HCode{&lt;!--end anchor--&gt;}}\fi
   \if ]#1#2]\else 
     \EndLink\DBLink[#1]{#2}{}\global\let\EndLink=\EndDBLink\fi
}
|&lt;fix Link for -|&gt;
\Configure{Link}{anchor}{linkend=}{xml:id=}{}
&gt;&gt;&gt;

\&lt;configure docbook-mml tex4ht\&gt;&lt;&lt;&lt;
\Odef\M:Link[#1]#2#3{%
   \global\let\M:EndLink=\empty
   \if ]#3]\else \Anchor{}{#3}\EndAnchor
                   \gdef\M:EndLink{\HCode{&lt;!--end anchor--&gt;}}\fi
   \if ]#1#2]\else
     \EndLink\DBLink[#1]{#2}{}\global\let\M:EndLink=\EndDBLink\fi
}
|&lt;fix M:Link for -|&gt;
&gt;&gt;&gt;



\&lt;fix Link for -\&gt;&lt;&lt;&lt;
\let\do:Link=\Link
\def\Link{\Protect\p:Link}
\def\p:Link{\futurelet\:next\choose:Link}
\def\choose:Link{\ifx -\:next \expandafter\minus:Link
                 \else\expandafter\do:Link\fi}
\def\minus:Link#1{\do:Link}
&gt;&gt;&gt;

The protection is required for cases like the following one.

\begin{verbatim}
\documentclass{article} 
   \begin{document} 
\section{Introduction} 
 
\begin{figure*} \caption{fig  \ref{fig}} \end{figure*} 
 
\label{fig}  
 
\end{document} 
\end{verbatim}




\&lt;fix M:Link for -\&gt;&lt;&lt;&lt;
\let\do:M:Link=\M:Link
\def\M:Link{\Protect\p:M:Link}
\def\p:M:Link{\futurelet\:next\choose:M:Link}
\def\choose:M:Link{\ifx -\:next \expandafter\minus:M:Link
                 \else\expandafter\do:M:Link\fi}
\def\minus:M:Link#1{\do:M:Link}
&gt;&gt;&gt;

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



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



\&lt;article,report,book lists\&gt;&lt;&lt;&lt;
\ConfigureList{thebibliography}%
   {\IgnorePar\EndP
      \HCode{&lt;simplelist role="bibliography"&gt;}\let\en:bib=\empty}
   {\en:bib\HCode{&lt;/simplelist&gt;}}
   {\en:bib\def\en:bib{\HCode{&lt;/member&gt;}}%
    \HCode{&lt;member&gt;&lt;!--l. 
        \the\inputlineno--&gt;&lt;abbrev role="biblioentry"&gt;}%
    |&lt;para within bib|&gt;}
   {\HCode{&lt;/abbrev&gt;}}
&gt;&gt;&gt;





\&lt;para within bib\&gt;&lt;&lt;&lt;
\Configure{HtmlPar}{}{}{}{}
&gt;&gt;&gt;



\&lt;latex lists\&gt;&lt;&lt;&lt;
\Configure{cite}{\HCode{&lt;citation&gt;}}{\HCode{&lt;/citation&gt;}}{\LinkCite}{}
\Configure{bibitem}{\Link}{\EndLink}
\LinkCommand\LinkCite{xref, linkend,,,/,\empty}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%
\subsection{Jurabib}
%%%%%%%%%%%%%%%%%%%


\&lt;configure docbook jurabib\&gt;&lt;&lt;&lt;
\Configure{jblink}{\Link}{\EndLink}
\Configure{jbanchor}{\Link}{\EndLink}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%
\subsection{Biblatex}
%%%%%%%%%%%%%%%%%%%%%


\&lt;configure docbook biblatex\&gt;&lt;&lt;&lt;
    \def\bibConfigure{%
  \ConfigureList{thebibliography}
  {\ifvmode \IgnorePar \fi \EndP \EndP
    \HCode {&lt;bibliolist&gt;}%
%
% This is for linking citations with biblist items which
% are in a different file when output is split into different
% chunks. [CVR 2012-09-27]
%
%
% &lt;biblatex-2.2&gt;
%
  \immediate\write\@auxout{%
      \string\BibFileName[\therefsection]{\FileName}}%
%
% &lt;/biblatex-2.2&gt;
%
    \PushMacro \end:itm \global \let \end:itm =\empty}%
  {\ifvmode \IgnorePar \fi \EndP
    \PopMacro \end:itm \global \let \end:itm \end:itm \EndP
    \HCode {&lt;/bibliomisc&gt;&lt;/bibliomixed&gt;&lt;/bibliolist&gt;}\ShowPar}%
  {\ifvmode \IgnorePar \fi \EndP \gHAdvance \bibN by 1
    \end:itm \global \def \end:itm {\EndP \HCode{&lt;/bibliomisc&gt;&lt;/bibliomixed&gt;}}%
    \HCode {&lt;bibliomixed xml:id="X\therefsection-\abx@field@entrykey"&gt;&lt;bibliomisc&gt;}\bgroup \bf}%
  {\ifvmode \IgnorePar \fi \EndP
    \egroup
    \HCode {&lt;/bibliomisc&gt;&lt;bibliomisc\Hnewline xml:id="bib-\bibN"&gt;}%
    \par \ShowPar}%
 }

\def\hyper:natanchorstart#1{\Link{}{#1}\EndLink}%  
\def\hyper:natlinkstart#1{\Link{#1}{}}%
&gt;&gt;&gt;



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

\&lt;&lt;article, report, book\&gt;&lt;&lt;&lt;
\ConfigureEnv{table}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{&lt;para role="table"&gt;&lt;blockquote&gt;}}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{&lt;/blockquote&gt;&lt;/para&gt;}}
   {}{}
&gt;&gt;&gt;

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



\&lt;configure docbook Preamble\&gt;&lt;&lt;&lt;    
\:CheckOption{debug-} \if:Option 
    \def\IgnoreDebug#1{}
\else 
    \def\IgnoreDebug#1{#1}
\fi
&gt;&gt;&gt;

\&lt;latex tables\&gt;&lt;&lt;&lt;
\Configure{tabular}
   {\IgnorePar\EndP \halignTB{tabular}%
    \HCode{&lt;informaltable&gt;&lt;tgroup cols="\ar:cnt"&gt;}%
    |&lt;tabular colspec width|&gt;%
    \HCode{&lt;tbody&gt;}}
   {\HCode{&lt;/tbody&gt;&lt;/tgroup&gt;&lt;/informaltable&gt;}\ShowPar}
   {\HCode{&lt;row&gt;}}
   {\HCode{&lt;/row&gt;}}
   {\HCode{&lt;entry\Hnewline}\halignTD
    \ifnum \HMultispan&gt;1 
       \tmp:cnt=\HCol \advance\tmp:cnt by \HMultispan
       \advance\tmp:cnt by -1
       \HCode{ namest="c\HCol"  \IgnoreDebug{nameend="c\the\tmp:cnt"}}\fi
    \HCode{&gt;}\par\ShowPar}
   {\ifvmode\IgnorePar\fi \EndP \HCode{&lt;/entry&gt;}}
&gt;&gt;&gt;

[\HPage{test data}
\&lt;\&gt;&lt;&lt;&lt;
\documentclass{report}  
\begin{document}  
  
\begin{tabular}{p{13cm}}  
  
\begin{verbatim}  
foo  
\end{verbatim}\\  
abc  
\end{tabular}  
  
 \end{document} 
&gt;&gt;&gt;
\EndHPage{}]

\&lt;latex tables\&gt;&lt;&lt;&lt;
\HAssign\tabularN=0
\Configure{halignTB&lt;&gt;}{tabular}{&lt;&gt;\HAlign}
\Configure{halignTB}
   {\halignTBL}
   {}
&gt;&gt;&gt;


\&lt;configure docbook-mml latex\&gt;&lt;&lt;&lt;
\Configure{halignTB}
   {\ifmathml \HCode{&lt;\:MT table }\fi \halignTBL}
   {\ifmathml \HCode{&gt;}\fi}
&gt;&gt;&gt;


\&lt;configure docbook-mml array\&gt;&lt;&lt;&lt;
\Configure{halignTB}
   {\ifmathml \HCode{&lt;\:MT table }\fi \halignTBL}
   {\ifmathml \HCode{&gt;}\fi}
&gt;&gt;&gt;

\&lt;tabular colspec width\&gt;&lt;&lt;&lt;
\tmp:cnt = 0
\loop   
\ifnum \tmp:cnt &lt; \ar:cnt
   \advance\tmp:cnt by 1
   {\HAssign\HCol=\tmp:cnt
   \HCode{&lt;colspec colname="c\HCol" 
             \expandafter\expandafter\expandafter\ifx
                                       \HColWidth\relax\else
                 colwidth="\HColWidth" 
             \fi
          /&gt;}}%
\repeat  
&gt;&gt;&gt;



\&lt;latex tables\&gt;&lt;&lt;&lt;
\Configure{halignTD} {}{}
   {&lt;}{\HCode{ align="left"}}
   {-}{\HCode{ align="center"}}
   {&gt;}{\HCode{ align="right"}}
   {^}{\HCode{ valign="top"}}
   {=}{\HCode{ valign="middle"}}
   {||}{\HCode{ valign="middle"}}
   {_}{\HCode{ valign="bottom"}}
   {p}{\HCode{ align="char"}}
   {m}{\HCode{ align="left" valign="middle"}}
   {b}{\HCode{ align="left" valign="middle"}}
   {}
&gt;&gt;&gt;






\&lt;configure docbook-mml latex\&gt;&lt;&lt;&lt;
\Configure{halignTD} {}{}
   {&lt;}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
        \HCode{ align="left" }\fi}
   {-}{\ifmathml \HCode{ \a:mathml columnalign="center"}\else
        \HCode{ align="center" }\fi}
   {&gt;}{\ifmathml \HCode{ \a:mathml columnalign="right"}\else
        \HCode{ align="right" }\fi}
   {^}{\ifmathml \HCode{ \a:mathml rowalign="top"}\else
        \HCode{ valign="top" }\fi}
   {=}{\ifmathml \HCode{ \a:mathml rowalign="baseline"}\else
        \HCode{ valign="baseline" }\fi}
   {||}{\ifmathml \HCode{ \a:mathml rowalign="center"}\else
        \HCode{ valign="middle" }\fi}
   {_}{\ifmathml \HCode{ \a:mathml rowalign="bottom"}\else
        \HCode{ valign="bottom" }\fi}
   {p}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
        \HCode{ align="left"}\fi}
   {}
&gt;&gt;&gt;


















\&lt;latex tables\&gt;&lt;&lt;&lt;
\Configure{hline}{}
\Configure{//[]}{}
&gt;&gt;&gt;


%%%%%%%%%%%%%
\subsection{Horizontal Borders}
%%%%%%%%%%%%%




\&lt;latex tables\&gt;&lt;&lt;&lt;
\Configure{HBorder}
   {&lt;row\Hnewline role="hline"&gt;}
      {&lt;entry rowsep="1"&gt;&lt;/entry&gt;}   
   {&lt;/row&gt;}
   {&lt;row\Hnewline role="cline"&gt;}
      {&lt;entry rowsep="0"&gt;&lt;/entry&gt;} 
      {&lt;entry rowsep="1"&gt;&lt;/entry&gt;}
   {&lt;/row&gt;}
   {&lt;row\Hnewline role="vspace"&gt;} 
       {&lt;entry rowsep="1"\Hnewline&gt;&lt;/entry&gt;}
   {&lt;/row&gt;}
\Configure{putHBorder}{\HCode{\HBorder}}
&gt;&gt;&gt;




\&lt;configure docbook-mml latex\&gt;&lt;&lt;&lt; 
\def\:MM{\ifmathml \a:mathml m\fi}
\Configure{HBorder}
   {&lt;\ifmathml \a:mathml mtr class\else row role\fi ="hline"&gt;} 
   {\ifmathml  &lt;\a:mathml mtd&gt;&lt;mo&gt; \string&amp;\#x0332; &lt;/mo&gt;&lt;/\a:mathml mtd&gt;\else
               &lt;entry rowsep="1"&gt;&lt;/entry&gt;\fi} 
   {&lt;/\ifmathml \a:mathml mtr\else row\fi&gt;}
   {&lt;\ifmathml \a:mathml mtr class\else row role\fi ="cline"&gt;} 
   {\ifmathml &lt;\a:mathml mtd&gt;&lt;/\a:mathml mtd&gt;\else
             &lt;entry rowsep="0"&gt;&lt;/entry&gt;\fi}
   {\ifmathml&lt;\a:mathml mtd&gt;&lt;mo&gt; \string&amp;\#x0332; &lt;/mo&gt;&lt;/\a:mathml mtd&gt;\else
             &lt;entry rowsep="1"&gt;&lt;/entry&gt;\fi}
   {&lt;/\ifmathml \a:mathml mtr\else row\fi&gt;}
   {&lt;\ifmathml \a:mathml mtr class\else row role\fi ="vspace"&gt;} 
   {\ifmathml &lt;\a:mathml mtd&gt;&lt;/\a:mathml mtd&gt;\else
           &lt;entry rowsep="1"\Hnewline&gt;\string&amp;\#x00A0;&lt;/entry&gt;\fi}
   {&lt;/\ifmathml \a:mathml mtr\else row\fi&gt;}
&gt;&gt;&gt;

\&lt;configure docbook latex\&gt;&lt;&lt;&lt; 
\Configure{xcline}{\ht:special{t4ht=&lt;!--dirt--&gt;}} 
&gt;&gt;&gt;

\&lt;mml hline\&gt;&lt;&lt;&lt;

&gt;&gt;&gt;



\&lt;\&gt;&lt;&lt;&lt;
  \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&gt; 0 &lt;/colgroup&gt;\fi}
      \HAssign\NewGroup = 0  \gdef\GROUPS{rules="groups"}}
     {\Advance:\NewGroup by 1 
      \ifnum \NewGroup=1 \xdef\VBorder{\VBorder&lt;colgroup 
          xml:id="TBL-\TableNo-\ar:cnt g"&gt;}\fi      
      \xdef\VBorder{\VBorder&lt;col\Hnewline xml:id="TBL-\TableNo
         -\ar:cnt"\xml:empty&gt;}\xdef\AllColMargins{\AllColMargins1}}
     {\xdef\AllColMargins{\AllColMargins 0}}
&gt;&gt;&gt;


\&lt;latex tables\&gt;&lt;&lt;&lt;
\HAssign\Next:TableNo=0 \global\let\TableNo=\Next:TableNo
&gt;&gt;&gt;


\&lt;latex tables\&gt;&lt;&lt;&lt;
\Configure{hline}{\ifx \ar:cnt\:UnDef\else
      \o:noalign:{|&lt;hline body for array/tabular|&gt;}%
      \expandafter\ignoreEndTr
   \fi}
&gt;&gt;&gt;




\&lt;hline body for array/tabular\&gt;&lt;&lt;&lt;
\append:def\hline:s{\a:HBorder}%
\def\:tempb{\ifnum \tmp:cnt&lt;\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
&gt;&gt;&gt;



\&lt;\&gt;&lt;&lt;&lt;
\Configure{//[]}{\ifx \ar:cnt\:UnDef 
   \else\o:noalign:{|&lt;vspace body for array/tabular|&gt;}\fi}
&gt;&gt;&gt;

\&lt;vspace body for array/tabular\&gt;&lt;&lt;&lt;
\append:def\vspc:s{\h:HBorder}%
\def\:tempb{\ifnum \tmp:cnt&lt;\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
&gt;&gt;&gt;




%%%%%%%%%%%%%
\subsection{Long Tables}
%%%%%%%%%%%%%

\&lt;configure docbook longtable\&gt;&lt;&lt;&lt;
\Configure{longtable}
   {\IgnorePar\EndP 
    \HCode{&lt;informaltable}\halignTB{longtable}%
    \HCode{&gt;&lt;tgroup cols="\ar:cnt"&gt;&lt;tbody&gt;}}
   {\HCode{&lt;/tbody&gt;&lt;/tgroup&gt;&lt;/informaltable&gt;}\ShowPar}
   {\HCode{&lt;row \Hnewline}\halignTR\HCode{&gt;}}
   {\r:HA}
   {\HCode{&lt;entry}%
    \halignTD
    \ifnum \HMultispan&gt;1 
       \tmp:cnt=\HCol \advance\tmp:cnt by \HMultispan
       \advance\tmp:cnt by -1
       \HCode{ namest="c\HCol"  \IgnoreDebug{nameend="c\the\tmp:cnt"}}\fi
    \HCode{\Hnewline role="td}|&lt;tabular td align|&gt;%
    \HCode{"&gt;}|&lt;td save EndP|&gt;%
    |&lt;start array par box|&gt;\PushStack\Table:Stck\TableNo}
   {\PopStack\Table:Stck\TableNo |&lt;end array par box|&gt;\d:HA}
\Configure{halignTB&lt;&gt;}{longtable}{\HCode{role="longtable"\Hnewline
                                            }&lt;&gt;\HAlign}
\Configure{longtableparbox}{\IgnorePar\leavevmode\ShowPar\par}
&gt;&gt;&gt;

%   {\IgnorePar\EndP
%     \HCode{|&lt;show input line no|&gt;&lt;div}%
%     \halignTB{longtable}\HCode{&gt;&lt;table&gt;}}
%   {\HCode{&lt;/table&gt;&lt;/div&gt;}}


\&lt;configure docbook longtable\&gt;&lt;&lt;&lt;
\def\r:HA{\HCode{&lt;/row&gt;}}
\def\d:HA{\ifvmode \IgnorePar \fi \EndP\HCode{&lt;/entry&gt;}|&lt;td recall EndP|&gt;}
&gt;&gt;&gt;


\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt;
\newif\ifHCond
&gt;&gt;&gt;


\&lt;show input line no\&gt;&lt;&lt;&lt;
&lt;!--l. \the\inputlineno--&gt;%
&gt;&gt;&gt;


\&lt;td save EndP\&gt;&lt;&lt;&lt;
\SaveEndP 
&gt;&gt;&gt;

\&lt;td recall EndP\&gt;&lt;&lt;&lt;
\RecallEndP 
&gt;&gt;&gt;

\&lt;start array par box\&gt;&lt;&lt;&lt;
\par  \ShowPar
&gt;&gt;&gt;

\&lt;end array par box\&gt;&lt;&lt;&lt;
\IgnorePar \EndP
&gt;&gt;&gt;








%%%%%%%%%%%%%
\subsection{Obey Lines and Alignments}
%%%%%%%%%%%%%




\&lt;obey lines\&gt;&lt;&lt;&lt;
\Configure{verb}{}{}
&gt;&gt;&gt;

\&lt;latex, plain\&gt;&lt;&lt;&lt;
\Configure{obeylines}
   {\ifvmode \IgnorePar \EndP
       \HCode{&lt;blockquote role="obeylines-v"&gt;}%
       \gdef\ob:ln{blockquote}%
    \else \HCode{&lt;remark role="obeylines-h"&gt;}%
       \gdef\ob:ln{remark}%
    \fi
   }
   {\ht:special{t4ht=&lt;/\ob:ln&gt;}\ShowPar} {\hbox{\HCode{&lt;!--br /--&gt;}}}
&gt;&gt;&gt;

\&lt;latex etc\&gt;&lt;&lt;&lt;
\ConfigureEnv{center}
   {} {\ShowPar} {}{}
\Configure{centerline}
   {\ifvmode \IgnorePar\fi\HCode{&lt;!--centerline--&gt;}}
   {\HCode{&lt;!--/centerline--&gt;}}
\Configure{leftline} 
   {\ifvmode \IgnorePar\fi\HCode{&lt;!--leftline--&gt;}}
   {\HCode{&lt;!--/leftline--&gt;}}
\Configure{rightline} 
   {\ifvmode \IgnorePar\fi\HCode{&lt;!--rightline--&gt;}}
   {\HCode{&lt;!--/rightline--&gt;}}
&gt;&gt;&gt;


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

\&lt;configure docbook multirow\&gt;&lt;&lt;&lt;
\Configure{multirow}
    {\HCode{&lt;blockquote
        role="multirow"&gt;&lt;para role="\the\@tempcnta"&gt;}}
    {\HCode{&lt;/para&gt;&lt;/blockquote&gt;}}
&gt;&gt;&gt;



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

\&lt;configure docbook dcolumn\&gt;&lt;&lt;&lt;
\Configure{dcolumn}
  {\HCode{&lt;blockquote role="align-char"&gt;&lt;para role="\Dpoint"&gt;}}
  {\HCode{&lt;/para&gt;&lt;/blockquote&gt;}}
&gt;&gt;&gt;




%%%%%%%%%%%%%%%%%%%%%%%
\subsection{colortbl.sty}
%%%%%%%%%%%%%%%%%%%%%%%

\&lt;configure docbook colortbl WAIT\&gt;&lt;&lt;&lt;
\HAssign\Table:No=0
\HAssign\TableNo=0
\HAssign\Prev:Col=0
\HAssign\HRow=0

\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|&lt;par del|&gt;%
         \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}}
&gt;&gt;&gt;




%%%%%%%%%%%%%%%%%
\section{Figures}
%%%%%%%%%%%%%%%%%

\&lt;article,report,book figures\&gt;&lt;&lt;&lt;
\ConfigureEnv{figure}
   {\ifvmode \IgnorePar\fi \EndP  \HCode{&lt;figure&gt;&lt;title/&gt;&lt;blockquote&gt;}}  
   {\ifvmode \IgnorePar\fi \EndP  \HCode{&lt;/blockquote&gt;&lt;/figure&gt;}} 
   {}{}
\Configure{caption}
   {\HCode{&lt;blockquote role="caption"&gt;&lt;title role="caption"&gt;}}     
   {\HCode{&lt;/title&gt;&lt;para&gt;}}     
   {}   
   {\HCode{&lt;/para&gt;&lt;/blockquote&gt;}}
&gt;&gt;&gt;

\&lt;config lists of figures and tables\&gt;&lt;&lt;&lt;
\ConfigureToc{lof}
   {\HCode{\Hnewline&lt;tocentry role="lofToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{lot}
   {\HCode{\Hnewline&lt;tocentry role="lotToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
&gt;&gt;&gt;



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

\&lt;configure docbook-math tex4ht\&gt;&lt;&lt;&lt;
\Configure{$$}{\EndP\PicDisplay}{\EndPicDisplay}      
   {\everymath{}\everydisplay{}}  
\Configure{$}{\PicMath}{\EndPicMath}{}
\Configure{PicMath}
  {\Tg&lt;inlineequation&gt;}{\Tg&lt;/inlineequation&gt;}{}{}
\let\MathPar\empty
&gt;&gt;&gt;


\&lt;configure docbook-math tex4ht\&gt;&lt;&lt;&lt;
\Configure{PicDisplay}
  {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\EndP\ShowPar\endgraf
   \HCode{&lt;equation role="\MathPar math-display"&gt;&lt;mathphrase&gt;}}
  {\HCode{&lt;/mathphrase&gt;&lt;/equation&gt;}\ShowPar} 
  {}  {\space role="\MathPar math-display" }
&gt;&gt;&gt;





\&lt;try inline par\&gt;&lt;&lt;&lt;
\ShowPar\par{\HCondtrue\noindent}%
&gt;&gt;&gt;



\&lt;configure docbook tex4ht \&gt;&lt;&lt;&lt;
\Configure{Picture+}{}{}
\Configure{Picture*}{}{}
\Configure{IMG}
  {\ht:special{t4ht=&lt;graphic\Hnewline fileref="}}
  {\ht:special{t4ht="}}
  {}
  {}
  {\ht:special{t4ht=&gt;&lt;/graphic&gt;}}
\Configure{pic-halign}{}
&gt;&gt;&gt;



\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt;
\Configure{Picture+}{}{}
\Configure{Picture*}{}{}
\Configure{IMG}
  {\ht:special{t4ht=&lt;inlinemediaobject&gt;&lt;imageobject&gt;&lt;imagedata\Hnewline
                                                       fileref="}}
  {\ht:special{t4ht="}}
  {}
  {}
  {\ht:special{t4ht=&gt;&lt;/imagedata&gt;&lt;/imageobject&gt;&lt;/inlinemediaobject&gt;}}
\Configure{pic-halign}{}
&gt;&gt;&gt;



\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt;
\Configure{PictureAlt*+}
   {\let\sv:HtmlPar=\HtmlPar   \let\HtmlPar=\empty
     |&lt;postscript for /Picture|&gt;%
     |&lt;tex halign and cr/crcr|&gt;%
     \NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
     \let\HCode=\:gobble     |%\offinterlineskip|%
     \let\EndPicture=\empty
     \ht:special{t4ht@[}%
   }
   {\ht:special{t4ht@]}%
     \let\HCode=\:HCode
     \let\EndPicture=\:UnDef \let\HtmlPar=\sv:HtmlPar \SUBOn \SUPOn
     \csname EndPauseMathClass\endcsname \EndNoFonts
     |&lt;tex4ht halign and cr/crcr|&gt;%
     |&lt;delay postscript|&gt;%
   }
&gt;&gt;&gt;

\&lt;postscript for /Picture\&gt;&lt;&lt;&lt;
\def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
&gt;&gt;&gt;

\&lt;tex halign and cr/crcr\&gt;&lt;&lt;&lt;
\iffalse{\fi   
\let\sv:halign=\halign
\let\sv:cr=\cr
\let\sv:crcr=\crcr
\iffalse}\fi 
\RecallTeXcr \let\halign =\TeXhalign
&gt;&gt;&gt;

\&lt;tex4ht halign and cr/crcr\&gt;&lt;&lt;&lt;
\iffalse{\fi   
\let\halign=\sv:halign
\let\cr=\sv:cr
\let\crcr=\sv:crcr
\iffalse}\fi 
&gt;&gt;&gt;

\&lt;delay postscript\&gt;&lt;&lt;&lt;
\let\PsCode=\relax
&gt;&gt;&gt;









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



\&lt;configure docbook-math tex4ht WAIT\&gt;&lt;&lt;&lt;

\Configure{halignTR}
   {\HCode{ style="vertical-align:baseline;"}}
\Configure{halignTBL}
% %   {t}{\HCode{ valign="top"}}
% %   {b}{\HCode{ valign="baseline"}}
% %   {c}{\HCode{ valign="middle"}}
    {}

\Configure{halign}
   {\EndP\halignTB{halign}}   {\HCode{&lt;/table&gt;}}
   \R:HA\r:HA\D:HA\d:HA
\Configure{pic-halign}{}
\Configure{halignTD} {}{}
   {&lt;}{\HCode{ style="white-space:nowrap; text-align:left;"}}
   {-}{\HCode{ style="white-space:nowrap; text-align:center;"}}
   {&gt;}{\HCode{ style="white-space:nowrap; text-align:right;"}}
   {^}{\HCode{ style="vertical-align:top; white-space:nowrap;"}}
   {=}{\HCode{ style="vertical-align:baseline; white-space:nowrap;"}}
   {||}{\HCode{ style="vertical-align:middle; white-space:nowrap;"}}
   {_}{\HCode{ style="vertical-align:bottom; white-space:nowrap;"}}
   {p}{\HCode{ style="white-space:wrap; text-align:left;"}\Protect\a:HColWidth}
   {m}{\HCode{ style="white-space:nowrap; text-align:left; vertical-align:middle;"}}
   {b}{\HCode{ style="white-space:nowrap; text-align:left; vertical-align:baseline;"}}
   {}



\ifx \a:imgdir\:UnDef
   \let\a:imgdir=\empty
   \catcode`\:=12
      \expandafter
      \def\csname :temp\endcsname#1imgdir:#2,#3!*?: {%
         \if !#2!\else \expandafter
                          \def\csname a:imgdir\endcsname{#2}\fi}
      \expandafter\csname :temp\expandafter\endcsname
         \Preamble ,imgdir:,!*?: %
   \catcode`\:=11
   \Log:Note{for addressing images in
       a subdirectory,  use the command line option `imgdir:.../'}
\fi

&gt;&gt;&gt;

\&lt;configure docbook-math latex WAIT\&gt;&lt;&lt;&lt;
   \ConfigureEnv{array}
     {\IgnorePar\EndP\Tg&lt;div class="pic-array"&gt;\Picture*{}$$}
     {$$\EndPicture\Tg&lt;/div&gt;}{}{}
&gt;&gt;&gt;

\&lt;configure docbook-math array WAIT\&gt;&lt;&lt;&lt;
   \ConfigureEnv{array}
     {\IgnorePar\EndP\Tg&lt;div class="pic-array"&gt;\Picture*{}$$}
     {$$\EndPicture\Tg&lt;/div&gt;}{}{}
&gt;&gt;&gt;









\&lt;configure docbook graphics\&gt;&lt;&lt;&lt;
\Configure{graphics}
  {}
  {\HCode{&lt;inlinemediaobject&gt;&lt;imageobject&gt;&lt;imagedata
                   width="\the\Gin@req@width"
                   fileref="\Gin@base\Gin@ext"
      &gt;&lt;/imagedata&gt;&lt;/imageobject&gt;&lt;/inlinemediaobject&gt;}%
   }
&gt;&gt;&gt;


\&lt;configure docbook graphics \&gt;&lt;&lt;&lt;
\Configure{graphics}
  {}
  {\HCode{&lt;graphic width="\the\Gin@req@width"  fileref="\Gin@base\Gin@ext"
      &gt;&lt;/graphic&gt;}%
   }
&gt;&gt;&gt;


\&lt;configure docbook-math latex\&gt;&lt;&lt;&lt;
\Configure{[]} 
   {\PicDisplay $$\everymath{}\everydisplay{}}
   {$$\EndPicDisplay}
\Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
&gt;&gt;&gt;




\&lt;configure docbook-mml tex4ht\&gt;&lt;&lt;&lt;
\Configure{$$}
   {\Configure{@math}{|&lt;disp math|&gt;}\DviMath}
   {\EndDviMath{\csname HCondtrue\endcsname\noindent}}
   {}
\Configure{@math}{|&lt;disp math|&gt;} \let\math:mode=\a:@math
\Configure{DviMath}
    {\a:DviMathML \mathmltrue 
       \mml:htfsym |%\NoFonts|%%       
       \IgnoreRule
       \HCode{&lt;!--l. \the\inputlineno--&gt;&lt;math\Hnewline
                xmlns="http://www.w3.org/1998/Math/MathML"&gt;}\a:math
       |&lt;sv dvimath par|&gt;\IgnorePar}
    {\HCode{&lt;/math&gt;} \EndIgnoreRule
     \ext:htfsym |%\EndNoFonts|%%
     \mathmlfalse \b:DviMathML |&lt;recall dvimath par|&gt;}
\Configure{DviMathML}
   {\HCode{&lt;\ifx \math:mode\a:@math \else inline\fi
             equation \Hnewline \expandafter\:rend \a:@math==//&gt;}}
   {\HCode{&lt;/\ifx \math:mode\a:@math \else inline\fi equation&gt;}}
\def\:rend#1=#2=#3//{\if !#1!\else role=#2\fi}
&gt;&gt;&gt;


% \ifOption{mml-fonts}{}{|%\mml:htfsym|%\NoFonts}%
% \ifOption{mml-fonts}{}{|%\ext:htfsym|%\EndNoFonts}%

\&lt;disp math\&gt;&lt;&lt;&lt;
display="block"&gt;&gt;&gt;

\&lt;recall dvimath par\&gt;&lt;&lt;&lt;
\sv:ignore
&gt;&gt;&gt;

\&lt;sv dvimath par\&gt;&lt;&lt;&lt;
\edef\sv:ignore{\if:nopar  
    \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
&gt;&gt;&gt;







\&lt;configure docbook fontmath\&gt;&lt;&lt;&lt;
\Configure{mathit}{\HCode{&lt;emphasis role="it"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}}
\Configure{mathbf}{\HCode{&lt;emphasis role="bf"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}}
\Configure{mathtt}{\HCode{&lt;emphasis role="tt"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}}
\Configure{mathsf}{\HCode{&lt;emphasis role="sf"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}}
\Configure{mathrm}{\HCode{&lt;emphasis role="rm"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}}
&gt;&gt;&gt;

\&lt;configure docbook latex\&gt;&lt;&lt;&lt;
\Configure{textbf}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="bf"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{textit}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="it"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{textrm}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="rm"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{textup}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="up"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{textsc}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="sc"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{textsf}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="sf"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{textsl}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="sl"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{texttt}{|&lt;par within font|&gt;\HCode{&lt;emphasis role="tt"&gt;}}
                  {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
\Configure{emph}{|&lt;par within font|&gt;\HCode{&lt;emphasis&gt;}}
                {\HCode{&lt;/emphasis&gt;}|&lt;end par within font|&gt;}
&gt;&gt;&gt;



\&lt;par within font\&gt;&lt;&lt;&lt;
\leavevmode\SaveEndP\bgroup 
\Configure{HtmlPar}
   {\HCode{&lt;!--br role="newline" /--&gt;}}
   {\HCode{&lt;!--br role="newline" /--&gt;}}
   {}{}%
&gt;&gt;&gt;                    

\&lt;end par within font\&gt;&lt;&lt;&lt;
\egroup \RecallEndP
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%
\section{Environments}
%%%%%%%%%%%%%%%%%%%%





%%%%%%%%%%%%
\subsection{quote}
%%%%%%%%%%%%

\&lt;latex environments\&gt;&lt;&lt;&lt;
\ConfigureEnv{quote}{\ifvmode\IgnorePar\fi\EndP\HCode{&lt;blockquote&gt;}}{\ifvmode\IgnorePar\fi\EndP\HCode{&lt;/blockquote&gt;}\par\ShowPar}{}{}
&gt;&gt;&gt;

%%%%%%%%%%%%%
\subsection{Center}
%%%%%%%%%%%%%

\&lt;latex environments\&gt;&lt;&lt;&lt;
\ConfigureEnv{center}
  {\EndP}{\par \ShowPar} {}{}
\ConfigureList{center}
   {\IgnorePar\EndP\HCode{&lt;section role="center"&gt;&lt;title/&gt;}\par\ShowPar}
   {\IgnorePar\EndP\HCode{&lt;/section&gt;}\par\ShowPar}
   {} {\par\ShowPar}
&gt;&gt;&gt;

%%%%%%%%
\subsection{Flusshing}
%%%%%%%%%%%%%

\&lt;latex environments\&gt;&lt;&lt;&lt;
\ConfigureEnv{flushleft}
  {\EndP}{\par \ShowPar} {}{}
\ConfigureEnv{flushright}
  {\EndP}{\par \ShowPar} {}{}
\ConfigureList{flushleft}
  {\IgnorePar\EndP\HCode{&lt;blockquote role="flushleft"&gt;}\par\ShowPar}
  {\IgnorePar\EndP\HCode{&lt;/blockquote&gt;}\par\ShowPar}
  {} {\par\ShowPar}
\ConfigureList{flushright}
  {\IgnorePar\EndP\HCode{&lt;blockquote role="flushright"&gt;}\par\ShowPar}
  {\IgnorePar\EndP\HCode{&lt;/blockquote&gt;}\par\ShowPar}
  {} {\par\ShowPar}
&gt;&gt;&gt;

%%%%%%%%%%%%%
\subsection{Mini Page}
%%%%%%%%%%%%%

\&lt;latex environments\&gt;&lt;&lt;&lt;
\ConfigureEnv{minipage}
   {%\IgnorePar\EndP
    %\HCode{&lt;note&gt;&lt;para role="minipage"&gt;}%
    {\ifnum 0=`}\fi
   }
   {\ifnum 0=`{\fi}%
%    \EndP\HCode{&lt;/para&gt;&lt;/note&gt;}%
   }
   {}{}
&gt;&gt;&gt;

The extra braces in the minipage configurations are to allow the
compilation of cases similar to the following one.

\begin{verbatim}
\documentclass{article}  
\begin{document}    
\begin{tabular}{c}  
\begin{minipage}{4in}  
\begin{eqnarray}  
x &amp; = &amp; y  
\end{eqnarray}  
\end{minipage}  
\end{tabular}    
\end{document}  
\end{verbatim}




\&lt;latex environments\&gt;&lt;&lt;&lt;
\ConfigureEnv{section}
   {\IgnorePar\EndP\HCode{&lt;section role="minipage"&gt;}}
   {\IgnorePar\EndP\HCode{&lt;/section&gt;}\ShowPar}
   {}{}
&gt;&gt;&gt;

%%%%%%%%%%%%%
\subsection{Tabbing}
%%%%%%%%%%%%%

\&lt;latex environments\&gt;&lt;&lt;&lt;

&gt;&gt;&gt;

\subsection{Tabular and Array}

\&lt;latex environments\&gt;&lt;&lt;&lt;

&gt;&gt;&gt;

\subsection{Verbatim}

\&lt;latex environments\&gt;&lt;&lt;&lt;
\ConfigureEnv{verbatim}
  {\ifinner\else \vfill\break\fi
    \IgnorePar\EndP\HCode{&lt;literallayout role="verbatim"&gt;}\EndNoFonts}
  {\NoFonts \ht:special{t4ht=&lt;/literallayout&gt;}\ShowPar\par}
  {} {}
\ConfigureEnv{verbatim*}
  {\ifinner\else \vfill\break\fi
    \IgnorePar\EndP\HCode{&lt;literallayout role="verbatim-star"&gt;}\EndNoFonts}
  {\NoFonts \HCode{&lt;/literallayout&gt;}\ShowPar\par}
  {} {}
\Configure{verbatim}{\:nbsp}{\a:sp}
&gt;&gt;&gt;

    array
    tabbing
    tabular
 

%%%%%%%%%%%%%%%%%%%%%%
\subsection{Listings}
%%%%%%%%%%%%%%%%%%%%%%

\&lt;configure docbook listings\&gt;&lt;&lt;&lt;
\Log:Note{to ensure proper alignments use
   fixed size fonts (see listings.dtx)}
\Configure{listings}
   {\ifvmode \IgnorePar\fi \EndP 
    {\everypar{}\leavevmode}\HCode{&lt;!--l. \the\inputlineno--&gt;}%
     \HCode{&lt;pre class="listings"&gt;}%
   }
   {{\everypar{}\leavevmode}\HCode{&lt;/pre&gt;}}
   {}{}
\Configure{lstinline}
   {\HCode{&lt;remark role="lstinline"&gt;}}
   {\HCode{&lt;/remark&gt;}}
&gt;&gt;&gt;

\&lt;configure docbook listings\&gt;&lt;&lt;&lt;
\ConfigureEnv{lstlisting}
   {\ifvmode \IgnorePar\fi \EndP  
    \HCode{&lt;!--l. \the\inputlineno--&gt;}%
    \HCode{&lt;div class="lstlisting"&gt;}%
    \bgroup 
       \Configure{listings}
         {{\everypar{}\leavevmode}}
         {{\everypar{}\leavevmode}}
         {\HCode{&lt;br/&gt;}}{}%
   }
   {\egroup \ifvmode \IgnorePar\fi \EndP   \HCode{&lt;/div&gt;}}
   {} {}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%%
\section{Paragraphs}
%%%%%%%%%%%%%%%%%%%%


\&lt;tex4ht paragraphs\&gt;&lt;&lt;&lt;
\Configure{HtmlPar}
   {\EndP\HCode{&lt;!--l. \the\inputlineno--&gt;&lt;para&gt;}}
   {\EndP\HCode{&lt;!--l. \the\inputlineno--&gt;&lt;para&gt;}}    
   {\HCode{&lt;/para&gt;}}     {\HCode{&lt;/para&gt;}}    
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%%
\section{TOCs}
%%%%%%%%%%%%%%%%%%%%


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




\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt;
\Configure{TocLink}{\Link{#2}{#3}\EndLink#4}   
&gt;&gt;&gt;




\&lt;article tocs\&gt;&lt;&lt;&lt;
\Configure{tableofcontents}
  {\ifvmode \IgnorePar\fi \EndP\HCode{&lt;toc&gt;&lt;tocpart&gt;}}
  {\ifvmode \IgnorePar\fi \EndP\HCode{&lt;/tocpart&gt;&lt;/toc&gt;&lt;para&gt;&lt;/para&gt;}}
  {}{}{}
&gt;&gt;&gt;


\&lt;report,book tocs\&gt;&lt;&lt;&lt;
|&lt;article tocs|&gt;
\ConfigureToc{appendix}
   {\HCode{\Hnewline&lt;tocentry role="appendixToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{chapter}
   {\HCode{\Hnewline&lt;tocentry role="chapterToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{likechapter}
   {} {\HCode{\Hnewline&lt;tocentry role="likechapterToc"&gt;}}
   {} {\HCode{&lt;/tocentry&gt;}}
&gt;&gt;&gt;

\&lt;article tocs\&gt;&lt;&lt;&lt;
\ConfigureToc{likeparagraph}
   {} {\HCode{\Hnewline&lt;tocentry role="likeparagraphToc"&gt;}}
   {} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{likepart}
  {} {\HCode{\Hnewline&lt;tocentry role="likepartToc"&gt;}}
  {} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{likesection}
   {} {\HCode{\Hnewline&lt;tocentry role="likesectionToc"&gt;}}
   {} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{likesubparagraph}
   {} {\HCode{\Hnewline&lt;tocentry role="likesubparagraphToc"&gt;}}
   {} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{likesubsection}
   {} {\HCode{\Hnewline&lt;tocentry role="likesubsectionToc"&gt;}}
   {} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{likesubsubsection}
   {} {\HCode{\Hnewline&lt;tocentry role="likesubsubsectionToc"&gt;}}
   {} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{paragraph}
   {\HCode{\Hnewline&lt;tocentry role="paragraphToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{part}
   {\HCode{\Hnewline&lt;tocentry role="partToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{section}
   {\HCode{\Hnewline&lt;tocentry role="sectionToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{subparagraph}
   {\HCode{\Hnewline&lt;tocentry role="subparagraphToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{subsection}
   {\HCode{\Hnewline&lt;tocentry role="subsectionToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{subsubsection}
   {\HCode{\Hnewline&lt;tocentry role="subsubsectionToc"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
&gt;&gt;&gt;


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

\&lt;scrbook tocs\&gt;&lt;&lt;&lt;
\ConfigureToc{addchap}
   {}
   {\HCode{\Hnewline&lt;tocentry role="addchapToc"&gt;}}
   {} 
   {\HCode{&lt;/tocentry&gt;}}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%
\section{Texinfo}
%%%%%%%%%%%%%%%%%%%%



\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\ConfigureToc{chapter}
   {\HCode{\Hnewline&lt;tocentry role="chapter"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{appendix}
   {\HCode{\Hnewline&lt;tocentry role="appendix"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{unnumbered}
   {\HCode{\Hnewline&lt;tocentry role="unnumbered"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{numberedsec}
   {\HCode{\Hnewline&lt;tocentry role="numberedsec"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{appendixsec}
   {\HCode{\Hnewline&lt;tocentry role="appendixsec"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{unnumberedsec}
   {\HCode{\Hnewline&lt;tocentry role="unnumberedsec"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{numberedsubsec}
   {\HCode{\Hnewline&lt;tocentry role="numberedsubsec"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{appendixsubsec}
   {\HCode{\Hnewline&lt;tocentry role="appendixsubsec"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{appendixsubsec}
   {\HCode{\Hnewline&lt;tocentry role="appendixsubsec"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{unnumberedsubsec}
   {\HCode{\Hnewline&lt;tocentry role="unnumberedsubsec"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{numberedsubsubsec}
   {\HCode{\Hnewline&lt;tocentry role="numberedsubsubse"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{appendixsubsubsec}
   {\HCode{\Hnewline&lt;tocentry role="appendixsubsubse"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{appendixsubsubsec}
   {\HCode{\Hnewline&lt;tocentry role="appendixsubsubse"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\ConfigureToc{unnumberedsubsubsec}
   {\HCode{\Hnewline&lt;tocentry role="unnumberedsubsub"&gt;}}
   {\ }{} {\HCode{&lt;/tocentry&gt;}}
\Configure{toTocLink}{\Title:Link}{}    
&gt;&gt;&gt;



%%%%%%%%%%%%%%%%%%%%
\section{Indexes}
%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%
\subsection{Article, Report, Book}
%%%%%%%%%%%%%

\&lt;index entry\&gt;&lt;&lt;&lt;
\Configure{theindex}
   {\let\end:theidx=\empty \HCode{&lt;indexterm&gt;}}
   {\HCode{&lt;/indexterm&gt;}}
   {|&lt;primary index|&gt;%
    \def\end:cur{|&lt;end primary index|&gt;\let\end:cur=\empty}%
    \DB:index
   }
    {\end:cur \let\chain:subitem=\empty} 
   {\chain:subitem |&lt;secondary index|&gt;%
    \def\end:cur{|&lt;end secondary index|&gt;\let\end:cur=\empty}%
   }
    {\end:cur \def\chain:subitem{%
     |&lt;new index entry|&gt;|&lt;primary index|&gt;|&lt;end primary index|&gt;}%
     \let\chain:subsubitem=\empty
   }
   {\chain:subsubitem|&lt;tertiary index|&gt;%
    \def\end:cur{|&lt;end tertiary index|&gt;\let\end:cur=\empty}%
   }
   {\end:cur \def\chain:subsubitem{%
       |&lt;new index entry|&gt;|&lt;primary index|&gt;|&lt;end primary index|&gt;%
       |&lt;secondary index|&gt;|&lt;end secondary index|&gt;}%
   }
   {}
&gt;&gt;&gt;



\&lt;article, report, book\&gt;&lt;&lt;&lt;
\def\DB:index#1\indNum#2{%
   \ifnum  #2=\index:N
      \let\DB:index=\relax  #1\long\def\item##1\end{\end}%
   \else \expandafter\gob:item \fi
}
\long\def\gob:item#1\item{\DB:index}
\let\indNum=\:gobble
&gt;&gt;&gt;




\&lt;article, report, book\&gt;&lt;&lt;&lt;
\HAssign\index:N = 0
\def\comNum#1{\tmp:cnt=}
\let\db:index=\index
\def\index{%
   \immediate\openin15=\jobname.ind
   \ifeof15 \else
      \immediate\closein15
      \bgroup
       \def\gobble##1{}%
       \gHAdvance\index:N by 1   
       |&lt;index entry|&gt;%
       \leavevmode \let\par=\empty
       \input{\jobname.ind}%
      \egroup
    \fi
    \db:index}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%%
\subsection{index}
%%%%%%%%%%%%%%%%%%%%


\&lt;configure docbook latex\&gt;&lt;&lt;&lt; 
\Configure{idxmake}{\Beforeentry}
&gt;&gt;&gt;


\&lt;ams art,proc,book\&gt;&lt;&lt;&lt;
|&lt;index throug printindex|&gt;
&gt;&gt;&gt;


\&lt;configure docbook amsmidx\&gt;&lt;&lt;&lt; 
|&lt;index throug printindex|&gt;
&gt;&gt;&gt;

\&lt;configure docbook makeidx\&gt;&lt;&lt;&lt; 
|&lt;index throug printindex|&gt;
&gt;&gt;&gt;


\&lt;configure docbook index\&gt;&lt;&lt;&lt; 
|&lt;index throug printindex|&gt;
&gt;&gt;&gt;

\&lt;configure docbook multind\&gt;&lt;&lt;&lt; 
|&lt;index throug printindex|&gt;
&gt;&gt;&gt;


\&lt;index throug printindex\&gt;&lt;&lt;&lt;
\def\:temp{\HCode{&lt;indexterm role="printindex" /&gt;}}
\HLet\printindex\:temp
\expandafter\ifx \csname db:index\endcsname\realx
   \let\db:index=\index
\fi
\def\index{\bgroup
    \HRestore\printindex
    \def\gobble##1{}%
    \gHAdvance\index:N by 1   
    |&lt;index entry|&gt;%
    \leavevmode \let\par=\empty
    \printindex  
   \egroup \db:index}
\def\comNum#1{\tmp:cnt=}
\def\brange#1{\HCode{&lt;remark role="start"&gt;}\Link{to-#1}{from-#1}\EndLink
   \HCode{&lt;/remark&gt;}}
\def\erange#1{\HCode{&lt;remark role="to"&gt;}\Link{from-#1}{to-#1}\EndLink
   \HCode{&lt;/remark&gt;}}
&gt;&gt;&gt;



\&lt;\&gt;&lt;&lt;&lt;
\def\comNum{%
   \def\:tempa{%
      \ifx ,\:temp        \def\:tempa####1{\tmp:cnt=}%
      \else \ifx {\:temp  \def\:tempa####1{\tmp:cnt=####1}%
            \iffalse }\fi
      \else               \def\:tempa{\tmp:cnt=}%
      \fi\fi \:tempa}%
   \futurelet\:temp\:tempa}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%%
\subsection{theindex}
%%%%%%%%%%%%%%%%%%%%


\&lt;article, report, book\&gt;&lt;&lt;&lt;
\Configure{theindex}
    {\special{t4ht@[}}
    {\special{t4ht@]}}
    {}{}{}{}{}{}{}
&gt;&gt;&gt;



\&lt;configure docbook makeidx\&gt;&lt;&lt;&lt;
\Configure{see}
  {\csname end:cur\endcsname \HCode{&lt;seealso role="see"&gt;}}
  {\HCode{&lt;/seealso&gt;}%
   \futurelet\:next\remove:comma}
\def\remove:comma{\ifx ,\:next \expandafter\:gobble\fi}
&gt;&gt;&gt;



\&lt;primary index\&gt;&lt;&lt;&lt;
\HCode{&lt;primary&gt;}%
&gt;&gt;&gt;

\&lt;end primary index\&gt;&lt;&lt;&lt;
\HCode{&lt;/primary&gt;}\hfil\break
&gt;&gt;&gt;

\&lt;secondary index\&gt;&lt;&lt;&lt;
\HCode{&lt;secondary&gt;}%
&gt;&gt;&gt;

\&lt;end secondary index\&gt;&lt;&lt;&lt;
\HCode{&lt;/secondary&gt;}\hfil\break
&gt;&gt;&gt;

\&lt;tertiary index\&gt;&lt;&lt;&lt;
\HCode{&lt;tertiary&gt;}%
&gt;&gt;&gt;

\&lt;end tertiary index\&gt;&lt;&lt;&lt;
\HCode{&lt;/tertiary&gt;}\hfil\break
&gt;&gt;&gt;





%%%%%%%%%%%%%%%%%%%%
\subsection{splitindex}
%%%%%%%%%%%%%%%%%%%%

\&lt;configure docbook splitidx\&gt;&lt;&lt;&lt;
\let\db:sindex=\sindex
\def\:sindex{\bgroup
    \HRestore\printindex
    \def\gobble##1{}%
    \gHAdvance\index:N by 1   
    \leavevmode \let\par=\empty
    \edef\:temp{\LikeRef{printindex}}\expandafter\printindex\:temp
   \egroup \db:sindex}
&gt;&gt;&gt;

\&lt;configure docbook splitidx\&gt;&lt;&lt;&lt;
\def\:temp{%
  \def\:tempa{%
     \HCode{&lt;indexterm role="printindex\ifx *\:temp -star\fi" /&gt;}%
     \ifx *\:temp \Tag{printindex}{*}\expandafter\:gobble\fi
  }%
  \futurelet\:temp\:tempa
}
\HLet\printindex\:temp
&gt;&gt;&gt;

\&lt;configure docbook splitidx\&gt;&lt;&lt;&lt;
\def\sindex{%
   \def\:tempa{%
      \ifx [\:temp 
            \def\:temp[####1]{\def\ind:ext{####1}\:sindex[####1]}%
            \expandafter\:temp
      \else \expandafter\:sindex \fi
   }%
   \futurelet\:temp\:tempa
}
\let\o:@@printindex:=\@@printindex
\def\@@printindex[#1][#2]{%
   \def\:temp{#1}%
   \ifx \:temp\ind:ext \o:@@printindex:[#1][#2]\fi}
&gt;&gt;&gt;




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Color}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\&lt;configure docbook color\&gt;&lt;&lt;&lt;
\Configure{color}{\:gobble}
\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)}%
}
|&lt;HColor util|&gt;
&gt;&gt;&gt;


\&lt;HColor util\&gt;&lt;&lt;&lt;
\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}%
}
&gt;&gt;&gt;


\begin{verbatim}
cmyk -&gt; gray
(1 - 0.299c - 0.587m - 0.114y)(1 - k) 

cmyk -&gt; 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}



\&lt;HColor util\&gt;&lt;&lt;&lt;
\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&lt;0 \tmp:cnt=0 \fi
   \edef#1{\the\tmp:cnt}%
}
&gt;&gt;&gt;






%%%%%%%%%%%%%%%%%%%%
\section{Other}
%%%%%%%%%%%%%%%%%%%%


\&lt;latex ltoutenc\&gt;&lt;&lt;&lt;
\Configure{textcircled}
   {\@use@text@encoding \@curr@enc c}       
   {\leavevmode \special{t4ht@+\string&amp;\#x00A9;}c}
   {\@use@text@encoding \@curr@enc \scshape r}
   {\leavevmode \special{t4ht@+\string&amp;\#x00AE;}r}
   {}
&gt;&gt;&gt;


\&lt;configure docbook latex\&gt;&lt;&lt;&lt;
|&lt;latex ltoutenc|&gt;
\def\:temp{LaTeX}
\HLet\LaTeX\:temp
&gt;&gt;&gt;

\&lt;configure docbook amsmath\&gt;&lt;&lt;&lt;
\def\:temp{{\protect\AmSfont AMS}}
\HLet\AmS\:temp
&gt;&gt;&gt;


\&lt;latex, plain\&gt;&lt;&lt;&lt;
|&lt;unicode space|&gt;
&gt;&gt;&gt;

\&lt;unicode space\&gt;&lt;&lt;&lt;
\def\:nbsp{\HCode{\string&amp;}\HChar{-35}\HCode{x00A0;}}%
&gt;&gt;&gt;


\&lt;configure docbook latex\&gt;&lt;&lt;&lt;
\Configure{footnotetext}
    {\HCode{&lt;footnote&gt;&lt;para&gt;}\setbox\tmp:bx=\hbox\bgroup\let\@makefnmark\relax}
    {\egroup}%
    {\HCode{&lt;/para&gt;&lt;/footnote&gt;}}
\Configure{footnotemark}
   {\setbox\tmp:bx=\hbox\bgroup}
   {\egroup}
\ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi 
&gt;&gt;&gt;


Sub and super scripts


\&lt;configure docbook latex\&gt;&lt;&lt;&lt;
\Configure{textsuperscript}
  {\HCode{&lt;superscript&gt;}}
  {\HCode{&lt;/superscript&gt;}}

\Configure{textsubscript}
  {\HCode{&lt;subscript&gt;}}
  {\HCode{&lt;/subscript&gt;}}
&gt;&gt;&gt;



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Underline and Overline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



\&lt;configure docbook latex\&gt;&lt;&lt;&lt;
\Configure{underline}
   {\HCode{&lt;emphasis role="underline"&gt;}\:gobble}
   {\HCode{&lt;/emphasis&gt;}}
\Configure{overline}
   {\HCode{&lt;emphasis role="overline"&gt;}}
   {\HCode{&lt;/emphasis&gt;}}
&gt;&gt;&gt;

\&lt;configure docbook plain\&gt;&lt;&lt;&lt;
\Configure{underline}
   {\HCode{&lt;emphasis role="underline"&gt;}\hbox\bgroup \:gobble}
   {\egroup \HCode{&lt;/emphasis&gt;}}
\Configure{overline}
   {\HCode{&lt;emphasis role="overline"&gt;}}
   {\HCode{&lt;/emphasis&gt;}}
&gt;&gt;&gt;







\&lt;configure docbook-mml latex\&gt;&lt;&lt;&lt;
\Configure{overline}
   {\bgroup\ifmathml |&lt;mathml overline|&gt;\else
         \HCode{&lt;emphasis role="overline"&gt;}\fi}
   {\ifmathml |&lt;end mathml overline|&gt;\else \HCode{&lt;/emphasis&gt;}\fi\egroup}
\Configure{underline}
   {\bgroup
    \ifmathml |&lt;mathml underline|&gt;%
    \else |&lt;nomath underline|&gt;\HCode{&lt;emphasis role="underline"&gt;}\fi}
   {\ifmathml |&lt;end mathml underline|&gt;\else \HCode{&lt;/emphasis&gt;}\fi \egroup}
&gt;&gt;&gt;


\&lt;mathml latex\&gt;&lt;&lt;&lt;
|&lt;und/ov-erline|&gt;
&gt;&gt;&gt;

\&lt;mathml plain\&gt;&lt;&lt;&lt;
|&lt;und/ov-erline|&gt;
&gt;&gt;&gt;


\&lt;und/ov-erline\&gt;&lt;&lt;&lt;
\Configure{overline}
   {\bgroup |&lt;mathml overline|&gt;}
   {|&lt;end mathml overline|&gt;\egroup}
\Configure{underline}
   {\bgroup \ifmmode |&lt;mathml underline|&gt;\else 
     |&lt;nomath underline|&gt;\fi}
   {|&lt;end mathml underline|&gt;\egroup}
&gt;&gt;&gt;

\&lt;nomath underline\&gt;&lt;&lt;&lt;
\expandafter\everymath
\expandafter{\expandafter\everymath
             \expandafter{\the\everymath}}%
\let\o::@underline:\o:@@underline:
\def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
&gt;&gt;&gt;


\&lt;mathml overline\&gt;&lt;&lt;&lt;
\HCode{&lt;\a:mathml mover  accent="false"\Hnewline
\mml:class="mml-overline"&gt;&lt;\a:mathml mrow&gt;}%
&gt;&gt;&gt;

\&lt;end mathml overline\&gt;&lt;&lt;&lt;
\HCode{&lt;/\a:mathml mrow&gt;&lt;\a:mathml mo\Hnewline
 accent="true"&gt;&amp;\#x00AF;&lt;/\a:mathml mo&gt;%    
&lt;/\a:mathml mover&gt;}%
&gt;&gt;&gt;

\verb'&amp;#x00AF;' is the code of \verb'&amp;OverBar;'


\&lt;mathml underline\&gt;&lt;&lt;&lt;
\HCode{&lt;\a:mathml munder \a:mathml accentunder="false"\Hnewline
\mml:class="mml-underline"&gt;&lt;\a:mathml mrow&gt;}% 
&gt;&gt;&gt;

\&lt;end mathml underline\&gt;&lt;&lt;&lt;
\HCode{&lt;/\a:mathml mrow&gt;&lt;\a:mathml mo\Hnewline
accent="true"&gt;&amp;\#x0332;&lt;/\a:mathml mo&gt;&lt;/\a:mathml munder&gt;}%
&gt;&gt;&gt;


\verb'&amp;#x0332;' is the code of \verb'&amp;UnderBar;'


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Ulem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\&lt;configure docbook ulem\&gt;&lt;&lt;&lt; 
\Configure{uline}{\HCode{&lt;emphasis role="underline"&gt;}}{\HCode{&lt;/emphasis&gt;}}
\Configure{uuline}{\HCode{&lt;emphasis role="underline"&gt;}}{\HCode{&lt;/emphasis&gt;}}
\Configure{sout}{\HCode{&lt;emphasis role="underline"&gt;}}{\HCode{&lt;/emphasis&gt;}}
\Configure{xout}{\HCode{&lt;emphasis role="underline"&gt;}}{\HCode{&lt;/emphasis&gt;}}
\Configure{uwave}{\HCode{&lt;emphasis role="underline"&gt;}}{\HCode{&lt;/emphasis&gt;}}
\Configure{dashuline}{\HCode{&lt;emphasis role="underline"&gt;}}{\HCode{&lt;/emphasis&gt;}}
\Configure{dotuline}{\HCode{&lt;emphasis role="underline"&gt;}}{\HCode{&lt;/emphasis&gt;}}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{AMS}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%
\section{Root}
%%%%%%%%%%%%%%%%%%%%


\&lt;configure docbook amsart\&gt;&lt;&lt;&lt; 
|&lt;article prologue|&gt;
|&lt;sectioning utilities|&gt;
|&lt;ams maketitle|&gt;
|&lt;ams article,report maketitle|&gt;
|&lt;ams art,proc,book|&gt;
|&lt;ams art,proc|&gt;
&gt;&gt;&gt;

\&lt;configure docbook amsbook\&gt;&lt;&lt;&lt; 
|&lt;article prologue|&gt;
|&lt;sectioning utilities|&gt;
|&lt;ams maketitle|&gt;
|&lt;ams article,report maketitle|&gt;
|&lt;ams art,proc,book|&gt;
|&lt;ams book|&gt;
&gt;&gt;&gt;

\&lt;configure docbook amsproc\&gt;&lt;&lt;&lt; 
|&lt;article prologue|&gt;
|&lt;sectioning utilities|&gt;
|&lt;ams maketitle|&gt;
|&lt;ams article,report maketitle|&gt;
|&lt;ams art,proc,book|&gt;
|&lt;ams art,proc|&gt;
&gt;&gt;&gt;

\&lt;configure docbook-mml amsart\&gt;&lt;&lt;&lt; 
|&lt;ams dtd|&gt;
&gt;&gt;&gt;

\&lt;ams dtd\&gt;&lt;&lt;&lt;
\:CheckOption{css} \if:Option
   \:CheckOption{dtd} \if:Option
      \Configure{VERSION}
         {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
      \Configure{DOCTYPE}
        {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;}}
      \Configure{XML-STYLESHEET}
        {\HCode{&lt;?xml-stylesheet type="text/css" href="\jobname.css"?&gt;
            \Hnewline}}
   \else
      \Configure{VERSION}
         {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
      \Configure{DOCTYPE}
      {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;}}
      \Configure{XML-STYLESHEET}
        {\HCode{&lt;?xml-stylesheet type="text/css" href="\jobname.css"?&gt;
            \Hnewline}}
   \fi
\else
   \Configure{VERSION}
      {\HCode{&lt;?xml version="1.0"?&gt;\Hnewline}}
   \Configure{DOCTYPE}
     {\HCode{&lt;!DOCTYPE article |&lt;doctype 5.0|&gt; &gt;\Hnewline }}
\fi
&gt;&gt;&gt;



\&lt;configure docbook Preamble\&gt;&lt;&lt;&lt;  
\Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
\:CheckOption{no-DOCTYPE} \if:Option
   \Configure{PROLOG}{VERSION,*XML-STYLESHEET}
\fi
&gt;&gt;&gt;



\&lt;configure docbook-mml amsbook\&gt;&lt;&lt;&lt; 
|&lt;ams dtd|&gt;
&gt;&gt;&gt;

\&lt;configure docbook-mml amsproc\&gt;&lt;&lt;&lt; 
|&lt;ams dtd|&gt;
&gt;&gt;&gt;



%%%%%%%%%%%%%%%%%%%%
\section{Css}
%%%%%%%%%%%%%%%%%%%%

\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt;
|&lt;cascade style sheets|&gt;
\Configure{Preamble}
   {|&lt;default cascade style sheets|&gt;} {}
\Configure{CssFile}{\jobname.css}
  {/* \aa:CssFile\space from \jobname.tex (TeX4ht) */}
\Configure{Needs}{l. 
   \the\inputlineno\space--- needs --- #1 ---}
\Configure{Needs-}{l.
   \the\inputlineno\space--- needs --- #1 ---}
&gt;&gt;&gt;

\&lt;default cascade style sheets\&gt;&lt;&lt;&lt;
{\ifdim \lastskip&gt;\z@ \unskip\fi  \IgnorePar\parindent\z@
\leavevmode}%
\immediate\write-1{--- file \aa:CssFile\space ---}%
\ht:special{t4ht&gt;\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
\ht:special{t4ht&lt;\aa:CssFile}%
&gt;&gt;&gt;


\&lt;cascade style sheets\&gt;&lt;&lt;&lt;
\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&gt;\jobname.tmp}##1\ht:special
     {t4ht&gt;\aa:CssFile}}%
  \ht:special{t4ht&gt;\jobname.tmp}\ht:special{t4ht&gt;\aa:CssFile}\bb:CssFile
  \hfil\break\NoFonts}{\EndNoFonts
  \ht:special{t4ht&lt;\aa:CssFile}\ht:special{t4ht&lt;\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,,|&lt;par del|&gt;}
\def\css:files#1,#2|&lt;par del|&gt;{\def\:temp{#1}\ifx \:temp\empty
   \else \def\:temp{\in:css#1.|&lt;par del|&gt;\css:files#2,,|&lt;par del|&gt;}\fi
   \:temp }
\def\in:css#1.#2|&lt;par del|&gt;{\def\:temp{#2}\ifx \:temp\empty \input #1.css
   \else \inc:ss#1.#2|&lt;par del|&gt;\fi}
\def\inc:ss#1.|&lt;par del|&gt;{\input #1 }
\NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}}
&gt;&gt;&gt;



\&lt;cascade style sheets\&gt;&lt;&lt;&lt;
\def\Css#1{{\def\:temp{\Configure{Needs}}%
   \expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}}
&gt;&gt;&gt;


\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt; 
\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
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%
\section{Theorem}
%%%%%%%%%%%%%%%%%%%%


\&lt;ams art,proc,book\&gt;&lt;&lt;&lt;
\ifx \deferred@thm@head\:UnDef\else   
   |&lt;shared ams thm/cls|&gt;
\fi
&gt;&gt;&gt;

\&lt;configure docbook amsthm\&gt;&lt;&lt;&lt;
|&lt;shared ams thm/cls|&gt;
&gt;&gt;&gt;

\&lt;shared ams thm/cls\&gt;&lt;&lt;&lt;
\Configure{proof}
   {\IgnorePar\EndP\HCode{&lt;blockquote role="proof"&gt;&lt;title&gt;}\IgnorePar}
   {\ifvmode \IgnorePar\fi\EndP\HCode{&lt;/title&gt;}\ShowPar\par}
   {\IgnorePar\EndP\HCode{&lt;/blockquote&gt;}\ShowPar\par}
&gt;&gt;&gt;




%%%%%%%%%%%%%%%%%%%%
\section{Title Page}
%%%%%%%%%%%%%%%%%%%%

\&lt;ams maketitle\&gt;&lt;&lt;&lt;
\Configure{maketitle}
   {\HCode{&lt;articleinfo&gt;}}
   {\HCode{&lt;/articleinfo&gt;}}
   {\HCode{&lt;title&gt;}}{\HCode{&lt;/title&gt;}}
\Configure{thanks author date and} {}{}
   {\HCode{&lt;author&gt;&lt;othername&gt;}}
   {\HCode{&lt;/othername&gt;&lt;/author&gt;}}
   {\HCode{&lt;date&gt;}}
   {\HCode{&lt;/date&gt;}}
   {}{}
&gt;&gt;&gt;


\&lt;ams article,report maketitle\&gt;&lt;&lt;&lt;
\Configure{maketitle}
   {\ifvmode \IgnorePar\fi\EndP
    \HCode{&lt;section role="maketitle"&gt;&lt;title /&gt;}%
    \ConfigureEnv{center}
       {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}
       {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}%
   }
   {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;/section&gt;}}
   {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;para role="title"&gt;}}
   {\ifvmode \IgnorePar\fi\HCode{&lt;/para&gt;}}
\Configure{thanks author date and}
   {\par\IgnorePar\EndP \HCode{&lt;note role="thanks"&gt;}\par\ShowPar}
   {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;/note&gt;}}
   {\ifvmode \IgnorePar\fi\EndP
     |&lt;para role|&gt;\HCode{&lt;para role="authorgroup"&gt;&lt;author&gt;&lt;personname&gt;&lt;othername&gt;}} 
   {\ifvmode \IgnorePar\fi 
    \HCode{&lt;/othername&gt;&lt;/personname&gt;&lt;/author&gt;&lt;!--/author--&gt;&lt;/para&gt;&lt;!--/authorgroup--&gt;}}  
   {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;para role="date"&gt;}}      
   {\ifvmode \IgnorePar\fi \HCode{&lt;/para&gt;&lt;!--/date--&gt;}}  
   {\ifvmode \IgnorePar\fi\lowercase{\HCode{&lt;/othername&gt;&lt;/personname&gt;&lt;/author&gt;
         &lt;!--/author--&gt;&lt;!--author--&gt;&lt;author&gt;&lt;personname&gt;&lt;othername&gt;}}}
   {}
&gt;&gt;&gt;

\&lt;ams article,report maketitle\&gt;&lt;&lt;&lt;
\Configure{addresses}
   {\ifvmode \IgnorePar\fi \EndP
     \HCode{&lt;note role="addresses"&gt;}\ShowPar}
   {\ifvmode \IgnorePar\fi \EndP 
     \HCode{&lt;/note&gt;&lt;!--addresses--&gt;}}
\Configure{address}
   {\HCode{&lt;note role="address-title"&gt;&lt;para&gt;}}
   {\ifvmode \IgnorePar\fi 
      \HCode{&lt;/para&gt;&lt;/note&gt;&lt;!--address-title--&gt;&lt;note role="address"&gt;&lt;para&gt;}}
   {\HCode{&lt;/para&gt;&lt;/note&gt;&lt;!--address--&gt;}}
\Configure{curraddr}
   {\HCode{&lt;para role="curraddr-title"&gt;}}
   {\ifvmode \IgnorePar\fi 
     \HCode{&lt;/para&gt;&lt;!--curraddr-title--&gt;&lt;para role="curraddr"&gt;}}
   {\HCode{&lt;/para&gt;&lt;!--curraddr--&gt;}}
\Configure{email}
   {\HCode{&lt;note role="email-title"&gt;&lt;para&gt;}}
   {\ifvmode \IgnorePar\fi 
    \HCode{&lt;/para&gt;&lt;/note&gt;&lt;!--email-title--&gt;&lt;note role="email"&gt;&lt;para&gt;}}
   {\HCode{&lt;/para&gt;&lt;/note&gt;&lt;!--email--&gt;}}
\Configure{urladdr}
   {\HCode{&lt;para role="urladdr-title"&gt;}}
   {\ifvmode \IgnorePar\fi
      \HCode{&lt;/para&gt;&lt;!--urladdr-title--&gt;&lt;para role="urladdr"&gt;}}
   {\HCode{&lt;/para&gt;&lt;!--urladdr--&gt;}}
&gt;&gt;&gt;

\&lt;ams art,proc,book\&gt;&lt;&lt;&lt;
\ConfigureEnv{abstract}
   {\ifvmode \IgnorePar\fi \EndP}
   {\ifvmode \IgnorePar\fi \EndP}
   {}{}
\ConfigureList{abstract}
   {\ifvmode \IgnorePar\fi \EndP 
       \HCode{&lt;note role="abstract"&gt;}\IgnorePar}
   {\ifvmode \IgnorePar\fi \EndP
       \HCode{&lt;/note&gt;&lt;!--abstract--&gt;}\ShowPar}
   {\IgnorePar\par\HCode{&lt;title&gt;}}
   {\HCode{&lt;/title&gt;}\ShowPar\par}
\Configure{setabstract}
   {\ifvmode \IgnorePar \fi \EndP}
   {\ifvmode \IgnorePar \fi \EndP}
&gt;&gt;&gt;

\&lt;ams art,proc,book\&gt;&lt;&lt;&lt;
\Configure{subjclass}
   {\par\IgnorePar\HCode{&lt;note role="subjclass"&gt;}\par\ShowPar}
   {\ifvmode \IgnorePar \fi\EndP\HCode{&lt;/note&gt;&lt;!--subjclass--&gt;}}
\Configure{keywords}
   {\par\IgnorePar\EndP \HCode{&lt;note role="keywords"&gt;}\par\ShowPar}
   {\ifvmode \IgnorePar \fi\EndP\HCode{&lt;/note&gt;}}
&gt;&gt;&gt;



\&lt;ams book\&gt;&lt;&lt;&lt;
\Configure{translators}
  {\par\IgnorePar\EndP  \HCode{&lt;note role="translators"&gt;}\par\ShowPar}
  {\ifvmode \IgnorePar \fi\EndP \HCode{&lt;/note&gt;}}
  {\HCode{&lt;note role="translator"&gt;&lt;para&gt;}}
  {\HCode{&lt;/para&gt;&lt;/note&gt;}}
&gt;&gt;&gt;

\&lt;ams art,proc\&gt;&lt;&lt;&lt;
\Configure{translators}
  {\par\IgnorePar\EndP  \HCode{&lt;para role="translators"&gt;}\par\ShowPar}
  {\ifvmode \IgnorePar \fi\EndP \HCode{&lt;/para&gt;}}
  {\HCode{&lt;note role="translator"&gt;&lt;para&gt;}}
  {\HCode{&lt;/para&gt;&lt;/note&gt;}}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%
\section{Sections}
%%%%%%%%%%%%%%%%%%





\&lt;configure docbook amsart\&gt;&lt;&lt;&lt;
|&lt;amsart + article sec|&gt;
&gt;&gt;&gt;

\&lt;configure docbook amsbook\&gt;&lt;&lt;&lt;
|&lt;amsart + article sec|&gt;
&gt;&gt;&gt;


\&lt;configure docbook amsproc\&gt;&lt;&lt;&lt;
|&lt;amsart + article sec|&gt;
&gt;&gt;&gt;




\&lt;amsart + article sec\&gt;&lt;&lt;&lt;
\Configure{part}
   {\OpenDiv{part}}   {\CloseDiv{part}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{section}
   {\OpenDiv{section}}   {\CloseDiv{section}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{subsection}
   {\OpenDiv{subsection}}   {\CloseDiv{subsection}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{subsubsection}
   {\OpenDiv{subsubsection}}   {\CloseDiv{subsubsection}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{paragraph}
   {\OpenDiv{paragraph}}   {\CloseDiv{paragraph}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;}   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{subparagraph}
   {\OpenDiv{subparagraph}}   {\CloseDiv{subparagraph}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;}   {\HCode{&lt;/title&gt;}\par\ShowPar}
|&lt;sectioning utilities|&gt;
&gt;&gt;&gt;


\&lt;amsart + article sec\&gt;&lt;&lt;&lt;
\ConfigureMark{section}
   {\ifnum \c:secnumdepth&gt;\c@secnumdepth \expandafter\:gobble
    \else \HCode{&lt;abbrev role="title-mark"&gt;}\thesection
          \HCode{&lt;/abbrev&gt;}\fi }
\ConfigureMark{subsection}
   {\ifnum \c:secnumdepth&gt;\c@secnumdepth \expandafter\:gobble
    \else \HCode{&lt;abbrev role="title-mark"&gt;}\thesubsection
          \HCode{&lt;/abbrev&gt;}\fi }
\ConfigureMark{subsubsection}
   {\ifnum \c:secnumdepth&gt;\c@secnumdepth \expandafter\:gobble
    \else \HCode{&lt;abbrev role="title-mark"&gt;}\thesubsubsection
          \HCode{&lt;/abbrev&gt;}\fi }
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{End Points}
%%%%%%%%%%%%%%%%%%%%%%%%%



\&lt;amsart + article sec\&gt;&lt;&lt;&lt;
\Configure{endsection}
     {likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endsubsection}
   {likesubsection,section,likesection,chapter,%
      likechapter,appendix,part,likpart}
\Configure{endsubsubsection}
   {likesubsubsection,subsection,likesubsection,section,%
      likesection,chapter,likechapter,appendix,part,likpart}
\Configure{endparagraph}
   {likeparagraph,subsubsection,likesubsubsection,subsection,%
    likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likpart}
\Configure{endsubparagraph}
   {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
    subsection,likesubsection,section,%
    likesection,chapter,likechapter,appendix,part,likpart}
\ifx \part\:UnDef \else
   \Configure{endpart}{likepart}
\fi
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%%
\section{amsmath}
%%%%%%%%%%%%%%%%%%%%



\&lt;configure docbook-mml amsmath\&gt;&lt;&lt;&lt;  
\Configure{equation}
  {\ifvmode \IgnorePar\fi   \EndP
   \HCode{&lt;blockquote role="equation"&gt;}%
   \Configure{gather}
     {\HCode{&lt;mtable\Hnewline
         class="equation"&gt;&lt;mtr&gt;&lt;mtd&gt;}\IgnorePar }
     {\HCode{&lt;/mtd&gt;&lt;/mtr&gt;&lt;/mtable&gt;}}
     {}
     {}
     {\ifnum\HCol=2 \IgnorePar
         \HCode{&lt;/mtd&gt;&lt;mtd&gt;}\fi }
     {}
  }
  {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;note role="equation"&gt;&lt;para&gt;}}
  {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;/para&gt;&lt;/note&gt;&lt;/blockquote&gt;}\par
   \ShowPar}

% Mar 18, 2013 at 9:28 PM, Matteo Gamboz &lt;gamboz@medialab.sissa.it&gt;
% wrote that starred equation caused an forgotten endgroup error, hence
% the following fix. CVR Mar 22, 2013.

\Configure{equation*}
  {\ifvmode \IgnorePar\fi   \EndP
   \HCode{&lt;blockquote role="equation"&gt;}%
   \Configure{gather}
     {\HCode{&lt;mtable\Hnewline
         class="equation"&gt;&lt;mtr&gt;&lt;mtd&gt;}\IgnorePar }
     {\HCode{&lt;/mtd&gt;&lt;/mtr&gt;&lt;/mtable&gt;}}
     {}
     {}
     {}
     {}
  }
  {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;/blockquote&gt;}\par
   \ShowPar}
&gt;&gt;&gt;


\&lt;configure docbook-mml amsmath\&gt;&lt;&lt;&lt;
\ConfigureEnv{align*} 
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi} {}{}    
\ConfigureEnv{alignat*}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{alignat}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}   
\ConfigureEnv{align}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}   
\ConfigureEnv{eqxample}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{flalign*}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{flalign}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{gather}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{gather*}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{gathered}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{matrix}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{xalignat*}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{xalignat}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
\ConfigureEnv{xxalignat}
   {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
   {\ifmmode\else \par\ShowPar\fi}{}{}
&gt;&gt;&gt;




\&lt;configure docbook amsmath\&gt;&lt;&lt;&lt;  
\ConfigureEnv{subequations}
  {\ifvmode \IgnorePar\fi   \EndP
   \HCode{&lt;blockquote role="subequations"&gt;}%
  }
  {\ifvmode \IgnorePar\fi\EndP \HCode{&lt;/blockquote&gt;}\par
   \ShowPar}
  {}{}
&gt;&gt;&gt;

\&lt;configure docbook-math amsmath\&gt;&lt;&lt;&lt;
\Configure{equation}
  {\ifmmode\else\par \IgnorePar\fi \EndP
           \HCode{&lt;blockquote role="equation"&gt;}\IgnorePar
  }
  {\ifvmode \IgnorePar\fi\EndP\HCode{&lt;note role="equation"&gt;&lt;para&gt;}}
  {\HCode{&lt;/para&gt;&lt;/note&gt;&lt;/blockquote&gt;}}
\Configure{equation*}
  {\ifmmode\else\par \IgnorePar\fi \EndP
   \HCode{&lt;blockquote role="equation-star"&gt;}\IgnorePar   
  }
  {\ifmmode\else\par \IgnorePar\fi \EndP
   \HCode{&lt;/blockquote&gt;}}
&gt;&gt;&gt;


\&lt;configure docbook-math amsmath\&gt;&lt;&lt;&lt;
\def\:tempc#1#2{% 
   \ConfigureEnv{#1} 
     {\par\IgnorePar\EndP\HCode{&lt;equation 
            role="#1"&gt;&lt;mathphrase&gt;}\Picture*[]{}} 
     {\EndPicture\EndP\HCode{&lt;/mathphrase&gt;&lt;/equation&gt;}\par} 
     {} {}} 
\: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}
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%
\chapter{Plain}
%%%%%%%%%%%%%%%%%


\&lt;latex, plain\&gt;&lt;&lt;&lt;
\Configure{centerline}
   {\IgnorePar\EndP\HCode{&lt;blockquote 
        role="centerline"&gt;&lt;title&gt;&lt;/title&gt;}\ShowPar\par}
   {\IgnorePar\EndP\HCode{&lt;/blockquote&gt;}\ShowPar\par}
\Configure{leftline}
   {\IgnorePar\EndP\HCode{&lt;blockquote 
        role="leftline"&gt;&lt;title&gt;&lt;/title&gt;}\ShowPar\par}
   {\IgnorePar\EndP\HCode{&lt;/blockquote&gt;}\ShowPar\par}
\Configure{rightline}
   {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;blockquote 
        role="rightline"&gt;&lt;title&gt;&lt;/title&gt;}\ShowPar\par}
   {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;/blockquote&gt;}\ShowPar\par}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%
\chapter{TeXinfo}
%%%%%%%%%%%%%%%%%




\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
|&lt;sectioning utilities|&gt;
\Configure{pdfurl}
   {\let\sv:Link=\Link \let\sv:EndLink=\EndLink
    \let\Link=\U:Link
    \def\EndLink{\EndU:Link\let\Link=\sv:Link \let\EndLink=\sv:EndLink}}
%\LinkCommand\U:Link{ulink, url,,,,}
\LinkCommand\U:Link{link, xlink:href,,,,}
&gt;&gt;&gt;




\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\Configure{group}
   {\IgnorePar\EndP\HCode{&lt;blockquote 
        role="group"&gt;&lt;title&gt;&lt;/title&gt;}\ShowPar\par}
   {\IgnorePar\EndP\HCode{&lt;/blockquote&gt;}\ShowPar\par}
\Configure{multitable}
   {\IgnorePar \EndP\HCode{&lt;informaltable\Hnewline
        role="multitable"&gt;}\IgnorePar }
   {\HCode{&lt;/tbody&gt;&lt;/tgroup&gt;&lt;/informaltable&gt;}}
   {\HCode{\ifnum \HRow=1 &lt;tgroup cols="\HCols"&gt;&lt;tbody&gt;\fi
           &lt;row&gt;&lt;!-- cols="\HRow"--&gt;}}
   {\HCode{&lt;/row&gt;}}
   {\HCode{&lt;entry\Hnewline&gt;&lt;!-- cols="\the\colcount"--&gt;&lt;para&gt;}}
   {\IgnorePar \EndP\HCode{&lt;/para&gt;&lt;/entry&gt;}}
&gt;&gt;&gt;


\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\Configure{example}
   {\IgnorePar\EndP\HCode{&lt;example
        role="example"&gt;&lt;title&gt;&lt;/title&gt;&lt;para&gt;}\bgroup
     \Configure{obeylines}{}{}{\hbox{\HCode{&lt;/para&gt;&lt;para&gt;}}}}
   {\egroup\IgnorePar\EndP\HCode{&lt;/para&gt;&lt;/example&gt;}\ShowPar\par}
\Configure{smallexample}
   {\IgnorePar\EndP\HCode{&lt;example
        role="smallexample"&gt;&lt;title&gt;&lt;/title&gt;&lt;para&gt;}\bgroup
     \Configure{obeylines}{}{}{\hbox{\HCode{&lt;/para&gt;&lt;para&gt;}}}}
   {\egroup\IgnorePar\EndP\HCode{&lt;/para&gt;&lt;/example&gt;}\ShowPar\par}
&gt;&gt;&gt;





\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\ConfigureMark{chapter}{\the\chapno}
\Configure{chapter}
   {\OpenDiv{chapter}}   {\CloseDiv{chapter}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{appendix}{\appendixletter}
\Configure{appendix}
   {\AppOpenDiv{appendix}}   {\AppCloseDiv{appendix}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{unnumbered}
   {\OpenDiv{unnumbered}}   {\CloseDiv{unnumbered}}
   {\HCode{&lt;title&gt;}} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{numberedsec}{\the\chapno.\the\secno}
\Configure{numberedsec}
   {\OpenDiv{numberedsec}}   {\CloseDiv{numberedsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{appendixsec}{\appendixletter.\the\secno}
\Configure{appendixsec}
   {\OpenDiv{appendixsec}}   {\CloseDiv{appendixsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{unnumberedsec}
   {\OpenDiv{unnumberedsec}}   {\CloseDiv{unnumberedsec}}
   {\HCode{&lt;title&gt;}} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{numberedsubsec}{\the\chapno.\the\secno .\the\subsecno}
\Configure{numberedsubsec}
   {\OpenDiv{numberedsubsec}}   {\CloseDiv{numberedsubsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{appendixsubsec}{\appendixletter .\the\secno.\the\subsecno}
\Configure{appendixsubsec}
   {\OpenDiv{appendixsubsec}}   {\CloseDiv{appendixsubsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{appendixsubsec}{\appendixletter.\the\secno
                                        .\the\subsecno}
\Configure{appendixsubsec}
   {\OpenDiv{appendixsubsec}}   {\CloseDiv{appendixsubsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{unnumberedsubsec}
   {\OpenDiv{unnumberedsubsec}}   {\CloseDiv{unnumberedsubsec}}
   {\HCode{&lt;title&gt;}} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{numberedsubsubsec}{\the\chapno.\the\secno
                      .\the\subsecno.\the\subsubsecno}
\Configure{numberedsubsubsec}
   {\OpenDiv{numberedsubsubsec}}   {\CloseDiv{numberedsubsubsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{appendixsubsubsec}{\appendixletter
             .\the\secno.\the\subsecno.\the\subsubsecno}
\Configure{appendixsubsubsec}
   {\OpenDiv{appendixsubsubsec}}   {\CloseDiv{appendixsubsubsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\ConfigureMark{appendixsubsubsec}{\appendixletter.\the\secno
                                  .\the\subsecno.\the\subsubsecno}
\Configure{appendixsubsubsec}
   {\OpenDiv{appendixsubsubsec}}   {\CloseDiv{appendixsubsubsec}}
   {\HCode{&lt;title&gt;}|&lt;TitleMark|&gt;} {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{unnumberedsubsubsec}
   {\OpenDiv{unnumberedsubsubsec}}   {\CloseDiv{unnumberedsubsubsec}}
   {\HCode{&lt;title&gt;}} {\HCode{&lt;/title&gt;}\par\ShowPar}
&gt;&gt;&gt;








\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\Configure{enumerate}%
   {\ifvmode\IgnorePar\fi \EndP \HCode{&lt;orderedlist\Hnewline&gt;}}
   {\EndP\HCode{&lt;/listitem&gt;&lt;/orderedlist&gt;}\ShowPar}
   {\ifnum \itemno&gt;1 
       \ifvmode\IgnorePar\fi \EndP \Tg&lt;/listitem&gt;\fi \DeleteMark}
   {\ifvmode\IgnorePar\fi \EndP \HCode{&lt;listitem&gt;}\par\ShowPar}
\Configure{itemize}%
   {\ifvmode\IgnorePar\fi \EndP \HCode{&lt;itemizedlist&gt;}}
   {\EndP\HCode{&lt;/listitem&gt;&lt;/itemizedlist&gt;}\ShowPar}
   {\ifnum \itemno&gt;1 \ifvmode\IgnorePar\fi \EndP 
      \Tg&lt;/listitem&gt;\fi \DeleteMark}
   {\ifvmode\IgnorePar\fi \EndP \HCode{&lt;listitem&gt;}\par\ShowPar}
\Configure{table}%
   {\EndP\HCode{&lt;glosslist&gt;}\let\end:itm=\empty}
   {\EndP\HCode{&lt;/glossdef&gt;&lt;/glossentry&gt;&lt;/glosslist&gt;}\ShowPar}
   {\end:itm\def\end:itm{\EndP\HCode{&lt;/glossdef&gt;&lt;/glossentry&gt;}}%
      \HCode{&lt;glossentry&gt;&lt;glossterm&gt;&lt;remark&gt;}\bgroup \bf}
   {\egroup\HCode{&lt;/remark&gt;&lt;/glossterm&gt;&lt;glossdef\Hnewline&gt;}\par\ShowPar}
&gt;&gt;&gt;

\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\Configure{titlepage}
   {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;articleinfo&gt;}\bgroup
     \Configure{flushleft}
        {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;abstract&gt;}\bgroup
          \Configure{obeylines}{}{}{\hbox{\HCode{&lt;!--br /--&gt;}}}\ShowPar\par
         \leavevmode }
        {\ifvmode \IgnorePar \fi \EndP \egroup\HCode{&lt;/abstract&gt;}}
   }
   {\egroup\ifvmode \IgnorePar \fi \EndP \HCode{&lt;/articleinfo&gt;}}
\Configure{title}
   {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;title&gt;}\bgroup
    \Configure{leftline}{}{}}
   {\egroup\ifvmode \IgnorePar \fi \EndP \HCode{&lt;/title&gt;}}
\Configure{subtitle}
   {\IgnorePar\EndP\HCode{&lt;subtitle \Hnewline&gt;}\bgroup
    \Configure{rightline}{}{}}
   {\egroup \IgnorePar\EndP\HCode{&lt;/subtitle&gt;}}
\Configure{author}
   {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;author&gt;&lt;othername&gt;}\bgroup
    \Configure{leftline}{}{}}
   {\egroup \ifvmode \IgnorePar \fi \EndP \HCode{&lt;/othername&gt;&lt;/author&gt;}}
&gt;&gt;&gt;




\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
|&lt;unicode space|&gt;
&gt;&gt;&gt;




% \HCode{\string&amp;\#x00A0;}}


\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\Configure{contents}
  {\b:titlepage   \let\b:titlepage=\empty
   \ifvmode \IgnorePar \fi \EndP \HCode{&lt;tocchap&gt;}}
  {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;/tocchap&gt;}}
&gt;&gt;&gt;




\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\Configure{endchapter}{appendix}
\Configure{endappendix}{chapter}
\Configure{endnumberedsec}
   {chapter,appendix,appendixsec,unnumberedsec,unnumbered}
\Configure{endappendixsec}
   {chapter,appendix,umberedsec,unnumberedsec,unnumbered}
\Configure{endunnumberedsec}
   {chapter,appendix,umberedsec,appendixsec,unnumbered}
\Configure{endunnumbered}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec}
\Configure{endnumberedsubsec}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
    unnumbered,appendixsubsec,appendixsubsec,unnumberedsubsec}
\Configure{endappendixsubsec}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
    unnumbered,numberedsubsec,appendixsubsec,unnumberedsubsec}
\Configure{endappendixsubsec}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
    unnumbered,numberedsubsec,appendixsubsec,unnumberedsubsec}
\Configure{endunnumberedsubsec}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
    unnumbered,numberedsubsec,appendixsubsec,appendixsubsec}
\Configure{endnumberedsubsubsec}{chapter,appendix,umberedsec,%
    appendixsec,unnumberedsec,unnumbered,numberedsubsec,%
    appendixsubsec,appendixsubsec,unnumberedsubsec,appendixsubsubsec,%
    appendixsubsubsec,unnumberedsubsubsec}
\Configure{endappendixsubsubsec}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
    unnumbered,numberedsubsec,appendixsubsec,appendixsubsec,%
    unnumberedsubsec,numberedsubsubsec,appendixsubsubsec,%
    unnumberedsubsubsec}
\Configure{endappendixsubsubsec}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
    unnumbered,numberedsubsec,appendixsubsec,appendixsubsec,%
    unnumberedsubsec,numberedsubsubsec,appendixsubsubsec,%
    unnumberedsubsubsec}
\Configure{endunnumberedsubsubsec}
   {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
    unnumbered,numberedsubsec,appendixsubsec,appendixsubsec,%
    unnumberedsubsec,numberedsubsubsec,appendixsubsubsec,appendixsubsubsec}
&gt;&gt;&gt;









\&lt;configure docbook texinfo\&gt;&lt;&lt;&lt;
\Configure{index}
  {\IgnorePar\leavevmode\EndP\Tg&lt;div class="index"&gt;}
  {\IgnorePar\EndP\Tg&lt;/div&gt;}
  {\leavevmode\Tg&lt;span class="entry"&gt;}
  {\Tg&lt;/span&gt;\Tg&lt;br /&gt;\IgnorePar}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%
\chapter{Packages}
%%%%%%%%%%%%%%%%%






%%%%%%%%%%%%%%%%%%%
\section{Verbatim}
%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{fancyvrb}
%%%%%%%%%%%%%%%%%%%%%%%%

\&lt;configure docbook fancyvrb\&gt;&lt;&lt;&lt;
\Configure{fancyvrb}
   {\ifvmode \IgnorePar \fi \EndP
    \HCode{&lt;literallayout role="fancyvrb" &gt;}}
   {\EndP\HCode{&lt;/literallayout&gt;}}
   {\HCode{&lt;literal&gt;}} {\HCode{&lt;/literal&gt;}}
   {\HCode{&lt;literal&gt;}} {\HCode{&lt;/literal&gt;}}
&gt;&gt;&gt;


\&lt;fancyvrb.sty config 4.0t\&gt;&lt;&lt;&lt;
\Configure{fancyvrbcolor}
  {\Css{div\#fancyvrb\fancyvrbNo { color: \HColor; }}}
  {\Css{div\#fancyvrb\fancyvrbNo { background-color: \HColor;}}}
  {\Css{div\#fancyvrb\fancyvrbNo { border-color: \HColor;}}}
&gt;&gt;&gt;

\&lt;fancyvrb.sty config 4.0t\&gt;&lt;&lt;&lt;
\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;}}}
&gt;&gt;&gt;

\&lt;fancyvrb.sty config 4.0t\&gt;&lt;&lt;&lt;
\Configure{BVerbatimInput}
   {\ifvmode \IgnorePar \fi \EndP 
    \gHAssign\HRow=0
    \HCode{&lt;div class="BVerbatimInput"&gt;}}
   {\ifvmode \IgnorePar \fi \EndP \HCode{&lt;/div&gt;}}
   {\gHAdvance\HRow by 1 \ifnum \HRow&gt;1 \HCode{&lt;br /&gt;}\fi}{}
&gt;&gt;&gt;




%%%%%%%%%%%%%%%%%%%
\section{Drawing Utilitis}
%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%
\subsection{pgf}
%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%
\subsection{pgf}
%%%%%%%%%%%%%%%%%%%

\&lt;configure docbook pgf\&gt;&lt;&lt;&lt;
\ConfigureEnv{pgfpicture}
   {\hbox\bgroup\Picture+[ ]{}}
   {\EndPicture\egroup} 
   {}{}
&gt;&gt;&gt;



%%%%%%%%%%%%%%%%%%%
\section{beamer}
%%%%%%%%%%%%%%%%%%%




\&lt;configure docbook beamer\&gt;&lt;&lt;&lt;
|&lt;article prologue|&gt;
|&lt;beamer title page|&gt;
|&lt;beamer toc|&gt;
|&lt;beamer sections|&gt;
|&lt;beamer slides|&gt;
|&lt;beamer slide titles|&gt;
|&lt;beamer environments|&gt;
|&lt;beamer bib|&gt;
|&lt;beamer other|&gt;
&gt;&gt;&gt;

\&lt;beamer titlepage par\&gt;&lt;&lt;&lt;
\Configure{HtmlPar}
   {\EndP\HCode{&lt;!--l. \the\inputlineno--&gt;&lt;note&gt;&lt;para&gt;}}
   {\EndP\HCode{&lt;!--l. \the\inputlineno--&gt;&lt;note&gt;&lt;para&gt;}}
   {\HCode{&lt;/para&gt;&lt;/note&gt;}}     {\HCode{&lt;/para&gt;&lt;/note&gt;}}
&gt;&gt;&gt;

\&lt;beamer title page\&gt;&lt;&lt;&lt;
\Configure{titlepage}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;para role="titlepage"&gt;}%
    \bgroup |&lt;beamer titlepage par|&gt;}
   {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{&lt;/para&gt;}}
\Configure{title}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;note role="title"&gt;&lt;para&gt;}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/para&gt;&lt;/note&gt;}}
\Configure{author}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;note role="author"&gt;&lt;para&gt;&lt;personname&gt;&lt;othername&gt;}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/othername&gt;&lt;/personname&gt;&lt;/para&gt;&lt;/note&gt;}}
\Configure{institute}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;note role="institute"&gt;&lt;para&gt;}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/para&gt;&lt;/note&gt;}}
\Configure{date}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;note role="date"&gt;&lt;para&gt;}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/para&gt;&lt;/note&gt;}}
\Configure{inst}
   {\HCode{&lt;superscript role="inst"&gt;}\bgroup \everymath{}\let\sp=\empty}
   {\egroup\HCode{&lt;/superscript&gt;}}
\Configure{andtitle}{\HCode{&lt;remark role="and"/&gt;}}
&gt;&gt;&gt;



\&lt;beamer toc\&gt;&lt;&lt;&lt;
\Configure{tableofcontents}
  {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;toc&gt;&lt;tocpart&gt;}}
  {\ifvmode \IgnorePar\fi \EndP\HCode{&lt;/tocpart&gt;&lt;/toc&gt;}}
  {}{}{}
\ConfigureToc{toc}  
   {} {\HCode{\Hnewline&lt;tocentry&gt;}}
   {} {\HCode{&lt;/tocentry&gt;}}
\Configure{sectionshadedintoc}
   {\HCode{&lt;phrase role="sectionshaded"&gt;}}
   {\ifvmode \IgnorePar\fi \HCode{&lt;/phrase&gt;}}
\Configure{sectionintoc}
   {\HCode{&lt;phrase role="section"&gt;}}
   {\ifvmode \IgnorePar\fi \HCode{&lt;/phrase&gt;}}
\Configure{subsectionshadedintoc}
   {\HCode{&lt;phrase role="subsectionshaded"&gt;}}
   {\ifvmode \IgnorePar\fi \HCode{&lt;/phrase&gt;}}
\Configure{subsectionintoc}
   {\HCode{&lt;phrase role="subsection"&gt;}}
   {\ifvmode \IgnorePar\fi \HCode{&lt;/phrase&gt;}}
&gt;&gt;&gt;


\&lt;beamer slides\&gt;&lt;&lt;&lt;
\ConfigureEnv{slide}
   {\ifvmode \IgnorePar\fi \EndP  
    \HCode{&lt;section role="slide"&gt;&lt;title&gt;&lt;/title&gt;}\par
   }
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/section&gt;}}
   {} {}
&gt;&gt;&gt;



\&lt;beamer sections\&gt;&lt;&lt;&lt;
\let\no:section\section
\Def:Section\section{\thesection}{#1}
\let\no::section\section
\let\section\no:section
\let\no:section\@section
\def\@section[#1]#2{\no::section{#2}%
   \ifvmode \IgnorePar\fi \EndP
   \HCode{&lt;subtitle&gt;}#1%
   \ifvmode \IgnorePar\fi \EndP \HCode{&lt;/subtitle&gt;}%
   \no:section[#1]{#2}}

\let\no:subsection\subsection
\Def:Section\subsection{\thesubsection}{#1}
\let\no::subsection\subsection
\def\subsection#1{\no::subsection{#1}\no:subsection{#1}}

\Configure{section}
   {\IgnorePar\EndP \HCode{&lt;!--l.
       \the\inputlineno--&gt;&lt;section\Hnewline role="section"&gt;}} 
   {\IgnorePar\EndP\HCode{&lt;/section&gt;&lt;!--end section--&gt;}}
   {\HCode{&lt;title&gt;}\TitleMark}
   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{subsection}
   {\IgnorePar\EndP \HCode{&lt;!--l.
       \the\inputlineno--&gt;&lt;section\Hnewline role="subsection"&gt;}} 
   {\IgnorePar\EndP\HCode{&lt;/section&gt;&lt;!--end subsection--&gt;}}
   {\HCode{&lt;title&gt;}\TitleMark}
   {\HCode{&lt;/title&gt;}\par\ShowPar}
\Configure{endsubsection}{section}
&gt;&gt;&gt;




\&lt;beamer environments\&gt;&lt;&lt;&lt;
\let\block:Name=\empty
\ConfigureEnv{block}
   {\par\IgnorePar\EndP 
    \ifx \block:Name\empty \def\block:Name{block}\fi
    \HCode{&lt;blockquote
            role="\block:Name"&gt;}\global\let\block:Name=\empty}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/blockquote&gt;}}
   {} {}
\ConfigureEnv{alertblock}
   {\par\IgnorePar\EndP 
    \ifx \block:Name\empty \def\block:Name{alertblock}\fi
    \HCode{&lt;blockquote
            role="\block:Name"&gt;}\global\let\block:Name=\empty}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/blockquote&gt;}}
   {} {}
\ConfigureEnv{exampleblock}
   {\par\IgnorePar\EndP 
    \ifx \block:Name\empty \def\block:Name{exampleblock}\fi
    \HCode{&lt;blockquote
            role="\block:Name"&gt;}\global\let\block:Name=\empty}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/blockquote&gt;}}
   {} {}
\Configure{blocktitle}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;title&gt;}\par\IgnorePar}
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/title&gt;}\par}
&gt;&gt;&gt;

\&lt;beamer environments\&gt;&lt;&lt;&lt;
\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}} {} {} {}
\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}} {} {} {}
&gt;&gt;&gt;



\&lt;beamer slide titles\&gt;&lt;&lt;&lt;
\Configure{frametitle}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{&lt;para role="frametitle"&gt;}\bgroup
    \Configure{HtmlPar}{ }{ }{}{}%
   }
   {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{&lt;/para&gt;}}
&gt;&gt;&gt;


\&lt;beamer environments\&gt;&lt;&lt;&lt;
\ConfigureEnv{columns}
  {\ifvmode \IgnorePar\fi \EndP 
   \HCode{&lt;blockquote role="columns"&gt;}}
  {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/blockquote&gt;}\par}
  {}{}
\ConfigureEnv{column}
  {\ifvmode \IgnorePar\fi \EndP 
   \HCode{&lt;blockquote role="column"&gt;}}
  {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/blockquote&gt;}}
  {}{}
&gt;&gt;&gt;


\&lt;beamer other\&gt;&lt;&lt;&lt;
\Configure{alert}
   {\HCode{&lt;note role="alert"&gt;&lt;para&gt;}\bgroup
    \Configure{HtmlPar}{\HCode{&lt;!--br/--&gt;}}{\HCode{&lt;!--br/--&gt;}}{}{}%
   }
   {\egroup\HCode{&lt;/para&gt;&lt;/note&gt;}}
&gt;&gt;&gt;





\&lt;beamer bib\&gt;&lt;&lt;&lt;
\ConfigureList{thebibliography}%
   {\IgnorePar\EndP
      \HCode{&lt;simplelist role="bibliography"&gt;}\let\en:bib=\empty}
   {\en:bib\HCode{&lt;/simplelist&gt;}}
   {\en:bib\def\en:bib{\HCode{&lt;/member&gt;}}%
    \HCode{&lt;member&gt;&lt;!--l. 
        \the\inputlineno--&gt;&lt;abbrev role="biblioentry"&gt;}%
    |&lt;para within bib|&gt;}
   {\HCode{&lt;/abbrev&gt;}}
&gt;&gt;&gt;



%%%%%%%%%%%%%%%%%%%
\section{prosper}
%%%%%%%%%%%%%%%%%%%



\&lt;configure docbook prosper\&gt;&lt;&lt;&lt;
\ConfigureEnv{slide}
  {\ifvmode \IgnorePar\fi \EndP
   \HCode{&lt;blockquote role="slide"&gt;}\par}
  {\HCode{&lt;/blockquote&gt;}}
  {}{}
\Configure{slidetitle}
  {\HCode{&lt;note role="title"&gt;&lt;para&gt;}}
  {\HCode{&lt;/para&gt;&lt;/note&gt;}}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%%
\section{algorithmic}
%%%%%%%%%%%%%%%%%%%



\&lt;configure docbook algorithmic\&gt;&lt;&lt;&lt;
\ConfigureEnv{algorithmic}
   {\ifvmode\IgnorePar\fi \EndP
    \HCode{&lt;blockquote role="algorithmic"&gt;&lt;para&gt;}%
    \bgroup 
      \Configure{HtmlPar}{}{}{}{}}
   {\egroup \ifvmode \IgnorePar\fi
    \HCode{&lt;/para&gt;&lt;/blockquote&gt;}\par\ShowPar}
   {}{}
\Configure{ALCitem}
   {\HCode{\ifnum \c@ALC@line&gt;1 &lt;/para&gt;&lt;para&gt;\fi
           &lt;remark role="line-number"&gt;}}
   {\HCode{&lt;/remark&gt;}}
\Configure{algorithmiccomment}
   {\HCode{&lt;blockquote role="comment"&gt;&lt;para&gt;}} 
   {\HCode{&lt;/para&gt;&lt;/blockquote&gt;}}
   {}{}  
&gt;&gt;&gt;

%%%%%%%%%%%%%%%%%%%
\section{llncs}
%%%%%%%%%%%%%%%%%%%



\&lt;configure docbook llncs\&gt;&lt;&lt;&lt;
\Configure{email}
   {\HCode{&lt;email&gt;}}
   {\HCode{&lt;/email&gt;}}
\Configure{institute}
   {\HCode{&lt;note&gt;&lt;para role="institute"&gt;}}
   {\HCode{&lt;/para&gt;&lt;/note&gt;}}
&gt;&gt;&gt;

\&lt;configure docbook llncs\&gt;&lt;&lt;&lt;
\ConfigureEnv{abstract}
   {\ifvmode \IgnorePar\fi \EndP}
   {\ifvmode \IgnorePar\fi \EndP}
   {}{}
\ConfigureList{abstract}
   {\ifvmode \IgnorePar\fi \EndP
       \HCode{&lt;abstract&gt;}\IgnorePar}
   {\ifvmode \IgnorePar\fi \EndP
       \HCode{&lt;/abstract&gt;}\ShowPar}
   {\IgnorePar\par\HCode{&lt;title&gt;}}
   {\HCode{&lt;/title&gt;}\ShowPar\par}
&gt;&gt;&gt;


%%%%%%%%%%%%%%%%%%
\section{array}
%%%%%%%%%%%%%%%%%%



\&lt;configure docbook array\&gt;&lt;&lt;&lt;
|&lt;html latex array/tabular Config 4.0t|&gt;
|&lt;latex tables|&gt;
&gt;&gt;&gt;


\&lt;configure html4-math array\&gt;&lt;&lt;&lt;
|&lt;math html latex array/tabular|&gt;
&gt;&gt;&gt;





%%%%%%%%%%%%%
\subsection{subeqnarray}
%%%%%%%%%%%%%


\&lt;configure docbook subeqnarray\&gt;&lt;&lt;&lt;
\ConfigureEnv{subeqnarray}  
   {\ifvmode \IgnorePar\fi \EndP  
    \HCode{&lt;blockquote role="subeqnarray"&gt;}}  
   {\ifvmode \IgnorePar\fi \EndP \HCode{&lt;/blockquote&gt;}}  
   {}{} 
&gt;&gt;&gt;

\begin{thebibliography}{9}
\bibitem{home}
\url{http://www.docbook.org/}
\bibitem{specs}
Norman Walsh
(With contributions from Leonard Muellner),
DocBook 5.0: The Definitive Guide,
3 March 2008,
O'Reilly,
\url{http://www.docbook.org/tdg5/en/html/}
(\Link[http://www.docbook.org/tdg5/en/html/pt02.html]{}{}element references\EndLink, \Link[http://docbook.org/schemas/5x]{}{}relax ng\EndLink

\bibitem{wiki}
\url{http://en.wikipedia.org/wiki/DocBook}
\end{thebibliography}


%%%%%%%%%%%%%%%%%%
\section{Bitmaps}
%%%%%%%%%%%%%%%%%%



\&lt;configure docbook graphics\&gt;&lt;&lt;&lt; 
\Configure{graphics*} 
   {gif} 
   {{\Configure{Needs}{File: \Gin@base.gif}\Needs{}}% 
    \Picture[\a:GraphicsAlt]{\Gin@base.gif |&lt;graphics dim|&gt;}} 
\Configure{graphics*} 
   {png} 
   {{\Configure{Needs}{File: \Gin@base.png}\Needs{}}% 
    \Picture[\a:GraphicsAlt]{\Gin@base.png |&lt;graphics dim|&gt;}} 
\Configure{graphics*} 
   {jpg} 
   {{\Configure{Needs}{File: \Gin@base.jpg}\Needs{}}% 
    \Picture[\a:GraphicsAlt]{\Gin@base.jpg |&lt;graphics dim|&gt;}} 
\Configure{graphics*} 
   {jpeg} 
   {{\Configure{Needs}{File: \Gin@base.jpeg}\Needs{}}% 
    \Picture[\a:GraphicsAlt]{\Gin@base.jpeg |&lt;graphics dim|&gt;}}
&gt;&gt;&gt;

\&lt;graphics dim\&gt;&lt;&lt;&lt; 
\csname a:Gin-dim\endcsname 
&gt;&gt;&gt; 

\&lt;includegraphics dim\&gt;&lt;&lt;&lt; 
\NewConfigure{Gin-dim}{1}
&gt;&gt;&gt;

\&lt;configure docbook tex4ht\&gt;&lt;&lt;&lt; 
\:CheckOption{jpg} \if:Option 
   \Configure{Picture}{.jpg}   
\else 
   \Log:Note{for jpg bitmaps of pictures, use the `jpg' 
       command line option. |&lt;ch bitmaps|&gt;} 
\fi 
\:CheckOption{gif} \if:Option  
   \Configure{Picture}{.gif}   
\else 
   \Log:Note{for gif bitmaps of pictures, use the `gif' 
       command line option. |&lt;ch bitmaps|&gt;} 
\fi 
&gt;&gt;&gt; 
 
\&lt;ch bitmaps\&gt;&lt;&lt;&lt; 
(Character bitmaps are controled only by `g' records of tex4ht.env and `-g' 
switches of tex4ht.c) 
&gt;&gt;&gt; 

\endinput
</pre></body></html>