5.9 latex.ltx

  5.9.1 obeylines
  5.9.2 Logos
  5.9.3 Miscellaneous Environments
  5.9.4 Math Setup
  5.9.5 Tabbing, Tabular and Array Environments
  5.9.6 to be placed

<..configure html32 latex..>+
 <.0,32,4 plain,latex.>
 <.32,4 plain,latex.>
 <.32 plain,latex.>
 <.32 picmath th4,latex.>
 <.0,32,4 latex.>
 <.32,4 latex.>
 <.32 latex.>
 <.latex footnotes.>
 % \:CheckOption{javahelp} \if:Option
 %   \input javahelp.4ht
 % \else
 %   \Log:Note{for a JavaHelp output format,
 %         use the command line option ‘javahelp’}
 % \fi
-_-_-

5.9.1 obeylines

<..32 plain,latex..>+
 \:CheckOption{/obeylines} \if:Option
    <.delayed obeylines confg.>
 \else  <.obeylines confg.> \fi
-_-_-

<..obeylines confg..>
 \Configure{obeylines}
    {} {} {\hbox{\HCode{<br\xml:empty>}}}
-_-_-

Typically, \obeylines appears in a separate line before the content. The following option is introduced to avoid an extra leading empty line.

<..delayed obeylines confg..>
 \Configure{obeylines}
    {\def\Line:Break{\def\Line:Break{\hbox{\HCode{<br\xml:empty>}}}}} {}
    {\Line:Break}
-_-_-

5.9.2 Logos

If we redefine the following we get LaTeX in hypertext, and protection within titles. Without this definition we get LATEX.

<..32 latex..>+
 <./TeX for 3.2.>
 \def\:temp{LaTeX}
 \HLet\LaTeX=\:temp
-_-_-

<../TeX for 3.2..>
 \def\:temp{TeX}
 \HLet\TeX=\:temp
-_-_-

5.9.3 Miscellaneous Environments

<..32 latex..>+
 \Configure{centercr}{\ht:special{t4ht=<br\xml:empty>}}
    {\everypar{\everypar{\HCode{<p>}}}}
-_-_-

<..32 latex..>+
 \def\start:env#1{\IgnorePar\HCode{<\tbl:XV{#1}><tr><td\Hnewline>}}
 \def\tbl:XV#1{table \Hnewline border="0" width="100\%"}
 \def\end:env{\IgnorePar \end:TTT\ShowPar}
-_-_-

cellpadding=”0” cellspacing=”15”

5.9.4 Math Setup

<..32 latex..>+
 \:CheckOption{pic-eqnarray}  \if:Option
 \else <.TABLE eqnarray Config 3.2.>\fi
-_-_-

