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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Jan 19 15:11:34 CET 2022


Author: michal_h21
Date: 2022-01-19 14:11:34 +0000 (Wed, 19 Jan 2022)
New Revision: 1059

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
Added support for framed boxes

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-01-18 19:46:37 UTC (rev 1058)
+++ trunk/lit/ChangeLog	2022-01-19 14:11:34 UTC (rev 1059)
@@ -1,3 +1,8 @@
+2022-01-19  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-ooffice.tex (ooffice.4ht): added support for the Framed
+	package's boxes.
+
 2022-01-18  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-fonts-noncjk.tex (

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2022-01-18 19:46:37 UTC (rev 1058)
+++ trunk/lit/tex4ht-ooffice.tex	2022-01-19 14:11:34 UTC (rev 1059)
@@ -7589,7 +7589,46 @@
    {\HCode{</text:span>}}%
 >>>
 
+%%%%%%%%%%%%%%%%%%
+\section{frames}
+%%%%%%%%%%%%%%%%%
 
+Basic support for framed boxes. 
+
+\subsection{framed.sty}
+
+\<configure ooffice framed\><<<
+|<framedbox|>
+|<framedbox style|>
+
+>>>
+
+I've found that the framed box must be placed inside paragraph. It doesn't matter that it can contain
+nested paragraphs, it still works, unlike in HTML, where nested paragraphs are invalid.
+
+I've found this solution by investigating of the code that LO creates for frame boxes.
+It seems that it is a best method how to come with solutions that work in the ODT format.
+
+\<framedbox\><<<
+\Configure{makeframed}
+{\ifvmode\IgnorePar\fi\EndP%
+  \HCode{<text:p><draw:frame draw:style-name="framebox" text:anchor-type="as-char" svg:width="100\%">\Hnewline
+  <draw:text-box>}\par\ShowPar%
+}
+{\ifvmode\IgnorePar\fi\EndP\HCode{</draw:text-box></draw:frame></text:p>}\par\ShowPar}
+>>>
+
+\<framedbox style\><<<
+\NewConfigureOO{framebox} 
+\ConfigureOO{framebox}
+{<style:style style:name="framebox" style:family="graphic" style:class="text">\Hnewline
+  <style:graphic-properties style:vertical-pos="from-top" style:vertical-rel="paragraph" 
+  style:horizontal-pos="from-left" style:horizontal-rel="paragraph" fo:padding="0.25cm" 
+  fo:border="0.06pt solid \#000000"/>
+  </style:style>
+}
+>>>
+
 %%%%%%%%%%%%%%%%%%
 \section{Pictures}
 %%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.