9.16 Small Packages

  9.16.1 vowel
  9.16.2 enumitem
  9.16.3 IEEEtran
  9.16.4 Linguisics
  9.16.5 diagram (chess)
  9.16.6 eurosym
  9.16.7 Sistyle
  9.16.8 chapterbib
  9.16.9 lineno.sty
  9.16.10 revtex (aps)
  9.16.11 Spatial Math
  9.16.12 lncse

9.16.1 vowel

<..configure html4 vowel..>
 \ConfigureEnv{vowel}
    {\Picture*[vowel]{}}
    {\EndPicture}
    {}{}
-_-_-

9.16.2 enumitem

<..configure html4 enumitem..>
 \ConfigureList{enumerate}%
    {\EndP\HCode{<dl \a:LRdir class="enumerate-enumitem">}%
       <.save end:itm.>\global\let\end:itm=\empty}
    {<.recall end:itm.>\EndP\HCode{</dd></dl>}\ShowPar}
    {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
         class="enumerate-enumitem">}\bgroup \bf}
    {\egroup\EndP\HCode{</dt><dd\Hnewline class="enumerate-enumitem">}}
 \Css{dt.enumerate-enumitem{float:left; clear:left;
                            margin-left:1em; margin-right:1em;}}
-_-_-

9.16.3 IEEEtran

<..configure html4 IEEEtran..>
 <.default thebibliography.>
 <.bibitem css.>
-_-_-

9.16.4 Linguisics

<..configure html4 linguex..>
 \Configure{ex}
   {\ifvmode\IgnorePar\fi \EndP \HCode{<div class="ex">}}
   {\ifvmode\IgnorePar\fi \EndP \HCode{</div>}}
 \Configure{a.list}
   {\ConfigureList{list}%
    {\EndP\HCode{<dl \a:LRdir class="alist\expandafter\the
          \csname @listdepth\endcsname">}%
     <.save end:itm.>\global\let\end:itm=\empty}
    {<.recall end:itm.>\EndP\HCode{</dd></dl>}\ShowPar}
    {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
         class="alist">}\bgroup \bf}
    {\egroup\HCode{</dt><dd\Hnewline class="alist">}\par\ShowPar}%
   }
 \Css{div.ex dt, dt.alist{float:left;clear:left}}
-_-_-

<..configure html4 cgloss4e..>
 \Configure{tsent}
    {\HCode{<span class="tsent">}}
    {\HCode{</span>}}
    {\HCode{<br />}}
 \Css{.tsent {display:table-cell;
             display:inline-block;
             padding-right:0.2em;
             padding-top:0em;
             padding-bottom:0em;
             padding-left:0em;
             margin:0em;         }}
-_-_-

<..configure html4 cgloss4e..>+
 \Configure{gll}
    {\ifvmode \IgnorePar\fi \EndP
     \bgroup
       \ConfigureEnv{flushleft}
        {\ifvmode \IgnorePar\fi \EndP}
        {\ShowPar}
        {\EndP\IgnorePar
         \HCode{<div class="gll"\Hnewline>}\IgnorePar}
        {\IgnorePar\EndP\HCode{</div>}}%
      \Configure{HtmlPar}{}{}{}{}%
    }
    {}
    {\egroup}
 \Css{dd.alist p{margin-top:0.2em}}
-_-_-

<..configure html4 covington..>
 <.configure html4 cgloss4e.>
-_-_-

<..configure html4 covington..>+
 \ConfigureEnv{exercise}
    {\ifvmode\IgnorePar\fi \EndP
     \HCode{<div class="Exercise">}}
    {\ifvmode\IgnorePar\fi \EndP \HCode{</div>}} {}{}
 \ConfigureList{reflist}%
    {\EndP\HCode{<dl \a:LRdir class="reflist">}%
     \PushMacro\end:itm
 \global\let\end:itm=\empty}
    {\PopMacro\end:itm \global\let\end:itm \end:itm
 \EndP\HCode{</dd></dl>}\ShowPar}
    {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
         class="reflist">}\bgroup \bf}
    {\egroup\HCode{</dt><dd\Hnewline class="reflist">}\par\ShowPar}
 \Css{dd.reflist p.indent { text-indent: -2em; }}
