[tex4ht-commits] [SCM] tex4ht updated: r1523 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon May 27 16:16:05 CEST 2024


Author: michal_h21
Date: 2024-05-27 14:16:04 +0000 (Mon, 27 May 2024)
New Revision: 1523

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
working on jurabook

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-05-22 20:28:13 UTC (rev 1522)
+++ trunk/lit/ChangeLog	2024-05-27 14:16:04 UTC (rev 1523)
@@ -1,3 +1,10 @@
+2024-05-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (jurabook.4ht, juraovw.4ht, juraurtl.4ht),
+	* tex4ht-html4.tex (html4.4ht): added support for custom sectioning
+	commands provided by Jurabook.
+	https://github.com/michal-h21/make4ht/issues/148
+
 2024-05-22  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (imakeidx.4ht): added support for the

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2024-05-22 20:28:13 UTC (rev 1522)
+++ trunk/lit/mktex4ht-cnf.tex	2024-05-27 14:16:04 UTC (rev 1523)
@@ -111,6 +111,9 @@
 \AddFile{9}{scrbook}
 \AddFile{9}{scrartcl}
 \AddFile{9}{scrreprt}
+\AddFile{9}{jurabook}
+\AddFile{9}{juraurtl}
+\AddFile{9}{juraovw}
 \AddFile{6}{letter}
 \AddFile{9}{elsart}
 \AddFile{9}{apa}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-05-22 20:28:13 UTC (rev 1522)
