4.2 Sections

  4.2.1 Special Cases for Sectioning Titles
  4.2.2 Titles and Bodies
  4.2.3 End Points

4.2.1 Special Cases for Sectioning Titles

<..latex ltsec..>
 \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
   }
-_-_-

<..nolink ref..>
 \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
-_-_-

<..restore ref..>
 \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
-_-_-

4.2.2 Titles and Bodies

<..book sections..>
 <.article sections.>
 \Configure{chapter}
    {\OpenDiv{chapter}}   {\CloseDiv{chapter}}
    {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
 \Configure{likechapter}
    {\OpenDiv{likechapter}}   {\CloseDiv{likechapter}}
    {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
-_-_-

<..report sections..>
 <.book sections.>
-_-_-

<..article sections..>
 <.amsart + article sec.>
-_-_-

<..TitleMark..>
 \TitleMark
-_-_-

<..sectioning utilities..>
 \def\OpenDiv#1{%
    \IgnorePar\EndP \HCode{<!--l.
        \the\inputlineno--><section\Hnewline role="#1">}%
 }
 \def\CloseDiv#1{%
    \IgnorePar\EndP\HCode{</section><!--end #1-->}%
 }
 \def\AppOpenDiv#1{%
    \IgnorePar\EndP \HCode{<!--l.
        \the\inputlineno--><appendix\Hnewline role="#1">}%
 }
 \def\AppCloseDiv#1{%
    \IgnorePar\EndP\HCode{</appendix><!--end #1-->}%
 }
-_-_-

<..article sections..>+
 \Configure{likepart}
    {\OpenDiv{likepart}}   {\CloseDiv{likepart}}
    {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
 \Configure{likesection}
    {\OpenDiv{likesection}}   {\CloseDiv{likesection}}
    {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
 \Configure{likesubsection}
    {\OpenDiv{likesubsection}}   {\CloseDiv{likesubsection}}
    {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
 \Configure{likesubsubsection}
    {\OpenDiv{likesubsubsection}}   {\CloseDiv{likesubsubsection}}
    {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
 \Configure{likeparagraph}
    {\OpenDiv{likeparagraph}}   {\CloseDiv{likeparagraph}}
    {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
 \Configure{likesubparagraph}
    {\OpenDiv{likesubparagraph}}   {\CloseDiv{likesubparagraph}}
    {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
-_-_-

<..scrbook sections..>
 \Configure{addchap}
    {\OpenDiv{addchap}}   {\CloseDiv{addchap}}
    {\HCode{<title>}}   {\HCode{</title>}\par\ShowPar}
-_-_-

4.2.3 End Points

<..article sections..>+
 \Configure{endlikesection}
      {section,chapter,likechapter,appendix,part,likepart}
 \Configure{endlikesubsection}
    {subsection,section,likesection,chapter,%
       likechapter,appendix,part,likpart}
 \Configure{endlikesubsubsection}
    {subsubsection,subsection,likesubsection,section,%
       likesection,chapter,likechapter,appendix,part,likpart}
 \Configure{endlikeparagraph}
    {paragraph,subsubsection,likesubsubsection,subsection,%
     likesubsection,section,%
     likesection,chapter,likechapter,appendix,part,likpart}
 \Configure{endlikesubparagraph}
    {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
     subsection,likesubsection,section,%
     likesection,chapter,likechapter,appendix,part,likpart}
 \ifx \part\:UnDef \else
    \Configure{endlikepart}{endpart}
 \fi
-_-_-

<..scrbook sections..>+
 
 \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}
 
 \ifx \part\:UnDef \else
    \Configure{endpart}{likepart}
    \Configure{endlikepart}{endpart}
 \fi
-_-_-