~ubuntu-branches/debian/sid/tex4ht/sid

« back to all changes in this revision

Viewing changes to share/all4ht/color.4ht

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2005-04-05 14:14:41 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050405141441-x4dojdgz3frkfyet
Tags: 20050402.1817-1
* New upstream release (2005-04-02-18:17). Closes: #299934.
* See README.src, README.validate, README.Debian and copyright
  for information on minor changes.
* This upload fixes a some .htf files. Closes: #295109.
* Updated the description to reflect recent changes.
* Fixed some typos in src/tex4ht-mkht.tex and consequently
  in the mk4ht script.
* Updated the man page to include mk4ht. 
* Updated the description of options for the scripts in the man page.
  Put more information in the man page about the way the system works.
  Closes: #219348, #219347.
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
 
% color.4ht                            2001-12-14-17:07 %
3
 
% Copyright (C) 1997--2001      Eitan M. Gurari         %
4
 
%                                                       %
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.       %
10
 
%                                                       %
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}                        %
16
 
%                                                       %
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}
21
 
 
22
 
 
23
 
\let\:temp\begingroup
24
 
\HLet\color@setgroup\:temp
25
 
\def\HColor#1#2{\expandafter\edef\csname CLR:#1\endcsname{#2}}
26
 
 
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}
31
 
   \def\pagecolor{%
32
 
  \begingroup \a:pagecolor
33
 
      \let\ignorespaces\endgroup
34
 
      \let\set@color\set@page@color
35
 
      \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}%
41
 
     \set@color}%
42
 
  \ignorespaces}
43
 
\pend:defI\@declaredcolor{\a:color{##1}}
44
 
\def\SetHColor#1#2{{%
45
 
   \expandafter\let\expandafter\HColor \csname CLR:#2\endcsname
46
 
   \ifx \HColor\relax
47
 
      \:warning{missing \string\HColor{#2}{...}}%
48
 
      \expandafter\global\expandafter\let\csname CLR:#2\endcsname\empty
49
 
    \else #1\fi }}
50
 
 
51
 
\def\:temp#1#2{%
52
 
   \let\a:fcol\empty   \let\b:fcol\empty
53
 
   \color@b@x\relax{\color#1{#2}}}
54
 
\HLet\color@box\:temp
55
 
\def\:temp#1#2#3{%
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{%
60
 
   \leavevmode
61
 
   {\a:fcol #1{\ifcolors@ \a:colorbox\fi #2%
62
 
      {\set@color#3}\ifcolors@ \b:colorbox\fi}}\b:fcol}
63
 
\HLet\color@b@x\:temp
64
 
\NewConfigure{colorbox}{2}
65
 
\NewConfigure{fcolorbox}{2}
66
 
 
67
 
\Hinput{color}
68
 
\endinput
69