2.2 latex

<..configure docbook latex..>+
 <.latex ltsec.>
 <.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}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink
      #3\HCode{</para></note>}
    \else
      \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\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}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink
       \ifmathml\else #3\HCode{</para></note>}\par\fi
    \else
       \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink
    \fi
 }
-_-_-

<..latex etc..>+
 \Configure{newline}{\HCode{<!--br\Hnewline/-->}}
-_-_-

<..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\Hnewline class="newline">}%
    \else \HCode{<!--br\Hnewline 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}
-_-_-

<section> and <blockquote> allow recursion, but the first can’t be followed by <para>.

<..configure docbook plain..>+
 <.plain prologue.>
-_-_-