diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/html4.4ht | 43 |
1 files changed, 31 insertions, 12 deletions
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{<span class="lstinline">}} - {\HCode{</span>}} + {\HCode{<code class="lstinline">}\NoFonts} + {\EndNoFonts\HCode{</code>}} +\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{<!--l. \the\inputlineno-->}% - \HCode{<pre class="lstinputlisting">}% - \bgroup \tt %\special{t4ht@(}% - \Configure{listings} - {{\everypar{}\leavevmode}} - {{\everypar{}\leavevmode}} + \gHAdvance\listingN by 1% + \HCode{<pre class="lstinputlisting" id="listing-\listingN">}% + \bgroup\ttfamily%\special{t4ht@(}% + \Configure{listings}% + {{\everypar{}\leavevmode}}% + {{\everypar{}\leavevmode}}% {\:nbsp% % - \HCode{<br />\Hnewline<span class="label">}} + \HCode{<br />\Hnewline<span class="label">}}% {\HCode{</span>}}% } {%\special{t4ht@)} - \egroup - \ifvmode \IgnorePar\fi \EndP \HCode{</pre>}\par} + \egroup% + \ifvmode \IgnorePar\fi \EndP \HCode{</pre>}\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{<span style="color:\#\html@color">}}% 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% +} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |