| 1 | % \begin{meta-comment} <general public licence> |
| 2 | %% |
| 3 | %% centre package -- center, 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{centre} |
| 27 | %<+package> [2020/09/06 1.14.0 center, only spelt correctly] |
| 28 | % \end{meta-comment} |
| 29 | % |
| 30 | % \CheckSum{21} |
| 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{centre} |
| 53 | \mdwdoc |
| 54 | %</driver> |
| 55 | % |
| 56 | % \end{meta-comment} |
| 57 | % |
| 58 | %^^A------------------------------------------------------------------------- |
| 59 | % \section{User guide} |
| 60 | % |
| 61 | % \DescribeMacro\vcentre |
| 62 | % \DescribeEnv{centre} |
| 63 | % \DescribeMacro\centring |
| 64 | % \DescribeMacro\centreline |
| 65 | % \DescribeMacro\textasteriskcentred |
| 66 | % \DescribeMacro\textdotcentred |
| 67 | % More of my ranting about American spellings. A bunch of synonyms for those |
| 68 | % whose spelling of `centre' is French-influenced. |
| 69 | % |
| 70 | % |
| 71 | %^^A------------------------------------------------------------------------- |
| 72 | % \implementation |
| 73 | % \section{Implementation} |
| 74 | % |
| 75 | % \begin{macrocode} |
| 76 | %<*package> |
| 77 | % \end{macrocode} |
| 78 | % |
| 79 | % And add new definitions. |
| 80 | % |
| 81 | % \begin{macrocode} |
| 82 | \let\vcentre\vcenter |
| 83 | \let\centre\center |
| 84 | \let\endcentre\endcenter |
| 85 | \let\centring\centering |
| 86 | \let\centreline\centerline |
| 87 | \let\textasteriskcentred\textasteriskcentered |
| 88 | \let\textdotcentred\textperiodcentered |
| 89 | % \end{macrocode} |
| 90 | % |
| 91 | % That's all there is. Byebye. |
| 92 | % |
| 93 | % \begin{macrocode} |
| 94 | %</package> |
| 95 | % \end{macrocode} |
| 96 | % \nopagebreak |
| 97 | % |
| 98 | % \hfill Mark Wooding, \today |
| 99 | % |
| 100 | % \Finale |
| 101 | % |
| 102 | \endinput |