diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-01 23:20:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-01 23:20:27 +0000 |
commit | 5730e455f29e1cd691c77897b7de0ebad168b35d (patch) | |
tree | 38f786780e59578f101d9f00c7b5a9d25b9c2395 /Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex | |
parent | 159d2e1de7f94411ae49d95fe3fb33a7df4de247 (diff) |
labels inside groups, tex4ht r1066; preserve current color, tex4ht r1067; listings colors, tex4ht r1068
git-svn-id: svn://tug.org/texlive/trunk@61847 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex index 2a0568c96fb..afb66c00bef 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1011 2021-11-09 09:00:24Z michal_h21 $ +% $Id: tex4ht-html4.tex 1068 2022-02-01 16:56:15Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -15291,7 +15291,7 @@ Configuration for the inline code {{\everypar{}\leavevmode}} {{\everypar{}\leavevmode}} {|<nbsp|>% - \HCode{<br /><span class="label">}} + \HCode{<br />\Hnewline<span class="label">}} {\HCode{</span>}}% } {%\special{t4ht@)} @@ -15320,6 +15320,18 @@ Configuration for the inline code % \ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par} +Support for colors in listings + +\<configure html4 listings\><<< +\lst@AddToHook{PostOutput}{\HCode{</span>}}% + +\lst@AddToHook{OutputBox}{% + % get current color in the CSS form + \extractcolorspec{.}\html@color% + \expandafter\convertcolorspec\html@color{HTML}\html@color% + \HCode{<span style="color:\#\html@color">}}% init +>>> + %%%%%%%%%%%%%%%%%%%%% \subsection{Verbatim} %%%%%%%%%%%%%%%%%%%%% |