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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Jan 7 11:28:32 CET 2022


Author: michal_h21
Date: 2022-01-07 10:28:32 +0000 (Fri, 07 Jan 2022)
New Revision: 1049

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
Added NoSections option

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-01-05 13:16:37 UTC (rev 1048)
+++ trunk/lit/ChangeLog	2022-01-07 10:28:32 UTC (rev 1049)
@@ -1,3 +1,8 @@
+2022-01-07  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-ooffice.tex (ooffice.4ht): added NoSection option to
+	disable frames around text alignment environments.
+
 2022-01-05  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (adjustbox.4ht): prevent undefined control

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2022-01-05 13:16:37 UTC (rev 1048)
+++ trunk/lit/tex4ht-ooffice.tex	2022-01-07 10:28:32 UTC (rev 1049)
@@ -3320,32 +3320,70 @@
 
 
 
-
 \<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
 >>>
 
 



More information about the tex4ht-commits mailing list.