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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Oct 18 15:45:08 CEST 2021


Author: michal_h21
Date: 2021-10-18 13:45:08 +0000 (Mon, 18 Oct 2021)
New Revision: 995

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
Fixed issues with abstract in Koma classes

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-10-18 08:59:43 UTC (rev 994)
+++ trunk/lit/ChangeLog	2021-10-18 13:45:08 UTC (rev 995)
@@ -3,6 +3,8 @@
 	* tex4ht-html5.tex (html5.4ht): removed CSS declaration that prevented
 	horizontal scacking of images in figure environment.
 	https://tex.stackexchange.com/a/619302/2891
+	* tex4ht-ooffice.tex (ooffice.4ht): fixed abstract support for Koma classes.
+	https://puszcza.gnu.org.ua/bugs/?507
 
 2021-10-12  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2021-10-18 08:59:43 UTC (rev 994)
+++ trunk/lit/tex4ht-ooffice.tex	2021-10-18 13:45:08 UTC (rev 995)
@@ -1564,6 +1564,36 @@
 \section{Abstract}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+\subsection{Scr}
+
+The paragraph styles are already defined in ooffice title page
+section, which is included by scrartcle and scrreprt before this 
+code.
+
+Koma classess don't contain mandatory abstract title, so we must 
+change the configuration slightly. We modify directly the 
+\verb|\abstractname| command to print XML tags.
+
+\<scr abstract\><<<
+\ConfigureEnv{abstract}
+   {\IgnorePar\EndP \bgroup
+      \Configure{HtmlPar}
+         {\EndP \HCode{<text:p
+                    text:style-name="abstract|<cond rtl class|>">}}
+         {\EndP \HCode{<text:p  
+                    text:style-name="abstract|<cond rtl class|>">}}
+         {\HCode{</text:p>}}
+         {\HCode{</text:p>}}%
+      \par \ShowPar
+   }
+   {\ifvmode \IgnorePar\fi \EndP \egroup \ShowPar\par \IgnoreIndent }
+   {
+     \pend:def\abstractname{\ifvmode \IgnorePar\fi\EndP\HCode{<text:p text:style-name="abstract-title">}}
+     \append:def\abstractname{\HCode{</text:p>}}
+   }
+   {}
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \subsection{LaTeX}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -9063,6 +9093,7 @@
 
 \<configure ooffice scrreprt\><<<
 |<ooffice title page|>
+|<scr abstract|>
 |<content styles|>
 |<chap tocs|>
 |<scr chap tocs|>
@@ -9080,6 +9111,7 @@
 
 \<configure ooffice scrartcl\><<<
 |<ooffice title page|>
+|<scr abstract|>
 |<content styles|>
 |<ooffice bib with bibname|>
 |<ooffice begin-end env|>



More information about the tex4ht-commits mailing list.