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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Oct 19 10:41:34 CEST 2021


Author: michal_h21
Date: 2021-10-19 08:41:34 +0000 (Tue, 19 Oct 2021)
New Revision: 996

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added support for \subtitle command in koma classes

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-10-18 13:45:08 UTC (rev 995)
+++ trunk/lit/ChangeLog	2021-10-19 08:41:34 UTC (rev 996)
@@ -1,3 +1,11 @@
+2021-10-19  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): added subtitle support.
+
+	* tex4ht-4ht.tex (scrartcl.4ht, scrbook.4ht, scrreprt.4ht): added support
+	for \subtitle command.
+	https://puszcza.gnu.org.ua/bugs/?507
+
 2021-10-18  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html5.tex (html5.4ht): removed CSS declaration that prevented

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-10-18 13:45:08 UTC (rev 995)
+++ trunk/lit/tex4ht-4ht.tex	2021-10-19 08:41:34 UTC (rev 996)
@@ -16993,6 +16993,7 @@
 |<scr old fonts|>
 \input article.4ht
 |<scr artcl, reprt, book|>
+|<scr artcl subtitle|>
 \Hinput{scrartcl}
 \endinput
 >>>        \AddFile{9}{scrartcl}
@@ -17035,6 +17036,7 @@
       \pend:def\@dedication{\a:dedication}%
       \append:def\@dedication{\b:dedication}%
    \fi
+   |<scr def subtitle|>
 }
 \NewConfigure{dedication}{2}
 >>>
@@ -17053,10 +17055,28 @@
    \pend:def\@author{\a:author}\append:def\@author{\b:author}%
    \pend:def\@date{\a:date}\append:def\@date{\b:date}%
    \def\and{\a:and}
+   |<scr def subtitle|>
 }
 \NewConfigure{dedication}{2}
 >>>
 
+Support for subtitles:
+
+\<scr artcl, reprt, book\><<<
+\NewConfigure{subtitle}{2}
+>>>
+
+\<scr artcl subtitle\><<<
+\pend:def\maketitle{%
+  |<scr def subtitle|>
+}
+>>>
+
+\<scr def subtitle\><<<
+  \pend:def\@subtitle{\a:subtitle}
+  \append:def\@subtitle{\b:subtitle}
+>>>
+
 %%%%%%%%%%%%%%%%%%
 \Section{TOC}
 %%%%%%%%%%%%%%%%%%%
@@ -17122,7 +17142,7 @@
 }
 >>>
 
-%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%
 \Section{other}
 %%%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2021-10-18 13:45:08 UTC (rev 995)
+++ trunk/lit/tex4ht-html4.tex	2021-10-19 08:41:34 UTC (rev 996)
@@ -6197,6 +6197,7 @@
    {\ifvmode \IgnorePar\fi\EndP \HCode{<div class="dedication" >}}
    {\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
 \Css{div.dedication {text-align:center;}}  
+\Css{div.titlepage{ margin-bottom: 2em; text-align:center; }}
 >>>
 
 
@@ -10408,6 +10409,11 @@
    {\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
 >>>
 
+Support for subtitle
+\<scr article,report,book\><<<
+\Configure{subtitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="subtitle">}}{\HCode{</div>}}
+>>>
+
 \<scrbook end units\><<<
 \Configure{endlikeparagraph}
    {paragraph,subsubsection,likesubsubsection,subsection,%



More information about the tex4ht-commits mailing list.