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