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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Apr 5 17:59:08 CEST 2022


Author: michal_h21
Date: 2022-04-05 15:59:08 +0000 (Tue, 05 Apr 2022)
New Revision: 1108

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
provided option to produce inline description lists

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-04-04 14:44:55 UTC (rev 1107)
+++ trunk/lit/ChangeLog	2022-04-05 15:59:08 UTC (rev 1108)
@@ -1,3 +1,9 @@
+2022-04-05  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-ooffice.tex (ooffice.4ht): added option to produce inline
+	description lists.
+	https://puszcza.gnu.org.ua/bugs/?531
+
 2022-04-04  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (minted.4ht),

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2022-04-04 14:44:55 UTC (rev 1107)
+++ trunk/lit/tex4ht-ooffice.tex	2022-04-05 15:59:08 UTC (rev 1108)
@@ -1979,8 +1979,19 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 
+\<configure ooffice latex\><<<     
+\:CheckOption{description-inline}\if:Option
+|<oo-description-inline|>
+\else
+\Log:Note{for description lists where header is in the same paragraph as
+  description, use the `description-inline' command option}
+|<oo-default-description|>
+\fi
+>>>
 
-\<configure ooffice latex\><<<     
+
+
+\<oo-default-description\><<<
 \let\end:itm=\empty
 \ConfigureList{description}%
    {\EndP
@@ -2019,9 +2030,40 @@
 
 
 
+\<oo-description-inline\><<<
+\let\end:itm=\empty
+\ConfigureList{description}%
+   {\EndP
+    \bgroup
+    \HCode{<text:list
+         text:style-name="description\if at rl-rtl\fi"
+         text:name="description"\Hnewline>}%
+      \PushMacro\end:itm
+      \global\let\end:itm=\empty      
+      \HTML:PAR{description-inline|<cond rtl class|>}{description-inline|<cond rtl class|>}%
+      \gHAdvance\BegEnd:D by 1
+   }
+   {\gHAdvance\BegEnd:D by -1
+      \PopMacro\end:itm \global\let\end:itm \end:itm
+      \EndP
+      \HCode{<!--/dd-->}%
+      \HCode{</text:list-item>}
+      \HCode{</text:list>}%
+      \egroup
+      \ShowPar}
+   {\end:itm 
+    \global\def\end:itm{\EndP
+                        \HCode{<!--/dd-->}%
+                        \HCode{</text:list-item>}%
+   }%
+    \HCode{<text:list-item>}\par\ShowPar%
+   }
+   {}
+>>>
 
 
 
+
 \<configure ooffice enumerate\><<<
 |<oo-description for enumerate|>
 >>>
@@ -2060,7 +2102,6 @@
 
 
 
-
 \<oo-description for enumerate\><<<
 \ConfigureOO{enumerate}%
     {|<shared oo+ enumerate style|>%
@@ -2212,6 +2253,16 @@
        fo:font-weight="bold"
   />
 </style:style>
+<style:style
+       style:name="description-inline"
+       style:family="paragraph"
+       style:parent-style-name="">
+  <style:paragraph-properties
+       fo:margin-left="0.35in"
+       fo:margin-right="0in"
+       fo:text-indent="-0.35in"
+       style:auto-text-indent="false"/>
+</style:style>
 >>>
 
 



More information about the tex4ht-commits mailing list.