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


%%%%%%%%%%%%%%%%%% load style files %%%%%%%%%%%%%%%%%%%%%%%%%%

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

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

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

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

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




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



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


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


\<docbook-mml\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
% docbook-mml.4ht                       |version %
% Copyright (C) |CopyYear.2000.       Eitan M. Gurari         % 
|<TeX4ht copyright|>
>>>


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

\<configure docbook plain\><<<
|<Hinclude plain lib|>
|<Hinclude plain + latex lib|>
>>>

\<configure docbook latex\><<<
|<Hinclude latex lib|>
|<Hinclude plain + latex lib|>
>>>

\<configure docbook Preamble\><<<    
\Configure{html}{xml}
\edef\Preamble{\Preamble,refcaption}
>>>

\<TeX4ht copyright\><<<
%                                                        %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 of this license or (at your option) any    %
% later version. The latest version of this license is   %
% in                                                     %
%   http://www.latex-project.org/lppl.txt                %
% and version 1.3 or later is part of all distributions  %
% of LaTeX version 2003/12/01 or later.                  %
%                                                        %
% This work has the LPPL maintenance status "maintained".%
%                                                        %
% This Current Maintainer of this work                   %
% is Eitan M. Gurari.                                    %
%                                                        %
% If you modify this program your changing its signature %
% with a directive of the following form will be         %
% appreciated.                                           %
%            \message{signature}                         %
%                                                        %
%                             gurari@cse.ohio-state.edu  %
%                 http://www.cse.ohio-state.edu/~gurari  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version |version}
>>>


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

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

\<configure docbook tex4ht\><<<    
|<tex4ht wrapper|>
|<tex4ht paragraphs|>
|<tex4ht cross-linking|>
>>>


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

\<configure docbook latex\><<< 
|<latex environments|>
|<latex lists|>
|<latex tables|>
|<latex etc|>
|<obey lines|>
|<latex, plain|>
>>>


\<configure docbook plain\><<<
|<latex, plain|>
>>>




\<latex etc\><<<
\Configure{ref}{\refLink}{\EndLink}{}      
\def\refLink#1#2#3\EndLink{
   \ifvmode
     \HCode{<note role="ref"><para>}
     \Link{#1}{#2}\Tg<!--ref: \RefArg-->\EndLink
     #3\HCode{</para></note>}
   \else
     \Link{#1}{#2}\Tg<!--ref: \RefArg-->\EndLink
   \fi}
>>>


\<configure docbook-mml latex\><<< 
\def\refLink#1#2#3\EndLink{%
   \ifvmode
      \ifmathml\else
          \HCode{<note role="ref"><para role="ref">}
      \fi
      \Link{#1}{#2}\Tg<!--ref: \RefArg-->\EndLink
      \ifmathml\else #3\HCode{</para></note>}\par\fi
   \else
      \Link{#1}{#2}\Tg<!--ref: \RefArg-->\EndLink
   \fi
}
>>>





\<latex etc\><<<
\Configure{newline}{\HCode{<!--br/-->}}             
>>>

\<configure docbook-mml tex4ht\><<< 
\LinkCommand\mtxt:link{mtext,xreflabel,id, class="label" ,,\empty}
\LinkCommand\msp:link{mstyle,xreflabel,id, class="label" ,,\empty}
>>>



\<configure docbook-mml latex\><<< 
\Configure{newline}
  {\ifmtext \HCode{</mtext><mtext class="newline">}%
   \else \HCode{<!--br role="newline" /-->}\fi}
>>>

\<configure docbook-mml latex\><<<
\Configure{equation}
   {\IgnorePar\EndP\HCode{<para role="equation">}}
   {\HCode{</para><para role="equation-label">}}
   {\IgnorePar\HCode{</para>}\ShowPar\par}
>>>







\<latex etc\><<<
\Configure{newtheorem}
   {\IgnorePar\EndP\HCode{<blockquote role="newtheorem"><title>}}
   {\HCode{</title>}\ShowPar\par}
   {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
>>>

\verb+<section>+ and \verb+<blockquote>+ allow recursion,
but the first can't be followed by \verb+<para>+.


\<configure docbook plain\><<< 
|<plain prologue|>
>>>

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

\<configure docbook article\><<< 
|<article, report, book|>
|<article prologue|>
|<article maketitle|>
|<article sections|>
|<article tocs|>
|<article,report,book lists|>
|<article,report,book figures|>
|<article,report|>
|<article,report,book indexes|>
>>>

% |<amsart + article sec|>


\<configure docbook report\><<< 
|<article, report, book|>
|<report, book|>
|<report prologue|>
|<report maketitle|>
|<report sections|>
|<report,book tocs|>
|<article,report,book lists|>
|<article,report,book figures|>
|<article,report|>
|<article,report,book indexes|>
>>>



\<configure docbook book\><<< 
|<article, report, book|>
|<report, book|>
|<book prologue|>
|<book maketitle|>
|<book sections|>
|<report,book tocs|>
|<article,report,book lists|>
|<article,report,book figures|>
|<article,report,book indexes|>
>>>




\<configure docbook scrbook\><<< 
|<article, report, book|>
|<report, book|>
|<book prologue|>
|<book maketitle|>
|<scr title page|>
|<book sections|>
|<scrbook sections|>
|<report,book tocs|>
|<scrbook tocs|>
|<article,report,book lists|>
|<article,report,book figures|>
|<article,report,book indexes|>
>>>


\<article, report, book\><<<
|<config lists of figures and tables|>
>>>

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



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



\begin{verbatim}
<TEI.2>
    <teiHeader> [ TEI Header information ]  </teiHeader>
    <text>
        <front> [ front matter ... ]   </front>
        <body>  [ body of text ... ]   </body>
        <back>  [ back matter ...  ]   </back>
    </text>
</TEI.2>
\end{verbatim}

The front and back elements are optional.

\<tex4ht wrapper\><<<
\Configure{HTML}{}{}
\Configure{HEAD}{}{}
\Configure{BODY}{}{}
\Configure{TITLE} {}{}
\Configure{TITLE+} {}
>>>



\<article prologue\><<<
\def\:gobbleM#1->{}
\Configure{BODY}
   {|<tex4ht sig|>\HCode{<article>}\par\ShowPar} 
   {\IgnorePar\EndP\HCode{</article>}}
|<tex4ht log sig|>
>>>


\<plain prologue\><<<
\def\:gobbleM#1->{}
\Configure{BODY}
   {|<tex4ht sig|>\HCode{<article>}\par\ShowPar} 
   {\IgnorePar\EndP\HCode{</article>}}
|<tex4ht log sig|>
>>>



\<report prologue\><<<
\def\:gobbleM#1->{}
\Configure{BODY}
   {|<tex4ht sig|>\HCode{<article role="report">}\par\ShowPar}
   {\IgnorePar\EndP\HCode{</article>}}
|<tex4ht log sig|>
>>>



\<book prologue\><<<
\def\:gobbleM#1->{}
\Configure{BODY}
   {|<tex4ht sig|>\HCode{<article role="book">}\par\ShowPar}
   {\IgnorePar\EndP\HCode{</article>}}
|<tex4ht log sig|>
>>>



\<tex4ht sig\><<<
\HCode{\Hnewline<!--translated from \jobname.tex, on \:today,
     \Hnewline by TeX4ht  (http://www.cse.ohio-state.edu/\string
       ~gurari/TeX4ht/) 
     \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline}
>>>

\<tex4ht log sig\><<<
\immediate\write-1{TeX4ht package options:
    \expandafter\:gobbleM\meaning\Preamble}
>>>







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



\<article prologue\><<<
\Configure{VERSION}
  {\HCode{<?xml version="1.0"?>\Hnewline }}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook dtd|>] >\Hnewline }}
