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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Jun 6 12:44:02 CEST 2019


Author: michal_h21
Date: 2019-06-06 13:44:01 +0300 (Thu, 06 Jun 2019)
New Revision: 571

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added support for the Memoir \book command

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-05-27 06:53:24 UTC (rev 570)
+++ trunk/lit/ChangeLog	2019-06-06 10:44:01 UTC (rev 571)
@@ -1,3 +1,8 @@
+2019-06-06  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (memoir.4ht),
+	tex4ht-html4.tex (html4.4ht): added support for the \book command.
+
 2019-05-27  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (fontspec-4ht.lua): current LuaTeX needs + sign before

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-05-27 06:53:24 UTC (rev 570)
+++ trunk/lit/tex4ht-4ht.tex	2019-06-06 10:44:01 UTC (rev 571)
@@ -14347,6 +14347,11 @@
 \HLet\tableofcontents\:tempc
 >>>
 
+Support for the \Verb=\book= command
+\<memoir cfg\><<<
+\Def:Section\book{\thebook}{#1}
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \Section{verse}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2019-05-27 06:53:24 UTC (rev 570)
+++ trunk/lit/tex4ht-html4.tex	2019-06-06 10:44:01 UTC (rev 571)
@@ -9891,6 +9891,14 @@
 \Css{.poemline {text-align:right; width:6em;}}
 
 \Configure{legend}{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="legend">}}{\HCode{</div>}}
+
+\Configure{book}
+{\ifvmode\IgnorePar\fi\EndP\HCode{<h2 class="bookHead"><span class="booknumber">}%
+\bookname\refstepcounter{book}\space\thebook\HtmlParOff\HCode{</span><span class="booktitle">}}
+{\HCode{</span></h2>}\HtmlParOn}{}{}
+\Css{.booknumber{display:block;}}
+\Configure{toToc}{book}{part}
+
 >>>
 
 



More information about the tex4ht-commits mailing list