| 1 |
% titlesec.4ht (2021-03-02-13:43), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 2000-2009 Eitan M. Gurari |
| 3 |
% Copyright 2009-2021 TeX Users Group |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3c of this license or (at your option) any |
| 8 |
% later version. The latest version of this license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions |
| 11 |
% of LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status "maintained". |
| 14 |
% |
| 15 |
% The Current Maintainer of this work |
| 16 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
| 17 |
% |
| 18 |
% If you modify this program, changing the |
| 19 |
% version identification would be appreciated. |
| 20 |
\immediate\write-1{version 2021-03-02-13:43} |
| 21 |
|
| 22 |
\ifx \ttl@assign@ii\:Undef |
| 23 |
\ifx \ttl@sect\:UnDef\else |
| 24 |
\pend:defII\ttl@sect{% |
| 25 |
\@ifstar {}{\SkipRefstepAnchor}} |
| 26 |
\let\ttl:select=\ttl@select |
| 27 |
\def\ttl@select#1#2#3#4#5{% |
| 28 |
\edef\sc:tp{\ifttl@label\else like\fi #1}\def\c:secnumdepth{#5}% |
| 29 |
\ttl:select{#1}{#2}{#3}{#4}{#5}} |
| 30 |
\let\ttl@write\:gobbleIII |
| 31 |
|
| 32 |
\fi |
| 33 |
\ifx \ttl@useclass\:UnDef\else |
| 34 |
\pend:defII\ttl@useclass{% |
| 35 |
\@ifstar {}{\SkipRefstepAnchor}} |
| 36 |
\let\ttl:select\ttl@select |
| 37 |
\def\ttl@select#1{% |
| 38 |
\edef\sc:tp{\ifttl@label\else like\fi |
| 39 |
#1}\def\c:secnumdepth{\@nameuse{ttll@#1}}% |
| 40 |
\ttl:select{#1}} |
| 41 |
\let\ttl@write\:gobbleII |
| 42 |
\let\ttl@glcmds\relax |
| 43 |
\let\ttl@beginlongest\@empty |
| 44 |
\let\ttl@midlongest\@empty |
| 45 |
\let\ttl@endlongest\@empty |
| 46 |
|
| 47 |
\fi |
| 48 |
\let\ttlh:hang\ttlh@hang |
| 49 |
\def\ttlh@hang#1#2#3#4#5#6#7#8{% |
| 50 |
\HtmlEnv |
| 51 |
\expandafter\def\csname thetitle\sc:tp\endcsname{#2}% |
| 52 |
\csname no:\sc:tp\endcsname{#8}% |
| 53 |
\par \ttlh:hang{}{}{#3}{}{}{#6}{#7}{}} |
| 54 |
\let\:seccntformat=\@seccntformat |
| 55 |
\def\@seccntformat#1{\ifnum 0=0\the\csname c@#1\endcsname\else |
| 56 |
\:seccntformat{#1}\fi} |
| 57 |
|
| 58 |
\else |
| 59 |
\let\ttl:straight@i\ttl@straight@i |
| 60 |
\def\ttl@straight@i#1[#2]#3{% |
| 61 |
\gdef\NR:Title{\a:newlabel{#3}}% |
| 62 |
% |
| 63 |
\ifttl@label \else |
| 64 |
\def\:temp{#1}\edef\:tempa{\expandafter |
| 65 |
\expandafter\expandafter\:gobble |
| 66 |
\expandafter\string\csname section\endcsname}\ifx \:temp\:tempa \else |
| 67 |
\edef\:tempa{\expandafter\expandafter\expandafter\:gobble |
| 68 |
\expandafter\string\csname subsection\endcsname}\ifx \:temp\:tempa \else |
| 69 |
{\ttl@labeltrue \ttl@addcontentsline{like#1}{#3}}% |
| 70 |
\fi |
| 71 |
% |
| 72 |
\fi |
| 73 |
% |
| 74 |
\fi |
| 75 |
\edef\sc:tp{\ifttl@label\else like\fi #1}% |
| 76 |
\ttl:straight@i{#1}[{#2}]{#3}% |
| 77 |
} |
| 78 |
\def\ttlh@hang#1#2#3#4#5#6#7#8{% |
| 79 |
\def\c:secnumdepth{\@nameuse{ttll@\sc:tp}}% |
| 80 |
\:StartSec {\sc:tp}{% |
| 81 |
\ifttl@label \ifnum \c:secnumdepth >\c@secnumdepth |
| 82 |
\else \csname the\sc:tp\endcsname \fi \fi |
| 83 |
}{#8}% |
| 84 |
} |
| 85 |
\def\:tempc#1#2#3#4{% |
| 86 |
\begingroup |
| 87 |
\let\everypar\@gobble% don't let titlesec to break our paragraph handling |
| 88 |
\edef\sc:tp{\ifttl@label\else like\fi #1}% |
| 89 |
\let\ttl@savewrite\empty |
| 90 |
\o:ttl@select:{#1}{#2}{#3}{#4} |
| 91 |
\endgroup |
| 92 |
} |
| 93 |
|
| 94 |
\HLet\ttl@select\:tempc |
| 95 |
\let\ttlh@runin\ttlh@hang |
| 96 |
\let\ttlh@display\ttlh@hang |
| 97 |
\def\ttl@addcontentsline#1#2{\nobreak} |
| 98 |
|
| 99 |
\fi |
| 100 |
\Hinput{titlesec} |
| 101 |
\endinput |
| 102 |
|