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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Apr 27 17:48:30 CEST 2017


Author: michal_h21
Date: 2017-04-27 18:48:30 +0300 (Thu, 27 Apr 2017)
New Revision: 296

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added basic support for mdframed package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2017-04-27 15:25:04 UTC (rev 295)
+++ trunk/lit/ChangeLog	2017-04-27 15:48:30 UTC (rev 296)
@@ -4,6 +4,10 @@
 	attribute for vertical lines in tables
 	* tex4ht-4ht.tex (xcolor.4ht): new command \get:xcolorcss, for 
 	conversion from xcolor color spec to CSS colors.
+	* tex4ht-4ht.tex (mdframed.4ht),
+	* tex4ht-html4.tex (html4.4ht): added basic support for Mdframed
+	package.
+	https://puszcza.gnu.org.ua/bugs/?217.
 
 2017-04-22  Karl Berry  <karl at freefriends.org>
 

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2017-04-27 15:25:04 UTC (rev 295)
+++ trunk/lit/Makefile	2017-04-27 15:48:30 UTC (rev 296)
@@ -35,11 +35,11 @@
   caption.4ht color.4ht colortbl.4ht \
   frenchb.4ht \
   fontspec.4ht fontspec-4ht.lua fontspec-luatex.4ht fontspec-xetex.4ht \
-    framed.4ht \
+  framed.4ht \
   geometry.4ht graphics.4ht graphicx.4ht \
   hyperref.4ht \
   latex.4ht lettrine.4ht listings.4ht \
-  memoir.4ht multicol.4ht multirow.4ht \
+  mdframed.4ht memoir.4ht multicol.4ht multirow.4ht \
   nameref.4ht \
   quoting.4ht \
   reading.4ht \

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2017-04-27 15:25:04 UTC (rev 295)
+++ trunk/lit/mktex4ht-cnf.tex	2017-04-27 15:48:30 UTC (rev 296)
@@ -326,4 +326,5 @@
 \AddFile{9}{tuenc-xetex}
 \AddFile{9}{tuenc-luatex}
 \AddFile{9}{framed}
+\AddFile{9}{mdframed}
 %\AddFile{9}{mktex4ht}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2017-04-27 15:25:04 UTC (rev 295)
+++ trunk/lit/tex4ht-4ht.tex	2017-04-27 15:48:30 UTC (rev 296)
@@ -25007,6 +25007,27 @@
 
 
 %%%%%%%%%%%%%%%%%%%%%%%
+\Section{mdframed}
+%%%%%%%%%%%%%%%%%%%%%%%
+
+\<mdframed.4ht\><<<
+% mdframed.4ht (|version), generated from |jobname.tex
+% Copyright 2017 TeX Users Group
+|<TeX4ht license text|>
+\NewConfigure{mdframed}{2}
+\NewConfigure{mdframedstyle}{1}
+\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\endmdf at trivlist{\b:mdframed}
+ \def\mdf at lrbox#1{}
+ \def\endmdf at lrbox{}
+
+\Hinput{mdframed}
+>>> \AddFile{9}{mdframed}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%
 \Section{dvipsnam}
 %%%%%%%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2017-04-27 15:25:04 UTC (rev 295)
+++ trunk/lit/tex4ht-html4.tex	2017-04-27 15:48:30 UTC (rev 296)
@@ -15849,6 +15849,24 @@
 >>>
 
 %%%%%%%%%%%%%%%%
+\section{mdframed}
+%%%%%%%%%%%%%%%%
+
+
+\<configure html4 mdframed\><<<
+\Configure{mdframed}{%
+  \ifvmode\IgnorePar\fi\EndP\HCode{<div class="mdframed" id="\mdf:id">}\par
+}{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
+\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}
+  \Css{\#\mdf:id{border:\mdf:border; background-color: \mdf:bgcolor; color:\mdf:fontcolor;}}
+}
+>>>
+
+%%%%%%%%%%%%%%%%
 \section{verse}
 %%%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list