texlive[56467] Master/texmf-dist/tex/generic/tex4ht: minted, fancy

commits+karl at tug.org commits+karl at tug.org
Mon Sep 28 23:30:18 CEST 2020


Revision: 56467
          http://tug.org/svn/texlive?view=revision&revision=56467
Author:   karl
Date:     2020-09-28 23:30:18 +0200 (Mon, 28 Sep 2020)
Log Message:
-----------
minted, fancy verbatim, tex4ht r800-801

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=800

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
    trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2020-09-28 21:01:50 UTC (rev 56466)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/html4.4ht	2020-09-28 21:30:18 UTC (rev 56467)
@@ -1,4 +1,4 @@
-% html4.4ht (2020-09-02-14:24), generated from tex4ht-html4.tex
+% html4.4ht (2020-09-28-13:52), generated from tex4ht-html4.tex
 % Copyright 2009-2020 TeX Users Group
 % Copyright 1997-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2020-09-02-14:24}
+\immediate\write-1{version 2020-09-28-13:52}
 
 \exit:ifnot{8859-6,% 
 CJK,% 
@@ -28587,24 +28587,24 @@
 \Configure{fancyvrb}
    {\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
     \gHAssign\fancyvrb:cnt0
-    \HCode{<div class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
-   {\EndP\HCode{</div>}}
+    \HCode{<pre class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
+   {\EndP\HCode{</pre>}}
    {\gHAdvance\fancyvrb:cnt by 1
     \ifnum \fancyvrb:cnt>1
-    \HCode{<br class="fancyvrb" />\Hnewline}\fi} {}
+    \HCode{\Hnewline}\fi} {}
    {}{}
-\Css{div.fancyvrb {white-space: nowrap; margin:0em;font-family:monospace,monospace;}}
+\Css{pre.fancyvrb {white-space: pre-wrap; margin:0em;font-family:monospace,monospace;}}
 \Configure{fancyvrbcolor}
-  {\Css{div\#fancyvrb\fancyvrbNo { color: \HColor; }}}
-  {\Css{div\#fancyvrb\fancyvrbNo { background-color: \HColor;}}}
-  {\Css{div\#fancyvrb\fancyvrbNo { border-color: \HColor;}}}
+  {\Css{pre\#fancyvrb\fancyvrbNo { color: \HColor; }}}
+  {\Css{pre\#fancyvrb\fancyvrbNo { background-color: \HColor;}}}
+  {\Css{pre\#fancyvrb\fancyvrbNo { border-color: \HColor;}}}
 \Configure{fancyvrbframe}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-top: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-left: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-bottom: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo { border-right: solid \HSize; }}}
-   {\Css{div\#fancyvrb\fancyvrbNo {border-width:\HSize;}}}
-   {\Css{div\#fancyvrb\fancyvrbNo {padding:\HSize;}}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-top: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-left: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-bottom: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo { border-right: solid \HSize; }}}
+   {\Css{pre\#fancyvrb\fancyvrbNo {border-width:\HSize;}}}
+   {\Css{pre\#fancyvrb\fancyvrbNo {padding:\HSize;}}}
 \Configure{BVerbatimInput}
    {\ifvmode \IgnorePar \fi \EndP
     \gHAssign\HRow=0
@@ -34671,6 +34671,9 @@
                 \ConfigureHinput{minted}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     \Configure{InlineCode}{\HCode{<code>}}{\HCode{</code>}}
+\Configure{MintedColorbg}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{<div class="minted-color-box" style="background-color:\#\minted:bgcolor">}}
+   {\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht	2020-09-28 21:01:50 UTC (rev 56466)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/minted.4ht	2020-09-28 21:30:18 UTC (rev 56467)
@@ -1,5 +1,5 @@
-% minted.4ht (2019-11-07-14:08), generated from tex4ht-4ht.tex
-% Copyright 2019 TeX Users Group
+% minted.4ht (2020-09-28-13:52), generated from tex4ht-4ht.tex
+% Copyright 2020 TeX Users Group
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2019-11-07-14:08}
+\immediate\write-1{version 2020-09-28-13:52}
 
 \NewConfigure{InlineCode}{2}
 
@@ -32,6 +32,17 @@
 
 \HLet\minted at inline@iii\:tempa
 
+% support for background color in Minted listings
+\NewConfigure{MintedColorbg}{2}
+\renewenvironment{minted at colorbg}[1]{%
+  \colorlet{shadecolor}{#1}%
+  \extractcolorspec{shadecolor}{\:tempa}%
+  \expandafter\convertcolorspec\:tempa{HTML}\minted:bgcolor%
+  \a:MintedColorbg%
+  }
+  {\b:MintedColorbg\medskip\noindent}
+
+
 \Hinput{minted}
 \endinput
 



More information about the tex-live-commits mailing list.