diff options
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 6 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex | 10 | ||||
-rw-r--r-- | 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 <michal.h21@gmail.com> + + * tex4ht-html5.tex (html5.4ht): fixed support for the figure* + environment. + https://tex.stackexchange.com/q/653084/2891 + 2022-08-04 Michal Hoftich <michal.h21@gmail.com> * 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{</figure>}|<try env inline par|>\par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}|<try env inline par|>\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -564,6 +619,9 @@ tex4ht} + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{memoir} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -582,6 +640,15 @@ tex4ht} \par} {}{} +\ConfigureEnv{figure*} +{\:xhtml{\IgnorePar\EndP}\HCode{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\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{<figure class="figure">\Hnewline}% + \bgroup \Configure{float}{\ShowPar}{}{}% + } + {\egroup + \:xhtml{\IgnorePar\EndP}\HCode{</figure>}\ShowPar +\par} + {}{} + \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} @@ -1041,5 +1135,12 @@ tex4ht} + + + + + + + \endinput |