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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Oct 19 14:30:27 CEST 2021


Author: michal_h21
Date: 2021-10-19 12:30:26 +0000 (Tue, 19 Oct 2021)
New Revision: 997

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
Added subtitle support in odt format

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-10-19 08:41:34 UTC (rev 996)
+++ trunk/lit/ChangeLog	2021-10-19 12:30:26 UTC (rev 997)
@@ -1,5 +1,8 @@
 2021-10-19  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-ooffice.tex (ooffice.4ht): added subtitle support.
+	https://puszcza.gnu.org.ua/bugs/?507
+
 	* tex4ht-html4.tex (html4.4ht): added subtitle support.
 
 	* tex4ht-4ht.tex (scrartcl.4ht, scrbook.4ht, scrreprt.4ht): added support

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2021-10-19 08:41:34 UTC (rev 996)
+++ trunk/lit/tex4ht-ooffice.tex	2021-10-19 12:30:26 UTC (rev 997)
@@ -1560,6 +1560,48 @@
    {\ifvmode \IgnorePar\fi\EndP \HCode{</text:p>}}
 >>>
 
+Koma classes have subtitle command and option.
+
+\<scr subtitle\><<<
+\Configure{subtitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<text:p text:style-name="subtitle|<cond rtl class|>">}}{\HCode{</text:p>}}
+
+\NewConfigureOO{subtitle}
+\ConfigureOO{subtitle}{%
+<style:style style:name="subtitle"
+             style:family="paragraph"
+             style:parent-style-name="Heading"
+             style:next-style-name="author"
+             style:class="chapter">\Hnewline
+<style:paragraph-properties  fo:margin-top="0.42cm"
+                  fo:margin-bottom="0.51cm"
+                  fo:font-size="20pt"
+                  fo:font-weight="normal"
+                  style:font-size-asian="18pt"
+                  style:font-weight-asian="bold"
+                  style:font-size-complex="18pt"
+                  style:font-weight-complex="bold"
+                  fo:text-align="center"
+                  style:justify-single-word="false"/>
+</style:style> \Hnewline <style:style style:name="subtitle-rtl"
+             style:family="paragraph"
+             style:parent-style-name="Heading-rtl"
+             style:next-style-name="author-rtl"
+             style:class="chapter">\Hnewline
+<style:paragraph-properties  fo:margin-top="0.42cm"
+                  fo:margin-bottom="0.51cm"
+                  fo:font-size="20pt"
+                  fo:font-weight="normal"
+                  style:font-size-asian="18pt"
+                  style:font-weight-asian="bold"
+                  style:font-size-complex="18pt"
+                  style:font-weight-complex="bold"
+                  fo:text-align="center"
+                  style:justify-single-word="false"
+                  style:writing-mode="rl-tb" />
+</style:style> \Hnewline
+ }
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \section{Abstract}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -9075,6 +9117,7 @@
 
 \<configure ooffice scrbook\><<<
 |<ooffice title page|>
+|<scr subtitle|>
 |<content styles|>
 |<chap tocs|>
 |<scr chap tocs|>
@@ -9093,6 +9136,7 @@
 
 \<configure ooffice scrreprt\><<<
 |<ooffice title page|>
+|<scr subtitle|>
 |<scr abstract|>
 |<content styles|>
 |<chap tocs|>
@@ -9111,6 +9155,7 @@
 
 \<configure ooffice scrartcl\><<<
 |<ooffice title page|>
+|<scr subtitle|>
 |<scr abstract|>
 |<content styles|>
 |<ooffice bib with bibname|>



More information about the tex4ht-commits mailing list.