>>>


\<plain prologue\><<<
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook dtd|>] >\Hnewline }}
>>>




\<report prologue\><<<
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook dtd|>] >\Hnewline }}
>>>




\<book prologue\><<<
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook dtd|>] >\Hnewline }}
>>>


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


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



\<configure docbook-mml article\><<< 
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook-mml dtd tex4ht|>] >\Hnewline }}
>>>


\<configure docbook-mml report\><<< 
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook-mml dtd tex4ht|>] >\Hnewline }}
>>>


\<configure docbook-mml book\><<< 
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook-mml dtd tex4ht|>] >\Hnewline }}
>>>

\<configure docbook-mml scrbook\><<< 
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook-mml dtd tex4ht|>] >\Hnewline }}
>>>





\<configure docbook-mml plain\><<< 
\Configure{VERSION}
   {\HCode{<?xml version="1.0"?>\Hnewline}}
\Configure{DOCTYPE}
   {\HCode{<!DOCTYPE article [|<docbook-mml dtd tex4ht|>] >\Hnewline }}
>>>



\<docbook-mml dtd tex4ht\><<<
|<docbook-mml dtd|>%
|<docbook dtd|>%
|<mathml dtd|>%
>>>


\<docbook-mml dtd\><<<
<!ELEMENT equation (math)>\Hnewline
<!ELEMENT inlineequation (math)>\Hnewline
|<duplicated mathml entities|>%
>>>

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



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







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





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

\<article maketitle\><<<
\Configure{maketitle}
   {\HCode{<para role="maketitle">}}
   {\HCode{</para>}}
   {\HCode{<note role="title"><para>}}{\HCode{</para></note>}}
\Configure{thanks author date and} {}{}
   {\HCode{<note role="author"><para><personname><othername>}}
   {\HCode{</othername></personname></para></note>}}
   {\HCode{<note role="date"><para>}}
   {\HCode{</para></note>}}
   {}{}
>>>

\<report maketitle\><<<
\Configure{maketitle}
   {\HCode{<para role="maketitle">}}
   {\HCode{</para>}}
   {\HCode{<note role="title"><para>}}{\HCode{</para></note>}}
\Configure{thanks author date and} {}{}
   {\HCode{<note role="author"><para><personname><othername>}}
   {\HCode{</othername></personname></para></note>}}
   {\HCode{<note role="date"><para>}}
   {\HCode{</para></note>}}
   {}{}
>>>

\<book maketitle\><<<
\Configure{maketitle}
   {\HCode{<para role="maketitle">}}
   {\HCode{</para>}}
   {\HCode{<note role="title"><para>}}{\HCode{</para></note>}}