-_-_-

<..configure html4 covington..>+
 \Configure{sentence}
    {\bgroup
        \ConfigureEnv{flushleft}
          {\ifvmode \IgnorePar\fi \EndP}{<.try env inline par.>}
          {\EndP\IgnorePar
           \HCode{<div class="sentence"\Hnewline>}\ShowPar\endgraf}
          {\IgnorePar\EndP\HCode{</div>}}%
    }
    {\egroup}
 \Css{div.sentence {text-align:left;}}
-_-_-

<..configure html4 covington..>+
 \Configure{glt}{\newline}
-_-_-

9.16.5 diagram (chess)

<..configure html4 diagram..>
 \let\:EndIgnore\relax
 \def\:Ignore{\bgroup
    \catcode‘\\=12
    \long\def\:temp##1:EndIgnore{\egroup}\:temp
 }
 \ifx \setboardwidth\:UnDef \expandafter\:Ignore\fi
    <.config diagram 08.>
 \:EndIgnore
 \ifx \setboardwidth\:UnDef \else \expandafter\:Ignore\fi
    <.config diagram 95.>
 \:EndIgnore
-_-_-

<..config diagram 95..>
 \Configure{diagram}
    {\gHAdvance\chessNo by 1\relax
     \ifvmode \IgnorePar\fi \EndP
     \HCode{<table class="chess" id="chess-\chessNo">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</table>}}
    {\HCode{<tr class="chess-\chessNo-\HRow">}}
    {\HCode{</tr>}}
    {\tmp:cnt=\HCol
     \advance \tmp:cnt by \HRow \relax
     \HCode{<td id="chess-\chessNo-\HRow-\HCol"
                class="\ifodd \tmp:cnt white\else
                           \ifnum \count\help@b=144 ch-\fi
                           black\fi -square">}}
    {\HCode{</td>}}
-_-_-

<..config diagram 08..>
 \Configure{diagram}
    {\gHAdvance\chessNo by 1\relax
     \ifvmode \IgnorePar\fi \EndP
     \HCode{<table class="chess" id="chess-\chessNo">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</table>}}
    {\HCode{<tr class="chess-\chessNo-\HRow">}}
    {\HCode{</tr>}}
    {\tmp:cnt=\HCol
     \advance \tmp:cnt by \HRow \relax
     \HCode{<td id="chess-\chessNo-\HRow-\HCol"
                class="\ifodd \tmp:cnt white\else
          \ifnum
     144=\csname cpd@square@\roman{cpd@current@square@index}\endcsname
          ch-\fi
                           black\fi -square">}}
    {\HCode{</td>}}
-_-_-

<..configure html4 diagram..>+
 \HAssign\chessNo=0
 
 \Css{td.black-square{background-color:\#B0B0B0;
 %                      width:12.5\%;
                       width:1.5em; height:1.5em;
 }}
 \Css{td.ch-black-square{background-color:\#B0B0B0;
                         color:\#B0B0B0;
 %                        width:12.5\%;
                       width:1.5em; height:1.5em;
 }}
 \Css{td.white-square{background-color:\#FFFFFF;
 %                      width:12.5\%;
                       width:1.5em; height:1.5em;
 }}
 
 \Css{table.chess{% margin-left: 0em; margin-right: 0em;
                  margin-left: auto; margin-right: auto;
                  border: solid black 1px;
 %                 width:100\%;
                  text-align:center;}}
 \Configure{stipulation}
    {\ifvmode \IgnorePar\fi \EndP
             \HCode{<div class="stipulation">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
    {\ifvmode \IgnorePar\fi \EndP
             \HCode{<span class="stipulation">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 \Configure{piececounter}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="piececounter">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Css{div.piececounter{ float:right; clear:left; margin-top:1em;}}
 \Configure{authors}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="authors">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{condition}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="condition">}\bgroup
     \Configure{newline}{}}
    {\egroup\ifvmode \IgnorePar\fi \EndP
     \HCode{</div>}}
 \Configure{solution}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="solution">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{award}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="award">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{dedic}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="dedic">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 
 \Configure{twins}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="twins">}\bgroup
     \Configure{newline}{}}
    {\egroup \ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Css{div.twins{text-align:left;width:100\%;}}
 \Configure{remark}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="remark">}\bgroup
     \Configure{newline}{}}
    {\egroup\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{above}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="above">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div><!--end above-->}}
 \Css{div.above{margin-bottom:0.3em;}}
 \Configure{below}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="below">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Css{div.below{text-align:center;margin-top:1em;}}
 
 
 \ConfigureEnv{diagram}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="diagram">}\bgroup
     \Configure{HtmlPar}{}{}{}{}%
    }
    {\egroup\ifvmode \IgnorePar\fi \EndP
     \HCode{</div><!--end diagram-->}}
    {}{}
 
 \Css{div.diagram{width:12em;
                  display: inline-block;
                  margin-right:0.5em;
                  margin-left:0.5em;
                  vertical-align:top;
 }}
 \Configure{correction}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="correction">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{showlabel}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<sup class="showlabel">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</sup>}}
 \Configure{judgement}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<span class="judgement">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 
 
 
     \HAssign\solNum= 0
 
 \Configure{number}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="number">}%
     \gHAdvance\solNum by 1\relax
     \Link{sol-\solNum}{prob-\solNum}}
    {\EndLink\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{sol-number}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<span class="sol-number">}%
     \gHAdvance\solNum by 1\relax
      \Link{prob-\solNum}{sol-\solNum}}
    {\EndLink\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 \Configure{sol-author}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<span class="sol-author">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 \Configure{sol-title}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="sol-title">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{source}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<div class="source">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</div>}}
 \Configure{source}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<span class="source">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 \Configure{date}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<span class="date">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 \Configure{issue}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<span class="issue">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 \Configure{pages}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{<span class="pages">}}
    {\ifvmode \IgnorePar\fi \EndP  \HCode{</span>}}
 
 \Css{div.condition{text-align:left;width:100\%;}}
 
 \Css{div.stipulation{
    text-align:justify; text-align-last:justify;  width:100\%;
 }}
 \Css{span.stipulation{ margin-right:1em; }}
