Debian Codegraph @

texmf-dist/tex/latex/fancyvrb/hcolor.sty

raw
1 %%
2 %% This is file `hcolor.sty',
3 %%
4 %% COPYING:
5 %% This package may be distributed under the terms of the LaTeX Project Public
6 %% License, as described in lppl.txt in the base LaTeX distribution.
7 %% Either version 1.0 or, at your option, any later version.
8 %%
9 %% Denis Girou (CNRS/IDRIS - France) <[email protected]> March 27, 1998
10 %% packed by Herbert Voss <[email protected]>
11 %%
12 %%
13 \NeedsTeXFormat{LaTeX2e}
14 \def\fileversion{1.4}
15 \def\filedate{1998/03/19}
16 \ProvidesPackage{hcolor}[\filedate]
17 \message{`hcolor' v\fileversion, \filedate\space (Denis Girou)}
18 \newcommand\FvrbEx@ColoredUnderline[3]{%
19 $\setbox\z@\hbox{\begingroup#3\endgroup}%
20 \dp\z@\z@\m@th\color{#1}\underline{\textcolor{#2}{\box\z@}}$}
21 \providecommand\FvrbEx@ColoredBox{}
22 \renewcommand\FvrbEx@ColoredBox[3]{%
23 \fboxsep=1pt\fcolorbox{#2}{#2}{\textcolor{#3}{\textbf{#1}}}}
24 %\catcode`\^^a7=0
25 %\catcode`\^^b5=1
26 %\catcode`\^^b6=2
27 \def\Highlight@Attributes{%
28 \def\HLa##1{\textcolor{blue}{##1}}
29 \def\HLb##1{\textcolor{cyan}{##1}}
30 \def\HLc##1{\textcolor{green}{##1}}
31 \def\HLd##1{\textcolor{magenta}{##1}}
32 \def\HLe##1{\textcolor{red}{##1}}
33 \def\HLf##1{\textcolor{yellow}{##1}}
34 \def\HLq##1{\textcolor{PaleGreen}{##1}}
35 \def\HLr##1{\textcolor{SlateBlue}{##1}}
36 \def\HLz##1{\textcolor{black}{##1}}
37 \def\HLBFa##1{\textcolor{blue}{\textbf{##1}}}
38 \def\HLBFb##1{\textcolor{cyan}{\textbf{##1}}}
39 \def\HLBFc##1{\textcolor{green}{\textbf{##1}}}
40 \def\HLBFd##1{\textcolor{magenta}{\textbf{##1}}}
41 \def\HLBFe##1{\textcolor{red}{\textbf{##1}}}
42 \def\HLBFf##1{\textcolor{yellow}{\textbf{##1}}}
43 \def\HLBFz##1{\textcolor{black}{\textbf{##1}}}
44 \def\HLITa##1{\textcolor{blue}{\textsl{##1}}}
45 \def\HLITb##1{\textcolor{cyan}{\textsl{##1}}}
46 \def\HLITc##1{\textcolor{green}{\textsl{##1}}}
47 \def\HLITd##1{\textcolor{magenta}{\textsl{##1}}}
48 \def\HLITe##1{\textcolor{red}{\textsl{##1}}}
49 \def\HLITf##1{\textcolor{yellow}{\textsl{##1}}}
50 \def\HLITz##1{\textcolor{black}{\textsl{##1}}}
51 \def\HLSCa##1{\textcolor{blue}{\textsc{##1}}}
52 \def\HLSCb##1{\textcolor{cyan}{\textsc{##1}}}
53 \def\HLSCc##1{\textcolor{green}{\textsc{##1}}}
54 \def\HLSCd##1{\textcolor{magenta}{\textsc{##1}}}
55 \def\HLSCe##1{\textcolor{red}{\textsc{##1}}}
56 \def\HLSCf##1{\textcolor{yellow}{\textsc{##1}}}
57 \def\HLSCz##1{\textcolor{black}{\textsc{##1}}}
58 \def\HLTTa##1{\textcolor{blue}{\texttt{##1}}}
59 \def\HLTTb##1{\textcolor{cyan}{\texttt{##1}}}
60 \def\HLTTc##1{\textcolor{green}{\texttt{##1}}}
61 \def\HLTTd##1{\textcolor{magenta}{\texttt{##1}}}
62 \def\HLTTe##1{\textcolor{red}{\texttt{##1}}}
63 \def\HLTTf##1{\textcolor{yellow}{\texttt{##1}}}
64 \def\HLTTq##1{\textcolor{ForestGreen}{\texttt{##1}}}
65 \def\HLTTr##1{\textcolor{PineGreen}{\texttt{##1}}}
66 \def\HLTTz##1{\textcolor{black}{\texttt{##1}}}
67 \def\HLITTTa##1{\textcolor{blue}{\textsl{\texttt{##1}}}}
68 \def\HLITTTb##1{\textcolor{cyan}{\textsl{\texttt{##1}}}}
69 \def\HLITTTc##1{\textcolor{green}{\textsl{\texttt{##1}}}}
70 \def\HLITTTd##1{\textcolor{magenta}{\textsl{\texttt{##1}}}}
71 \def\HLITTTe##1{\textcolor{red}{\textsl{\texttt{##1}}}}
72 \def\HLITTTf##1{\textcolor{yellow}{\textsl{\texttt{##1}}}}
73 \def\HLITTTz##1{\textcolor{black}{\textsl{\texttt{##1}}}}
74 \def\HLCBBa##1{\FvrbEx@ColoredBox{##1}{blue}{black}}
75 \def\HLCBBb##1{\FvrbEx@ColoredBox{##1}{cyan}{black}}
76 \def\HLCBBc##1{\FvrbEx@ColoredBox{##1}{green}{black}}
77 \def\HLCBBd##1{\FvrbEx@ColoredBox{##1}{magenta}{black}}
78 \def\HLCBBe##1{\FvrbEx@ColoredBox{##1}{red}{black}}
79 \def\HLCBBf##1{\FvrbEx@ColoredBox{##1}{yellow}{black}}
80 \def\HLCBBz##1{\FvrbEx@ColoredBox{##1}{black}{black}}
81 \def\HLCBWa##1{\FvrbEx@ColoredBox{##1}{blue}{white}}
82 \def\HLCBWb##1{\FvrbEx@ColoredBox{##1}{cyan}{white}}
83 \def\HLCBWc##1{\FvrbEx@ColoredBox{##1}{green}{white}}
84 \def\HLCBWd##1{\FvrbEx@ColoredBox{##1}{magenta}{white}}
85 \def\HLCBWe##1{\FvrbEx@ColoredBox{##1}{red}{white}}
86 \def\HLCBWf##1{\FvrbEx@ColoredBox{##1}{yellow}{white}}
87 \def\HLCBWz##1{\FvrbEx@ColoredBox{##1}{black}{white}}
88 \def\HLSa##1{\color{blue}\underline{##1}}
89 \def\HLSb##1{\color{cyan}\underline{##1}}
90 \def\HLSc##1{\color{green}\underline{##1}}
91 \def\HLSd##1{\color{magenta}\underline{##1}}
92 \def\HLSe##1{\color{red}\underline{##1}}
93 \def\HLSf##1{\color{yellow}\underline{##1}}
94 \def\HLSz##1{\color{black}\underline{##1}}
95 \def\HLSaa##1{\FvrbEx@ColoredUnderline{blue}{black}{##1}}
96 \def\HLSbb##1{\FvrbEx@ColoredUnderline{cyan}{black}{##1}}
97 \def\HLScc##1{\FvrbEx@ColoredUnderline{green}{black}{##1}}
98 \def\HLSdd##1{\FvrbEx@ColoredUnderline{magenta}{black}{##1}}
99 \def\HLSee##1{\FvrbEx@ColoredUnderline{red}{black}{##1}}
100 \def\HLSef##1{\FvrbEx@ColoredUnderline{yellow}{black}{##1}}
101 \def\HLSez##1{\FvrbEx@ColoredUnderline{black}{black}{##1}}
102 }
103 \def\NoHighlight@Attributes{%
104 \def\HLa##1{##1}%
105 \def\HLb##1{##1}%
106 \def\HLc##1{##1}%
107 \def\HLd##1{##1}%
108 \def\HLe##1{##1}%
109 \def\HLf##1{##1}%
110 \def\HLBFa##1{##1}%
111 \def\HLBFb##1{##1}%
112 \def\HLBFc##1{##1}%
113 \def\HLBFd##1{##1}%
114 \def\HLBFe##1{##1}%
115 \def\HLBFf##1{##1}%
116 \def\HLITa##1{##1}%
117 \def\HLITb##1{##1}%
118 \def\HLITc##1{##1}%
119 \def\HLITd##1{##1}%
120 \def\HLITe##1{##1}%
121 \def\HLITf##1{##1}%
122 \def\HLCBBa##1{##1}%
123 \def\HLCBBb##1{##1}%
124 \def\HLCBBc##1{##1}%
125 \def\HLCBBd##1{##1}%
126 \def\HLCBBe##1{##1}%
127 \def\HLCBBf##1{##1}%
128 \def\HLCBBz##1{##1}%
129 \def\HLCBWa##1{##1}%
130 \def\HLCBWb##1{##1}%
131 \def\HLCBWc##1{##1}%
132 \def\HLCBWd##1{##1}%
133 \def\HLCBWe##1{##1}%
134 \def\HLCBWf##1{##1}%
135 \def\HLCBWz##1{##1}%
136 }
137 \Highlight@Attributes
138 \endinput
139 %%
140 %% End of file `hcolor.sty'.