summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-ooffice.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-09 03:00:53 +0000
committerNorbert Preining <norbert@preining.info>2022-01-09 03:00:53 +0000
commitfbacb8167ccd172bb0b177974778f228ad41691d (patch)
tree8ad1c76a4dabddbc25abf75b1bc14238e811e9c4 /support/TeX4ht/source/tex4ht-ooffice.tex
parentcd2e7ab7ef89a5c3c1935281009729bff0f357e2 (diff)
CTAN sync 202201090300
Diffstat (limited to 'support/TeX4ht/source/tex4ht-ooffice.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-ooffice.tex57
1 files changed, 50 insertions, 7 deletions
diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex
index 66a160768c..f2f35a664e 100644
--- a/support/TeX4ht/source/tex4ht-ooffice.tex
+++ b/support/TeX4ht/source/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 1045 2021-12-29 15:03:05Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 1052 2022-01-07 13:10:15Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -84,7 +84,7 @@ tail>>>
\<try env inline par\><<<
-\ShowPar
+\par\ShowPar
>>>
\<try inline par\><<<
@@ -1856,8 +1856,10 @@ change the configuration slightly. We modify directly the
{\EndP\HCode{<text:p
text:style-name="Inside-enumerate|<cond rtl class|>"
>}}
- {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}}
- {\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
+ {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}
+ \gHAdvance\BegEnd:D by 1%
+ }
+ {\gHAdvance\BegEnd:D by -1\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
</\text:orderedlist>\Hnewline}\ShowPar}
{\EndP\end@Item\DeleteMark}
{\HCode{<text:list-item>}\par\ShowPar
@@ -2028,8 +2030,11 @@ change the configuration slightly. We modify directly the
{\EndP\HCode{<text:p
text:style-name="Inside-enumerate|<cond rtl class|>"
>}}
- {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}}
- {\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
+ {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}
+ \gHAdvance\BegEnd:D by 1%
+ }
+ {\gHAdvance\BegEnd:D by -1%
+ \EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
</\text:orderedlist>\Hnewline}\ShowPar}
{\EndP\end@Item \let\sv:DeleteMark\DeleteMark
\let\DeleteMark\DeleteMark: \DeleteMark}
@@ -3320,32 +3325,70 @@ See html4 comment regarding \verb+\Configure{jbanchor}{\Link}{\EndLink}+
-
\<configure ooffice latex\><<<
\HAssign\BegEnd:N=0
\HAssign\BegEnd:D=0
>>>
+We use ODT sections for various environements,
+especially for changed text alignment.
+
+These sections are not rendered in some contexts,
+for example in enumerate items. So we need
+to have a mechanism to disable them.
+
+I don't even think that these sections are usefull
+at all, as the text alignment in these environments
+seems to work regardless of the section use.
+
+We will print section tags only when BedEnd:X is
+zero. The following commands increase and decrease
+this counter. This should handle nesting.
+
+\<configure ooffice latex\><<<
+\HAssign\BegEnd:X=0
+\def\:DisableSections{\gHAdvance\BegEnd:X by 1}
+\def\:EnableSections{\gHAdvance\BegEnd:X by -1}
+>>>
+
+We also provide an option to dispable sections
+completelly.
+
+
+\<configure ooffice latex\><<<
+\:CheckOption{NoSections}\if:Option
+\HAssign\BegEnd:X=9999% use some really high number
+\else
+\Log:Note{To disable use of sections for text
+ alignment environemnts, use the "NoSections"
+ option}
+\fi
+>>>
\<begin env section\><<<
\ifvmode \IgnorePar\fi \EndP
+\ifnum\BegEnd:X=0%
\ifnum \BegEnd:D=0
|<sectioned env|>%
\else
|<boxed env|>%
\fi
\gHAdvance\BegEnd:D by 1
+\fi
>>>
\<end env section\><<<
\gHAdvance\BegEnd:D by -1
\ifvmode \IgnorePar\fi\EndP
+\ifnum\BegEnd:X=0%
\ifnum \BegEnd:D=0
|<end sectioned env|>%
\else
|<end boxed env|>%
\fi
+\else\par%
+\fi
>>>