-_-_-

9.16.6 eurosym

<..configure html4 eurosym..>
 \Configure{geneuro}{\ht:special{t4ht@+\string&{35}x20AC{59}}x}
 \Configure{geneuronarrow}{\ht:special{t4ht@+\string&{35}x20AC{59}}x}
 \Configure{geneurowide}{\ht:special{t4ht@+\string&{35}x20AC{59}}x}
-_-_-

9.16.7 Sistyle

<..configure html4 sistyle..>
 \Configure{thousandsep}
    {\HCode{<span class="thousandsep">\string&\#x00A0;</span>}}
 \Css{span.thousandsep{font-size:80\%}}
-_-_-

<..configure html4 sistyle..>+
 \Configure{degC}{\leavevmode\ht:special{t4ht@+&{35}x00B0;}xC}
 \Configure{degF}{\leavevmode\ht:special{t4ht@+&{35}x00B0;}xF}
 \Configure{arcdeg}{\leavevmode\ht:special{t4ht@+&{35}x00B0;}x}
 \Configure{arcmin}{\leavevmode\ht:special{t4ht@+&{35}x2032;}x}
 \Configure{arcsec}{\leavevmode\ht:special{t4ht@+&{35}x2033;}x}
 \Configure{ohm}{\leavevmode\ht:special{t4ht@+&{35}x2126;}x}
 \Configure{micro}{\leavevmode\ht:special{t4ht@+&{35}x00B5;}x}
 \Configure{angstrom}{\leavevmode\ht:special{t4ht@+&{35}x212B;}x}
-_-_-

9.16.8 chapterbib

<..configure html4 chapterbib..>
 \:CheckOption{2}
 \if:Option\else \:CheckOption{3} \fi
 \if:Option\else \:CheckOption{4} \fi
 \if:Option\else \:CheckOption{5} \fi
 \if:Option
    \AtBeginDocument{%
       \let\cb:sectionbib=\cb@sectionbib
       \def\cb@sectionbib{%
          \let\addcontentsline\:gobbleIII
          \cb:sectionbib}}
 \fi
-_-_-

9.16.9 lineno.sty

<..configure html4 lineno..>
 \:warning{The line numbers are commented out. To reintroduce them, use
     the \string\Configure{lineno}{...}{...} command}
 \Configure{lineno}
     {\bgroup \let\LineNumber=\empty}
     {\egroup}
-_-_-

9.16.10 revtex (aps)

<..configure html4 revtex4..>
 <.preprint revtex4.>
 <.default revtex4.>
-_-_-

<..preprint revtex4..>
 \ConfigureSec{section}
    {\ifvmode \IgnorePar \fi \EndP
     \HCode{<h3 class="sectionHead"\a:LRdir>}\IgnorePar}
    {\lowercase{\HCode{</h3>}}}
    {}{}
-_-_-

<..preprint revtex4..>+
 \ConfigureSec{subsection}
    {\ifvmode \IgnorePar \fi \EndP
     \HCode{<h4 class="subsectionHead"\a:LRdir>}\IgnorePar}
    {\lowercase{\HCode{</h4>}}}
    {}{}
-_-_-

<..preprint revtex4..>+
 \ConfigureSec{subsubsection}
    {\ifvmode \IgnorePar \fi \EndP
     \HCode{<h5 class="subsubsectionHead"\a:LRdir>}\IgnorePar}
    {\lowercase{\HCode{</h5>}}}
    {}{}
-_-_-

<..preprint revtex4..>+
 \ConfigureSec{paragraph}
    {\ifvmode \IgnorePar \fi \EndP
     \HCode{<h5 class="paragraphHead"\a:LRdir>}\IgnorePar}
    {\lowercase{\HCode{</h5>}}}
    {}{}
-_-_-

<..preprint revtex4..>+
 \ConfigureSec{subparagraph}
    {\ifvmode \IgnorePar \fi \EndP
     \HCode{<h5 class="subparagraphHead"\a:LRdir>}\IgnorePar}
    {\lowercase{\HCode{</h5>}}}
    {}{}
-_-_-

<..default revtex4..>
 \Configure{maketitle}
    {\ifvmode \IgnorePar\fi \EndP <.title for TITLE 2.>%
     \HCode{<div  class="maketitle">}\par\ShowPar}
    {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
    {\NoFonts\IgnorePar\HCode{<h2 class="titleHead"\a:LRdir>}\IgnorePar}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{</h2>}\IgnoreIndent\EndNoFonts}
 \Css{h2.titleHead{text-align:center;}}
 \Css{div.maketitle{ margin-bottom: 2em;}}
-_-_-

<..default revtex4..>+
 \Configure{<.thanks author date and.>}
    {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="thanks" \a:LRdir>}}
    {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
    {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="author" \a:LRdir>}}
    {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
    {\lowercase{\HCode{<span class="date" \a:LRdir>}}}
    {\HCode{</span>}}
    {\HCode{<br class="and" />}}
    {\HCode{<br />}}
 \Configure{doauthor}
    {\HCode{<span class="author" \a:LRdir>}}
    {\HCode{</span>}}
 \Css{div.author{margin-top:2em;text-align:center;}}
 
 \Configure{affil}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div\Hnewline class="affil">}}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{</div>}\IgnorePar}
 \Css{.affil {text-align:center}}