<..TABLE eqnarray Config 3.2..>
 \Configure{eqnarray}{\HCode{<table\Hnewline>}}{\HCode{</table>}}
     {\HCode{<tr valign="middle">}}{\HCode{</tr>}}
     {\HCode{\ifnum \HCol=4 <td\Hnewline width="10"></td>\fi
        <td\Hnewline <.no wrap.>  align="\ifcase\HCol \or right\or center\or
                left\else right\fi" \Hnewline>}}{\HCode{</td>}}
 \ConfigureEnv{eqnarray}{\HCode{<div align="center">}}
                        {\HCode{</div>}}{}{}
 \ConfigureEnv{eqnarray*}{\HCode{<div align="center">}}
                         {\HCode{</div>}}{}{}
-_-_-

5.9.5 Tabbing, Tabular and Array Environments

<..32 latex..>+
 \Configure{VBorder}{\let\VBorder=\empty}{\def\VBorder{border="1"}}{}{}
 <.html latex array/tabular Config 3.2.>
-_-_-

<..PICT dot tabbing..>
 \:CheckOption{pic-tabbing’} \if:Option
   \edef\:temp{\LikeRef{<.tabbing tag.>.}}%
   \def\:tempa{.}\ifx \:temp\:tempa
       \ConfigureEnv{tabbing}{\Picture*{}}{\EndPicture}{}{}
   \fi
 \fi
-_-_-

<..32 latex..>+
 \:CheckOption{pic-tabbing}  \if:Option
     \ConfigureEnv{tabbing}{\Picture*{}}{\EndPicture}{}{}
 \else
     <.TABLE tabbing Config 3.2.>
     <.PICT dot tabbing.>
 \fi
-_-_-

<..TABLE tabbing Config 3.2..>
 \Configure{tabbing}[1.5]{\IgnorePar\leavevmode \ht:special{t4ht=<table
      \Hnewline\:zbsp{tabbing}><tr \Hnewline valign="bottom">}}
    {\ht:special{t4ht=</tr></table>}}
    {\gt:tab \ht:special{t4ht=<td \:tempa\Hnewline>}}
    {\ht:special{t4ht=</td>}}
-_-_-

5.9.6 to be placed

<..32 picmath th4,latex..>
 \Configure{[]}
   {\PicDisplay$$\everymath{}\everydisplay{}}
   {$$\EndPicDisplay}
 \Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
-_-_-

<..32 latex..>+
 \ifx\bf\:UnDef
    \def\bf{\normalfont\bfseries}
 \fi
 \ConfigureList{trivlist}%
    {\HCode{<dl>}} {\HCode{</dl>}\ShowPar}
    {\HCode{<dt>}\bgroup \bf}{\egroup\HCode{<dd\Hnewline>}}
 \ConfigureList{list}%
    {\HCode{<dl>}} {\HCode{</dl>}\ShowPar}
    {\HCode{<dt>}\bgroup \bf}{\egroup\HCode{<dd\Hnewline>}}
-_-_-

<..32 latex..>+
 \ConfigureEnv{enumerate}
    {}{<.try env inline par.>}{}{}
 \ConfigureList{enumerate}%
       {<.enumerate I.>}
       {<.enumerate II.>}
       {<.enumerate III.>}
       {<.enumerate IV-.>}
-_-_-

<..enumerate I..>
 \EndP\HCode{<ol
       class="enumerate\expandafter\the\csname @enumdepth\endcsname"
      >}<.save end:itm.>\global\let\end:itm=\empty
-_-_-

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

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

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

<..32 latex..>+
 \ConfigureEnv{itemize}
    {\ifvmode \IgnorePar\fi \EndP}{<.try env inline par.>}
    {}{}
 \ConfigureList{itemize}%
    {\EndP\HCode{<ul class="itemize\expandafter\the
           \csname @itemdepth\endcsname">}%
        <.save end:itm.>\global\let\end:itm=\empty}
    {<.recall end:itm.>\ifvmode \IgnorePar\fi
     \EndP\HCode{</li></ul>}\ShowPar}
    {\end:itm \global\def\end:itm{\EndP\Tg</li>}\DeleteMark}
    {\HCode{<li class="itemize">}}
-_-_-

<..save end:itm..>
 \PushMacro\end:itm
-_-_-

<..recall end:itm..>
 \PopMacro\end:itm \global\let\end:itm \end:itm
-_-_-

<..try env inline par..>
 \ShowPar
-_-_-

<..32 latex..>+
 \NewConfigure{enumerate}[1]{\c:enu #1<.par del.>}
 \def\c:enu#1#2#3#4#5<.par del.>{%
    \def\OLStyle{\ifcase \@enumdepth \or
       type="#1"\or type="#2"\or type="#3"\or type="#4"\else\fi #5}}
-_-_-

<..32 latex..>+
 \Configure{enumerate}{1aiA}
-_-_-

<..32 latex..>+
 \Configure{tableofcontents}
    {\IgnorePar\EndP\HCode{<div class="tableofcontents">}\IgnorePar}
    {}
    {\IgnorePar\EndP\HCode{</div>}\ShowPar}
    {\HCode{<br\xml:empty>}}   {}
-_-_-

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

<..32 latex..>+
 \Configure{newtheorem}
    {\HCode{<div class="newtheorem"><b class="head">}}
    {\HCode{</b>}}
    {\HCode{</div>}}
-_-_-

<..32 latex..>+
 \Configure{verbatim}{\:nbsp}{\a:sp}
 \Configure{verb}{\HCode{<code>}}{\HCode{</code>}}
-_-_-

<..32 latex..>+
 \def\env:verb#1{\ifvmode \IgnorePar \fi\EndP
    \HCode{<\tbl:XV{#1}><tr><td\Hnewline
    >}\HCode{<pre>}\EndNoFonts}
-_-_-

<..32 latex..>+
 \Configure{marginpar}
    {\HCode{<table \Hnewline align="right"><tr><td \Hnewline><u><small>}}
    {\HCode{</small></u></td></tr></table>}}
-_-_-

<..32 latex..>+
 \Configure{equation}
   {\:xhtml{\IgnorePar\EndP}%
      \HCode{<\tbl:XV{equation}><tr><td><div align="center">}\IgnorePar
    \Configure{$$}{\PicDisplay}{\EndPicDisplay}
      {\everymath{}\everydisplay{}}
   }
   {\IgnorePar\HCode{</div></td><td width="5\%">}}
   {\end:TTT\IgnorePar\par}
-_-_-

<..32 latex..>+
 \ConfigureEnv{picture}
     {\ifvmode \IgnorePar\leavevmode\HCode{<p align="center">}\fi}
     {}{}{}
-_-_-

<..32 latex..>+
 \Configure{float}{}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<hr\xml:empty><div align="center"\Hnewline><table><tr><td\Hnewline>}}
    {\ifvmode \IgnorePar\fi \EndP
      \HCode{</td></tr></table></div><hr\xml:empty>}\csname par\endcsname}
-_-_-

<..32 latex..>+
 \Configure{newline}{\HCode{<br\xml:empty>}}
-_-_-