| 1 |
% OFS: AMS fonts, declaration |
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
% Apr. 2004 Petr Olsak |
| 4 |
|
| 5 |
%% see more info at the end of this file |
| 6 |
|
| 7 |
\protectreading amsfn.tex % This is part of OFS package |
| 8 |
|
| 9 |
\def\loadAMSnormalmath{% |
| 10 |
\loadCMnormalmath |
| 11 |
\chardef\msamfam 8 |
| 12 |
\loadmathfam \msamfam [/msam]% MSAM, symbols from ASMTeX |
| 13 |
\chardef\msbmfam 9 |
| 14 |
\loadmathfam \msbmfam [/msbm]% MSBM, symbols from AMSTeX |
| 15 |
\lastfam =9 |
| 16 |
} |
| 17 |
\def\loadAMSboldmath{% |
| 18 |
\loadCMboldmath |
| 19 |
\chardef\msamfam 8 |
| 20 |
\loadmathfam \msamfam [/msam]% MSAM, symbols from ASMTeX |
| 21 |
\chardef\msbmfam 9 |
| 22 |
\loadmathfam \msbmfam [/msbm]% MSBM, symbols from AMSTeX |
| 23 |
\lastfam =9 |
| 24 |
} |
| 25 |
\def\setAMSmathchars{\mathencread ofs-ams;} |
| 26 |
|
| 27 |
\def\registerAMSfonts #1 {% |
| 28 |
\registertfm #1 - #110 % |
| 29 |
\registertfm #1 0pt-6pt #15 % |
| 30 |
\registertfm #1 6pt-7pt #16 % |
| 31 |
\registertfm #1 7pt-8pt #17 % |
| 32 |
\registertfm #1 8pt-9pt #18 % |
| 33 |
\registertfm #1 9pt-10pt #19 % |
| 34 |
\registertfm #1 10pt-* #110 % |
| 35 |
} |
| 36 |
\registerAMSfonts msam % |
| 37 |
\registerAMSfonts msbm % |
| 38 |
\registerAMSfonts eufm % |
| 39 |
\registerAMSfonts eufb % |
| 40 |
\registerAMSfonts eurm % |
| 41 |
\registerAMSfonts eurb % |
| 42 |
\registerAMSfonts eusm % |
| 43 |
\registerAMSfonts eusb % |
| 44 |
|
| 45 |
\registertfm cmbsy - - % reset |
| 46 |
\registerAMSfonts cmbsy % |
| 47 |
\registertfm cmex - - % reset |
| 48 |
\registerAMSfonts cmex % |
| 49 |
\registertfm cmmib - - % reset |
| 50 |
\registerAMSfonts cmmib % |
| 51 |
|
| 52 |
\registertfm euex - euex10 % |
| 53 |
\registertfm euex 0pt-8pt euex7 % |
| 54 |
\registertfm euex 8pt-9pt euex8 % |
| 55 |
\registertfm euex 9pt-10pt euex9 % |
| 56 |
\registertfm euex 10pt-* euex10 % |
| 57 |
|
| 58 |
\endinput |
| 59 |
|
| 60 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 61 |
|
| 62 |
You can use all AMS symbol sequences together with CM fonts in |
| 63 |
math formulae after: |
| 64 |
|
| 65 |
\input amsfn |
| 66 |
\def\fomenc{AMS} |
| 67 |
\setmath[//] |
| 68 |
|
| 69 |
You can add the Euler Fraktur to the math fonts by the following |
| 70 |
commands (before \setmath command): |
| 71 |
|
| 72 |
\addcmd\mathfonts {\def\tmpa{bold}% |
| 73 |
\ifx\mathversion\tmpa \def\tmpa{b}\else\def\tmpa{m}\fi |
| 74 |
\newmathfam\frakfam \loadmathfam\frakfam [/euf\tmpa]} |
| 75 |
\def\frak#1{{\fam\frakfam#1}} |
| 76 |
|
| 77 |
You can add the Euler Script to the math fonts: |
| 78 |
|
| 79 |
\addcmd\mathfonts {\def\tmpa{bold}% |
| 80 |
\ifx\mathversion\tmpa \def\tmpa{b}\else\def\tmpa{m}\fi |
| 81 |
\newmathfam\scriptfam \loadmathfam\scriptfam [/eus\tmpa]} |
| 82 |
\def\script#1{{\fam\scriptfam#1}} |
| 83 |
|
| 84 |
You can add the Euler Upright italic to the math fonts: |
| 85 |
|
| 86 |
\addcmd\mathfonts {\def\tmpa{bold}% |
| 87 |
\ifx\mathversion\tmpa \def\tmpa{b}\else\def\tmpa{m}\fi |
| 88 |
\newmathfam\upitfam \loadmathfam\upitfam [/eur\tmpa]} |
| 89 |
\def\upright#1{{\fam\upitfam#1}} |
| 90 |
|
| 91 |
You can replace standard CM operators \sum, \int, etc. by the |
| 92 |
operators from Euler extension font by the following commands: |
| 93 |
|
| 94 |
\addcmd\mathfonts{\newmathfam\euexfam \loadmathfam\euexfam [/euex]} |
| 95 |
\addcmd\mathchars{% |
| 96 |
\mathchardef \ointop "1\hex\euexfam 48 |
| 97 |
\mathchardef \sum "1\hex\euexfam 50 |
| 98 |
\mathchardef \prod "1\hex\euexfam 51 |
| 99 |
\mathchardef \intop "1\hex\euexfam 52 |
| 100 |
\mathchardef \uprod "1\hex\euexfam 60 |
| 101 |
\edef \lbrace {\delimiter "4266\hex\euexfam 08 }% |
| 102 |
\edef \rbrace {\delimiter "5267\hex\euexfam 09 }% |
| 103 |
\let\{=\lbrace |
| 104 |
\let\}=\rbrace |
| 105 |
\mathchardef \letfharpoonup "3\hex\euexfam 18 |
| 106 |
\mathchardef \leftharpoondown "3\hex\euexfam 19 |
| 107 |
\mathchardef \rightharpoonup "3\hex\euexfam 1A |
| 108 |
\mathchardef \rightharpoondown "3\hex\euexfam 1B |
| 109 |
\mathchardef \leftarrow "3\hex\euexfam 20 |
| 110 |
\mathchardef \rightarrow "3\hex\euexfam 21 |
| 111 |
\mathchardef \leftrightarrow "3\hex\euexfam 24 |
| 112 |
\mathchardef \nearrow "3\hex\euexfam 25 |
| 113 |
\mathchardef \searrow "3\hex\euexfam 26 |
| 114 |
\mathchardef \Leftarrow "3\hex\euexfam 28 |
| 115 |
\mathchardef \Rightarrow "3\hex\euexfam 29 |
| 116 |
\mathchardef \Leftrightarrow "3\hex\euexfam 2C |
| 117 |
\mathchardef \nwarrow "3\hex\euexfam 2D |
| 118 |
\mathchardef \swarrow "3\hex\euexfam 2E |
| 119 |
\mathchardef \infty "0\hex\euexfam 31 |
| 120 |
\edef \uparrow {\delimiter "3\hex\euexfam 22378 }% |
| 121 |
\edef \downarrow {\delimiter "3\hex\euexfam 23379 }% |
| 122 |
\edef \Uparrow {\delimiter "3\hex\euexfam 2A37E }% |
| 123 |
\edef \Downarrow {\delimiter "3\hex\euexfam 2B37F }% |
| 124 |
\edef \updownarrow {\delimiter "3\hex\euexfam 6C33F }% |
| 125 |
\edef \Updownarrow {\delimiter "3\hex\euexfam 6D377 }% |
| 126 |
} |
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|