<.0,32,4 plain,latex.>
<.32,4 plain,latex.>
<.config plain,latex.>
<.32,4 latex.>
<.4 latex.>
<.0,32,4 latex.>
<.latex ltsec.>
<.latex lttab.>
<.latex ltbibl.>
<.latex ltoutenc.>
<.latex ltfloat (footnotes).>
% \:CheckOption{javahelp} \if:Option
% \input javahelp.4ht
% \else
% \Log:Note{for a JavaHelp output format,
% use the command line option ‘javahelp’}
% \fi -_-_-
\Configure{extracolsep}
{~\tmp:dim=#1\relax\ifdim \tmp:dim>1em ~\fi}
-_-_-
\Configure{tmspace}
{\ifdim \textspace>0.2em
\HCode{<span style="margin-left:\textspace" class="tmspace">}%
\else \HCode{<span style="margin-left:0.3em" class="thinspace">}\fi
\HCode{</span>}%
}
-_-_-
\Configure{obeylines}
{\ifvmode \:xhtml{\IgnorePar\EndP}\IgnoreIndent
\HCode{<div class="obeylines-v">}%
\gdef\ob:ln{\ht:special{t4ht=</div>}}%
\else
\SaveEndP \HCode{<span class="obeylines-h">}%
\gdef\ob:ln{\ht:special{t4ht=</span>}\RecallEndP}%
\fi
}
{\EndP\ob:ln\ShowPar}
{\hbox{\HCode{<br />}}}
\Css{.obeylines-h,.obeylines-v {white-space: nowrap; }}
\Css{div.obeylines-v p { margin-top:0; margin-bottom:0; }}
-_-_-
\Configure{hspace}{}{}{\:nbsp}
-_-_-
\def\TeX{\HCode{<span class="TEX">}T\HCode{<span\Hnewline
class="E">}E\HCode{</span>}X\HCode{</span>}}
\Css{span.TEX {letter-spacing: -0.125em; }}
\Css{span.TEX span.E{ position:relative;top:0.5ex;left:-0.0417em;}}
\Css{a span.TEX span.E {text-decoration: none; }}
-_-_-
\def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@}
\ifx \ttfamily\:UnDef \else \Configure{tt}{\ttfamily} \fi
-_-_-
\Configure{ref}
{\Link}
{\ifx \RefArg\:UnDef\else
\Tg<!--tex4ht:ref: \RefArg\space-->\fi\EndLink}
{}
-_-_-
The comments lets us relate the automatically created label with that
offered by the user. The space is needed for cases that the label ends with a
dash.
- LaTeX allows labels almost everywhere.
- Different labels may be associated to a common object in LaTex.
- There are almost no restrictions on the kind of characters allowed within
the labels of LaTeX.
\def\end:TTT{\ifvmode\IgnorePar\fi \EndP\HCode{</td></tr></table>}}
-_-_-
\append:def\center{\par}
\ConfigureEnv{center}
{\ifvmode \IgnorePar\fi \EndP}{<.try env inline par.>}
{\EndP\IgnorePar
\HCode{<div class="\getClass{center}"\Hnewline>}\ShowPar\endgraf
\afterGetClass{center}}
{\IgnorePar\EndP\HCode{</div>}}
\ConfigureEnv{flushleft}
{\ifvmode \IgnorePar\fi \EndP}{<.try env inline par.>}
{\EndP\IgnorePar
\HCode{<div class="flushleft"\Hnewline>}\ShowPar\endgraf}
{\IgnorePar\EndP\HCode{</div>}}
\ConfigureEnv{flushright}
{\ifvmode \IgnorePar\fi \EndP}{<.try env inline par.>}
{\EndP\IgnorePar
\HCode{<div class="flushright"\Hnewline>}\ShowPar\endgraf}
{\IgnorePar\EndP\HCode{</div>}}
\Css{div.center,
div.center div.center {text-align: center;
margin-left:1em; margin-right:1em;}}
\NewConfigure{centerClass}{2}
\Configure{centerClass}{center}{}
\Css{div.center div {text-align: left;}}
\Css{div.flushright,
div.flushright div.flushright {text-align: right;}}
\Css{div.flushright div {text-align: left;}}
\Css{div.flushleft {text-align: left;}} -_-_-
\ConfigureEnv{verbatim}{\env:verb{verbatim}}{\endenv:verb}{}{}
\ConfigureEnv{verbatim*}{\env:verb{verbatim}}{\endenv:verb}{}{}
\HAssign\verbatimN 0
\def\env:verb#1{\ifinner\else \vfill\break\fi
\IgnorePar\EndP \HAssign\Verb:N=0
\gHAdvance\verbatimN by 1
\HCode{<div class="#1" id="verbatim-\verbatimN"\a:LRdir>}\EndNoFonts}
\def\endenv:verb{\NoFonts
\EndP \ht:special{t4ht=</div>}<.try inline par.>}
\HAssign\Verb:N=0
\Css{div.verbatim {font-family: monospace;
white-space: nowrap;
text-align:left;
clear:both;
}} -_-_-
\Configure{verbatim}
{\HAdvance\Verb:N by 1 \ifnum \Verb:N>1 \:nbsp \HCode{<br />}\fi}
{\a:sp}
\Configure{verb}
{\HCode{<span class="verb"\a:LRdir>}}
{\HCode{</span>}}
-_-_-
The \:nbsp above is because lynx collapses consecutive <br /> tags.
\Configure{centercr}{\ht:special{t4ht=<br />}}
{\ht:everypar{\ht:everypar{\HtmlPar}}}
-_-_-
\:CheckOption{pic-equation}\if:Option
\Configure{equation}
{\:xhtml{\ifvmode \IgnorePar\fi\EndP}%
\HCode{<table\Hnewline class="equation"><tr><td>}\IgnorePar
\Configure{$$}{\PicDisplay}{\EndPicDisplay}
{\everymath{}\everydisplay{}}
}
{\ifvmode \IgnorePar\fi\HCode{</td><td class="equation-label">}}
{\end:TTT <.try inline par.>} was: \IgnorePar\par
\else
\Configure{equation}
{\ifmmode\else\par \IgnorePar\fi \EndP
\HCode{<table\Hnewline class="equation"><tr><td>}\IgnorePar
}
{\ifvmode \IgnorePar\fi\EndP\HCode{</td><td class="equation-label">}}
{\end:TTT\ifmmode\else <.try inline par.>\fi}
\fi
\Css{table.equation {width:100\%;}}
\Css{.equation td{text-align:center; }}
\Css{td.equation { margin-top:1em; margin-bottom:1em; } }
\Css{td.equation-label { width:5\%; text-align:center; }} -_-_-
\ConfigureEnv{eqnarray}
{\IgnorePar\EndP\Tg<div class="pic-eqnarray">\Picture*{}}
{\EndPicture\Tg</div>}{}{}
\Css{div.pic-eqnarray {text-align:center;}}
\ConfigureEnv{eqnarray*}
{\IgnorePar\EndP\Tg<div class="pic-eqnarray-star">\Picture*{}}
{\EndPicture\Tg</div>}{}{}
\Css{div.pic-eqnarray-star {text-align:center;}}
-_-_-
\Log:Note{for pictorial eqnarray,
use the command line option ‘pic-eqnarray’}
\Configure{eqnarray}{\HCode{<table\Hnewline
class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi ">}}
{\HCode{</table>}}
{\HCode{<tr style="vertical-align:middle;"
class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi">}}
{\HCode{</tr>}}
{\HCode{\ifnum \HCol=4 <td\Hnewline width="10"
class="eqnarray4"></td>\fi
<td\Hnewline style="text-align:\ifcase\HCol \or right\or center\or
left\else right\fi ; white-space:nowrap;"\Hnewline
class="eqnarray\HCol">}}
{\EndP\HCode{</td>}}
\Css{td.eqnarray4 { width:5\%; white-space: normal; }}
\Css{td.eqnarray2 { width:5\%; }}
\Css{table.eqnarray-star, table.eqnarray {width:100\%;}}
-_-_-
\ConfigureEnv{eqnarray}
{\:xhtml{\IgnorePar\EndP}\HCode{<div class="eqnarray">}}
{\:xhtml{\EndP}\HCode{</div>}}{}{}
\ConfigureEnv{eqnarray*}
{\:xhtml{\IgnorePar\EndP}\HCode{<div class="eqnarray">}}
{\:xhtml{\EndP}\HCode{</div>}}{}{}
\Css{div.eqnarray{text-align:center;}}
-_-_-
\:CheckOption{pic-array} \if:Option
\ConfigureEnv{array}
{\IgnorePar\EndP\Tg<div class="pic-array">\Picture*{}$$}
{$$\EndPicture\Tg</div>}{}{}
\Css{div.pic-array {text-align:center;}}
\else
\Log:Note{for pictorial array,
use the command line option ‘pic-array’}
\fi
-_-_-
\append:def\vspc:s{\h:HBorder}%
\def\:tempb{\ifnum \tmp:cnt<\ar:cnt
\advance\tmp:cnt by 1 \append:def\vspc:s{\i:HBorder}%
\expandafter\:tempb
\fi }
\tmp:cnt=0 \:tempb
\append:def\vspc:s{\j:HBorder}\global\let\vspc:s=\vspc:s
-_-_-
\append:def\hline:s{\a:HBorder}%
\def\:tempb{\ifnum \tmp:cnt<\ar:cnt
\advance\tmp:cnt by 1 \append:def\hline:s{\b:HBorder}%
\expandafter\:tempb
\fi }%
\tmp:cnt=0 \:tempb
\append:def\hline:s{\c:HBorder}\global\let\hline:s=\hline:s
-_-_-
\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
-_-_-
\Configure{multicolumn}
{\let\col:Css\empty
\Configure{VBorder}
{}
{\edef\col:Css{\col:Css
border-\ifnum \ar:cnt=0 left\else right\fi
:solid black 0.4pt;}%
}{}{}%
}
{\ifx \col:Css\empty \else
\Css{td\#TBL-\TableNo-\HRow-\HCol{\col:Css}}%
\fi
}
{\ifvmode\IgnorePar\fi
\HCode{<div class="multicolumn" }\HColAlign\HCode{>}%
\ifx \col:Css\empty \else
\Css{td\#TBL-\TableNo-\HRow-\HCol{\col:Css}}%
\fi
}
{\ifvmode\IgnorePar\fi \EndP\HCode{</div>}}
-_-_-
\Configure{noalign}{}{}%
-_-_-
\Configure{noalign}%
{\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
{\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
-_-_-
\def\pic:env{%
\def\begin##1{\bgroup
\def\end####1{\o:end:{####1}\EndPicture\egroup}%
\ifx \EndPicture\:UnDef
\Picture+{ class="##1" style="text-align:middle"}%
\else \let\EndPicture=\empty\fi
\o:begin:{##1}}%
}
-_-_-
\AllColMargins Return a binary string in which 1 represents a column, and 0
represents a ‘@’. \ColMargins retrieves the zeros before the 1’s that represent the
current and following 1’s.
\def\ColMargins{%
\ifx \AllColMargins\empty
\:warning{Empty \string\AllColMargins}%
\else
\tmp:cnt=\HCol\relax
\expandafter\nosp:hbr\AllColMargins 1//%
\fi }
\def\nosp:hbr#11#2//{\ifnum \tmp:cnt>1 \advance\tmp:cnt by -1
\nosp:hbr#2//\else\nosp:gt#11#2//\fi}
\def\nosp:gt#11#21#3//{%
\def\:temp{#1}\ifx \:temp\empty 1\else 0\fi
\def\:temp{#2}\ifx \:temp\empty 1\else 0\fi}
\Css{div.td00{ margin-left:0pt; margin-right:0pt; }}
\Css{div.td01{ margin-left:0pt; margin-right:5pt; }}
\Css{div.td10{ margin-left:5pt; margin-right:0pt; }}
\Css{div.td11{ margin-left:5pt; margin-right:5pt; }}
-_-_-
\Configure{halignTB<>}{tabular}{\HCode{id="TBL-\TableNo"
class="tabular"\Hnewline
cellspacing="0" cellpadding="0" \GROUPS\Hnewline
}<>\HAlign}
\Css{table[rules] {border-left:solid black 0.4pt;
border-right:solid black 0.4pt; }}
\:CheckOption{pic-tabular} \if:Option \else
\Configure{tabular}
{\ifvmode \IgnorePar\fi \EndP \halignTB{tabular}\putVBorder }
{<.insert Clr.>\HCode{</table>}}
{\HCode{<tr \Hnewline}\halignTR
\HCode{ id="TBL-\TableNo-\HRow-">}}
{\r:HA}
{\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
\halignTD \HCode{ id="TBL-\TableNo-\HRow-\HCol"
\Hnewline class="td}<.tabular td align.>%
\HCode{">}<.td save EndP.>%
<.start array par box.>\PushStack\Table:Stck\TableNo}
{<.end array par box.>\PopStack\Table:Stck\TableNo \d:HA}
\fi
<.configuring @().>
\Css{td.td00{ padding-left:0pt; padding-right:0pt; }}
\Css{td.td01{ padding-left:0pt; padding-right:5pt; }}
\Css{td.td10{ padding-left:5pt; padding-right:0pt; }}
\Css{td.td11{ padding-left:5pt; padding-right:5pt; }} -_-_-
\expandafter\tmp:toks\expandafter{\Clr}%
\HCode{<!--"\the\tmp:toks"-->}%
-_-_-
The quotes above hide > from IE within the comment. Otherwise, the browser
inappropriately get confused.
On the other hand, the above doesn’t work, for instance on ‘|r||r@{--}l|p{1.25in}|’
due to the extra --.
\Configure{halignTB<>}{array}{\HCode{id="TBL-\TableNo" class="array"\Hnewline
cellpadding="0" cellspacing="0" \GROUPS\Hnewline
}<>\HAlign}
\Css{table[rules] {border-left:solid black 0.4pt;
border-right:solid black 0.4pt; }}
\:CheckOption{pic-array} \if:Option \else
\Configure{array}
{\ifvmode \IgnorePar\fi \EndP\halignTB{array}\putVBorder}
{<.insert Clr.>\HCode{</table>}}
{\R:HA}
{\r:HA}
{\D:HA\HCode{<div class="td}<.tabular td align.>%
\HCode{">}<.start array par box.>\pic:env}
{<.end array par box.>\HCode{</div>}\d:HA}
\Configure{arrayparbox}{\ShowPar}
\fi -_-_-
\par is empty if not in par box.
We force border around the full table whenever a vertical line is requested,
because it makes the tables better looking within the existing capabilities.
Currently, we either have empty \VBorder, or one defined to
\def\VBorder{border="1"}.
\let\VBorder=\empty \let\AllColMargins=\empty
\Configure{VBorder}
{\let\VBorder=\empty \let\AllColMargins=\empty
\global\let\GROUPS=\empty \HAssign\NewGroup = 0
\gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo }
{\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}
\HAssign\NewGroup = 0 \gdef\GROUPS{rules="groups"}}
{\Advance:\NewGroup by 1
\ifnum \NewGroup=1 \xdef\VBorder{\VBorder<colgroup
id="TBL-\TableNo-\ar:cnt g">}\fi
\xdef\VBorder{\VBorder<col\Hnewline id="TBL-\TableNo
-\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
{\xdef\AllColMargins{\AllColMargins 0}}
\Configure{HBorder}
{<tr\Hnewline class="hline">} {<td><hr\xml:empty></td>} {</tr>}
{<tr\Hnewline class="cline">}
{<td></td>} {<td><hr\xml:empty></td>} {</tr>}
{<tr\Hnewline class="vspace" style="font-size:\HBorderspace">}
{<td\Hnewline>\string </td>}
{</tr>}
\Configure{putHBorder}{\HCode{\HBorder}}
\HAssign\Next:TableNo=0 \global\let\TableNo=\Next:TableNo
\Css{.hline hr, .cline hr{ height : 1px; margin:0px; }}
-_-_-
When \putVBorder is call in \VBorder we have a sequence of the form
<COLGROUP><COL ...">...</COLGROUP>... with the last tag possibly missing.
\def\putVBorder{\expandafter\put:VBorder\VBorder</><.par del.>}
\def\put:VBorder#1</#2>#3<.par del.>{\def\:temp{#2}\ifx\:temp\empty
\HCode{\VBorder}%
\def\:temp{#1}\ifx\:temp\empty \else\HCode{</colgroup>}\fi
\else \def\:temp{\put:VBorder#3<.par del.>}\expandafter\:temp\fi
} -_-_-
\Configure{tabbing}[1.5]{%
\ifvmode \IgnorePar\fi\EndP \leavevmode\ht:special{t4ht=<table
\Hnewline\:zbsp{tabbing}><tr \Hnewline style="vertical-align:baseline;"
class="tabbing">}}
{\ht:special{t4ht=</tr></table>}\ShowPar \csname par\endcsname
<.global HtmlPar.>%
}
{\ht:special{t4ht=<td \ifx \TabWidth\empty \else
style="width:\TabWidth;"\fi \Hnewline
class="tabbing\ifx \‘\TabType -right\fi">}}
{\ht:special{t4ht=</td>}}
\ConfigureEnv{tabbing}{\IgnorePar\EndP}{}{}{}
\Css{.tabbing-right {text-align:right;}} -_-_-
\Configure{underline}
{\HCode{<span class="underline">}\:gobble}
{\HCode{</span>}}
\Css{.underline{ text-decoration:underline; }}
\Css{.underline img{ border-bottom: 1px solid black;
margin-bottom:1pt; }}
-_-_-
\Configure{underline}
{\HCode{<span class="underline">}\hbox\bgroup \:gobble}
{\egroup \HCode{</span>}}
\Css{.underline{ text-decoration:underline; }}
\Css{.underline img{ border-bottom: 1px solid black;
margin-bottom:1pt; }}
-_-_-
\Configure{overline}
{\HCode{<span class="overline">}}
{\HCode{</span>}}
\Css{.overline{ text-decoration:overline; }}
\Css{.overline img{ border-top: 1px solid black; }}
-_-_-
\Configure{ }{\:nbsp}
-_-_-
\:CheckOption{pic-framebox} \if:Option
\Configure{framebox}
{\Picture+[]{ \a:@Picture{framebox}}} {\EndPicture}
\else
\Log:Note{for bitmap framebox’es, use
the command line option ‘pic-framebox’}
\Configure{framebox}
{\HCode{<span class="framebox-\frameboxAlign"\Hnewline
style="width:\frameboxWidth;">}}
{\HCode{</span>}}
<.shared framebox style.>
\fi -_-_-
\Css{.framebox-c, .framebox-l, .framebox-r {
padding-left:\the\fboxsep;
padding-right:\the\fboxsep;
text-indent:0pt;
border:solid black \the\fboxrule;
}}
\Css{.framebox-c {text-align:center;}}
\Css{.framebox-l {text-align:left;}}
\Css{.framebox-r {text-align:right;}}
-_-_-
\:CheckOption{pic-fbox} \if:Option
\Configure{fbox}
{\leavevmode\Picture+[]{ \a:@Picture{fbox}}} {\EndPicture}
\else
\Log:Note{for bitmap fbox’es, use
the command line option ‘pic-fbox’}
\Configure{fbox}
{\ifvmode \IgnorePar\EndP
\HCode{<div class="fbox">}%
\def\end:bx{\HCode{</div>}\par}%
\else
\HCode{<span class="fbox">}%
\def\end:bx{\HCode{</span>}}%
\fi}
{\end:bx}
\Css{.fbox {padding-left:\the\fboxsep;
padding-right:\the\fboxsep;
text-indent:0pt;
border:solid black \the\fboxrule;
}}
\Css{div.fbox {display:table}}
\Css{div.center div.fbox {text-align:center; clear:both;
padding-left:3.0pt; padding-right:3.0pt;
text-indent:0pt; border:solid black 0.4pt; }}
\fi
-_-_-
The property ’display:table’ is introduced so borders will be tight on the content
instead of expanding to the surrounding box size.
\Configure{InsertTitle}{\let\label=\lb:l
\let\ref=\o:ref \Configure{ref}{}{}{}}
\Configure{AfterTitle}{\let\index=\:index
\let\ref=\:ref \let\label=\lb:l }
\Configure{NoSection}
{\let\sv:index=\index \let\sv:label=\label
\let\sv:newline=\newline \def\newline{ }%
\let\sv:setfontsize=\@setfontsize \let\@setfontsize=\:gobbleIII
\let\index=\@gobble \let\label=\@gobble
<.nolink ref.>%
}
{\let\index=\sv:index \let\label=\sv:label
<.restore ref.>%
\let\newline=\sv:newline \let\@setfontsize=\sv:setfontsize
} -_-_-
\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
-_-_-
\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
-_-_-
\Configure{oalign}{\Picture+{ \a:@Picture{oalign}}}{\EndPicture}
\Configure{TocLink}
{\expandafter\ifx \csname #3-def\endcsname\relax
\global\expandafter\let \csname #3-def\endcsname\def
\Link{#2}{#3}%
\else
\Link{#2}{}%
\fi
{<.config TocLink anchor.>#4}\ifvmode\IgnorePar\fi\EndLink} -_-_-
\Configure{ref}{}{}{}%
\let\EndLink=\empty
\let\H:Tag:attr\:gobbleII
\let\:::HRef\empty
\def\::hRef[##1]##2{}%
\def\::hRefTag[##1]##2##3{}%
\def\:::HRefTag##1##2{}%
<.cite in TocLink.>% -_-_-
\Configure{stackrel}{\Picture+{ class="stackrel"}\mathrel}
{\limits ^}{\EndPicture}
-_-_-
\Configure{picture}
{\Picture+[PICT]{}}
{\EndPicture}
-_-_-
\ConfigureEnv{minipage}
{\IgnorePar\EndP
\HCode{<div class="minipage">}%
{\ifnum 0=‘}\fi
}
{\ifnum 0=‘{\fi}%
\EndP\HCode{</div>}}
{}{}
\Css{div.minipage{width:100\%;}}
-_-_-
The extra braces in the minipage configurations are to allow the compilation of
cases similar to the following one.
\documentclass{article}
\begin{document}
\begin{tabular}{c}
\begin{minipage}{4in}
\begin{eqnarray}
x & = & y
\end{eqnarray}
\end{minipage}
\end{tabular}
\end{document}
Tried the following for minipage
\ConfigureEnv{minipage}
{\IgnorePar\EndP\HCode{<div class="minipage">}}
{\EndP\HCode{</div>}}
{\IgnoreIndent\HtmlEnv}{}
but was not able to find an appropriate css code for centered pages
Es ist ganz einfach:
\begin{center}
\raisebox{0cm}{\begin{minipage}{10cm}\sc Jesus Christus\\
erbarme dich meiner!\end{minipage}}
\end{center}
Varianten sind:
\Configure{endsection}
{likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesection}
{section,chapter,likechapter,appendix,part,likepart}
-_-_-
\Configure{endsubsection}
{likesubsection,section,likesection,chapter,%
likechapter,appendix,part,likepart}
\Configure{endlikesubsection}
{subsection,section,likesection,chapter,%
likechapter,appendix,part,likepart}
-_-_-
\Configure{endsubsubsection}
{likesubsubsection,subsection,likesubsection,section,%
likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubsubsection}
{subsubsection,subsection,likesubsection,section,%
likesection,chapter,likechapter,appendix,part,likepart}
-_-_-
\Configure{endlikeparagraph}
{paragraph,subsubsection,likesubsubsection,subsection,%
likesubsection,section,%
likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endsubparagraph}
{likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
subsection,likesubsection,section,%
likesection,chapter,likechapter,appendix,part,likepart}
\Configure{endlikesubparagraph}
{subparagraph,likeparagraph,subsubsection,likesubsubsection,%
subsection,likesubsection,section,%
likesection,chapter,likechapter,appendix,part,likepart}
-_-_-
\Configure{endparagraph}
{likeparagraph,subsubsection,likesubsubsection,subsection,%
likesubsection,section,%
likesection,chapter,likechapter,appendix,part,likepart}
-_-_-
\Configure{endpart}{likepart}
\Configure{endlikepart}{endpart}
-_-_-
\Configure{part}{}{}
{\IgnorePar \EndP\HCode{<h1 class="partHead"\a:LRdir>}%
\HCode{<span class="titlemark">}\partname \ \thepart
\HCode{<br /></span>}}
{\HCode{</h1>}\IgnoreIndent\par}
\Configure{likepart}{}{}
{\IgnorePar\EndP\HCode{<h1 class="likepartHead"\a:LRdir>}}
{\HCode{</h1>}\IgnoreIndent\par}
\Configure{partTITLE+}{\thepart\space #1}
\Configure{likepartTITLE+}{#1}
\Css{h1.partHead{text-align: center}}
-_-_-
\ifx\bf\:UnDef
\def\bf{\normalfont\bfseries}
\fi
-_-_-
Earlier we had \:CheckOption{no-halign} \if:Option \else |<pic array|> \fi,
and the same for pic tabular. Why?
\Configure{displaylines}
{\IgnorePar \EndP
\HCode{<table \Hnewline border="0" width="100\%"
class="displaylines">}\IgnorePar}
{\HCode{</table>}}
{\HCode{<tr class="displaylines"><td \Hnewline
style="vertical-align:baseline;" class="displaylines"
>}}{\HCode{</td></tr>}}
\Css{td.displaylines {text-align:center; white-space:nowrap;}}
-_-_-
\let\A:displaylines=\a:displaylines
\let\B:displaylines=\b:displaylines
\let\C:displaylines=\c:displaylines
\let\D:displaylines=\d:displaylines
\Configure{displaylines}
{\ifmmode
\def\A:displaylines{\Picture*{}}%
\def\B:displaylines{\EndPicture}%
\fi
\A:displaylines}
{\B:displaylines} {\C:displaylines}{\D:displaylines}
-_-_-
<!--l. \the\inputlineno-->%
-_-_-
<./TeX for 4.0t.>
\def\:temp{\HCode{<span class="LATEX">}L\HCode{<span
class="A">}A\HCode{</span>}\TeX\HCode{</span>}}
\HLet\LaTeX=\:temp
\def\:temp{\mbox{%
\if b\expandafter\@car\f@series\@nil\boldmath\fi
\LaTeX2$_{\textstyle\varepsilon}$}}
\expandafter\HLet\csname LaTeXe\endcsname=\:temp
\Css{span.LATEX span.A{ position:relative; top:-0.5ex;
left:-0.4em; font-size:85\%;}}
\Css{span.LATEX span.TEX{ position:relative; left: -0.4em; }}
\Configure{@TITLE}{\def\LaTeX{LaTeX}\let\fontencoding=\:gobble
\let\fontfamily=\:gobble \let\fontseries=\:gobble
\let\fontshape=\:gobble \let\usefont=\:gobbleIV } -_-_-
\Configure{newline}{\HCode{<br\Hnewline class="newline" />}}
-_-_-
\Configure{SpBorder}
{<tr\Hnewline class="vspace"><!--\SpBorder-->}
{<td>\string </td>}
{</tr>}
\ConfigureEnv{supertabular}
{\par \IgnorePar \EndP \HCode{<div class="supertabular">}}
{\ifvmode \IgnorePar \fi \EndP \HCode{</div>}\par}
{} {}
\Css{.supertabular {text-align:center}}
-_-_-
\:CheckOption{pic-longtable} \if:Option
\ConfigureEnv{longtable}
{\IgnorePar\EndP\Tg<div class="pic-longtable">\Picture*{}}
{\EndPicture\Tg</div>}{}{}
\Css{div.pic-longtable {text-align:center;}}
\else
\Log:Note{for pictorial longtable,
use the command line option ‘pic-longtable’}
\fi
-_-_-
\Configure{halignTB<>}{longtable}{\HCode{id="TBL-\TableNo" class="longtable"\Hnewline
cellspacing="0" cellpadding="0" \GROUPS\Hnewline
}<>\HAlign}
\Css{table[rules] {border-left:solid black 0.4pt;
border-right:solid black 0.4pt; }}
\Configure{longtable}
{\IgnorePar\EndP
\HCode{<.show input line no.><div class="longtable">}%
\halignTB{longtable}\putVBorder }
{<.insert Clr.>\HCode{</table></div>}}
{\HCode{<tr \Hnewline}\halignTR\HCode{ id="TBL-\TableNo-\HRow-">}}
{\r:HA}
{\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
\halignTD \HCode{ id="TBL-\TableNo-\HRow-\HCol"
\Hnewline class="td}<.tabular td align.>%
\HCode{">}<.td save EndP.>%
<.start array par box.>\PushStack\Table:Stck\TableNo}
{\PopStack\Table:Stck\TableNo <.end array par box.>\d:HA}
\Css{div.longtable{text-align:center;}}
\Configure{longtableparbox}{\IgnorePar\leavevmode\ShowPar\par} -_-_-
\let\a:longtable=\a:tabular
\let\b:longtable=\b:tabular
\let\c:longtable=\c:tabular
\let\d:longtable=\d:tabular
\let\e:longtable=\e:tabular
\let\f:longtable=\f:tabular
-_-_-
\Configure{float}
{\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
{\:xhtml{\IgnorePar\EndP}\HCode{<hr class="float"\xml:empty><div
class="float"\Hnewline>}}
{\ifvmode \IgnorePar \fi\EndP
\HCode{</div><hr
class="endfloat" />}\csname par\endcsname\ShowPar}
\ConfigureEnv{figure}
{\:xhtml{\IgnorePar\EndP}\HCode{<hr class="figure"\xml:empty><div
class="figure"\Hnewline>}%
\bgroup \Configure{float}{\ShowPar}{}{}%
}
{\egroup
\:xhtml{\IgnorePar\EndP}\HCode{</div><hr
class="endfigure"\xml:empty>}<.try env inline par.>\par}
{}{}
\Css{div.float, div.figure {margin-left: auto; margin-right: auto;}}
\Css{div.float img {text-align:center;}}
\Css{div.figure img {text-align:center;}} -_-_-
The <TABLE> is needed as a grouping mechanism for <CENTER>.