summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-28 21:30:18 +0000
committerKarl Berry <karl@freefriends.org>2020-09-28 21:30:18 +0000
commiteaa18f1a6e3a0666ba47f8115e76e25dc439b80c (patch)
treeb1821ef10fb012d290f426f1d88c0f13468db7e6 /Master
parentc1c6d73af9421082eecd62ac0b3760f97c87c43e (diff)
minted, fancy verbatim, tex4ht r800-801
git-svn-id: svn://tug.org/texlive/trunk@56467 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/html4.4ht33
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/minted.4ht17
2 files changed, 32 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
index 2b24cc695b7..fec7a152695 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht
@@ -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 @@ Y{0178}\i{00EF}%
\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 @@ description">}%
\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>}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/generic/tex4ht/minted.4ht b/Master/texmf-dist/tex/generic/tex4ht/minted.4ht
index aac4fd9c8b4..1b6880474a6 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/minted.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/minted.4ht
@@ -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@inline@iii\:tempa
+% support for background color in Minted listings
+\NewConfigure{MintedColorbg}{2}
+\renewenvironment{minted@colorbg}[1]{%
+ \colorlet{shadecolor}{#1}%
+ \extractcolorspec{shadecolor}{\:tempa}%
+ \expandafter\convertcolorspec\:tempa{HTML}\minted:bgcolor%
+ \a:MintedColorbg%
+ }
+ {\b:MintedColorbg\medskip\noindent}
+
+
\Hinput{minted}
\endinput