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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Fri Dec 8 10:11:50 CET 2017


Author: michal_h21
Date: 2017-12-08 11:11:50 +0200 (Fri, 08 Dec 2017)
New Revision: 353

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added sectionbreak package support and fixed the Makefile

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2017-12-06 21:32:33 UTC (rev 352)
+++ trunk/lit/ChangeLog	2017-12-08 09:11:50 UTC (rev 353)
@@ -1,3 +1,11 @@
+2017-12-08  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht),
+	* tex4ht-4ht.tex (sectionbreak.4ht): added support for the sectionbreak
+	package
+	* Makefile: request compilation of tex4ht-cond4ht.tex before 
+	tex4ht-4ht.tex. 
+	
 2017-12-06  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht), 

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2017-12-06 21:32:33 UTC (rev 352)
+++ trunk/lit/Makefile	2017-12-08 09:11:50 UTC (rev 353)
@@ -38,6 +38,8 @@
 common_info = $(common) common-info.tex
 derived = 
 
+derived += $(tex4ht_cond4ht_derived)
+tex4ht_cond4ht_derived = cond4ht.4ht mktex4ht.4ht
 derived += $(tex4ht_4ht_derived)
 tex4ht_4ht_derived = \
   algorithmic.4ht animate.4ht authblk.4ht \
@@ -52,7 +54,8 @@
   nameref.4ht \
   quoting.4ht \
   reading.4ht \
-  scrartcl.4ht scrbook.4ht scrreprt.4ht skak.4ht spanish.4ht subscript.4ht \
+  scrartcl.4ht scrbook.4ht scrreprt.4ht sectionbreak.4ht \
+	skak.4ht spanish.4ht subscript.4ht \
   titlesec.4ht tocloft.4ht tuenc-luatex.4ht tuenc-xetex.4ht \
   usepackage.4ht usepackage-fontspec.4ht \
   wrapfig.4ht \
@@ -65,8 +68,6 @@
 derived += $(tex4ht_c_derived)
 tex4ht_c_derived = tex4ht.c
 
-derived += $(tex4ht_cond4ht_derived)
-tex4ht_cond4ht_derived = cond4ht.4ht mktex4ht.4ht
 
 derived += $(tex4ht_docbook_derived)
 tex4ht_docbook_derived = docbook.4ht docbook-math.4ht docbook-mml.4ht

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2017-12-06 21:32:33 UTC (rev 352)
+++ trunk/lit/mktex4ht-cnf.tex	2017-12-08 09:11:50 UTC (rev 353)
@@ -330,4 +330,5 @@
 \AddFile{9}{mdframed}
 \AddFile{9}{skak}
 \AddFile{9}{animate}
+\AddFile{9}{sectionbreak}
 % \AddFile{9}{mktex4ht}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2017-12-06 21:32:33 UTC (rev 352)
+++ trunk/lit/tex4ht-4ht.tex	2017-12-08 09:11:50 UTC (rev 353)
@@ -3940,7 +3940,26 @@
 \Hinput{animate}
 >>> \AddFile{9}{animate}
 
+%%%%%%%%%%%%%%%%%%
+\Section{sectionbreak.sty}
+%%%%%%%%%%%%%%%%%%
 
+\<sectionbreak.4ht\><<<
+% sectionbreak.4ht (|version), generated from |jobname.tex
+% Copyright 2017 TeX Users Group
+|<TeX4ht license text|>
+\NewConfigure{sectionbreak}{2}
+\NewConfigure{asterism}{1}
+
+\renewcommand\sectionbreak[1][\sectionbreak at mark]{%
+  \a:sectionbreak\bgroup\sectionbreak at style #1\egroup\b:sectionbreak%
+}
+
+\renewcommand\asterism{\a:asterism}
+
+\Hinput{sectionbreak}
+>>> \AddFile{9}{sectionbreak}
+
 \Section{url.sty}
 %%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2017-12-06 21:32:33 UTC (rev 352)
+++ trunk/lit/tex4ht-html4.tex	2017-12-08 09:11:50 UTC (rev 353)
@@ -21691,6 +21691,20 @@
 >>>
 
 
+\<configure html4 sectionbreak\><<<
+\Configure{sectionbreak}{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="sectionbreak">}}{\HCode{</div>}}
+
+\Css{div.sectionbreak{
+  margin-top:3rem;
+  margin-bottom:3rem;
+  text-align:center;
+}}
+
+% use the asterism HTML entity
+\Configure{asterism}{\HCode{\string&\:sharp8258;}}
+>>>
+
+
 \<configure html4 booktabs\><<<
 \Configure{toprule}
    {|<booktabs rule mag|>%



More information about the tex4ht-commits mailing list