From da86c1db3f8715ae10effa0db947972adbe82624 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 11 Aug 2022 21:19:34 +0000 Subject: figure* fix in html5, tex4ht r1182 git-svn-id: svn://tug.org/texlive/trunk@64099 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 6 ++ .../source/generic/tex4ht/tex4ht-html5.tex | 10 +- Master/texmf-dist/tex/generic/tex4ht/html5.4ht | 107 ++++++++++++++++++++- 3 files changed, 119 insertions(+), 4 deletions(-) diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 60905beb60f..cea3d34c63a 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,9 @@ +2022-08-11 Michal Hoftich + + * tex4ht-html5.tex (html5.4ht): fixed support for the figure* + environment. + https://tex.stackexchange.com/q/653084/2891 + 2022-08-04 Michal Hoftich * tex4ht-4ht.tex (latex.4ht): revert to the original definition of diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex index 72dc22a7530..761e9968fd6 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html5.tex 1062 2022-01-23 15:51:43Z karl $ +% $Id: tex4ht-html5.tex 1182 2022-08-11 19:21:27Z michal_h21 $ % compile 3 times: latex tex4ht-moz % or xhlatex tex4ht-moz "html,3,sections+" % @@ -336,6 +336,14 @@ Configure HTML5 figures. Floats are converted as captions too. \:xhtml{\IgnorePar\EndP}\HCode{}|\par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}|\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} diff --git a/Master/texmf-dist/tex/generic/tex4ht/html5.4ht b/Master/texmf-dist/tex/generic/tex4ht/html5.4ht index 7b696aa4224..f29e77b0d91 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html5.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html5.4ht @@ -1,4 +1,4 @@ -% html5.4ht (2022-01-23-07:51), generated from tex4ht-html5.tex +% html5.4ht (2022-08-11-14:16), generated from tex4ht-html5.tex % Copyright 2016-2022 TeX Users Group % % This work may be distributed and/or modified under the @@ -16,7 +16,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-01-23-07:51} +\immediate\write-1{version 2022-08-11-14:16} \exit:ifnot{amsart,% amsbook,% @@ -218,6 +218,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -256,6 +265,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -301,6 +319,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -360,6 +387,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -380,6 +416,7 @@ tex4ht} \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsbook} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -398,6 +435,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -436,6 +482,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -560,6 +615,9 @@ tex4ht} + + + @@ -582,6 +640,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -692,6 +759,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -712,7 +788,6 @@ tex4ht} \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{scrartcl} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -731,6 +806,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -751,6 +835,7 @@ tex4ht} \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{scrreprt} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -769,6 +854,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{
\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{
}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -1033,6 +1127,13 @@ tex4ht} + + + + + + + -- cgit v1.2.3