6.22 Polish: mwart.cls, mwrep.cls, mwbk.cls

<..configure html4 mwart..>
 <.mwcls divs.>
 <.mwcls tocs.>
 <.mwart tocs.>
 <.cut and toc at for options 1, 2, 3.> should be after mw ... tocs
 <.mwcls configs.>
-_-_-

<..configure html4 mwrep..>
 <.mwcls divs.>
 <.mw rep/bk divs.>
 <.mwcls tocs.>
 <.mw rep/bk tocs.>
 <.cut and toc at for options 1, 2, 3.> should be after mw ... tocs
 <.mwcls configs.>
-_-_-

<..configure html4 mwbk..>
 <.mwcls divs.>
 <.mw rep/bk divs.>
 <.mwcls tocs.>
 <.mw rep/bk tocs.>
 <.cut and toc at for options 1, 2, 3.> should be after mw ... tocs
 <.mwcls configs.>
-_-_-

<..mwcls configs..>+
 <.mwcls index.>
 <.config captions.>
 <.shared bib env.>
 <.thebib config.>
 %\def\:SPAN#1#2{\HCode{<span class="#1">}#2\HCode{</span>}}
 <.config lists of figures and tables.>
 \ConfigureList{description}%
    {\EndP\HCode{<dl \a:LRdir class="description">}%
       \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="description">}\bgroup \bf}
    {\egroup\EndP\HCode{</dt><dd\Hnewline class="description">}}
 
 <.quote config.>
 \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}}
 
 {\Configure{Needs}{Font\string_Size: #1}\ifcase  \@ptsize
    \or \Needs{11}\or \Needs{12}\else \fi}
 
 <.quotations.>
 \Configure{listof}{}{}{}{\HCode{<br />}}{}{ }
 
 \ConfigureEnv{abstract}
    {\IgnorePar\EndP
     \HCode{<table\Hnewline class="abstract"><tr><td\Hnewline>}\par\ShowPar}
    {\ifvmode \IgnorePar\fi \EndP\HCode{</td></tr></table>}}{}{}
 \Css{.abstract p {margin-left:5\%; margin-right:5\%;}}
 \Css{table.abstract {width:100\%;}}
-_-_-

<..mwcls divs..>+
 \ConfigureMark{part}
    {\ifHeadingNumbered \HCode{<span class="titlemark">}\partname
       \space \HeadingNumber \HCode{</span>}\fi}
 \Configure{part}{}{}
    {\NoFonts\ifvmode \IgnorePar\fi \EndP\IgnorePar
     \HCode{<h1 class="partHead"\a:LRdir>}\TitleMark
     \HCode{<br />}\HtmlParOff}
    {\HCode{</h1>}\HtmlParOn \EndNoFonts \IgnoreIndent \par}
 \Configure{partTITLE+}{\thepart\space #1}
 \Css{h1.partHead{text-align: left}}
-_-_-

<..mwcls divs..>+
 \Configure{likepart}{}{}
    {\IgnorePar\EndP\HCode{<h1 class="likepartHead"\a:LRdir>}}
    {\HCode{</h1>}\IgnoreIndent}
 \Configure{likepartTITLE+}{#1}
-_-_-

<..mw rep/bk divs..>
 \ConfigureMark{chapter}
    {\ifHeadingNumbered \HCode{<span class="titlemark">}\mw@seccntformat
     \HeadingNumber \HCode{</span>}\fi}
 \Configure{chapter}{}{}
    {\NoFonts \ifvmode \IgnorePar\fi \EndP\IgnorePar
     \HCode{<h2 class="chapterHead"\a:LRdir>}\TitleMark\HtmlParOff}
    {\HCode{</h2>}\HtmlParOn \EndNoFonts \IgnoreIndent \par}
 \Configure{chapterTITLE+}{\thesection\space#1}
-_-_-

<..mw rep/bk divs..>+
 \Configure{likechapter}{}{}
    {\ifvmode \IgnorePar\fi
     \EndP\IgnorePar\HCode{<h2 class="likechapterHead"\a:LRdir>}\HtmlParOff}
    {\HCode{</h2>}\HtmlParOn \IgnoreIndent \par}
 \Configure{likechapterTITLE+}{#1}
-_-_-

<..mwcls divs..>+
 \ConfigureMark{section}
    {\ifHeadingNumbered \HCode{<span class="titlemark">}\mw@seccntformat
     \HeadingNumber \HCode{</span>}\fi}
 \Configure{section}{}{}
    {\NoFonts \ifvmode \IgnorePar\fi \EndP\IgnorePar
     \HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark\NoFonts\HtmlParOff}
    {\HCode{</h3>}\HtmlParOn \EndNoFonts \ShowPar \IgnoreIndent \par}
 \Configure{sectionTITLE+}{\thesection\space#1}
-_-_-

<..mwcls divs..>+
 \Configure{likesection}{}{}
    {\ifvmode \IgnorePar\fi
     \EndP\IgnorePar\HCode{<h3 class="likesectionHead"\a:LRdir>}\HtmlParOff}
    {\HCode{</h3>}\HtmlParOn \IgnoreIndent \par}
 \Configure{likesectionTITLE+}{#1}
-_-_-

<..mwcls divs..>+
 \Configure{paragraph}{}{}
   {\par\ShowPar\IgnoreIndent\HCode{<span
       class="paragraphHead"\a:LRdir>}\begingroup\bf}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.paragraphHead, .likeparagraphHead
    { margin-top:2em; font-weight: bold;}}
-_-_-

<..mwcls divs..>+
 \Configure{likeparagraph}{}{}
   {\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
   {\HCode{</span>}\IgnorePar}
-_-_-

<..mwcls divs..>+
 \ConfigureMark{subparagraph}{}
 \Configure{subparagraph}{}{}
   {\par\ShowPar\IgnoreIndent
    \HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
    \TitleMark\space}
   {\endgroup\HCode{</span>}\IgnorePar}
 \Css{.subparagraphHead, .likesubparagraphHead
    { font-weight: bold;}}
-_-_-

<..mwcls divs..>+
 \Configure{likesubparagraph}{}{}
   {\par\ShowPar\IgnoreIndent
    \HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
   {\endgroup\HCode{</span>}\IgnorePar}
-_-_-

<..mwcls divs..>+
 \Configure{endpart}{likepart}
 \Configure{endlikepart}{endpart}
 \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{endparagraph}
    {likeparagraph,subsubsection,likesubsubsection,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}
-_-_-

<..mwcls tocs..>
 \ConfigureToc{part}
   {\HCode{<div class="partToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}. }
   {}
   {\HCode{</div>}}
 \ConfigureToc{likepart}
   {\HCode{<div class="likepartToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}}
   {}
   {\HCode{</div>}}
 \ConfigureToc{section}
   {\HCode{<div class="sectionToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}. }
   {}
   {\HCode{</div>}}
 \ConfigureToc{likesection}
   {\HCode{<div class="likesectionToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}}
   {}
   {\HCode{</div>}}
 \ConfigureToc{subsection}
   {\HCode{<div class="subsectionToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}. }
   {}
   {\HCode{</div>}}
 \ConfigureToc{likesubsection}
   {\HCode{<div class="likesubsectionToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}}
   {}
   {\HCode{</div>}}
 \ConfigureToc{subsubsection}
   {\HCode{<div class="subsubsectionToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}. }
   {}
   {\HCode{</div>}}
 \ConfigureToc{likesubsubsection}
   {\HCode{<div class="likesubsubsectionToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}}
   {}
   {\HCode{</div>}}
 \ConfigureToc{paragraph}
   {\HCode{<div class="paragraphToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}. }
   {}
   {\HCode{</div>}}
 \ConfigureToc{likeparagraph}
   {\HCode{<div class="likeparagraphToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}}
   {}
   {\HCode{</div>}}
 \ConfigureToc{subparagraph}
   {\HCode{<div class="subparagraphToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}. }
   {}
   {\HCode{</div>}}
 \ConfigureToc{likesubparagraph}
   {\HCode{<div class="likesubparagraphToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}}
   {}
   {\HCode{</div>}}
-_-_-

<..mw rep/bk tocs..>
 \ConfigureToc{chapter}
   {\HCode{<div class="chapterToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}. }
   {}
   {\HCode{</div>}}
 \ConfigureToc{likechapter}
   {\HCode{<div class="likechapterToc" \a:LRdir><span class="mark">}}
   {\HCode{</span>}}
   {}
   {\HCode{</div>}}
-_-_-

<..mwcls tocs..>+
 \Css{.partToc a, .partToc, .likepartToc a, .likepartToc
         {line-height: 200\%; font-weight:bold; font-size:110\%;}}
 \Css{.partToc, .likepartToc{text-align:center;margin-bottom:0.25em;
            margin-top:0.25em;}}
-_-_-

<..mwart tocs..>
 \Css{.sectionToc, .likesectionToc            {white-space: nowrap;}}
 \Css{.subsectionToc, .likesubsectionToc
                             {margin-left:1em; white-space: nowrap;}}
 \Css{.subsubsectionToc, .likesubsubsectionToc
                             {margin-left:2em; white-space: nowrap;}}
 \Css{.paragraphToc, .likeparagraphToc
                             {margin-left:3em; white-space: nowrap;}}
 \Css{.subparagraphToc, .likesubparagraphToc
                             {margin-left:4em; white-space: nowrap;}}
-_-_-

<..mw rep/bk tocs..>+
 \Css{.chapterToc, .likechapterToc            {white-space: nowrap;}}
 \Css{.sectionToc, .likesectionToc
                             {margin-left:1em; white-space: nowrap;}}
 \Css{.subsectionToc, .likesubsectionToc
                             {margin-left:2em; white-space: nowrap;}}
 \Css{.subsubsectionToc, .likesubsubsectionToc
                             {margin-left:3em; white-space: nowrap;}}
 \Css{.paragraphToc, .likeparagraphToc
                             {margin-left:4em; white-space: nowrap;}}
 \Css{.subparagraphToc, .likesubparagraphToc
                             {margin-left:5em; white-space: nowrap;}}
-_-_-