[tex4ht-commits] [SCM] tex4ht updated: r297 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Fri Apr 28 19:17:21 CEST 2017


Author: michal_h21
Date: 2017-04-28 20:17:21 +0300 (Fri, 28 Apr 2017)
New Revision: 297

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Some more fixes for mdframed

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2017-04-27 15:48:30 UTC (rev 296)
+++ trunk/lit/ChangeLog	2017-04-28 17:17:21 UTC (rev 297)
@@ -1,3 +1,9 @@
+2017-04-28  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): fixed error which happened when 
+	xcolor haven't been loaded in the document. Fixed line widths.
+	Start paragraph after mdframed environment.
+
 2017-04-27  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): use CSS instead of rules="groups"

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2017-04-27 15:48:30 UTC (rev 296)
+++ trunk/lit/tex4ht-html4.tex	2017-04-28 17:17:21 UTC (rev 297)
@@ -15856,13 +15856,20 @@
 \<configure html4 mdframed\><<<
 \Configure{mdframed}{%
   \ifvmode\IgnorePar\fi\EndP\HCode{<div class="mdframed" id="\mdf:id">}\par
-}{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
+}{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}\par}
+
+\Css{.mdframed{margin-top:1em;margin-bottom:1em;}}
+
+% use fallback macro when xcolor package haven't been loaded
+\ifdefined\get:xcolorcss\else\def\get:xcolorcss#1#2{\def#2{#1}}\fi
+
 \Configure{mdframedstyle}{%
   \get:xcolorcss{\mdf at backgroundcolor}\mdf:bgcolor
   \get:xcolorcss{\mdf at linecolor}\mdf:bordercolor
   \get:xcolorcss{\mdf at fontcolor}\mdf:fontcolor
-  \def\mdf:border{\ifdefined\mdfl at linewidth\mdfl at linewidth\else 1px\fi\space solid \mdf:bordercolor}
+  \def\mdf:border{\ifx\mdfl at linewidth\relax 1px\else\mdfl at linewidth\fi\space solid \mdf:bordercolor}
   \Css{\#\mdf:id{border:\mdf:border; background-color: \mdf:bgcolor; color:\mdf:fontcolor;}}
+  \global\let\mdfl at linewidth\relax
 }
 >>>
 



More information about the tex4ht-commits mailing list