281c40ee |
1 | % \begin{meta-comment} |
2 | % |
0fb4766d |
3 | % colour.dtx |
281c40ee |
4 | % |
5 | % UK spellings of `colour' |
6 | % |
7 | % (c) 2003 Mark Wooding |
8 | % |
281c40ee |
9 | % \end{meta-comment} |
10 | % |
11 | % \begin{meta-comment} <general public licence> |
12 | %% |
13 | %% colour package -- color, only spelt correctly |
14 | %% Copyright (c) 2003 Mark Wooding |
15 | %% |
16 | %% This program is free software; you can redistribute it and/or modify |
17 | %% it under the terms of the GNU General Public License as published by |
18 | %% the Free Software Foundation; either version 2 of the License, or |
19 | %% (at your option) any later version. |
20 | %% |
21 | %% This program is distributed in the hope that it will be useful, |
22 | %% but WITHOUT ANY WARRANTY; without even the implied warranty of |
23 | %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
24 | %% GNU General Public License for more details. |
25 | %% |
26 | %% You should have received a copy of the GNU General Public License |
27 | %% along with this program; if not, write to the Free Software |
28 | %% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
29 | %% |
30 | % \end{meta-comment} |
31 | % |
32 | % \begin{meta-comment} <Package preambles> |
33 | %<+package>\NeedsTeXFormat{LaTeX2e} |
34 | %<+package>\ProvidesPackage{colour} |
35 | %<+package> [2003/08/24 1.0 color, only spelt correctly] |
36 | % \end{meta-comment} |
37 | % |
38 | % \CheckSum{26} |
39 | %% \CharacterTable |
40 | %% {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 |
41 | %% 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 |
42 | %% Digits \0\1\2\3\4\5\6\7\8\9 |
43 | %% Exclamation \! Double quote \" Hash (number) \# |
44 | %% Dollar \$ Percent \% Ampersand \& |
45 | %% Acute accent \' Left paren \( Right paren \) |
46 | %% Asterisk \* Plus \+ Comma \, |
47 | %% Minus \- Point \. Solidus \/ |
48 | %% Colon \: Semicolon \; Less than \< |
49 | %% Equals \= Greater than \> Question mark \? |
50 | %% Commercial at \@ Left bracket \[ Backslash \\ |
51 | %% Right bracket \] Circumflex \^ Underscore \_ |
52 | %% Grave accent \` Left brace \{ Vertical bar \| |
53 | %% Right brace \} Tilde \~} |
54 | %% |
55 | % |
56 | % \begin{meta-comment} |
57 | % |
58 | %<*driver> |
59 | \input{mdwtools} |
60 | \describespackage{colour} |
61 | \mdwdoc |
62 | %</driver> |
63 | % |
64 | % \end{meta-comment} |
65 | % |
66 | %^^A------------------------------------------------------------------------- |
67 | % \section{User guide} |
68 | % |
69 | % This is the |\package{color}| package, with the addition of English |
70 | % spellings to the American misspellings. In particular, it provides |
71 | % commands |\colour|, |\definecolour|, |\textcolour|, |\pagecolour|, |
72 | % |\colourbox| and |\fcolourbox| commands. It also provides a \textsf{grey} |
73 | % colour model, which works the same as \textsf{gray}. |
74 | % |
75 | %^^A------------------------------------------------------------------------- |
76 | % \implementation |
77 | % \section{Implementation} |
78 | % |
79 | % \begin{macrocode} |
80 | %<*package> |
81 | % \end{macrocode} |
82 | % |
83 | % Import the \package{color} package. |
84 | % |
85 | % \begin{macrocode} |
86 | \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{color}} |
87 | \ProcessOptions |
88 | \RequirePackage{color} |
89 | % \end{macrocode} |
90 | % |
91 | % And add new definitions. |
92 | % |
93 | % \begin{macrocode} |
94 | \let\colour\color |
95 | \let\definecolour\definecolor |
96 | \let\textcolour\textcolor |
97 | \let\pagecolour\pagecolor |
98 | \let\colourbox\colorbox |
99 | \let\fcolourbox\fcolorbox |
100 | \let\color@grey\color@gray |
101 | % \end{macrocode} |
102 | % |
103 | % That's all there is. Byebye. |
104 | % |
105 | % \begin{macrocode} |
106 | %</package> |
107 | % \end{macrocode} |
108 | % \nopagebreak |
109 | % |
110 | % \hfill Mark Wooding, \today |
111 | % |
112 | % \Finale |
113 | % |
114 | \endinput |