diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 700179e6c1..7c6439ebc1 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1121 2022-04-28 13:36:29Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1124 2022-04-29 15:04:44Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -28378,8 +28378,23 @@ A style file for resumes. \endinput >>> \AddFile{9}{enumitem} -\<enumitem config\><<< +If user opens a new environment in Enumitem's "before" key, +it will prevent execution of the closing command for the +original environment, and generated tags will be mismatched. + +This code postpones execution of code from the "after" key after +closing of the Enumitem environment, so it can be correctly closed. + +See \Link[https://tex.stackexchange.com/q/642439/2891] this example +what can go wrong\EndLink. +\<enumitem config\><<< +\AddToHook{env/enumerate/end}{\ifx\enit@after\@empty\else% + \let\enit:after\enit@after + \let\enit@after\@empty + \let\enumerate:executed\@empty + \append:def\end:DL{\enit:after} +\fi} >>> %%%%%%%%%%%%% @@ -32620,7 +32635,7 @@ but fatal error is a worse possibility. \def\columnrulecolor{\a:columnrulecolor} \NewConfigure{columnrulecolor}{1} -\Configure{columnrulecolor}{\#555;} +\Configure{columnrulecolor}{\#555} % legal color @@ -32671,37 +32686,19 @@ but fatal error is a worse possibility. \NewConfigure{multicols}{1} \Configure{multicols}{columns} -\def\:wr:mcol:css{% - \Css{.\a:multicols-\mcolnum\space p:first-child { margin-top: 0em; }}% - \Css{.\a:multicols-\mcolnum {% - -moz-column-count:\mcolnum; - -webkit-column-count:\mcolnum; - column-count:\mcolnum; - -moz-column-gap: \a:columngap; - -webkit-column-gap: \a:columngap; - column-gap: \a:columngap; - -moz-column-rule-width: \a:columnrulewidth; - -webkit-column-rule-width: \a:columnrulewidth; - column-rule-rule-width: \a:columnrulewidth; - -moz-column-rule-color: \a:columnrulecolor; - -webkit-column-rule-color: \a:columnrulecolor; - column-rule-color: \a:columnrulecolor; - -moz-column-rule-style: \a:columnrulestyle; - -webkit-column-rule-style: \a:columnrulestyle; - column-rule-style: \a:columnrulestyle; - -moz-column-fill: \a:columnfill; - -webkit-column-fill: \a:columnfill; - column-fill: \a:columnfill; - }% - }% -} -\def\mult:cols{\IgnorePar\EndP% - \HCode{<div class="\a:multicols-\mcolnum">}% +% CSS needs to be written for every column count +\NewConfigure{multicolscss}{1} +\def\:wr:mcol:css{\a:multicolscss } + +% this configuration should configure HTML code inserted for multicols environment +\NewConfigure{multicolscolumn}{2} + +\def\mult:cols{\a:multicolscolumn% \expandafter\ifx\csname .\a:multicols-\mcolnum\endcsname\relax% \:wr:mcol:css \expandafter\gdef\csname .\a:multicols-\mcolnum\endcsname{1}% \fi\ShowPar\par} -\append:def\endmulticols{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}} +\append:def\endmulticols{\b:multicolscolumn} >>> \Section{lettrine.sty} |