-_-_-

<..default revtex4..>+
 \Configure{RRAPformat}
    {\ifvmode\IgnorePar\fi \EndP \HCode{<div class="RRAP">}}
    {\ifvmode\IgnorePar\fi \EndP \HCode{</div>}}
 \Configure{received}
    {\lowercase{\HCode{<span class="received" \a:LRdir>}}}
    {\HCode{</span>}}
 \Configure{revised}
    {\lowercase{\HCode{<span class="revised" \a:LRdir>}}}
    {\HCode{</span>}}
 \Configure{accepted}
    {\lowercase{\HCode{<span class="accepted" \a:LRdir>}}}
    {\HCode{</span>}}
 \Configure{published}
    {\lowercase{\HCode{<span class="published" \a:LRdir>}}}
    {\HCode{</span>}}
 \Css{div.RRAP{margin-top:1em;margin-bottom:1em;text-align:center;}}
-_-_-

<..default revtex4..>+
 \Configure{abstract}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="abstract">}\par \ShowPar}
    {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
 \Css{.abstract{margin:1em;}}
-_-_-

<..default revtex4..>+
 \Configure{pacs}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="pacs">}}
    {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
 \Css{.pacs{margin-left:1em;}}
 \Configure{keywords}
    {\ifvmode \IgnorePar\fi \EndP \HCode{<div class="keywords">}}
    {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
 \Css{.keywords{margin-left:1em;}}
-_-_-

<..default revtex4..>+
 \ConfigureEnv{thebibliography}{\par\leavevmode}{\ShowPar}{}{}
 <.default thebibliography.>
 \Configure{endnote}
    {\HCode{<span class="endnote">}}
    {\HCode{</span>}}
-_-_-

<..default revtex4..>+
 \Configure{footnotebody}
    {\HCode{<span class="footnote-body" \a:LRdir>}}
    {\HCode{</span>}}
 \Configure{frontpagefootnote}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<div class="frontpagefootnotes">}}
    {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
    {\HCode{<div class="frontpagefootnote">}}
    {\HCode{</div>}}
 \Css{.frontpagefootnote{margin-left:1em;}}
-_-_-

<..default revtex4..>+
 <.latex shared part config.>
 <.latex shared section config.>
 <.latex shared subsection config.>
 <.latex shared subsubsection config.>
 <.latex shared paragraph config.>
 \Configure{subparagraph}{}{}
   {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead { font-weight: bold;}}
-_-_-

<..default revtex4..>+
 \ConfigureEnv{widetext}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="widetext">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
   {}{}
-_-_-

<..default revtex4..>+
 \ConfigureEnv{ruledtabular}
    {\ifvmode \IgnorePar\fi \HCode{<div class="ruledtabular">}}
    {\ifvmode \IgnorePar\fi \HCode{</div>}}
    {}{}
 \Css{div.ruledtabular table {
     border-top: black 1px double;
     border-bottom: black 1px double}}
 <.config captions.>
-_-_-

<..default revtex4..>+
 \Configure{abstractheading}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="abstractheading">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
 \Css{div.abstractheading{text-align:center}}
-_-_-

<..default revtex4..>+
 \Configure{preprint}
   {\ifvmode \IgnorePar\fi \EndP
    \HCode{<div class="preprint">}}
   {\ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par}
 \Css{div.preprint{text-align:right}}
-_-_-

<..revtex3 aps.sty..>
 <.revtex sections.>
 <.revtex title page.>
 <.shared bib env.>
 <.thebib config.>
-_-_-

<..revtex sections..>+
 %    \def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}
