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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Nov 7 14:20:11 CET 2019


Author: michal_h21
Date: 2019-11-07 15:20:11 +0200 (Thu, 07 Nov 2019)
New Revision: 618

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Enhanced mdframed package support

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-11-06 13:14:10 UTC (rev 617)
+++ trunk/lit/ChangeLog	2019-11-07 13:20:11 UTC (rev 618)
@@ -1,3 +1,8 @@
+2019-11-07 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (mdframed.4ht): fixed support for frame titles. Disabled
+	native frame drawing.
+
 2019-11-06 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht): fixed test for existence of the

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-11-06 13:14:10 UTC (rev 617)
+++ trunk/lit/tex4ht-4ht.tex	2019-11-07 13:20:11 UTC (rev 618)
@@ -25791,16 +25791,26 @@
 % mdframed.4ht (|version), generated from |jobname.tex
 % Copyright 2017 TeX Users Group
 |<TeX4ht license text|>
+
 \NewConfigure{mdframed}{2}
 \NewConfigure{mdframedstyle}{1}
+\NewConfigure{mdframetitle}{2}
 \newcount\mdf:env:cnt
 \def\mdf:id{mdframed-\the\mdf:env:cnt}
-\def\mdf at trivlist#1{\global\advance\mdf:env:cnt by1\relax\a:mdframed\a:mdframedstyle}
+\def\mdf at trivlist#1{\global\advance\mdf:env:cnt by1\relax\a:mdframed\a:mdframedstyle%
+    \ifdefempty{\mdf at frametitle}{}{\mdfframedtitleenv{\mdf at frametitle}\a:mdframetitle\mdf@@frametitle at use\b:mdframetitle}\let\mdf at frametitle\relax%
+}
+
 \def\endmdf at trivlist{\b:mdframed}
- \def\mdf at lrbox#1{}
- \def\endmdf at lrbox{}
 
+% disable frame drawing, it can be supported using CSS
+\def\detected at mdf@put at frame{}%
+
+\append:def\mdf@@ignorelastdescenders{\let\orig:unskip\unskip\def\unskip{\let\unskip\orig:unskip}}%
+\def\mdf at lrbox#1{}
+\def\endmdf at lrbox{}
 \Hinput{mdframed}
+\endinput
 >>> \AddFile{9}{mdframed}
 
 



More information about the tex4ht-commits mailing list