6.18 scrreprt

<..configure html4 scrreprt..>+
 %\def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}
 
 <.shared bib env.>
 <.thebib config.>
 
 \ifx \part\:UnDef \else
    <.latex shared part config.>
 \fi
 
 <.config lists of figures and tables.>
 \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.>
 
 \ConfigureEnv{abstract}{\:xhtml{\IgnorePar\EndP}\HCode
    {<table\Hnewline class="abstract"><tr><td\Hnewline>}}
    {\EndP\HCode{</td></tr></table>}}{}{}
 \Css{.abstract p {margin-left:5\%; margin-right:5\%;}}
 \Css{table.abstract   {width:100\%;}}
 
 \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 article,report options 1.>
 \fi
 <.scrreprt end units.>
 \Configure{addchapTITLE+}{#1}
 \def\tocaddchap#1#2#3{\par
    \HCode{<span class="addchapToc" \a:LRdir>}#2\HCode{</span>}\par}%
-_-_-

<..scrreprt 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; }}
-_-_-

<..scrreprt 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; }}
-_-_-

<..configure html4 scrartcl..>
 <.scr article,report,book.>
-_-_-

<..configure html4 scrreprt..>+
 <.scr article,report,book.>
 <.scr report,book.>
 <.description 4.>
 \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;}}
-_-_-

<..scrreprt 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{endaddchap}{likechapter,appendix,part,likepart,chapter}
 \Configure{endchapter}{likechapter,appendix,part,likepart,addchap}
 \Configure{endlikechapter}{chapter,appendix,part,likepart,addchap}
 \Configure{endappendix}{chapter,likechapter,part,likepart,addchap}
-_-_-