summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/multicol.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/multicol.4ht44
1 files changed, 13 insertions, 31 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht b/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht
index 237e87a3e39..87e00358c30 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/multicol.4ht
@@ -1,6 +1,6 @@
-% multicol.4ht (2021-06-20-09:36), generated from tex4ht-4ht.tex
+% multicol.4ht (2022-04-29-14:33), generated from tex4ht-4ht.tex
% Copyright 1997-2009 Eitan M. Gurari
-% Copyright 2009-2021 TeX Users Group
+% Copyright 2009-2022 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2021-06-20-09:36}
+\immediate\write-1{version 2022-04-29-14:33}
\append:def\set@floatcmds{\let\end@dblfloat\end@float}
@@ -56,7 +56,7 @@
\def\columnrulecolor{\a:columnrulecolor}
\NewConfigure{columnrulecolor}{1}
-\Configure{columnrulecolor}{\#555;}
+\Configure{columnrulecolor}{\#555}
% legal color
@@ -107,37 +107,19 @@
\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}
\Hinput{multicol}
\endinput