6.17 scrbook

<..configure html4 scrbook..>+
 <.scr article,report,book.>
 <.scr report,book.>
 <.shared bib env.>
 <.thebib config.>
 <.description 4.>
 %\def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}
 \def\:tempa{
    \CutAt{part}
    \CutAt{likepart}
    <.cut toc scr: part.>%
 }
 \def\:tempb{
    <.tocat scr: part.>
    \CutAt{chapter,likechapter,addchap,appendix,part}
    \CutAt{likechapter,addchap,appendix,part}
    \CutAt{addchap,chapter,likechapter,appendix,part}
    \CutAt{appendix,chapter,likechapter,addchap,part}
    <.tocat: ch.>%
 }
 \def\:tempc{
    <.tocat scr: ch.>%
    \CutAt{section,likesection,chapter,likechapter,addchap,appendix,part}
    \CutAt{likesection,chapter,likechapter,addchap,appendix,part}
    <.cut toc: sec.>%
 }
 \def\:tempd{
    <.tocat scr: section.>%
    <.tocat scr: subsection.>%
    <.cut toc: subsec.>%
 }
 
 \:CheckOption{4}     \if:Option
     \expandafter\ifx \csname @chapter\endcsname\relax
                           \:tempa \:tempc \:tempd
     \else                 \:tempa \:tempb \:tempc \:tempd  \fi
 \else\:CheckOption{3}     \if:Option
     \expandafter\ifx \csname @chapter\endcsname\relax
                           \:tempa \:tempc  \:tempd
     \else                 \:tempa \:tempb  \:tempc  \fi
 \else\:CheckOption{2}     \if:Option
     \expandafter\ifx \csname @chapter\endcsname\relax  \:tempa \:tempc
     \else                 \:tempa \:tempb    \fi
 \else\:CheckOption{1}     \if:Option
     \:tempa
 \else
     \Log:Note{for sectioning pagination,
           use the command line option ‘1’, ‘2’, or ‘3’}%
 \fi \fi \fi \fi
 
 \:CheckOption{1}     \if:Option
    <.toc scrbook options 1.>
 \fi
 
 <.scrbook end units.>
 \ifx \part\:UnDef \else
    <.latex shared part config.>
 \fi
 
 <.config lists of figures and tables.>
 
 \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}{\thesubparagraph}
 \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;}}
 \ConfigureEnv{picture}
    {\bgroup\ifvmode \Configure{HtmlPar}
       {\EndP\HCode{<!--l. \the\inputlineno-->%
 }\HCode{<p
             class="center" \a:LRdir>}}%
       {\EndP\HCode{<!--l. \the\inputlineno-->%
 }\HCode{<p
             class="center" \a:LRdir>}}%
       {\:xhtml{\Tg</p>}}{\:xhtml{\Tg</p>}} \ShowPar\leavevmode
     \fi}
    {\egroup}{}{}
 <.quote config.>
 <.book-report-article index.>
 <.scr reprt/book captions.>
 \ConfigureEnv{verse}
    {\ifvmode \IgnorePar\fi\EndP\Tg<div class="verse">}
    {\ifvmode \IgnorePar\fi\EndP\Tg</div>}
    {}{}
 \ConfigureList{verse}
    {}{}
    {\parindent=\z@}  {\par}
 \Css{.verse{white-space:nowrap; margin-left:2em}}
 <.base font size.>
 <.quotations.>
 \Configure{listof}{}{}{}{\HCode{<br />}}{}{ }
 <.latex shared part config.>
-_-_-

<..scrbook end-thanks author date and..>
 \Configure{thanks author date and}
    {\SaveEndP\global\setbox\fn:box=\vtop\bgroup\ShowPar
      \ifvoid\fn:box\else  \csname unvbox\endcsname\fn:box\fi}
    {\EndP\egroup\RecallEndP }
    {\HCode{<div class="author" \a:LRdir>}}{\HCode{</div>}}
    {\HCode{<div class="date" \a:LRdir>}}{\HCode{</div>}}
    {\HCode{<br class="and" \a:LRdir/>}}
    {\HCode{<br />}}
 <.thanks for thanks p.>
 \Css{div.author, div.date {text-align:center;}}
 \Css{div.thanks{text-align:left; margin-left:10\%; font-size:85\%;
                 font-style:italic; }}
-_-_-

<..scrbook thanks author date and..>
 \Configure{thanks author date and}
    {\HCode{<div class="thanks" \a:LRdir>}}{\HCode{</div>}}
    {\HCode{<div class="author" \a:LRdir>}}{\HCode{</div>}}
    {\HCode{<div class="date" \a:LRdir>}}{\HCode{</div>}}
    {\HCode{<br class="and" />}}
    {\HCode{<br />}}
 <.thank for thanks.>
 \Css{div.author, div.date {text-align:center;}}
 \Css{div.thanks{text-align:left; margin-left:10\%; font-size:85\%;
                 font-style:italic; }}
 
-_-_-

<..scr report,book..>+
 \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~~\HtmlParOff}
    {\HCode{</h3>}\HtmlParOn \IgnoreIndent \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}
-_-_-

<..scr report,book..>+
 <.shared h5 subsubsection.>
 \ConfigureMark{appendix}{\HCode{<span class="titlemark">}%
    \thechapter\HCode{</span>}}
 \Configure{appendix}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="appendixHead"\a:LRdir>}\TitleMark{}.~~}
    {\HCode{</h2>}\IgnoreIndent}
 \Configure{appendixTITLE+}{\thechapter\space#1}
 \Configure{likechapter}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="likechapterHead"\a:LRdir>}}
    {\HCode{</h2>}\IgnoreIndent\par}
 \Configure{likechapterTITLE+}{#1}
 \Configure{addchap}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="addchapHead"\a:LRdir>}}
    {\HCode{</h2>}\IgnoreIndent\par}
-_-_-

<..configure html4 scrbook..>+
 \ConfigureMark{chapter}
    {\if@mainmatter
        \HCode{<span class="titlemark">}\thechapter\HCode{</span>}~~\fi}
 \Configure{chapter}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark{}}
    {\HCode{</h2>}\IgnoreIndent\par}
 \Configure{chapterTITLE+}{\if@mainmatter\thechapter\space\fi#1}
 \renewcommand\thechapter {\if@mainmatter\@arabic\c@chapter\fi}
-_-_-

<..configure html4 scrreprt..>+
 \ConfigureMark{chapter}
    {\HCode{<span class="titlemark">}\thechapter\HCode{</span>}~~}
 \Configure{chapter}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark{}}
    {\HCode{</h2>}\IgnoreIndent\par}
 \Configure{chapterTITLE+}{\thechapter\space#1}
-_-_-

<..scr article,report,book..>+
 \ConfigureMark{minisec}{}
 \Configure{minisec}{}{}
    {\ifvmode \IgnorePar \fi  \EndP
     \bgroup \IgnorePar\HCode{<h5 class="minisecHead"\a:LRdir>}%
     \TitleMark\space \HtmlParOff}
    {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
-_-_-

<..scrbook end units..>
 \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}
-_-_-