| 1 |
% utf8math.tex |
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
% UTF-8 characters expanding to math control sequences. |
| 4 |
% Control sequecnes not defined here are supposed to be defined either in |
| 5 |
% plain.tex or amssym.tex. |
| 6 |
% |
| 7 |
% Copyright (C) 2003 David Necas (Yeti) |
| 8 |
% |
| 9 |
% This program is free software; you can redistribute it and/or modify |
| 10 |
% it under the terms of the GNU General Public License as published by |
| 11 |
% the Free Software Foundation; either version 2 of the License, or |
| 12 |
% (at your option) any later version. |
| 13 |
% |
| 14 |
% This program is distributed in the hope that it will be useful, |
| 15 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
% GNU General Public License for more details. |
| 18 |
% |
| 19 |
% You should have received a copy of the GNU General Public License |
| 20 |
% along with this program; if not, write to the Free Software |
| 21 |
% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 |
|
| 23 |
% Some regressions |
| 24 |
\mathchardef\utfminus"2200 |
| 25 |
\mathchardef\utfslash"013D |
| 26 |
\def\degree{{}^\circ} |
| 27 |
\def\degreeC{{\degree\mkern-2mu\rm C}} |
| 28 |
\def\degreeF{{\degree\rm F}} |
| 29 |
\mathchardef\Kelvin="004B |
| 30 |
\def\Angstrom{{\rm\AA}} |
| 31 |
\mathchardef\omicron"016F |
| 32 |
\mathchardef\Alpha"0041 |
| 33 |
\mathchardef\Beta"0042 |
| 34 |
\mathchardef\Epsilon"0045 |
| 35 |
\mathchardef\Zeta"005A |
| 36 |
\mathchardef\Eta"0048 |
| 37 |
\mathchardef\Iota"0049 |
| 38 |
\mathchardef\Kappa"004B |
| 39 |
\mathchardef\Mu"004D |
| 40 |
\mathchardef\Nu"004E |
| 41 |
\mathchardef\Omicron"004F |
| 42 |
\mathchardef\Rho"0050 |
| 43 |
\mathchardef\Tau"0054 |
| 44 |
\mathchardef\Chi"0058 |
| 45 |
|
| 46 |
% Roman numerals (more an example than anything else). |
| 47 |
\begingroup |
| 48 |
\let\ex\expandafter |
| 49 |
\def\name{romannum} |
| 50 |
\def\exdef#1{\ex\xdef\csname\name#1\endcsname{#1}} |
| 51 |
\def\\#1 {\edef\temp{\romannumeral#1}\exdef\temp |
| 52 |
\uppercase\ex{\ex\edef\ex\temp\ex{\romannumeral#1}}\exdef\temp} |
| 53 |
\\1 \\2 \\3 \\4 \\5 \\6 \\7 \\8 \\9 \\10 \\11 \\12 \\50 \\100 \\500 \\1000 % |
| 54 |
\endgroup |
| 55 |
|
| 56 |
% Include the generated UTF-8 -> control sequence mapping. |
| 57 |
\input utf8raw.tex |
| 58 |
|
| 59 |
\endinput |