From e0fe152dbeaa9646f2c2376a5a28a70ee4e2358e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 7 Jan 2022 23:03:47 +0000 Subject: ooffice updates, tex4ht r1049-1052 git-svn-id: svn://tug.org/texlive/trunk@61525 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 11 +++++ .../source/generic/tex4ht/tex4ht-ooffice.tex | 57 +++++++++++++++++++--- 2 files changed, 61 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/source/generic') diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 752e2841f45..f2fee524bed 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,14 @@ +2022-01-07 Michal Hoftich + + * tex4ht-4ht.tex (ooffice.4ht): use \par after some environemnts to + prevent ommision of the following text. + + * tex4ht-ooffice.tex (ooffice.4ht): correctly handle text alignment + environments inside enumerate items. + + * tex4ht-ooffice.tex (ooffice.4ht): added NoSection option to + disable frames around text alignment environments. + 2022-01-05 Michal Hoftich * tex4ht-4ht.tex (adjustbox.4ht): prevent undefined control diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex index 66a160768cf..f2f35a664ea 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 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>>> \<<< -\ShowPar +\par\ShowPar >>> \<<< @@ -1856,8 +1856,10 @@ change the configuration slightly. We modify directly the {\EndP\HCode{}} - {\HCode{\Hnewline}} {\HCode{\Hnewline}}} - {\EndP\IgnorePar \egroup \HCode{\Hnewline + {\HCode{\Hnewline}} {\HCode{\Hnewline}} + \gHAdvance\BegEnd:D by 1% + } + {\gHAdvance\BegEnd:D by -1\EndP\IgnorePar \egroup \HCode{\Hnewline \Hnewline}\ShowPar} {\EndP\end@Item\DeleteMark} {\HCode{}\par\ShowPar @@ -2028,8 +2030,11 @@ change the configuration slightly. We modify directly the {\EndP\HCode{}} - {\HCode{\Hnewline}} {\HCode{\Hnewline}}} - {\EndP\IgnorePar \egroup \HCode{\Hnewline + {\HCode{\Hnewline}} {\HCode{\Hnewline}} + \gHAdvance\BegEnd:D by 1% + } + {\gHAdvance\BegEnd:D by -1% + \EndP\IgnorePar \egroup \HCode{\Hnewline \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}+ - \<<< \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. + +\<<< +\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. + + +\<<< +\: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 +>>> \<<< \ifvmode \IgnorePar\fi \EndP +\ifnum\BegEnd:X=0% \ifnum \BegEnd:D=0 |% \else |% \fi \gHAdvance\BegEnd:D by 1 +\fi >>> \<<< \gHAdvance\BegEnd:D by -1 \ifvmode \IgnorePar\fi\EndP +\ifnum\BegEnd:X=0% \ifnum \BegEnd:D=0 |% \else |% \fi +\else\par% +\fi >>> -- cgit v1.2.3