1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
% color.4ht 2001-12-14-17:07 %
3
% Copyright (C) 1997--2001 Eitan M. Gurari %
5
% This program can redistributed and/or modified under %
6
% the terms of the LaTeX Project Public License %
7
% Distributed from CTAN archives in directory %
8
% macros/latex/base/lppl.txt; either version 1 of the %
9
% License, or (at your option) any later version. %
11
% However, you are allowed to modify this program %
12
% without changing its name, if you modify its %
13
% signature. Changes to the signature can be introduced %
14
% with a directive of the form %
15
% \message{signature} %
17
% gurari@cis.ohio-state.edu %
18
% http://www.cis.ohio-state.edu/~gurari %
19
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
20
\immediate\write-1{version 2001-12-14-17:07}
24
\HLet\color@setgroup\:temp
25
\def\HColor#1#2{\expandafter\edef\csname CLR:#1\endcsname{#2}}
27
\NewConfigure{color}{1}
28
\def\@textcolor#1#2#3{\protect\leavevmode{\protect\a:textcolor
29
\color#1{#2}#3\protect\b:textcolor}}
30
\NewConfigure{textcolor}{2}
32
\begingroup \a:pagecolor
33
\let\ignorespaces\endgroup
34
\let\set@color\set@page@color
36
\NewConfigure{pagecolor}{1}
37
\def\@undeclaredcolor[#1]#2{\a:color{#2}%
38
\@ifundefined{color@#1}%
39
{\@latex@error{Undefined color model `#1'}\@ehd}%
40
{\csname color@#1\endcsname\current@color{#2}%
43
\pend:defI\@declaredcolor{\a:color{##1}}
45
\expandafter\let\expandafter\HColor \csname CLR:#2\endcsname
47
\:warning{missing \string\HColor{#2}{...}}%
48
\expandafter\global\expandafter\let\csname CLR:#2\endcsname\empty
52
\let\a:fcol\empty \let\b:fcol\empty
53
\color@b@x\relax{\color#1{#2}}}
56
\let\a:fcol\a:fcolorbox \let\b:fcol\b:fcolorbox
57
\color@b@x{\fboxsep\z@\color#1{#2}\fbox}{\color#1{#3}}}
58
\HLet\color@fbox\:temp
59
\long\def\:temp#1#2#3{%
61
{\a:fcol #1{\ifcolors@ \a:colorbox\fi #2%
62
{\set@color#3}\ifcolors@ \b:colorbox\fi}}\b:fcol}
64
\NewConfigure{colorbox}{2}
65
\NewConfigure{fcolorbox}{2}