summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex41
1 files changed, 40 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
index 663fdb47116..29e849348fb 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 1056 2022-01-12 22:24:14Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 1059 2022-01-19 14:11:34Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -7589,6 +7589,45 @@ The section style can't be in style.xml?
{\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}