+++ trunk/lit/tex4ht-4ht.tex	2024-05-27 14:16:04 UTC (rev 1523)
@@ -19223,6 +19223,100 @@
    \HtmlEnv \Toc:Title{#1}\:addchap{#2}}
 >>>
 
+%%%%%%%%%%%%%%%%%%
+\Chapter{juramisc}
+%%%%%%%%%%%%%%%%%%
+
+Classes in the Juramisc bundle
+
+\<jurabook.4ht\><<<
+% jurabook.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht copywrite|>
+|<jurabook subsections|>
+|<jurabook toc|>
+\Hinput{jurabook}
+>>>        \AddFile{9}{jurabook}
+
+\<juraurtl.4ht\><<<
+% juraurtl.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht copywrite|>
+\Hinput{juraurtl}
+>>>        \AddFile{9}{juraurtl}
+
+\<juraovw.4ht\><<<
+% juraovw.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht copywrite|>
+\Hinput{juraovw}
+>>>        \AddFile{9}{juraovw}
+
+\Section{Jurabook sections}
+
+Jurabook defines lot of extra sectioning commands, so we need to 
+define them. Other than that, it reuses classic LaTeX classes, so 
+other sectioning commands should work out of the box.
+
+\<jurabook subsections\><<<
+\let\no at subthreesection\subthreesection
+\Def:Section\subthreesection{\ifnum \c:secnumdepth>\c at secnumdepth   \else
+   \thesubthreesection \fi}{#1}
+\let\no:subthreesection\subthreesection
+\def\subthreesection{\rdef:sec{subthreesection}}
+
+\let\no at subfoursection\subfoursection
+\Def:Section\subfoursection{\ifnum \c:secnumdepth>\c at secnumdepth   \else
+   \thesubfoursection \fi}{#1}
+\let\no:subfoursection\subfoursection
+\def\subfoursection{\rdef:sec{subfoursection}}
+
+\let\no at subfivesection\subfivesection
+\Def:Section\subfivesection{\ifnum \c:secnumdepth>\c at secnumdepth   \else
+   \thesubfivesection \fi}{#1}
+\let\no:subfivesection\subfivesection
+\def\subfivesection{\rdef:sec{subfivesection}}
+
+\let\no at subsixsection\subsixsection
+\Def:Section\subsixsection{\ifnum \c:secnumdepth>\c at secnumdepth   \else
+   \thesubsixsection \fi}{#1}
+\let\no:subsixsection\subsixsection
+\def\subsixsection{\rdef:sec{subsixsection}}
+
+
+\let\no at subsevensection\subsevensection
+\Def:Section\subsevensection{\ifnum \c:secnumdepth>\c at secnumdepth   \else
+   \thesubsevensection \fi}{#1}
+\let\no:subsevensection\subsevensection
+\def\subsevensection{\rdef:sec{subsevensection}}
+
+
+\let\no at subeightsection\subeightsection
+\Def:Section\subeightsection{\ifnum \c:secnumdepth>\c at secnumdepth   \else
+   \thesubeightsection \fi}{#1}
+\let\no:subeightsection\subeightsection
+\def\subeightsection{\rdef:sec{subeightsection}}
+>>>
+
+We need to include these sectionins in the TOC
+
+\<jurabook toc\><<<
+\NewConfigure{tableofcontents*}[1]{%
+   \def\:tempa{#1}\ifx\empty\:tempa
+      \ifx \au:StartSec\:UnDef \else \gdef\:StartSec{\au:StartSec}\fi
+   \else
+      \edef\auto:toc{#1}%
+         \ifx \au:StartSec\:UnDef
+            \let\au:StartSec\:StartSec
+            \def\:StartSec{\:tableofcontents
+               \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}%
+            \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}%
+   \fi  \fi
+}
+
+\Configure{tableofcontents*}{part,chapter,section,subsection,subsubsection,subthreesection,subfoursection,subfivesection,subsixsection,subsevensection,subeightsection}
+>>>
+
 %%%%%%%%%%%%%%%%%%%
 \Chapter{letter}
 %%%%%%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2024-05-22 20:28:13 UTC (rev 1522)
+++ trunk/lit/tex4ht-html4.tex	2024-05-27 14:16:04 UTC (rev 1523)
@@ -9041,9 +9041,71 @@
 
 
 
+%%%%%%%%%%%%%%%%%%
+\section{juramisc}
+%%%%%%%%%%%%%%%%%%
 
+\<configure html4 jurabib\><<<
+|<jurabib sections|>
+|<jurabib toc|>
+>>>
 
+\<configure html4 juraurtl\><<<
+>>>
 
+\<configure html4 juraovw\><<<
+>>>
+
+\<jurabib sections\><<<
+\Configure{subthreesection}
+   {}{}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{<h5 class="subthreesection">}\TitleMark\space}    {\HCode{</h5>}\par\ShowPar}
+
+\ConfigureMark{subthreesection}{\HCode{<span class="titlemark">}\thesubthreesection\HCode{</span>}}
+
+\Configure{subfoursection}
+   {}{}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{<h5 class="subfoursection">}\TitleMark\space}    {\HCode{</h5>}\par\ShowPar}
+
+\ConfigureMark{subfoursection}{\HCode{<span class="titlemark">}\thesubfoursection\HCode{</span>}}
+
+\Configure{subfivesection}
+   {}{}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{<h5 class="subfivesection">}\TitleMark\space}    {\HCode{</h5>}\par\ShowPar}
+
+\ConfigureMark{subfivesection}{\HCode{<span class="titlemark">}\thesubfivesection\HCode{</span>}}
+
+\Configure{subsixsection}
+   {}{}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{<h5 class="subsixsection">}\TitleMark\space}    {\HCode{</h5>}\par\ShowPar}
+
+\ConfigureMark{subsixsection}{\HCode{<span class="titlemark">}\thesubsixsection\HCode{</span>}}
+
+
+\Configure{subsevensection}
+   {}{}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{<h5 class="subsevensection">}\TitleMark\space}    {\HCode{</h5>}\par\ShowPar}
+
+\ConfigureMark{subsevensection}{\HCode{<span class="titlemark">}\thesubsevensection\HCode{</span>}}
+
+
+\Configure{subeightsection}
+   {}{}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{<h5 class="subeightsection">}\TitleMark\space}    {\HCode{</h5>}\par\ShowPar}
+
+\ConfigureMark{subeightsection}{\HCode{<span class="titlemark">}\thesubeightsection\HCode{</span>}}
+>>>
+
+\<jurabib toc\><<<
+\def\tocsubthreesection#1#2#3{\par\toc:num{subthreesection}{#1}{#2}\par}
+\def\tocsubfoursection#1#2#3{\par\toc:num{subfoursection}{#1}{#2}\par}
+\def\tocsubfivesection#1#2#3{\par\toc:num{subfivesection}{#1}{#2}\par}
+\def\tocsubsixsection#1#2#3{\par\toc:num{subsixsection}{#1}{#2}\par}
+\def\tocsubsevensection#1#2#3{\par\toc:num{subsevensection}{#1}{#2}\par}
+\def\tocsubeightsection#1#2#3{\par\toc:num{subeightsection}{#1}{#2}\par}
+
+>>>
+
 %%%%%%%%%%%%%%%%%%
 \section{letter}
 %%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.