summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog9
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex18
-rw-r--r--support/TeX4ht/source/tex4ht-ooffice.tex10
3 files changed, 23 insertions, 14 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 8496e08918..1422a4f626 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,12 @@
+2021-10-12 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): clean up for \paragraph and \subparagraph
+ commands.
+ https://puszcza.gnu.org.ua/bugs/?530#discussion
+ * tex4ht-ooffice.tex (ooffice.4ht): fixed handling of paragraphs in
+ \paragraph and \subpagraph.
+ https://puszcza.gnu.org.ua/bugs/?530#discussion
+
2021-10-10 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-fonts-noncjk.tex (
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index e8e952e56b..15c1f88db8 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 988 2021-09-28 21:06:02Z michal_h21 $
+% $Id: tex4ht-html4.tex 992 2021-10-12 12:17:53Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -9178,7 +9178,7 @@ The hbox is for avoiding the start of a new paragraph, if in vmode.
\<ams proc,book\><<<
\Configure{paragraph}{}{}
- {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
+ {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup}
{\endgroup\HCode{</span>}\IgnorePar}
\ConfigureMark{subparagraph}{\thesubparagraph}
\Css{.paragraphHead { margin-top:2em; font-weight: bold;}}
@@ -9197,7 +9197,7 @@ The hbox is for avoiding the start of a new paragraph, if in vmode.
\<ams proc,book\><<<
\Configure{subparagraph}{}{}
- {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
+ {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
\TitleMark\space}
{\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead { font-weight: bold;}}
@@ -10264,21 +10264,21 @@ need to change early the catcodes of `\verb'_' and `\verb'^'.
|<config lists of figures and tables|>
\Configure{paragraph}{}{}
- {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
- {\endgroup\HCode{</span>}}
+ {\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup}
+ {\endgroup\HCode{</span>}\IgnorePar}
\Configure{likeparagraph}{}{}
{\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
- {\HCode{</span>}}
+ {\HCode{</span>}\IgnorePar}
\Css{.paragraphHead, .likeparagraphHead
{ margin-top:2em; font-weight: bold;}}
-\ConfigureMark{subparagraph}{\thesubparagraph}
+\ConfigureMark{subparagraph}{}
\Configure{subparagraph}{}{}
- {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
+ {\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup
\TitleMark\space}
{\endgroup\HCode{</span>}\IgnorePar}
\Configure{likesubparagraph}{}{}
- {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
+ {\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup}
{\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead, .likesubparagraphHead
{ font-weight: bold;}}
diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex
index 1eac506543..bce861e38f 100644
--- a/support/TeX4ht/source/tex4ht-ooffice.tex
+++ b/support/TeX4ht/source/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 983 2021-09-17 14:27:15Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 993 2021-10-12 15:19:37Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -467,10 +467,10 @@ in the character style passed as the second argument.
\<utilities\><<<
\def\:DefineParagraph#1#2{%
\Configure{#1}
- {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
- {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
- {\bgroup\HTML:PAR{#1-p}{#1-p}\par\HCode{<text:span text:style-name="#2" >}}
- {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup}
+ {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+ {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+ {\bgroup\HTML:PAR{#1-p}{#1-p}\ifvmode\IgnorePar\fi\EndP\par\HCode{<text:span text:style-name="#2" >}}
+ {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup\IgnorePar}
\:ParagraphStyle{#1-p}
}
>>>