\Configure{thanks author date and} {}{}
   {\HCode{<note role="author"><para><personname><othername>}}
   {\HCode{</othername></personname></para></note>}}
   {\HCode{<note role="date"><para>}}
   {\HCode{</para></note>}}
   {}{}
>>>


\<article maketitle\><<<
\ConfigureEnv{abstract}
   {\IgnorePar\EndP\HCode{<abstract>}}
   {\IgnorePar\EndP\HCode{</abstract>}}
   {\HCode{<title>}}
   {\HCode{</title>}}
>>>



\<report maketitle\><<<
\ConfigureEnv{abstract}
   {\IgnorePar\EndP\HCode{<abstract>}}
   {\IgnorePar\EndP\HCode{</abstract>}}
   {\HCode{<note role="title"><para>}}
   {\HCode{</para></note>}}
>>>





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




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

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



\<book sections\><<<
|<article sections|>
\Configure{chapter}
   {\OpenDiv{chapter}}   {\CloseDiv{chapter}}
   {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
\Configure{likechapter}
   {\OpenDiv{likechapter}}   {\CloseDiv{likechapter}}
   {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
>>>


\<report sections\><<<
|<book sections|>
>>>



\<article sections\><<<
|<amsart + article sec|>
>>>



\<TitleMark\><<<
\TitleMark
>>>



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


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


%   \PopStack\text:stack\:temp \def\:tempa{body}%
%   \ifx \:temp\:tempa \else \HCode{</\:temp><body>}\fi
%   \PushStack\text:stack{body}



\<article sections\><<<
\Configure{likepart}
   {\OpenDiv{likepart}}   {\CloseDiv{likepart}}
   {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
\Configure{likesection}
   {\OpenDiv{likesection}}   {\CloseDiv{likesection}}
   {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
\Configure{likesubsection}
   {\OpenDiv{likesubsection}}   {\CloseDiv{likesubsection}}
   {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
\Configure{likesubsubsection}
   {\OpenDiv{likesubsubsection}}   {\CloseDiv{likesubsubsection}}
   {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
\Configure{likeparagraph}
   {\OpenDiv{likeparagraph}}   {\CloseDiv{likeparagraph}}
   {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
\Configure{likesubparagraph}
   {\OpenDiv{likesubparagraph}}   {\CloseDiv{likesubparagraph}}
   {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
>>>




\<scrbook sections\><<<
\Configure{addchap}
   {\OpenDiv{addchap}}   {\CloseDiv{addchap}}
   {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
>>>

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

\<article sections\><<<
\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
>>>

\<scrbook sections\><<<

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

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


\<latex lists\><<<
\ConfigureList{trivlist}%
   {\EndP\HCode{<glosslist>}\let\end:itm=\empty}
   {\EndP\HCode{</glossdef></glossentry></glosslist>}\ShowPar}
   {\end:itm\def\end:itm{\EndP\HCode{</glossdef></glossentry>}}%
      \HCode{<glossentry><glossterm><remark>}\bgroup \bf}
   {\egroup\HCode{</remark></glossterm><glossdef\Hnewline>}\par\ShowPar}
\ConfigureList{list}%
   {\EndP\HCode{<glosslist>}\let\end:itm=\empty}
   {\EndP\HCode{</glossdef></glossentry></glosslist>}\ShowPar}
   {\end:itm\def\end:itm{\EndP\HCode{</glossdef></glossentry>}}%
      \HCode{<glossentry><glossterm><remark>}\bgroup \bf}
   {\egroup\HCode{</remark></glossterm><glossdef\Hnewline>}\par\ShowPar}
\ConfigureList{itemize}%
   {\EndP\HCode{<itemizedlist>}\let\end:itm=\empty}
   {\EndP\HCode{</listitem></itemizedlist>}\ShowPar}
   {\end:itm\def\end:itm{\EndP\Tg</listitem>}\DeleteMark}
   {\HCode{<listitem>}\par\ShowPar}
\ConfigureList{enumerate}%
   {\EndP\HCode{<orderedlist\Hnewline>}\let\end:itm=\empty}
   {\EndP\HCode{</listitem></orderedlist>}\ShowPar}
   {\end:itm\def\end:itm{\EndP\Tg</listitem>}\DeleteMark}
   {\HCode{<listitem>}\AnchorLabel\par\ShowPar}
>>>



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

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

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



\<fix Link for -\><<<
\let\do:Link=\Link
\def\Link{\futurelet\:next\choose:Link}
\def\choose:Link{\ifx -\:next \expandafter\minus:Link
                 \else\expandafter\do:Link\fi}
\def\minus:Link#1{\do:Link}
>>>

\<fix M:Link for -\><<<
\let\do:M:Link=\M:Link
\def\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}
>>>

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



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



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





\<para within bib\><<<
\Configure{HtmlPar}{}{}{}{}
>>>



\<latex lists\><<<
\Configure{cite}{\Tg<citation>}{\Tg</citation>}{\LinkCite}{}
\Configure{bibitem}{\Link}{\EndLink}
\LinkCommand\LinkCite{xref, linkend,,,/,\empty}
>>>


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


\<configure docbook jurabib\><<<
\Configure{jblink}{\Link}{\EndLink}
\Configure{jbanchor}{\Link}{\EndLink}
>>>




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

\<<article, report, book\><<<
\ConfigureEnv{table}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<para role="table"><blockquote>}}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{</blockquote></para>}}
   {}{}
>>>

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




\<latex tables\><<<
\Configure{tabular}
   {\IgnorePar\EndP \halignTB{tabular}%
    \HCode{<informaltable><tgroup cols="\ar:cnt"><tbody>}}
   {\HCode{</tbody></tgroup></informaltable>}\ShowPar}
   {\HCode{<row>}}
   {\HCode{</row>}}
   {\HCode{<entry\Hnewline}\halignTD
    \ifnum \HMultispan>1 
       \tmp:cnt=\HCol \advance\tmp:cnt by \HMultispan
       \advance\tmp:cnt by -1
       \HCode{ namest="\HCol"  nameend="\the\tmp:cnt"}\fi
    \HCode{><para>}}
   {\HCode{</para></entry>}}
\HAssign\tabularN=0
\Configure{halignTB<>}{tabular}{<>\HAlign}
\Configure{halignTB}
   {\ifmathml \HCode{<\:MT table }\fi \halignTBL}
   {\ifmathml \HCode{>}\fi}
>>>


\<latex tables\><<<
\Configure{halignTD} {}{}
   {<}{\HCode{ align="left"}}
   {-}{\HCode{ align="center"}}
   {>}{\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"}}
   {}
>>>






\<configure docbook-mml latex\><<<
\Configure{halignTD} {}{}
   {<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
        \HCode{ align="left" }\fi}
   {-}{\ifmathml \HCode{ \a:mathml columnalign="center"}\else
        \HCode{ align="center" }\fi}
   {>}{\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}
   {}
>>>


















\<latex tables\><<<
\Configure{hline}{}
\Configure{//[]}{}
>>>




\<obey lines\><<<
\Configure{verb}{}{}
>>>

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

\<latex etc\><<<
\ConfigureEnv{center}
   {} {\ShowPar} {}{}
\Configure{centerline}
   {\ifvmode \IgnorePar\fi\HCode{<!--centerline-->}}
   {\HCode{<!--/centerline-->}}
\Configure{leftline} 
   {\ifvmode \IgnorePar\fi\HCode{<!--leftline-->}}
   {\HCode{<!--/leftline-->}}
\Configure{rightline} 
   {\ifvmode \IgnorePar\fi\HCode{<!--rightline-->}}
   {\HCode{<!--/rightline-->}}
>>>


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

\<configure docbook multirow\><<<
\Configure{multirow}
    {\HCode{<blockquote
        role="multirow"><para role="\the\@tempcnta">}}
    {\HCode{</para></blockquote>}}
>>>



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

\<configure docbook dcolumn\><<<
\Configure{dcolumn}
  {\HCode{<blockquote role="align-char"><para role="\Dpoint">}}
  {\HCode{</para></blockquote>}}
>>>


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

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

\<config lists of figures and tables\><<<
\ConfigureToc{lof}
   {\HCode{\Hnewline<tocentry role="lofToc">}}
   {\ }{} {\HCode{</tocentry>}}
\ConfigureToc{lot}
   {\HCode{\Hnewline<tocentry role="lotToc">}}
   {\ }{} {\HCode{</tocentry>}}
>>>



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

\<configure docbook-math tex4ht\><<<
\Configure{$$}{\EndP\PicDisplay}{\EndPicDisplay}      
   {\everymath{}\everydisplay{}}  
\Configure{$}{\PicMath}{\EndPicMath}{}
\Configure{PicMath}
  {\Tg<informalequation>}{\Tg</informalequation>}{}{}
\let\MathPar\empty
\Configure{PicDisplay}
  {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\EndP\ShowPar\endgraf
   \HCode{<informalequation role="\MathPar math-display">}}
  {\HCode{</informalequation>}\ShowPar} 
  {}  {\space role="\MathPar math-display" }

>>>






\<try inline par\><<<
\ShowPar\par{\HCondtrue\noindent}%
>>>



\<configure docbook tex4ht\><<<
\Configure{Picture+}{}{}
\Configure{Picture*}{}{}
\Configure{IMG}
  {\ht:special{t4ht=<graphic\Hnewline fileref="}}
  {\ht:special{t4ht="}}
  {}
  {}
  {\ht:special{t4ht=></graphic>}}
\Configure{PictureAlt*+}
  {\ht:special{t4ht@[}}  {\ht:special{t4ht@]}} 
\Configure{pic-halign}{}
>>>


\<configure docbook graphics\><<<
\Configure{graphics}
  {}
  {\HCode{<graphic width="\the\Gin@req@width"  fileref="\Gin@base\Gin@ext"
      ></graphic>}%
   }
>>>


\<configure docbook-math latex\><<<
\Configure{[]} 
   {\PicDisplay $$\everymath{}\everydisplay{}}
   {$$\EndPicDisplay}
\Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
>>>




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

\<disp math\><<<
display="block">>>

\<recall dvimath par\><<<
\sv:ignore
>>>

\<sv dvimath par\><<<
\edef\sv:ignore{\if:nopar  
    \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
>>>







\<configure docbook fontmath\><<<
\Configure{mathit}{\HCode{<emphasis role="it">}}
                  {\HCode{</emphasis>}}
\Configure{mathbf}{\HCode{<emphasis role="bf">}}
                  {\HCode{</emphasis>}}
\Configure{mathtt}{\HCode{<emphasis role="tt">}}
                  {\HCode{</emphasis>}}
\Configure{mathsf}{\HCode{<emphasis role="sf">}}
                  {\HCode{</emphasis>}}
\Configure{mathrm}{\HCode{<emphasis role="rm">}}
                  {\HCode{</emphasis>}}
>>>

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



\<par within font\><<<
\leavevmode\SaveEndP\bgroup 
\Configure{HtmlPar}
   {\HCode{<!--br role="newline" /-->}}
   {\HCode{<!--br role="newline" /-->}}
   {}{}%
>>>                    

\<end par within font\><<<
\egroup \RecallEndP
>>>

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


\subsection{Center}

\<latex environments\><<<
\ConfigureEnv{center}
  {\EndP}{\par \ShowPar} {}{}
\ConfigureList{center}
   {\IgnorePar\EndP\HCode{<section role="center"><title/>}\par\ShowPar}
   {\IgnorePar\EndP\HCode{</section>}\par\ShowPar}
   {} {\par\ShowPar}
>>>

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


\<latex environments\><<<
\ConfigureEnv{flushleft}
  {\EndP}{\par \ShowPar} {}{}
\ConfigureEnv{flushright}
  {\EndP}{\par \ShowPar} {}{}
\ConfigureList{flushleft}
  {\IgnorePar\EndP\HCode{<blockquote role="flushleft">}\par\ShowPar}
  {\IgnorePar\EndP\HCode{</blockquote>}\par\ShowPar}
  {} {\par\ShowPar}
\ConfigureList{flushright}
  {\IgnorePar\EndP\HCode{<blockquote role="flushright">}\par\ShowPar}
  {\IgnorePar\EndP\HCode{</blockquote>}\par\ShowPar}
  {} {\par\ShowPar}
>>>

\subsection{Mini Page}

\<latex environments\><<<
\ConfigureEnv{section}
   {\IgnorePar\EndP\HCode{<section role="minipage">}}
   {\IgnorePar\EndP\HCode{</section>}\ShowPar}
   {}{}
>>>

\subsection{Tabbing}

\<latex environments\><<<

>>>

\subsection{Tabular and Array}

\<latex environments\><<<

>>>

\subsection{Verbatim}

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

    array
    tabbing
    tabular
 

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

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

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


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


\<tex4ht paragraphs\><<<
\Configure{HtmlPar}
   {\EndP\HCode{<!--l. \the\inputlineno--><para>}}
   {\EndP\HCode{<!--l. \the\inputlineno--><para>}}    
   {\HCode{</para>}}     {\HCode{</para>}}    
>>>


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


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




\<configure docbook tex4ht\><<<
\Configure{TocLink}{\Link{#2}{#3}\EndLink#4}   
>>>




\<article tocs\><<<
\Configure{tableofcontents}
  {\ifvmode \IgnorePar\fi \EndP\HCode{<toc><tocpart>}}
  {\ifvmode \IgnorePar\fi \EndP\HCode{</tocpart></toc><para></para>}}
  {}{}{}
>>>


\<report,book tocs\><<<
|<article tocs|>
\ConfigureToc{appendix}
   {\HCode{\Hnewline<tocentry role="appendixToc">}}
   {\ }{} {\HCode{</tocentry>}}
\ConfigureToc{chapter}
   {\HCode{\Hnewline<tocentry role="chapterToc">}}
   {\ }{} {\HCode{</tocentry>}}
\ConfigureToc{likechapter}
   {} {\HCode{\Hnewline<tocentry role="likechapterToc">}}
   {} {\HCode{</tocentry>}}
>>>

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


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

\<scrbook tocs\><<<
\ConfigureToc{addchap}
   {}
   {\HCode{\Hnewline<tocentry role="addchapToc">}}
   {} 
   {\HCode{</tocentry>}}
>>>

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



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



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

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


\<configure docbook latex\><<< 
\Configure{idxmake}{\Beforeentry}
\def\:temp{\HCode{<indexterm role="printindex" />}}
\HLet\printindex\:temp
\let\db:index=\index
\def\index{\bgroup
    \HRestore\printindex
    \def\gobble##1{}%
    \gHAdvance\index:N by 1   
    \leavevmode \let\par=\empty
    \printindex  
   \egroup \db:index}
\def\comNum#1{\tmp:cnt=}
\def\brange#1{\HCode{<remark role="start">}\Link{to-#1}{from-#1}\EndLink
   \HCode{</remark>}}
\def\erange#1{\HCode{<remark role="to">}\Link{from-#1}{to-#1}\EndLink
   \HCode{</remark>}}
\HAssign\index:N = 0
>>>



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


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


\<article, report, book\><<<
\Configure{theindex}
   {\let\end:theidx=\empty \HCode{<indexterm>}}
   {\HCode{</indexterm>}}
   {|<primary index|>%
    \def\end:cur{|<end primary index|>\let\end:cur=\empty}%
    \DB:index
   }
    {\end:cur \let\chain:subitem=\empty} 
   {\chain:subitem |<secondary index|>%
    \def\end:cur{|<end secondary index|>\let\end:cur=\empty}%
   }
    {\end:cur \def\chain:subitem{%
     |<new index entry|>|<primary index|>|<end primary index|>}%
     \let\chain:subsubitem=\empty
   }
   {\chain:subsubitem|<tertiary index|>%
    \def\end:cur{|<end tertiary index|>\let\end:cur=\empty}%
   }
   {\end:cur \def\chain:subsubitem{%
       |<new index entry|>|<primary index|>|<end primary index|>%
       |<secondary index|>|<end secondary index|>}%
   }
   {}
>>>



\<article, report, book\><<<
\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
>>>


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



\<primary index\><<<
\HCode{<primary>}%
>>>

\<end primary index\><<<
\HCode{</primary>}\hfil\break
>>>

\<secondary index\><<<
\HCode{<secondary>}%
>>>

\<end secondary index\><<<
\HCode{</secondary>}\hfil\break
>>>

\<tertiary index\><<<
\HCode{<tertiary>}%
>>>

\<end tertiary index\><<<
\HCode{</tertiary>}\hfil\break
>>>





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

\<configure docbook splitidx\><<<
\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}
>>>

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

\<configure docbook splitidx\><<<
\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}
>>>




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


\<configure docbook color\><<<
\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)}%
}
|<HColor util|>
>>>


\<HColor util\><<<
\def\int:of#1#2#3{%
   \tmp:dim=#3pt \tmp:dim=#2\tmp:dim
   \edef\:temp{\tmp:cnt\the\tmp:dim//}%
   \def#1##1//{}\afterassignment#1\:temp
   \edef#1{\the\tmp:cnt}%
}
>>>


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

cmyk -> rgb
Red   = 1-minimum(1,Cyan   *(1-Black)+Black)
Green = 1-minimum(1,Magenta*(1-Black)+Black)
Blue  = 1-minimum(1,Yellow *(1-Black)+Black)
\end{verbatim}



\<HColor util\><<<
\def\:cmyk#1#2{%
   \tmp:cnt=255 \advance\tmp:cnt by -\:Black
   \multiply\tmp:cnt by#2 \advance\tmp:cnt by \:Black 
   \advance\tmp:cnt by -255 \tmp:cnt=-\tmp:cnt
   \ifnum \tmp:cnt<0 \tmp:cnt=0 \fi
   \edef#1{\the\tmp:cnt}%
}
>>>






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


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


\<configure docbook latex\><<<
|<latex ltoutenc|>
\def\:temp{LaTeX}
\HLet\LaTeX\:temp
>>>

\<configure docbook amsmath\><<<
\def\:temp{{\protect\AmSfont AmS}}
\HLet\AmS\:temp
>>>


\<latex, plain\><<<
|<unicode space|>
>>>

\<unicode space\><<<
\def\:nbsp{\HCode{\string&}\HChar{-35}\HCode{x00A0;}}%
>>>


\<configure docbook latex\><<<
\Configure{footnotetext}
    {\HCode{<footnote><para>}\bgroup\let\@makefnmark\empty}
    {\egroup}%
    {\HCode{</para></footnote>}}
\Configure{footnotemark}
   {\setbox\tmp:bx=\hbox\bgroup}
   {\egroup}
\ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi 
>>>




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


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


\<configure docbook amsart\><<< 
|<article prologue|>
|<sectioning utilities|>
|<ams maketitle|>
|<ams article,report maketitle|>
|<ams art,proc,book|>
|<ams art,proc|>
>>>

\<configure docbook amsbook\><<< 
|<article prologue|>
|<sectioning utilities|>
|<ams maketitle|>
|<ams article,report maketitle|>
|<ams art,proc,book|>
|<ams book|>
>>>

\<configure docbook amsproc\><<< 
|<article prologue|>
|<sectioning utilities|>
|<ams maketitle|>
|<ams article,report maketitle|>
|<ams art,proc,book|>
|<ams art,proc|>
>>>

\<configure docbook-mml amsart\><<< 
|<ams dtd|>
>>>

\<ams dtd\><<<
\:CheckOption{css} \if:Option
   \:CheckOption{dtd} \if:Option
      \Configure{VERSION}
         {\HCode{<?xml version="1.0"?>\Hnewline}}
      \Configure{DOCTYPE}
        {\HCode{<!DOCTYPE article SYSTEM "docbookx.dtd" > }}
      \Configure{XML-STYLESHEET}
        {\HCode{<?xml-stylesheet type="text/css" href="\jobname.css"?>
            \Hnewline}}
   \else
      \Configure{VERSION}
         {\HCode{<?xml version="1.0"?>\Hnewline}}
      \Configure{DOCTYPE}
      {\HCode{<!DOCTYPE article PUBLIC
                    "-//OASIS//DTD DocBook XML V4.2CR1//|<dtd lang|>"\Hnewline
           "http://www.oasis-open.org/docbook/xml/4.2CR1/docbookx.dtd"
         >
      }}
      \Configure{XML-STYLESHEET}
        {\HCode{<?xml-stylesheet type="text/css" href="\jobname.css"?>
            \Hnewline}}
   \fi
\else
   \Configure{VERSION}
      {\HCode{<?xml version="1.0"?>\Hnewline}}
   \Configure{DOCTYPE}
     {\HCode{<!DOCTYPE article [|<docbook-mml dtd tex4ht|>] >\Hnewline }}
\fi
>>>



\<configure docbook Preamble\><<<  
\Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
\:CheckOption{no-DOCTYPE} \if:Option
   \Configure{PROLOG}{VERSION,*XML-STYLESHEET}
\fi
>>>



\<configure docbook-mml amsbook\><<< 
|<ams dtd|>
>>>

\<configure docbook-mml amsproc\><<< 
|<ams dtd|>
>>>



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

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

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


\<cascade style sheets\><<<
\ScriptCommand{\CssFile}{%
  \immediate\write-1{--- file \aa:CssFile\space ---}%
  \def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}%
  \def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}%
  \def\:Context##1{\ht:special{t4ht>\jobname.tmp}##1\ht:special
     {t4ht>\aa:CssFile}}%
  \ht:special{t4ht>\jobname.tmp}\ht:special{t4ht>\aa:CssFile}\bb:CssFile
  \hfil\break\NoFonts}{\EndNoFonts
  \ht:special{t4ht<\aa:CssFile}\ht:special{t4ht<\jobname.tmp}}
\let\Css:File|=\CssFile
\def\CssFile{\futurelet\:temp\Css:Fl}
\def\Css:Fl{\ifx [\:temp  \expandafter\Css:fl
   \else \expand:after{\Css:File \space}\fi}
\def\Css:fl[#1]{\Css:File\space \css:files #1,,|<par del|>}
\def\css:files#1,#2|<par del|>{\def\:temp{#1}\ifx \:temp\empty
   \else \def\:temp{\in:css#1.|<par del|>\css:files#2,,|<par del|>}\fi
   \:temp }
\def\in:css#1.#2|<par del|>{\def\:temp{#2}\ifx \:temp\empty \input #1.css
   \else \inc:ss#1.#2|<par del|>\fi}
\def\inc:ss#1.|<par del|>{\input #1 }
\NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}}
>>>



\<cascade style sheets\><<<
\def\Css#1{{\def\:temp{\Configure{Needs}}%
   \expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}}
>>>


\<configure docbook tex4ht\><<< 
\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
>>>

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


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

\<configure docbook amsthm\><<<
|<shared ams thm/cls|>
>>>

\<shared ams thm/cls\><<<
\Configure{proof}
   {\IgnorePar\EndP\HCode{<blockquote role="proof"><title>}\IgnorePar}
   {\ifvmode \IgnorePar\fi\EndP\HCode{</title>}\ShowPar\par}
   {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
>>>




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

\<ams maketitle\><<<
\Configure{maketitle}
   {\HCode{<articleinfo>}}
   {\HCode{</articleinfo>}}
   {\HCode{<title>}}{\HCode{</title>}}
\Configure{thanks author date and} {}{}
   {\HCode{<author><othername>}}
   {\HCode{</othername></author>}}
   {\HCode{<date>}}
   {\HCode{</date>}}
   {}{}
>>>


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

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

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

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



\<ams book\><<<
\Configure{translators}
  {\par\IgnorePar\EndP  \HCode{<note role="translators">}\par\ShowPar}
  {\ifvmode \IgnorePar \fi\EndP \HCode{</note>}}
  {\HCode{<note role="translator"><para>}}
  {\HCode{</para></note>}}
>>>

\<ams art,proc\><<<
\Configure{translators}
  {\par\IgnorePar\EndP  \HCode{<para role="translators">}\par\ShowPar}
  {\ifvmode \IgnorePar \fi\EndP \HCode{</para>}}
  {\HCode{<note role="translator"><para>}}
  {\HCode{</para></note>}}
>>>

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





\<configure docbook amsart\><<<
|<amsart + article sec|>
>>>

\<configure docbook amsbook\><<<
|<amsart + article sec|>
>>>


\<configure docbook amsproc\><<<
|<amsart + article sec|>
>>>




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


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

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



\<amsart + article sec\><<<
\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
>>>

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



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





\<configure docbook-mml amsmath\><<<
\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}{}{}
>>>


% \ConfigureEnv{quotation}
%    {}{\ifmmode\else \par\ShowPar\fi}{}{}
%





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


\<latex, plain\><<<
\Configure{centerline}
   {\IgnorePar\EndP\HCode{<blockquote 
        role="centerline"><title></title>}\ShowPar\par}
   {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
\Configure{leftline}
   {\IgnorePar\EndP\HCode{<blockquote 
        role="leftline"><title></title>}\ShowPar\par}
   {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
\Configure{rightline}
   {\ifvmode \IgnorePar \fi \EndP \HCode{<blockquote 
        role="rightline"><title></title>}\ShowPar\par}
   {\ifvmode \IgnorePar \fi \EndP \HCode{</blockquote>}\ShowPar\par}
>>>


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




\<configure docbook texinfo\><<<
|<sectioning utilities|>
\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,,,,}
>>>




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


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





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








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

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




\<configure docbook texinfo\><<<
|<unicode space|>
>>>




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


\<configure docbook texinfo\><<<
\Configure{contents}
  {\b:titlepage   \let\b:titlepage=\empty
   \ifvmode \IgnorePar \fi \EndP \HCode{<tocchap>}}
  {\ifvmode \IgnorePar \fi \EndP \HCode{</tocchap>}}
>>>




\<configure docbook texinfo\><<<
\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}
>>>









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


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

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

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

\<configure docbook fancyvrb\><<<
\Configure{fancyvrb}
   {\ifvmode \IgnorePar \fi \EndP
    \HCode{<literallayout role="fancyvrb" >}}
   {\EndP\HCode{</literallayout>}}
   {\HCode{<literal>}} {\HCode{</literal>}}
   {\HCode{<literal>}} {\HCode{</literal>}}
>>>


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

\<fancyvrb.sty config 4.0t\><<<
\Configure{fancyvrbframe}
   {\Css{div\#fancyvrb\fancyvrbNo { border-top: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo { border-left: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo { border-bottom: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo { border-right: solid \HSize; }}}
   {\Css{div\#fancyvrb\fancyvrbNo {border-width:\HSize;}}}
   {\Css{div\#fancyvrb\fancyvrbNo {padding:\HSize;}}}
>>>

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




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


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


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

\<configure docbook pgf\><<<
\ConfigureEnv{pgfpicture}
   {\hbox\bgroup\Picture+[ ]{}}
   {\EndPicture\egroup} 
   {}{}
>>>



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




\<configure docbook beamer\><<<
|<article prologue|>
|<beamer title page|>
|<beamer toc|>
|<beamer sections|>
|<beamer slides|>
|<beamer slide titles|>
|<beamer environments|>
|<beamer bib|>
|<beamer other|>
>>>

\<beamer titlepage par\><<<
\Configure{HtmlPar}
   {\EndP\HCode{<!--l. \the\inputlineno--><note><para>}}
   {\EndP\HCode{<!--l. \the\inputlineno--><note><para>}}
   {\HCode{</para></note>}}     {\HCode{</para></note>}}
>>>

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



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


\<beamer slides\><<<
\ConfigureEnv{slide}
   {\ifvmode \IgnorePar\fi \EndP  
    \HCode{<section role="slide"><title></title>}\par
   }
   {\ifvmode \IgnorePar\fi \EndP \HCode{</section>}}
   {} {}
>>>



\<beamer sections\><<<
\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{<subtitle>}#1%
   \ifvmode \IgnorePar\fi \EndP \HCode{</subtitle>}%
   \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{<!--l.
       \the\inputlineno--><section\Hnewline role="section">}} 
   {\IgnorePar\EndP\HCode{</section><!--end section-->}}
   {\HCode{<title>}\TitleMark}
   {\HCode{</title>}\par\ShowPar}
\Configure{subsection}
   {\IgnorePar\EndP \HCode{<!--l.
       \the\inputlineno--><section\Hnewline role="subsection">}} 
   {\IgnorePar\EndP\HCode{</section><!--end subsection-->}}
   {\HCode{<title>}\TitleMark}
   {\HCode{</title>}\par\ShowPar}
\Configure{endsubsection}{section}
>>>




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

\<beamer environments\><<<
\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}} {} {} {}
>>>



\<beamer slide titles\><<<
\Configure{frametitle}
   {\ifvmode \IgnorePar\fi \EndP 
    \HCode{<para role="frametitle">}\bgroup
    \Configure{HtmlPar}{ }{ }{}{}%
   }
   {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</para>}}
>>>


\<beamer environments\><<<
\ConfigureEnv{columns}
  {\ifvmode \IgnorePar\fi \EndP 
   \HCode{<blockquote role="columns">}}
  {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}\par}
  {}{}
\ConfigureEnv{column}
  {\ifvmode \IgnorePar\fi \EndP 
   \HCode{<blockquote role="column">}}
  {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}}
  {}{}
>>>


\<beamer other\><<<
\Configure{alert}
   {\HCode{<note role="alert"><para>}\bgroup
    \Configure{HtmlPar}{\HCode{<!--br/-->}}{\HCode{<!--br/-->}}{}{}%
   }
   {\egroup\HCode{</para></note>}}
>>>




\<beamer otherNO\><<<

\ConfigureEnv{overlayarea}
  {\bgroup
    \ConfigureEnv{minipage}
       {\bgroup \IgnorePar\EndP
          \ConfigureEnv{minipage}
             {\bgroup \IgnorePar\EndP
              \HCode{<table class="minipage"><tr><td>}}
             {\EndP\HCode{</td></tr></table>}\egroup }
             {}{}%
       }
       {\EndP\egroup }
       {}{}
  }
  {\egroup} {}{}
>>>


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



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



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


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



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

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



\<configure docbook llncs\><<<
\Configure{email}
   {\HCode{<email>}}
   {\HCode{</email>}}
\Configure{institute}
   {\HCode{<note><para role="institute">}}
   {\HCode{</para></note>}}
>>>

\<configure docbook llncs\><<<
\ConfigureEnv{abstract}
   {\ifvmode \IgnorePar\fi \EndP}
   {\ifvmode \IgnorePar\fi \EndP}
   {}{}
\ConfigureList{abstract}
   {\ifvmode \IgnorePar\fi \EndP
       \HCode{<abstract>}\IgnorePar}
   {\ifvmode \IgnorePar\fi \EndP
       \HCode{</abstract>}\ShowPar}
   {\IgnorePar\par\HCode{<title>}}
   {\HCode{</title>}\ShowPar\par}
>>>


\endinput
