@@@ reinstate build-depends on mdwfonts, strayman
[mdwtools] / colour.dtx
1 % \begin{meta-comment} <general public licence>
2 %%
3 %% colour package -- color, only spelt correctly
4 %% Copyright (c) 2003 Mark Wooding
5 %%
6 %% This file is part of the `mdwtools' LaTeX package collection.
7 %%
8 %% `mdwtools' is free software: you can redistribute it and/or modify it
9 %% under the terms of the GNU General Public License as published by the
10 %% Free Software Foundation; either version 2 of the License, or (at your
11 %% option) any later version.
12 %%
13 %% `mdwtools' is distributed in the hope that it will be useful, but
14 %% WITHOUT ANY WARRANTY; without even the implied warranty of
15 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 %% General Public License for more details.
17 %%
18 %% You should have received a copy of the GNU General Public License
19 %% along with `mdwtools'. If not, write to the Free Software Foundation,
20 %% Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 %%
22 % \end{meta-comment}
23 %
24 % \begin{meta-comment} <Package preambles>
25 %<+package>\NeedsTeXFormat{LaTeX2e}
26 %<+package>\ProvidesPackage{colour}
27 %<+package> [2020/09/06 1.14.0 color, only spelt correctly]
28 % \end{meta-comment}
29 %
30 % \CheckSum{26}
31 %% \CharacterTable
32 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
33 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
34 %% Digits \0\1\2\3\4\5\6\7\8\9
35 %% Exclamation \! Double quote \" Hash (number) \#
36 %% Dollar \$ Percent \% Ampersand \&
37 %% Acute accent \' Left paren \( Right paren \)
38 %% Asterisk \* Plus \+ Comma \,
39 %% Minus \- Point \. Solidus \/
40 %% Colon \: Semicolon \; Less than \<
41 %% Equals \= Greater than \> Question mark \?
42 %% Commercial at \@ Left bracket \[ Backslash \\
43 %% Right bracket \] Circumflex \^ Underscore \_
44 %% Grave accent \` Left brace \{ Vertical bar \|
45 %% Right brace \} Tilde \~}
46 %%
47 %
48 % \begin{meta-comment}
49 %
50 %<*driver>
51 \input{mdwtools}
52 \describespackage{colour}
53 \mdwdoc
54 %</driver>
55 %
56 % \end{meta-comment}
57 %
58 %^^A-------------------------------------------------------------------------
59 % \section{User guide}
60 %
61 % This is the |\package{color}| package, with the addition of English
62 % spellings to the American misspellings. In particular, it provides
63 % commands |\colour|, |\definecolour|, |\textcolour|, |\pagecolour|,
64 % |\colourbox| and |\fcolourbox| commands. It also provides a \textsf{grey}
65 % colour model, which works the same as \textsf{gray}.
66 %
67 %^^A-------------------------------------------------------------------------
68 % \implementation
69 % \section{Implementation}
70 %
71 % \begin{macrocode}
72 %<*package>
73 % \end{macrocode}
74 %
75 % Import the \package{color} package.
76 %
77 % \begin{macrocode}
78 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{color}}
79 \ProcessOptions
80 \RequirePackage{color}
81 % \end{macrocode}
82 %
83 % And add new definitions.
84 %
85 % \begin{macrocode}
86 \let\colour\color
87 \let\definecolour\definecolor
88 \let\textcolour\textcolor
89 \let\pagecolour\pagecolor
90 \let\colourbox\colorbox
91 \let\fcolourbox\fcolorbox
92 \let\color@grey\color@gray
93 % \end{macrocode}
94 %
95 % That's all there is. Byebye.
96 %
97 % \begin{macrocode}
98 %</package>
99 % \end{macrocode}
100 % \nopagebreak
101 %
102 % \hfill Mark Wooding, \today
103 %
104 % \Finale
105 %
106 \endinput