1 % \begin{meta-comment} <general public licence>
3 %% colour package -- color, only spelt correctly
4 %% Copyright (c) 2003 Mark Wooding
6 %% This file is part of the `mdwtools' LaTeX package collection.
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.
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.
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.
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]
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 \~}
48 % \begin{meta-comment}
52 \describespackage{colour}
58 %^^A-------------------------------------------------------------------------
59 % \section{User guide}
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}.
67 %^^A-------------------------------------------------------------------------
69 % \section{Implementation}
75 % Import the \package{color} package.
78 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{color}}
80 \RequirePackage{color}
83 % And add new definitions.
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
95 % That's all there is. Byebye.
102 % \hfill Mark Wooding, \today