From 8d133cf0c41d9f82c8ac5cda8f5ede55bf9650f7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 20 Mar 2022 16:17:14 +0000 Subject: listings colors, tex4ht r1092; opensans install cleanup git-svn-id: svn://tug.org/texlive/trunk@62824 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/html4.4ht | 43 +++++++++++++++++++------- 1 file changed, 31 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht index e528a48bb60..95e5510d539 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 (2022-03-08-13:51), generated from tex4ht-html4.tex +% html4.4ht (2022-03-20-09:15), generated from tex4ht-html4.tex % Copyright 2009-2022 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 2022-03-08-13:51} +\immediate\write-1{version 2022-03-20-09:15} \exit:ifnot{8859-6,% CJK,% @@ -37349,8 +37349,9 @@ description">}% \ConfigureHinput{listings} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \Configure{lstinline} - {\HCode{}} - {\HCode{}} + {\HCode{}\NoFonts} + {\EndNoFonts\HCode{}} +\Css{code.lstinline{font-family:monospace,monospace;}} \Log:Note{to ensure proper alignments use fixed size fonts (see listings.dtx)} \HAssign\listings:Depth = 0 @@ -37397,19 +37398,20 @@ description">}% \Configure{lstinputlisting} {\ifvmode \IgnorePar\fi \EndP \HCode{}% - \HCode{
}%
-    \bgroup \tt %\special{t4ht@(}%
-       \Configure{listings}
-         {{\everypar{}\leavevmode}}
-         {{\everypar{}\leavevmode}}
+    \gHAdvance\listingN by 1%
+    \HCode{
}%
+    \bgroup\ttfamily%\special{t4ht@(}%
+       \Configure{listings}%
+         {{\everypar{}\leavevmode}}%
+         {{\everypar{}\leavevmode}}%
          {\:nbsp%
 %
-             \HCode{
\Hnewline}} + \HCode{
\Hnewline}}% {\HCode{}}% } {%\special{t4ht@)} - \egroup - \ifvmode \IgnorePar\fi \EndP \HCode{
}\par} + \egroup% + \ifvmode \IgnorePar\fi \EndP \HCode{
}\par}% \Css{pre.lstinputlisting{ font-family: monospace,monospace; white-space: nowrap; @@ -37422,6 +37424,23 @@ description">}% \extractcolorspec{.}\html@color% \expandafter\convertcolorspec\html@color{HTML}\html@color% \HCode{}}% init +\lst@AddToHook{Init}{% +\bgroup% + % handle backround color and border in listings + \ifx\lst@fillcolor\@empty\else% + \lst@fillcolor% + \extractcolorspec{.}\html@fillcolor% + \expandafter\convertcolorspec\html@fillcolor{HTML}\html@fillcolor% + \Css{\#listing-\listingN{background-color:\#\html@fillcolor;}}% + \fi% + \ifx\lst@rulecolor\@empty\else% + \lst@rulecolor% + \extractcolorspec{.}\html@rulecolor% + \expandafter\convertcolorspec\html@rulecolor{HTML}\html@rulecolor% + \Css{\#listing-\listingN{border: 1px solid \#\html@rulecolor;}}% + \fi% +\egroup% +} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- cgit v1.2.3