-_-_-

<..revtex sections..>+
 \:CheckOption{4}     \if:Option
     \expandafter\ifx \csname @chapter\endcsname\relax
          \CutAt{part}
 \CutAt{likepart}
 <.cut toc: part.>
 
          \CutAt{section,likesection,chapter,likechapter,appendix,part}
 \CutAt{likesection,chapter,likechapter,appendix,part}
 <.cut toc: sec.>%
          \CutAt{subsection,section,likesection,%
                   chapter,likechapter,appendix,part}
 \CutAt{likesubsection,section,likesection,%
                   chapter,likechapter,appendix,part}
        <.cut toc: subsec.>%
        <.tocat: part.>%
        <.tocat: section.>%
     \else
          \CutAt{part}
 \CutAt{likepart}
 <.cut toc: part.>
 
          \CutAt{chapter,likechapter,appendix,part}
 \CutAt{likechapter,appendix,part}
 \CutAt{appendix,chapter,likechapter,part}
 <.tocat: ch.>%
 
          \CutAt{section,likesection,chapter,likechapter,appendix,part}
 \CutAt{likesection,chapter,likechapter,appendix,part}
 <.cut toc: sec.>%
          \CutAt{subsection,section,likesection,%
                   chapter,likechapter,appendix,part}
 \CutAt{likesubsection,section,likesection,%
                   chapter,likechapter,appendix,part}
       <.cut toc: subsec.>%
       <.tocat: part.>%
       <.tocat: ch.>%
       <.tocat: section.>%
     \fi
 \else\:CheckOption{3}     \if:Option
     \expandafter\ifx \csname @chapter\endcsname\relax
          \CutAt{part}
 \CutAt{likepart}
 <.cut toc: part.>
 
          \CutAt{section,likesection,chapter,likechapter,appendix,part}
 \CutAt{likesection,chapter,likechapter,appendix,part}
 <.cut toc: sec.>%
          \CutAt{subsection,section,likesection,%
                   chapter,likechapter,appendix,part}
 \CutAt{likesubsection,section,likesection,%
                   chapter,likechapter,appendix,part}
       <.cut toc: subsec.>%
       <.tocat: part.>%
       <.tocat: section.>%
     \else
          \CutAt{part}
 \CutAt{likepart}
 <.cut toc: part.>
 
          \CutAt{chapter,likechapter,appendix,part}
 \CutAt{likechapter,appendix,part}
 \CutAt{appendix,chapter,likechapter,part}
 <.tocat: ch.>%
 
          \CutAt{section,likesection,chapter,likechapter,appendix,part}
 \CutAt{likesection,chapter,likechapter,appendix,part}
        <.cut toc: sec.>%
        <.tocat: part.>%
        <.tocat: ch.>%
     \fi
 \else\:CheckOption{2}     \if:Option
     \expandafter\ifx \csname @chapter\endcsname\relax
          \CutAt{part}
 \CutAt{likepart}
 <.cut toc: part.>
 
          \CutAt{section,likesection,chapter,likechapter,appendix,part}
 \CutAt{likesection,chapter,likechapter,appendix,part}
       <.cut toc: sec.>%
       <.tocat: part.>%
     \else
          \CutAt{part}
 \CutAt{likepart}
 <.cut toc: part.>
 
          \CutAt{chapter,likechapter,appendix,part}
 \CutAt{likechapter,appendix,part}
 \CutAt{appendix,chapter,likechapter,part}
        <.tocat: ch.>%
        <.tocat: part.>%
     \fi
 \else\:CheckOption{1}     \if:Option
          \CutAt{part}
 \CutAt{likepart}
 <.cut toc: part.>
 
 \else
     \Log:Note{for automatic sectioning pagination,
           use the command line option ‘1’, ‘2’, or ‘3’}%
 \fi \fi \fi \fi
 
 \:CheckOption{1}     \if:Option
   <.toc article,report options 1.>
 \fi
 <.shared h5 subsubsection.>
 \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}
 
 \ifx \part\:UnDef \else
    <.latex shared part config.>
 \fi
 
 \Configure{endsection}
      {likesection,chapter,likechapter,appendix,part,likepart}
 \Configure{endlikesection}
      {section,chapter,likechapter,appendix,part,likepart}
 \ConfigureMark{section}
    {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
     \else
        \HCode{<span class="titlemark">}\thesection\HCode{</span>}\fi }
 <.section TITLE+.>
 \Configure{section}{}{}
    {\ifvmode \IgnorePar\fi \EndP\IgnorePar
     \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark.\space\HtmlParOff}
    {\HCode{</h3>}\HtmlParOn \ShowPar\par}
 \Configure{likesection}{}{}
    {\ifvmode \IgnorePar\fi
     \EndP\IgnorePar\HCode{<h3 class="likesectionHead"\a:LRdir>}\HtmlParOff}
    {\HCode{</h3>}\HtmlParOn \IgnoreIndent \ShowPar\par}
 \Configure{likesectionTITLE+}{#1}
 
 \Css{h3.sectionHead, h3.likesectionHead {text-align:center;}}
 
 \Configure{endsubsection}
    {likesubsection,section,likesection,chapter,%
       likechapter,appendix,part,likepart}
 \Configure{endlikesubsection}
    {subsection,section,likesection,chapter,%
       likechapter,appendix,part,likepart}
 <.shared h4 subsection.>
 
 \Css{h4.subsectionHead {text-align:center;}}
 
 \Configure{endsubsubsection}
    {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{paragraph}{}{}
   {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Configure{likeparagraph}{}{}
   {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
   {\HCode{</span>}\IgnorePar}
 \Css{.paragraphHead, .likeparagraphHead
    { margin-top:2em; font-weight: bold;}}
 
 \ConfigureMark{subparagraph}{}
 \Configure{subparagraph}{}{}
   {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Configure{likesubparagraph}{}{}
   {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead, .likesubparagraphHead
    { font-weight: bold;}}
-_-_-

9.16.11 Spatial Math

<..configure html4 longdiv..>
 \Configure{longdiv}
   {\Configure{halign}
       {\HCode{<table class="longdiv">}}
       {\HCode{</table>}}
       {\HCode{<tr>}}
       {\HCode{</tr>\Hnewline}}
       {\tmp:cnt=\HRow \divide\tmp:cnt by 2 \multiply\tmp:cnt by 2
        \advance\tmp:cnt by -\HRow
        \HCode{<td \ifnum\HCol=2 \ifnum\HRow=2 class="longdiv"\fi \fi>%
               <span \ifnum \tmp:cnt=-1
                  \ifnum \HRow>2 class="longdiv"\fi\fi >}%
       }
       {\HCode{</span></td>}}%
   }
   {}
 \Css{table.longdiv {text-align: right;}}
 \Css{td.longdiv {border-top:solid 1px black;
                  border-left:solid 1px black;}}
 \Css{span.longdiv {text-decoration:underline;}}
-_-_-

9.16.12 lncse

<..configure html4 lncse..>+
 <.lncse chapter.>
 \Configure{paragraph}{}{}
   {\ShowPar\IgnoreIndent
    \HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\it}
   {\endgroup\HCode{</span>}\IgnorePar}
-_-_-

<..lncse chapter..>
 \ConfigureMark{chapter}
    {\if@mainmatter
        \HCode{<span class="titlemark">}\chaptername
      \ \thechapter\HCode{</span>}\fi}
 \Configure{chapter}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}%
     \TitleMark{\HCode{<br />}}}
    {\HCode{</h2>}\IgnoreIndent}
 \Configure{chapterTITLE+}{\if@mainmatter\thechapter\space\fi#1}
 \renewcommand\thechapter {\if@mainmatter\@arabic\c@chapter\fi}
 
 \ConfigureMark{appendix}{\HCode{<span class="titlemark">}%
    \appendixname \ \thechapter\HCode{</span>}}
 \Configure{appendix}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}%
      \TitleMark{\HCode{<br />}}}
    {\HCode{</h2>}\IgnoreIndent}
 \Configure{appendixTITLE+}{\thechapter\space#1}
 \Configure{likechapter}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="likechapterHead"\a:LRdir>}}
    {\HCode{</h2>}\IgnoreIndent}
-_-_-