| 1 |
%% @texfile{ |
| 2 |
%% filename = "amstex.tex", |
| 3 |
%% version = "2.2", |
| 4 |
%% date = "2001/10/04", |
| 5 |
%% time = "09:08:48 EDT", |
| 6 |
%% checksum = "54330 1806 2947 78920", |
| 7 |
%% filetype = "AMS-TeX: documentstyle", |
| 8 |
%% author = "American Mathematical Society", |
| 9 |
%% copyright = "Copyright 1985, 1990, 1991, 2001 |
| 10 |
%% American Mathematical Society, |
| 11 |
%% all rights reserved. Copying of this file is |
| 12 |
%% authorized only if either: |
| 13 |
%% (1) you make absolutely no changes to your copy |
| 14 |
%% including name; OR |
| 15 |
%% (2) if you do make changes, you first rename it |
| 16 |
%% to some other name.", |
| 17 |
%% address = "American Mathematical Society, |
| 18 |
%% Technical Support, |
| 19 |
%% Publications Technical Group, |
| 20 |
%% P. O. Box 6248, |
| 21 |
%% Providence, RI 02940, |
| 22 |
%% USA", |
| 23 |
%% telephone = "401-455-4080 or (in the USA and Canada) |
| 24 |
%% 800-321-4AMS (321-4267)", |
| 25 |
%% FAX = "401-331-3842", |
| 26 |
%% email = "[email protected] (Internet)", |
| 27 |
%% codetable = "ISO/ASCII", |
| 28 |
%% keywords = "amstex, ams-tex, tex", |
| 29 |
%% abstract = "This file contains the AMS-TeX Version 2.2 |
| 30 |
%% macro package. It is intended to be used in |
| 31 |
%% conjunction with plain TeX. The macros defined |
| 32 |
%% herein are chiefly oriented to the construction |
| 33 |
%% of mathematical formulas, both display and |
| 34 |
%% nondisplay, using AMS conventions for fonts, |
| 35 |
%% spacing, and other details." |
| 36 |
%% docstring = "The checksum field above contains a CRC-16 |
| 37 |
%% checksum as the first value, followed by the |
| 38 |
%% equivalent of the standard UNIX wc (word |
| 39 |
%% count) utility output of lines, words, and |
| 40 |
%% characters. This is produced by Robert |
| 41 |
%% Solovay's checksum utility.", |
| 42 |
%% } |
| 43 |
%% ==================================================================== |
| 44 |
\def\fmtname{AmS-TeX} |
| 45 |
\let\plainfmtversion\fmtversion |
| 46 |
\def\fmtversion{2.2} |
| 47 |
\catcode`\@=11 |
| 48 |
\ifx\amstexloaded@\relax\catcode`\@=\active |
| 49 |
\endinput\else\let\amstexloaded@\relax\fi |
| 50 |
\newlinechar=`\^^J |
| 51 |
\def\W@{\immediate\write\sixt@@n} |
| 52 |
\def\CR@{\W@{^^J\fmtname - Version \fmtversion^^J}} |
| 53 |
\CR@ \everyjob{\CR@} |
| 54 |
\message{Loading definitions for} |
| 55 |
\message{misc utility macros,} |
| 56 |
\toksdef\toks@@=2 |
| 57 |
\long\def\rightappend@#1\to#2{\toks@{\\{#1}}\toks@@ |
| 58 |
=\expandafter{#2}\xdef#2{\the\toks@@\the\toks@}\toks@{}\toks@@{}} |
| 59 |
\def\alloclist@{} |
| 60 |
\newif\ifalloc@ |
| 61 |
\def\showallocations{{\def\\{\immediate\write\m@ne}\alloclist@}\alloc@true} |
| 62 |
\def\alloc@#1#2#3#4#5{\global\advance\count1#1by\@ne |
| 63 |
\ch@ck#1#4#2\allocationnumber=\count1#1 |
| 64 |
\global#3#5=\allocationnumber |
| 65 |
\edef\next@{\string#5=\string#2\the\allocationnumber}% |
| 66 |
\expandafter\rightappend@\next@\to\alloclist@} |
| 67 |
\newcount\count@@ |
| 68 |
\newcount\count@@@ |
| 69 |
\def\FN@{\futurelet\next} |
| 70 |
\def\DN@{\def\next@} |
| 71 |
\def\DNii@{\def\nextii@} |
| 72 |
\def\RIfM@{\relax\ifmmode} |
| 73 |
\def\RIfMIfI@{\relax\ifmmode\ifinner} |
| 74 |
\def\setboxz@h{\setbox\z@\hbox} |
| 75 |
\def\wdz@{\wd\z@} |
| 76 |
\def\boxz@{\box\z@} |
| 77 |
\def\setbox@ne{\setbox\@ne} |
| 78 |
\def\wd@ne{\wd\@ne} |
| 79 |
\def\iterate{\body\expandafter\iterate\else\fi} |
| 80 |
\def\err@#1{\errmessage{AmS-TeX error: #1}} |
| 81 |
\newhelp\defaulthelp@{Sorry, I already gave what help I could...^^J |
| 82 |
Maybe you should try asking a human?^^J |
| 83 |
An error might have occurred before I noticed any problems.^^J |
| 84 |
``If all else fails, read the instructions.''} |
| 85 |
\def\Err@{\errhelp\defaulthelp@\err@} |
| 86 |
\def\eat@#1{} |
| 87 |
\def\in@#1#2{\def\in@@##1#1##2##3\in@@{\ifx\in@##2\in@false\else\in@true\fi}% |
| 88 |
\in@@#2#1\in@\in@@} |
| 89 |
\newif\ifin@ |
| 90 |
\def\space@.{\futurelet\space@\relax} |
| 91 |
\space@. % |
| 92 |
\newhelp\athelp@ |
| 93 |
{Only certain combinations beginning with @ make sense to me.^^J |
| 94 |
Perhaps you wanted \string\@\space for a printed @?^^J |
| 95 |
I've ignored the character or group after @.} |
| 96 |
{\catcode`\~=\active % just in case |
| 97 |
\lccode`\~=`\@ \lowercase{\gdef~{\FN@\at@}}} |
| 98 |
\def\at@{\let\next@\at@@ |
| 99 |
\ifcat\noexpand\next a\else\ifcat\noexpand\next0\else |
| 100 |
\ifcat\noexpand\next\relax\else |
| 101 |
\let\next\at@@@\fi\fi\fi |
| 102 |
\next@} |
| 103 |
\def\at@@#1{\expandafter |
| 104 |
\ifx\csname\space @\string#1\endcsname\relax |
| 105 |
\expandafter\at@@@ \else |
| 106 |
\csname\space @\string#1\expandafter\endcsname\fi} |
| 107 |
\def\at@@@#1{\errhelp\athelp@ \err@{\Invalid@@ @}}%% |
| 108 |
\def\atdef@#1{\expandafter\def\csname\space @\string#1\endcsname}%% |
| 109 |
\newhelp\defahelp@{If you typed \string\define\space cs instead of |
| 110 |
\string\define\string\cs\space^^J |
| 111 |
I've substituted an inaccessible control sequence so that your^^J |
| 112 |
definition will be completed without mixing me up too badly.^^J |
| 113 |
If you typed \string\define{\string\cs} the inaccessible control sequence^^J |
| 114 |
was defined to be \string\cs, and the rest of your^^J |
| 115 |
definition appears as input.} |
| 116 |
\newhelp\defbhelp@{I've ignored your definition, because it might^^J |
| 117 |
conflict with other uses that are important to me.} |
| 118 |
\def\define{\FN@\define@} |
| 119 |
\def\define@{\ifcat\noexpand\next\relax |
| 120 |
\expandafter\define@@\else\errhelp\defahelp@ %1 |
| 121 |
\err@{\string\define\space must be followed by a control |
| 122 |
sequence}\expandafter\def\expandafter\nextii@\fi} %2 |
| 123 |
\def\undefined@@@@@@@@@@{} |
| 124 |
\def\preloaded@@@@@@@@@@{} |
| 125 |
\def\next@@@@@@@@@@{} |
| 126 |
\def\define@@#1{\ifx#1\relax\errhelp\defbhelp@ %1 |
| 127 |
\err@{\string#1\space is already defined}\DN@{\DNii@}\else |
| 128 |
\expandafter\ifx\csname\expandafter\eat@\string %2 |
| 129 |
#1@@@@@@@@@@\endcsname\undefined@@@@@@@@@@\errhelp\defbhelp@ |
| 130 |
\err@{\string#1\space can't be defined}\DN@{\DNii@}\else |
| 131 |
\expandafter\ifx\csname\expandafter\eat@\string#1\endcsname\relax %3 |
| 132 |
\global\let#1\undefined\DN@{\def#1}\else\errhelp\defbhelp@ |
| 133 |
\err@{\string#1\space is already defined}\DN@{\DNii@}\fi |
| 134 |
\fi\fi\next@} |
| 135 |
\let\redefine\def |
| 136 |
\def\predefine#1#2{\let#1#2} |
| 137 |
\def\undefine#1{\let#1\undefined} |
| 138 |
\message{page layout,} |
| 139 |
\newdimen\captionwidth@ |
| 140 |
\captionwidth@\hsize |
| 141 |
\advance\[email protected] |
| 142 |
\def\pagewidth#1{\hsize#1\relax |
| 143 |
\captionwidth@\hsize\advance\[email protected]} |
| 144 |
\def\pageheight#1{\vsize#1\relax} |
| 145 |
\def\hcorrection#1{\advance\hoffset#1\relax} |
| 146 |
\def\vcorrection#1{\advance\voffset#1\relax} |
| 147 |
\message{accents/punctuation,} |
| 148 |
\def\tie{\unskip\nobreak\ } |
| 149 |
\let\graveaccent\` |
| 150 |
\let\acuteaccent\' |
| 151 |
\let\tildeaccent\~ |
| 152 |
\let\hataccent\^ |
| 153 |
\let\underscore\_ |
| 154 |
\let\B\= |
| 155 |
\let\D\. |
| 156 |
\let\ic@\/ |
| 157 |
\def\/{\unskip\ic@} |
| 158 |
\def\textfonti{\the\textfont\@ne} |
| 159 |
\def\t#1#2{{\edef\next@{\the\font}\textfonti\accent"7F \next@#1#2}} |
| 160 |
\def~{\unskip\nobreak\ \ignorespaces} |
| 161 |
\def\.{.\spacefactor\@m} |
| 162 |
\atdef@;{\leavevmode\null;} |
| 163 |
\atdef@:{\leavevmode\null:} |
| 164 |
\atdef@?{\leavevmode\null?} |
| 165 |
\edef\@{\string @} |
| 166 |
\def\relaxnext@{\let\next\relax} |
| 167 |
\atdef@-{\relaxnext@\leavevmode |
| 168 |
\DN@{\ifx\next-\DN@-{\FN@\nextii@}\else |
| 169 |
\DN@{\leavevmode\hbox{-}}\fi\next@}% |
| 170 |
\DNii@{\ifx\next-\DN@-{\leavevmode\hbox{---}}\else |
| 171 |
\DN@{\leavevmode\hbox{--}}\fi\next@}% |
| 172 |
\FN@\next@} |
| 173 |
\def\srdr@{\kern.16667em} |
| 174 |
\def\drsr@{\kern.02778em} |
| 175 |
\def\sldl@{\drsr@} |
| 176 |
\def\dlsl@{\srdr@} |
| 177 |
\atdef@"{\unskip\relaxnext@ |
| 178 |
\DN@{\ifx\next\space@\DN@. {\FN@\nextii@}\else |
| 179 |
\DN@.{\FN@\nextii@}\fi\next@.}% |
| 180 |
\DNii@{\ifx\next`\DN@`{\FN@\nextiii@}\else |
| 181 |
\ifx\next\lq\DN@\lq{\FN@\nextiii@}\else |
| 182 |
\DN@####1{\FN@\nextiv@}\fi\fi\next@}% |
| 183 |
\def\nextiii@{\ifx\next`\DN@`{\sldl@``}\else\ifx\next\lq |
| 184 |
\DN@\lq{\sldl@``}\else\DN@{\dlsl@`}\fi\fi\next@}% |
| 185 |
\def\nextiv@{\ifx\next'\DN@'{\srdr@''}\else |
| 186 |
\ifx\next\rq\DN@\rq{\srdr@''}\else\DN@{\drsr@'}\fi\fi\next@}% |
| 187 |
\FN@\next@} |
| 188 |
\def\flushpar{\par\noindent} |
| 189 |
\def\textfontii{\the\textfont\tw@} |
| 190 |
\def\lbrace@{\delimiter"4266308 } |
| 191 |
\def\rbrace@{\delimiter"5267309 } |
| 192 |
\def\{{\RIfM@\lbrace@\else{\textfontii f}\spacefactor\@m\fi} |
| 193 |
\def\}{\RIfM@\rbrace@\else |
| 194 |
\let\@sf\empty\ifhmode\edef\@sf{\spacefactor\the\spacefactor}\fi |
| 195 |
{\textfontii g}\@sf\relax\fi} |
| 196 |
\let\lbrace\{ |
| 197 |
\let\rbrace\} |
| 198 |
\def\AmSTeX{{\textfontii A\kern-.1667em% |
| 199 |
\lower.5ex\hbox{M}\kern-.125emS}-\TeX\spacefactor1000 } |
| 200 |
\message{line and page breaks,} |
| 201 |
\def\vmodeerr@#1{\Err@{\string#1\space not allowed between paragraphs}} |
| 202 |
\def\mathmodeerr@#1{\Err@{\string#1\space not allowed in math mode}} |
| 203 |
\def\linebreak{\RIfM@\mathmodeerr@\linebreak\else |
| 204 |
\ifhmode\unskip\unkern\break\else\vmodeerr@\linebreak\fi\fi} |
| 205 |
\def\slash{\unskip/\penalty\exhyphenpenalty} |
| 206 |
\newskip\saveskip@ |
| 207 |
\def\allowlinebreak{\RIfM@\mathmodeerr@\allowlinebreak\else |
| 208 |
\ifhmode\saveskip@\lastskip\unskip |
| 209 |
\allowbreak\ifdim\saveskip@>\z@\hskip\saveskip@\fi |
| 210 |
\else\vmodeerr@\allowlinebreak\fi\fi} |
| 211 |
\def\nolinebreak{\RIfM@\mathmodeerr@\nolinebreak\else |
| 212 |
\ifhmode\saveskip@\lastskip\unskip |
| 213 |
\nobreak\ifdim\saveskip@>\z@\hskip\saveskip@\fi |
| 214 |
\else\vmodeerr@\nolinebreak\fi\fi} |
| 215 |
\def\newline{\relaxnext@ |
| 216 |
\DN@{\RIfM@\expandafter\mathmodeerr@\expandafter\newline\else |
| 217 |
\ifhmode\ifx\next\par\else |
| 218 |
\expandafter\unskip\expandafter\null\expandafter\hfill\expandafter\break\fi |
| 219 |
\else |
| 220 |
\expandafter\vmodeerr@\expandafter\newline\fi\fi}% |
| 221 |
\FN@\next@} |
| 222 |
\def\dmatherr@#1{\Err@{\string#1\space not allowed in display math mode}} |
| 223 |
\def\nondmatherr@#1{\Err@{\string#1\space not allowed in non-display math |
| 224 |
mode}} |
| 225 |
\def\onlydmatherr@#1{\Err@{\string#1\space allowed only in display math mode}} |
| 226 |
\def\nonmatherr@#1{\Err@{\string#1\space allowed only in math mode}} |
| 227 |
\def\mathbreak{\RIfMIfI@\break\else |
| 228 |
\dmatherr@\mathbreak\fi\else\nonmatherr@\mathbreak\fi} |
| 229 |
\def\nomathbreak{\RIfMIfI@\nobreak\else |
| 230 |
\dmatherr@\nomathbreak\fi\else\nonmatherr@\nomathbreak\fi} |
| 231 |
\def\allowmathbreak{\RIfMIfI@\allowbreak\else |
| 232 |
\dmatherr@\allowmathbreak\fi\else\nonmatherr@\allowmathbreak\fi} |
| 233 |
\def\pagebreak{\RIfM@ |
| 234 |
\ifinner\nondmatherr@\pagebreak\else\postdisplaypenalty-\@M\fi |
| 235 |
\else\ifvmode\removelastskip\break\else\vadjust{\break}\fi\fi} |
| 236 |
\def\nopagebreak{\RIfM@ |
| 237 |
\ifinner\nondmatherr@\nopagebreak\else\postdisplaypenalty\@M\fi |
| 238 |
\else\ifvmode\nobreak\else\vadjust{\nobreak}\fi\fi} |
| 239 |
\def\nonvmodeerr@#1{\Err@{\string#1\space not allowed within a paragraph |
| 240 |
or in math}} |
| 241 |
\def\vnonvmode@#1#2{\relaxnext@\DNii@{\ifx\next\par\DN@{#1}\else |
| 242 |
\DN@{#2}\fi\next@}% |
| 243 |
\ifvmode\DN@{#1}\else |
| 244 |
\DN@{\FN@\nextii@}\fi\next@} |
| 245 |
\def\newpage{\vnonvmode@{\vfill\break}{\nonvmodeerr@\newpage}} |
| 246 |
\def\smallpagebreak{\vnonvmode@\smallbreak{\nonvmodeerr@\smallpagebreak}} |
| 247 |
\def\medpagebreak{\vnonvmode@\medbreak{\nonvmodeerr@\medpagebreak}} |
| 248 |
\def\bigpagebreak{\vnonvmode@\bigbreak{\nonvmodeerr@\bigpagebreak}} |
| 249 |
\def\NoBlackBoxes{\global\overfullrule\z@} |
| 250 |
\def\BlackBoxes{\global\overfullrule5\p@} |
| 251 |
\def\Invalid@#1{\def#1{\Err@{\Invalid@@\string#1}}} |
| 252 |
\def\Invalid@@{Invalid use of } |
| 253 |
\message{figures,} |
| 254 |
\Invalid@\caption |
| 255 |
\Invalid@\captionwidth |
| 256 |
\newdimen\smallcaptionwidth@ |
| 257 |
\def\topspace{\mid@false\ins@} |
| 258 |
\def\midspace{\mid@true\ins@} |
| 259 |
\newif\ifmid@ |
| 260 |
\def\captionfont@{} |
| 261 |
\def\ins@#1{\relaxnext@\allowbreak |
| 262 |
\smallcaptionwidth@\captionwidth@\gdef\thespace@{#1}% |
| 263 |
\DN@{\ifx\next\space@\DN@. {\FN@\nextii@}\else |
| 264 |
\DN@.{\FN@\nextii@}\fi\next@.}% |
| 265 |
\DNii@{\ifx\next\caption\DN@\caption{\FN@\nextiii@}% |
| 266 |
\else\let\next@\nextiv@\fi\next@}% |
| 267 |
\def\nextiv@{\vnonvmode@ |
| 268 |
{\ifmid@\expandafter\midinsert\else\expandafter\topinsert\fi |
| 269 |
\vbox to\thespace@{}\endinsert} |
| 270 |
{\ifmid@\nonvmodeerr@\midspace\else\nonvmodeerr@\topspace\fi}}% |
| 271 |
\def\nextiii@{\ifx\next\captionwidth\expandafter\nextv@ |
| 272 |
\else\expandafter\nextvi@\fi}% |
| 273 |
\def\nextv@\captionwidth##1##2{\smallcaptionwidth@##1\relax\nextvi@{##2}}% |
| 274 |
\def\nextvi@##1{\def\thecaption@{\captionfont@##1}% |
| 275 |
\DN@{\ifx\next\space@\DN@. {\FN@\nextvii@}\else |
| 276 |
\DN@.{\FN@\nextvii@}\fi\next@.}% |
| 277 |
\FN@\next@}% |
| 278 |
\def\nextvii@{\vnonvmode@ |
| 279 |
{\ifmid@\expandafter\midinsert\else |
| 280 |
\expandafter\topinsert\fi\vbox to\thespace@{}\nobreak\smallskip |
| 281 |
\setboxz@h{\noindent\ignorespaces\thecaption@\unskip}% |
| 282 |
\ifdim\wdz@>\smallcaptionwidth@\centerline{\vbox{\hsize\smallcaptionwidth@ |
| 283 |
\noindent\ignorespaces\thecaption@\unskip}}% |
| 284 |
\else\centerline{\boxz@}\fi\endinsert} |
| 285 |
{\ifmid@\nonvmodeerr@\midspace |
| 286 |
\else\nonvmodeerr@\topspace\fi}}% |
| 287 |
\FN@\next@} |
| 288 |
\message{comments,} |
| 289 |
\def\newcodes@{\catcode`\\12\catcode`\{12\catcode`\}12\catcode`\#12% |
| 290 |
\catcode`\%12\relax} |
| 291 |
\def\oldcodes@{\catcode`\\0\catcode`\{1\catcode`\}2\catcode`\#6% |
| 292 |
\catcode`\%14\relax} |
| 293 |
\def\comment{\newcodes@\endlinechar=10 \comment@} |
| 294 |
{\lccode`\0=`\\ |
| 295 |
\lowercase{\gdef\comment@#1^^J{\comment@@#10endcomment\comment@@@}% |
| 296 |
\gdef\comment@@#10endcomment{\FN@\comment@@@}% |
| 297 |
\gdef\comment@@@#1\comment@@@{\ifx\next\comment@@@\let\next\comment@ |
| 298 |
\else\def\next{\oldcodes@\endlinechar=`\^^M\relax}% |
| 299 |
\fi\next}}} |
| 300 |
\def\pr@m@s{\ifx'\next\DN@##1{\prim@s}\else\let\next@\egroup\fi\next@} |
| 301 |
\def\prime{{\null\prime@\null}} |
| 302 |
\mathchardef\prime@="0230 |
| 303 |
\let\dsize\displaystyle |
| 304 |
\let\tsize\textstyle |
| 305 |
\let\ssize\scriptstyle |
| 306 |
\let\sssize\scriptscriptstyle |
| 307 |
\message{math spacing,} |
| 308 |
\def\,{\RIfM@\mskip\thinmuskip\relax\else\kern.16667em\fi} |
| 309 |
\def\!{\RIfM@\mskip-\thinmuskip\relax\else\kern-.16667em\fi} |
| 310 |
\let\thinspace\, |
| 311 |
\let\negthinspace\! |
| 312 |
\def\medspace{\RIfM@\mskip\medmuskip\relax\else\kern.222222em\fi} |
| 313 |
\def\negmedspace{\RIfM@\mskip-\medmuskip\relax\else\kern-.222222em\fi} |
| 314 |
\def\thickspace{\RIfM@\mskip\thickmuskip\relax\else\kern.27777em\fi} |
| 315 |
\let\;\thickspace |
| 316 |
\def\negthickspace{\RIfM@\mskip-\thickmuskip\relax\else |
| 317 |
\kern-.27777em\fi} |
| 318 |
\atdef@,{\RIfM@\mskip.1\thinmuskip\else\leavevmode\null,\fi} |
| 319 |
\atdef@!{\RIfM@\mskip-.1\thinmuskip\else\leavevmode\null!\fi} |
| 320 |
\atdef@.{\RIfM@&&\else\leavevmode.\spacefactor3000 \fi} |
| 321 |
\def\and{\DOTSB\;\mathchar"3026 \;} |
| 322 |
\def\implies{\DOTSB\;\Longrightarrow\;} |
| 323 |
\def\impliedby{\DOTSB\;\Longleftarrow\;} |
| 324 |
\message{fractions,} |
| 325 |
\def\frac#1#2{{#1\over#2}} |
| 326 |
\def\dfrac#1#2{{\displaystyle{#1\over#2}}} |
| 327 |
\def\tfrac#1#2{{\textstyle{#1\over#2}}} |
| 328 |
\newdimen\ex@ |
| 329 |
\[email protected] |
| 330 |
\Invalid@\thickness |
| 331 |
\def\thickfrac{\relaxnext@ |
| 332 |
\DN@{\ifx\next\thickness\let\next@\nextii@\else |
| 333 |
\DN@{\nextii@\thickness1}\fi\next@}% |
| 334 |
\DNii@\thickness##1##2##3{{##2\above##1\ex@##3}}% |
| 335 |
\FN@\next@} |
| 336 |
\def\fracwithdelims#1#2#3#4{{#3\overwithdelims#1#2#4}} |
| 337 |
\def\thickfracwithdelims#1#2{\relaxnext@\def\ldelim@{#1}\def\rdelim@{#2}% |
| 338 |
\DN@{\ifx\next\thickness\let\next@\nextii@\else |
| 339 |
\DN@{\nextii@\thickness1}\fi\next@}% |
| 340 |
\DNii@\thickness##1##2##3{{##2\abovewithdelims |
| 341 |
\ldelim@\rdelim@##1\ex@##3}}% |
| 342 |
\FN@\next@} |
| 343 |
\def\binom#1#2{{#1\choose#2}} |
| 344 |
\def\dbinom#1#2{{\displaystyle{#1\choose#2}}} |
| 345 |
\def\tbinom#1#2{{\textstyle{#1\choose#2}}} |
| 346 |
\def\:{\nobreak\hskip.1111em\mathpunct{}\nonscript\mkern-\thinmuskip{:}\hskip |
| 347 |
.3333emplus.0555em\relax} |
| 348 |
\def\snug{\unskip\kern-\mathsurround} |
| 349 |
\message{smash commands,} |
| 350 |
\def\topsmash{\top@true\bot@false\smash@} |
| 351 |
\def\botsmash{\top@false\bot@true\smash@} |
| 352 |
\newif\iftop@ |
| 353 |
\newif\ifbot@ |
| 354 |
\def\smash{\top@true\bot@true\smash@} |
| 355 |
\def\smash@{\RIfM@\expandafter\mathpalette\expandafter\mathsm@sh\else |
| 356 |
\expandafter\makesm@sh\fi} |
| 357 |
\def\finsm@sh{\iftop@\ht\z@\z@\fi\ifbot@\dp\z@\z@\fi\leavevmode\boxz@} |
| 358 |
\message{large operator symbols,} |
| 359 |
\def\LimitsOnSums{\global\let\slimits@\displaylimits} |
| 360 |
\def\NoLimitsOnSums{\global\let\slimits@\nolimits} |
| 361 |
\LimitsOnSums |
| 362 |
\mathchardef\coprod@="1360 \def\coprod{\DOTSB\coprod@\slimits@} |
| 363 |
\mathchardef\bigvee@="1357 \def\bigvee{\DOTSB\bigvee@\slimits@} |
| 364 |
\mathchardef\bigwedge@="1356 \def\bigwedge{\DOTSB\bigwedge@\slimits@} |
| 365 |
\mathchardef\biguplus@="1355 \def\biguplus{\DOTSB\biguplus@\slimits@} |
| 366 |
\mathchardef\bigcap@="1354 \def\bigcap{\DOTSB\bigcap@\slimits@} |
| 367 |
\mathchardef\bigcup@="1353 \def\bigcup{\DOTSB\bigcup@\slimits@} |
| 368 |
\mathchardef\prod@="1351 \def\prod{\DOTSB\prod@\slimits@} |
| 369 |
\mathchardef\sum@="1350 \def\sum{\DOTSB\sum@\slimits@} |
| 370 |
\mathchardef\bigotimes@="134E \def\bigotimes{\DOTSB\bigotimes@\slimits@} |
| 371 |
\mathchardef\bigoplus@="134C \def\bigoplus{\DOTSB\bigoplus@\slimits@} |
| 372 |
\mathchardef\bigodot@="134A \def\bigodot{\DOTSB\bigodot@\slimits@} |
| 373 |
\mathchardef\bigsqcup@="1346 \def\bigsqcup{\DOTSB\bigsqcup@\slimits@} |
| 374 |
\message{integrals,} |
| 375 |
\def\LimitsOnInts{\global\let\ilimits@\displaylimits} |
| 376 |
\def\NoLimitsOnInts{\global\let\ilimits@\nolimits} |
| 377 |
\NoLimitsOnInts |
| 378 |
\def\int{\DOTSI\intop\ilimits@} |
| 379 |
\def\oint{\DOTSI\ointop\ilimits@} |
| 380 |
\def\intic@{\mathchoice{\hskip.5em}{\hskip.4em}{\hskip.4em}{\hskip.4em}} |
| 381 |
\def\negintic@{\mathchoice |
| 382 |
{\hskip-.5em}{\hskip-.4em}{\hskip-.4em}{\hskip-.4em}} |
| 383 |
\def\intkern@{\mathchoice{\!\!\!}{\!\!}{\!\!}{\!\!}} |
| 384 |
\def\intdots@{\mathchoice{\plaincdots@} |
| 385 |
{{\cdotp}\mkern1.5mu{\cdotp}\mkern1.5mu{\cdotp}} |
| 386 |
{{\cdotp}\mkern1mu{\cdotp}\mkern1mu{\cdotp}} |
| 387 |
{{\cdotp}\mkern1mu{\cdotp}\mkern1mu{\cdotp}}} |
| 388 |
\newcount\intno@ |
| 389 |
\def\iint{\DOTSI\intno@\tw@\FN@\ints@} |
| 390 |
\def\iiint{\DOTSI\intno@\thr@@\FN@\ints@} |
| 391 |
\def\iiiint{\DOTSI\intno@4 \FN@\ints@} |
| 392 |
\def\idotsint{\DOTSI\intno@\z@\FN@\ints@} |
| 393 |
\def\ints@{\findlimits@\ints@@} |
| 394 |
\newif\iflimtoken@ |
| 395 |
\newif\iflimits@ |
| 396 |
\def\findlimits@{\limtoken@true\ifx\next\limits\limits@true |
| 397 |
\else\ifx\next\nolimits\limits@false\else |
| 398 |
\limtoken@false\ifx\ilimits@\nolimits\limits@false\else |
| 399 |
\ifinner\limits@false\else\limits@true\fi\fi\fi\fi} |
| 400 |
\def\multint@{\int\ifnum\intno@=\z@\intdots@ %1 |
| 401 |
\else\intkern@\fi %2 |
| 402 |
\ifnum\intno@>\tw@\int\intkern@\fi %3 |
| 403 |
\ifnum\intno@>\thr@@\int\intkern@\fi %4 |
| 404 |
\int} %5 |
| 405 |
\def\multintlimits@{\intop\ifnum\intno@=\z@\intdots@\else\intkern@\fi |
| 406 |
\ifnum\intno@>\tw@\intop\intkern@\fi |
| 407 |
\ifnum\intno@>\thr@@\intop\intkern@\fi\intop} |
| 408 |
\def\ints@@{\iflimtoken@ %1 |
| 409 |
\def\ints@@@{\iflimits@\negintic@\mathop{\intic@\multintlimits@}\limits %2 |
| 410 |
\else\multint@\nolimits\fi %3 |
| 411 |
\eat@} %4 |
| 412 |
\else %5 |
| 413 |
\def\ints@@@{\iflimits@\negintic@ |
| 414 |
\mathop{\intic@\multintlimits@}\limits\else |
| 415 |
\multint@\nolimits\fi}\fi\ints@@@} |
| 416 |
\def\LimitsOnNames{\global\let\nlimits@\displaylimits} |
| 417 |
\def\NoLimitsOnNames{\global\let\nlimits@\nolimits@} |
| 418 |
\LimitsOnNames |
| 419 |
\def\nolimits@{\relaxnext@ |
| 420 |
\DN@{\ifx\next\limits\DN@\limits{\nolimits}\else |
| 421 |
\let\next@\nolimits\fi\next@}% |
| 422 |
\FN@\next@} |
| 423 |
\message{operator names,} |
| 424 |
\def\newmcodes@{\mathcode`\'"27\mathcode`\*"2A\mathcode`\."613A% |
| 425 |
\mathcode`\-"2D\mathcode`\/"2F\mathcode`\:"603A } |
| 426 |
\def\operatorname#1{\mathop{\newmcodes@\kern\z@\fam\z@#1}\nolimits@} |
| 427 |
\def\operatornamewithlimits#1{\mathop{\newmcodes@\kern\z@\fam\z@#1}\nlimits@} |
| 428 |
\def\qopname@#1{\mathop{\fam\z@#1}\nolimits@} |
| 429 |
\def\qopnamewl@#1{\mathop{\fam\z@#1}\nlimits@} |
| 430 |
\def\arccos{\qopname@{arccos}} |
| 431 |
\def\arcsin{\qopname@{arcsin}} |
| 432 |
\def\arctan{\qopname@{arctan}} |
| 433 |
\def\arg{\qopname@{arg}} |
| 434 |
\def\cos{\qopname@{cos}} |
| 435 |
\def\cosh{\qopname@{cosh}} |
| 436 |
\def\cot{\qopname@{cot}} |
| 437 |
\def\coth{\qopname@{coth}} |
| 438 |
\def\csc{\qopname@{csc}} |
| 439 |
\def\deg{\qopname@{deg}} |
| 440 |
\def\det{\qopnamewl@{det}} |
| 441 |
\def\dim{\qopname@{dim}} |
| 442 |
\def\exp{\qopname@{exp}} |
| 443 |
\def\gcd{\qopnamewl@{gcd}} |
| 444 |
\def\hom{\qopname@{hom}} |
| 445 |
\def\inf{\qopnamewl@{inf}} |
| 446 |
\def\injlim{\qopnamewl@{inj\,lim}} |
| 447 |
\def\ker{\qopname@{ker}} |
| 448 |
\def\lg{\qopname@{lg}} |
| 449 |
\def\lim{\qopnamewl@{lim}} |
| 450 |
\def\liminf{\qopnamewl@{lim\,inf}} |
| 451 |
\def\limsup{\qopnamewl@{lim\,sup}} |
| 452 |
\def\ln{\qopname@{ln}} |
| 453 |
\def\log{\qopname@{log}} |
| 454 |
\def\max{\qopnamewl@{max}} |
| 455 |
\def\min{\qopnamewl@{min}} |
| 456 |
\def\Pr{\qopnamewl@{Pr}} |
| 457 |
\def\projlim{\qopnamewl@{proj\,lim}} |
| 458 |
\def\sec{\qopname@{sec}} |
| 459 |
\def\sin{\qopname@{sin}} |
| 460 |
\def\sinh{\qopname@{sinh}} |
| 461 |
\def\sup{\qopnamewl@{sup}} |
| 462 |
\def\tan{\qopname@{tan}} |
| 463 |
\def\tanh{\qopname@{tanh}} |
| 464 |
\def\varinjlim{\mathop{\vtop{\ialign{##\crcr |
| 465 |
\hfil\rm lim\hfil\crcr\noalign{\nointerlineskip}\rightarrowfill\crcr |
| 466 |
\noalign{\nointerlineskip\kern-\ex@}\crcr}}}} |
| 467 |
\def\varprojlim{\mathop{\vtop{\ialign{##\crcr |
| 468 |
\hfil\rm lim\hfil\crcr\noalign{\nointerlineskip}\leftarrowfill\crcr |
| 469 |
\noalign{\nointerlineskip\kern-\ex@}\crcr}}}} |
| 470 |
\def\varliminf{\mathop{\underline{\vrule height\z@ depth.2exwidth\z@ |
| 471 |
\hbox{\rm lim}}}} |
| 472 |
\def\varlimsup{\mathop{\overline{\hbox{\rm lim}}}} |
| 473 |
\newdimen\buffer@ |
| 474 |
\buffer@\fontdimen13 \tenex |
| 475 |
\newdimen\buffer |
| 476 |
\buffer\buffer@ |
| 477 |
\def\ChangeBuffer#1{\fontdimen13 \tenex#1\relax |
| 478 |
\global\buffer\fontdimen13 \tenex} |
| 479 |
\def\ResetBuffer{\fontdimen13 \tenex\buffer@\global\buffer\buffer@} |
| 480 |
\def\shave#1{\mathop{\hbox{$\m@th\fontdimen13 \tenex\z@ %1 |
| 481 |
\displaystyle{#1}$}}\fontdimen13 \tenex\buffer} |
| 482 |
\def\topshave#1{\mathop{\topsmash{\displaystyle{#1}}\vphantom{\shave{#1}}}} |
| 483 |
\def\botshave#1{\mathop{\botsmash{\displaystyle{#1}}\vphantom{\shave{#1}}}} |
| 484 |
\message{multilevel sub/superscripts,} |
| 485 |
\Invalid@\\ |
| 486 |
\def\Let@{\relax\iffalse{\fi\let\\=\cr\iffalse}\fi} |
| 487 |
\Invalid@\vspace |
| 488 |
\def\vspace@{\def\vspace##1{\crcr\noalign{\vskip##1\relax}}} |
| 489 |
\def\multilimits@{\bgroup\vspace@\Let@ |
| 490 |
\baselineskip\fontdimen10 \scriptfont\tw@ |
| 491 |
\advance\baselineskip\fontdimen12 \scriptfont\tw@ |
| 492 |
\lineskip\thr@@\fontdimen8 \scriptfont\thr@@ |
| 493 |
\lineskiplimit\lineskip |
| 494 |
\vbox\bgroup\ialign\bgroup\hfil$\m@th\scriptstyle{##}$\hfil\crcr} |
| 495 |
\def\Sb{_\multilimits@} |
| 496 |
\def\endSb{\crcr\egroup\egroup\egroup} |
| 497 |
\def\Sp{^\multilimits@} |
| 498 |
\let\endSp\endSb |
| 499 |
\def\spreadlines#1{\RIfMIfI@\onlydmatherr@\spreadlines\else |
| 500 |
\openup#1\relax\fi\else\onlydmatherr@\spreadlines\fi} |
| 501 |
\def\Mathstrut@{\copy\Mathstrutbox@} |
| 502 |
\newbox\Mathstrutbox@ |
| 503 |
\setbox\Mathstrutbox@\null |
| 504 |
\setboxz@h{$\m@th($} |
| 505 |
\ht\Mathstrutbox@\ht\z@ |
| 506 |
\dp\Mathstrutbox@\dp\z@ |
| 507 |
\message{matrices,} |
| 508 |
\newdimen\spreadmlines@ |
| 509 |
\def\spreadmatrixlines#1{\RIfMIfI@ |
| 510 |
\onlydmatherr@\spreadmatrixlines\else |
| 511 |
\spreadmlines@#1\relax\fi\else\onlydmatherr@\spreadmatrixlines\fi} |
| 512 |
\def\matrix{\null\,\vcenter\bgroup\Let@\vspace@ |
| 513 |
\normalbaselines\openup\spreadmlines@\ialign |
| 514 |
\bgroup\hfil$\m@th##$\hfil&&\quad\hfil$\m@th##$\hfil\crcr |
| 515 |
\Mathstrut@\crcr\noalign{\kern-\baselineskip}} |
| 516 |
\def\endmatrix{\crcr\Mathstrut@\crcr\noalign{\kern-\baselineskip}\egroup |
| 517 |
\egroup\,} |
| 518 |
\def\format{\crcr\egroup\iffalse{\fi\ifnum`}=0 \fi\format@} |
| 519 |
\newtoks\hashtoks@ |
| 520 |
\hashtoks@{#} |
| 521 |
\def\format@#1\\{\def\preamble@{#1}% |
| 522 |
\def\l{$\m@th\the\hashtoks@$\hfil}% |
| 523 |
\def\c{\hfil$\m@th\the\hashtoks@$\hfil}% |
| 524 |
\def\r{\hfil$\m@th\the\hashtoks@$}% |
| 525 |
\edef\preamble@@{\preamble@}\ifnum`{=0 \fi\iffalse}\fi |
| 526 |
\ialign\bgroup\span\preamble@@\crcr} |
| 527 |
\def\smallmatrix{\null\,\vcenter\bgroup\vspace@\Let@ |
| 528 |
\baselineskip9\ex@\lineskip\ex@ |
| 529 |
\ialign\bgroup\hfil$\m@th\scriptstyle{##}$\hfil&&\thickspace\hfil |
| 530 |
$\m@th\scriptstyle{##}$\hfil\crcr} |
| 531 |
\def\endsmallmatrix{\crcr\egroup\egroup\,} |
| 532 |
\def\pmatrix{\left(\matrix} |
| 533 |
\def\endpmatrix{\endmatrix\right)} |
| 534 |
\def\bmatrix{\left[\matrix} |
| 535 |
\def\endbmatrix{\endmatrix\right]} |
| 536 |
\def\vmatrix{\left|\matrix} |
| 537 |
\def\endvmatrix{\endmatrix\right|} |
| 538 |
\def\Vmatrix{\left\|\matrix} |
| 539 |
\def\endVmatrix{\endmatrix\right\|} |
| 540 |
\def\hdots{\mathinner{\ldotp\ldotp\ldotp}} |
| 541 |
\newmuskip\dotsspace@ |
| 542 |
\[email protected] |
| 543 |
\def\strip@#1 {#1} |
| 544 |
\def\spacehdots#1\for#2{\multispan{#2}\xleaders |
| 545 |
\hbox{$\m@th\mkern\strip@#1 \dotsspace@.\mkern\strip@#1 \dotsspace@$}\hfill} |
| 546 |
\def\hdotsfor#1{\spacehdots\@ne\for{#1}} |
| 547 |
\def\multispan@#1{\omit\mscount#1\unskip\loop\ifnum\mscount>\@ne\sp@n\repeat} |
| 548 |
\def\spaceinnerhdots#1\for#2\after#3{\multispan@{\strip@#2 }#3\xleaders |
| 549 |
\hbox{$\m@th\mkern\strip@#1 \dotsspace@.\mkern\strip@#1 \dotsspace@$}\hfill} |
| 550 |
\def\innerhdotsfor#1\after#2{\spaceinnerhdots\@ne\for#1\after{#2}} |
| 551 |
\def\cases{\bgroup\spreadmlines@\jot\left\{\,\matrix\format\l&\quad\l\\} |
| 552 |
\def\endcases{\endmatrix\right.\egroup} |
| 553 |
\message{multiline displays,} |
| 554 |
\newif\ifinany@ |
| 555 |
\newif\ifinalign@ |
| 556 |
\newif\ifingather@ |
| 557 |
\def\strut@{\copy\strutbox@} |
| 558 |
\newbox\strutbox@ |
| 559 |
\setbox\strutbox@\hbox{\vrule height8\p@ depth3\p@ width\z@} |
| 560 |
\def\topaligned{\null\,\vtop\aligned@} |
| 561 |
\def\botaligned{\null\,\vbox\aligned@} |
| 562 |
\def\aligned{\null\,\vcenter\aligned@} |
| 563 |
\def\aligned@{\bgroup\vspace@\Let@ |
| 564 |
\ifinany@\else\openup\jot\fi\ialign |
| 565 |
\bgroup\hfil\strut@$\m@th\displaystyle{##}$& |
| 566 |
$\m@th\displaystyle{{}##}$\hfil\crcr} |
| 567 |
\def\endaligned{\crcr\egroup\egroup} |
| 568 |
\let\endtopaligned\endaligned |
| 569 |
\let\endbotaligned\endaligned |
| 570 |
\def\alignedat#1{\null\,\vcenter\bgroup\doat@{#1}\vspace@\Let@ |
| 571 |
\ifinany@\else\openup\jot\fi\ialign\bgroup\span\preamble@@\crcr} |
| 572 |
\newcount\atcount@ |
| 573 |
\def\doat@#1{\toks@{\hfil\strut@$\m@th |
| 574 |
\displaystyle{\the\hashtoks@}$&$\m@th\displaystyle |
| 575 |
{{}\the\hashtoks@}$\hfil}% %1 |
| 576 |
\atcount@#1\relax\advance\atcount@\m@ne %2 |
| 577 |
\loop\ifnum\atcount@>\z@\toks@=\expandafter{\the\toks@&\hfil$\m@th |
| 578 |
\displaystyle{\the\hashtoks@}$&$\m@th |
| 579 |
\displaystyle{{}\the\hashtoks@}$\hfil}\advance |
| 580 |
\atcount@\m@ne\repeat %3 |
| 581 |
\xdef\preamble@{\the\toks@}\xdef\preamble@@{\preamble@}} |
| 582 |
\let\endalignedat\endaligned |
| 583 |
\def\gathered{\null\,\vcenter\bgroup\vspace@\Let@ |
| 584 |
\ifinany@\else\openup\jot\fi\ialign |
| 585 |
\bgroup\hfil\strut@$\m@th\displaystyle{##}$\hfil\crcr} |
| 586 |
\def\endgathered{\crcr\egroup\egroup} |
| 587 |
\newif\iftagsleft@ |
| 588 |
\def\TagsOnLeft{\global\tagsleft@true} |
| 589 |
\def\TagsOnRight{\global\tagsleft@false} |
| 590 |
\TagsOnLeft |
| 591 |
\newif\ifmathtags@ |
| 592 |
\def\TagsAsMath{\global\mathtags@true} |
| 593 |
\def\TagsAsText{\global\mathtags@false} |
| 594 |
\TagsAsText |
| 595 |
\def\tagform@#1{\hbox{\rm(\ignorespaces#1\unskip)}} |
| 596 |
\def\thetag{\leavevmode\tagform@} |
| 597 |
\def\tag#1$${\iftagsleft@\leqno\else\eqno\fi %1 |
| 598 |
\maketag@#1\maketag@ %2 |
| 599 |
$$} %3 |
| 600 |
\def\maketag@{\FN@\maketag@@} |
| 601 |
\def\maketag@@{\ifx\next"\expandafter\maketag@@@\else\expandafter\maketag@@@@ |
| 602 |
\fi} |
| 603 |
\def\maketag@@@"#1"#2\maketag@{\hbox{\rm#1}} %1 |
| 604 |
\def\maketag@@@@#1\maketag@{\ifmathtags@\tagform@{$\m@th#1$}\else |
| 605 |
\tagform@{#1}\fi} |
| 606 |
\interdisplaylinepenalty\@M |
| 607 |
\def\allowdisplaybreaks{\RIfMIfI@ |
| 608 |
\onlydmatherr@\allowdisplaybreaks\else |
| 609 |
\interdisplaylinepenalty\z@\fi\else\onlydmatherr@\allowdisplaybreaks\fi} |
| 610 |
\Invalid@\allowdisplaybreak |
| 611 |
\Invalid@\displaybreak |
| 612 |
\Invalid@\intertext |
| 613 |
\def\allowdisplaybreak@{\def\allowdisplaybreak{\crcr\noalign{\allowbreak}}} |
| 614 |
\def\displaybreak@{\def\displaybreak{\crcr\noalign{\break}}} |
| 615 |
\def\intertext@{\def\intertext##1{\crcr\noalign{% |
| 616 |
\penalty\postdisplaypenalty \vskip\belowdisplayskip |
| 617 |
\vbox{\normalbaselines\noindent##1}% |
| 618 |
\penalty\predisplaypenalty \vskip\abovedisplayskip}}} |
| 619 |
\newskip\centering@ |
| 620 |
\centering@\z@ plus\@m\p@ |
| 621 |
\def\align{\relax\ifingather@\DN@{\csname align (in |
| 622 |
\string\gather)\endcsname}\else |
| 623 |
\ifmmode\ifinner\DN@{\onlydmatherr@\align}\else |
| 624 |
\let\next@\align@\fi |
| 625 |
\else\DN@{\onlydmatherr@\align}\fi\fi\next@} |
| 626 |
\newhelp\andhelp@ |
| 627 |
{An extra & here is so disastrous that you should probably exit^^J |
| 628 |
and fix things up.} |
| 629 |
\newif\iftag@ |
| 630 |
\newcount\and@ |
| 631 |
\def\align@{\inalign@true\inany@true |
| 632 |
\vspace@\allowdisplaybreak@\displaybreak@\intertext@ |
| 633 |
\def\tag{\global\tag@true\ifnum\and@=\z@\DN@{&&}\else |
| 634 |
\DN@{&}\fi\next@}% |
| 635 |
\iftagsleft@\DN@{\csname align \endcsname}\else |
| 636 |
\DN@{\csname align \space\endcsname}\fi\next@} |
| 637 |
\def\Tag@{\iftag@\else\errhelp\andhelp@\err@{Extra & on this line}\fi} |
| 638 |
\newdimen\lwidth@ |
| 639 |
\newdimen\rwidth@ |
| 640 |
\newdimen\maxlwidth@ |
| 641 |
\newdimen\maxrwidth@ |
| 642 |
\newdimen\totwidth@ |
| 643 |
\def\measure@#1\endalign{\lwidth@\z@\rwidth@\z@\maxlwidth@\z@\maxrwidth@\z@ |
| 644 |
\global\and@\z@ %1 |
| 645 |
\setbox@ne\vbox %2 |
| 646 |
{\everycr{\noalign{\global\tag@false\global\and@\z@}}\Let@ %3 |
| 647 |
\halign{\setboxz@h{$\m@th\displaystyle{\@lign##}$}% %4 |
| 648 |
\global\lwidth@\wdz@ %5 |
| 649 |
\ifdim\lwidth@>\maxlwidth@\global\maxlwidth@\lwidth@\fi %6 |
| 650 |
\global\advance\and@\@ne %7 |
| 651 |
&\setboxz@h{$\m@th\displaystyle{{}\@lign##}$}\global\rwidth@\wdz@ %8 |
| 652 |
\ifdim\rwidth@>\maxrwidth@\global\maxrwidth@\rwidth@\fi %9 |
| 653 |
\global\advance\and@\@ne %10 |
| 654 |
&\Tag@ |
| 655 |
\eat@{##}\crcr#1\crcr}}% %11 |
| 656 |
\totwidth@\maxlwidth@\advance\totwidth@\maxrwidth@} %12 |
| 657 |
\def\displ@y@{\global\dt@ptrue\openup\jot |
| 658 |
\everycr{\noalign{\global\tag@false\global\and@\z@\ifdt@p\global\dt@pfalse |
| 659 |
\vskip-\lineskiplimit\vskip\normallineskiplimit\else |
| 660 |
\penalty\interdisplaylinepenalty\fi}}} |
| 661 |
\def\black@#1{\noalign{\ifdim#1>\displaywidth |
| 662 |
\dimen@\prevdepth\nointerlineskip %1 |
| 663 |
\vskip-\ht\strutbox@\vskip-\dp\strutbox@ %2 |
| 664 |
\vbox{\noindent\hbox to#1{\strut@\hfill}}% %3 |
| 665 |
\prevdepth\dimen@ %4 |
| 666 |
\fi}} |
| 667 |
\expandafter\def\csname align \space\endcsname#1\endalign |
| 668 |
{\measure@#1\endalign\global\and@\z@ %1 |
| 669 |
\ifingather@\everycr{\noalign{\global\and@\z@}}\else\displ@y@\fi %2 |
| 670 |
\Let@\tabskip\centering@ %3 |
| 671 |
\halign to\displaywidth |
| 672 |
{\hfil\strut@\setboxz@h{$\m@th\displaystyle{\@lign##}$}% %4 |
| 673 |
\global\lwidth@\wdz@\boxz@\global\advance\and@\@ne %5 |
| 674 |
\tabskip\z@skip %6 |
| 675 |
&\setboxz@h{$\m@th\displaystyle{{}\@lign##}$}% %7 |
| 676 |
\global\rwidth@\wdz@\boxz@\hfill\global\advance\and@\@ne %8 |
| 677 |
\tabskip\centering@ %9 |
| 678 |
&\setboxz@h{\@lign\strut@\maketag@##\maketag@}% %10 |
| 679 |
\dimen@\displaywidth\advance\dimen@-\totwidth@ |
| 680 |
\divide\dimen@\tw@\advance\dimen@\maxrwidth@\advance\dimen@-\rwidth@ %11 |
| 681 |
\ifdim\dimen@<\tw@\wdz@\llap{\vtop{\normalbaselines\null\boxz@}}% %12 |
| 682 |
\else\llap{\boxz@}\fi %13 |
| 683 |
\tabskip\z@skip %14 |
| 684 |
\crcr#1\crcr %15 |
| 685 |
\black@\totwidth@}} %16 |
| 686 |
\newdimen\lineht@ |
| 687 |
\expandafter\def\csname align \endcsname#1\endalign{\measure@#1\endalign |
| 688 |
\global\and@\z@ |
| 689 |
\ifdim\totwidth@>\displaywidth\let\displaywidth@\totwidth@\else |
| 690 |
\let\displaywidth@\displaywidth\fi %1 |
| 691 |
\ifingather@\everycr{\noalign{\global\and@\z@}}\else\displ@y@\fi |
| 692 |
\Let@\tabskip\centering@\halign to\displaywidth |
| 693 |
{\hfil\strut@\setboxz@h{$\m@th\displaystyle{\@lign##}$}% |
| 694 |
\global\lwidth@\wdz@\global\lineht@\ht\z@ %2 |
| 695 |
\boxz@\global\advance\and@\@ne |
| 696 |
\tabskip\z@skip&\setboxz@h{$\m@th\displaystyle{{}\@lign##}$}% |
| 697 |
\global\rwidth@\wdz@\ifdim\ht\z@>\lineht@\global\lineht@\ht\z@\fi %3 |
| 698 |
\boxz@\hfil\global\advance\and@\@ne |
| 699 |
\tabskip\centering@&\kern-\displaywidth@ %4 |
| 700 |
\setboxz@h{\@lign\strut@\maketag@##\maketag@}% |
| 701 |
\dimen@\displaywidth\advance\dimen@-\totwidth@ |
| 702 |
\divide\dimen@\tw@\advance\dimen@\maxlwidth@\advance\dimen@-\lwidth@ |
| 703 |
\ifdim\dimen@<\tw@\wdz@ |
| 704 |
\rlap{\vbox{\normalbaselines\boxz@\vbox to\lineht@{}}}\else |
| 705 |
\rlap{\boxz@}\fi |
| 706 |
\tabskip\displaywidth@\crcr#1\crcr\black@\totwidth@}} |
| 707 |
\expandafter\def\csname align (in \string\gather)\endcsname |
| 708 |
#1\endalign{\vcenter{\align@#1\endalign}} |
| 709 |
\Invalid@\endalign |
| 710 |
\newif\ifxat@ |
| 711 |
\def\alignat{\RIfMIfI@\DN@{\onlydmatherr@\alignat}\else |
| 712 |
\DN@{\csname alignat \endcsname}\fi\else |
| 713 |
\DN@{\onlydmatherr@\alignat}\fi\next@} |
| 714 |
\newif\ifmeasuring@ |
| 715 |
\newbox\savealignat@ |
| 716 |
\expandafter\def\csname alignat \endcsname#1#2\endalignat %1 |
| 717 |
{\inany@true\xat@false |
| 718 |
\def\tag{\global\tag@true\count@#1\relax\multiply\count@\tw@ |
| 719 |
\xdef\tag@{}\loop\ifnum\count@>\and@\xdef\tag@{&\tag@}\advance\count@\m@ne |
| 720 |
\repeat\tag@}% |
| 721 |
\vspace@\allowdisplaybreak@\displaybreak@\intertext@ |
| 722 |
\displ@y@\measuring@true %2 |
| 723 |
\setbox\savealignat@\hbox{$\m@th\displaystyle\Let@ |
| 724 |
\attag@{#1}% %3 |
| 725 |
\vbox{\halign{\span\preamble@@\crcr#2\crcr}}$}% |
| 726 |
\measuring@false %4 |
| 727 |
\Let@\attag@{#1}% %5 |
| 728 |
\tabskip\centering@\halign to\displaywidth |
| 729 |
{\span\preamble@@\crcr#2\crcr %6 |
| 730 |
\black@{\wd\savealignat@}}} %7 |
| 731 |
\Invalid@\endalignat |
| 732 |
\def\xalignat{\RIfMIfI@ |
| 733 |
\DN@{\onlydmatherr@\xalignat}\else |
| 734 |
\DN@{\csname xalignat \endcsname}\fi\else |
| 735 |
\DN@{\onlydmatherr@\xalignat}\fi\next@} |
| 736 |
\expandafter\def\csname xalignat \endcsname#1#2\endxalignat |
| 737 |
{\inany@true\xat@true |
| 738 |
\def\tag{\global\tag@true\def\tag@{}\count@#1\relax\multiply\count@\tw@ |
| 739 |
\loop\ifnum\count@>\and@\xdef\tag@{&\tag@}\advance\count@\m@ne\repeat\tag@}% |
| 740 |
\vspace@\allowdisplaybreak@\displaybreak@\intertext@ |
| 741 |
\displ@y@\measuring@true\setbox\savealignat@\hbox{$\m@th\displaystyle\Let@ |
| 742 |
\attag@{#1}\vbox{\halign{\span\preamble@@\crcr#2\crcr}}$}% |
| 743 |
\measuring@false\Let@ |
| 744 |
\attag@{#1}\tabskip\centering@\halign to\displaywidth |
| 745 |
{\span\preamble@@\crcr#2\crcr\black@{\wd\savealignat@}}} |
| 746 |
\def\attag@#1{\let\Maketag@\maketag@\let\TAG@\Tag@ %1 |
| 747 |
\let\Tag@=0\let\maketag@=0% %2 |
| 748 |
\ifmeasuring@\def\llap@##1{\setboxz@h{##1}\hbox to\tw@\wdz@{}}% |
| 749 |
\def\rlap@##1{\setboxz@h{##1}\hbox to\tw@\wdz@{}}\else |
| 750 |
\let\llap@\llap\let\rlap@\rlap\fi %3 |
| 751 |
\toks@{\hfil\strut@$\m@th\displaystyle{\@lign\the\hashtoks@}$\tabskip\z@skip |
| 752 |
\global\advance\and@\@ne&$\m@th\displaystyle{{}\@lign\the\hashtoks@}$\hfil |
| 753 |
\ifxat@\tabskip\centering@\fi\global\advance\and@\@ne}% %4 |
| 754 |
\iftagsleft@ |
| 755 |
\toks@@{\tabskip\centering@&\Tag@\kern-\displaywidth |
| 756 |
\rlap@{\@lign\maketag@\the\hashtoks@\maketag@}% |
| 757 |
\global\advance\and@\@ne\tabskip\displaywidth}\else |
| 758 |
\toks@@{\tabskip\centering@&\Tag@\llap@{\@lign\maketag@ |
| 759 |
\the\hashtoks@\maketag@}\global\advance\and@\@ne\tabskip\z@skip}\fi %5 |
| 760 |
\atcount@#1\relax\advance\atcount@\m@ne |
| 761 |
\loop\ifnum\atcount@>\z@ |
| 762 |
\toks@=\expandafter{\the\toks@&\hfil$\m@th\displaystyle{\@lign |
| 763 |
\the\hashtoks@}$\global\advance\and@\@ne |
| 764 |
\tabskip\z@skip&$\m@th\displaystyle{{}\@lign\the\hashtoks@}$\hfil\ifxat@ |
| 765 |
\tabskip\centering@\fi\global\advance\and@\@ne}\advance\atcount@\m@ne |
| 766 |
\repeat %6 |
| 767 |
\xdef\preamble@{\the\toks@\the\toks@@}% %7 |
| 768 |
\xdef\preamble@@{\preamble@}% %8 |
| 769 |
\let\maketag@\Maketag@\let\Tag@\TAG@} %9 |
| 770 |
\Invalid@\endxalignat |
| 771 |
\def\xxalignat{\RIfMIfI@ |
| 772 |
\DN@{\onlydmatherr@\xxalignat}\else\DN@{\csname xxalignat |
| 773 |
\endcsname}\fi\else |
| 774 |
\DN@{\onlydmatherr@\xxalignat}\fi\next@} |
| 775 |
\expandafter\def\csname xxalignat \endcsname#1#2\endxxalignat{\inany@true |
| 776 |
\vspace@\allowdisplaybreak@\displaybreak@\intertext@ |
| 777 |
\displ@y\setbox\savealignat@\hbox{$\m@th\displaystyle\Let@ |
| 778 |
\xxattag@{#1}\vbox{\halign{\span\preamble@@\crcr#2\crcr}}$}% |
| 779 |
\Let@\xxattag@{#1}\tabskip\z@skip\halign to\displaywidth |
| 780 |
{\span\preamble@@\crcr#2\crcr\black@{\wd\savealignat@}}} |
| 781 |
\def\xxattag@#1{\toks@{\tabskip\z@skip\hfil\strut@ |
| 782 |
$\m@th\displaystyle{\the\hashtoks@}$&% |
| 783 |
$\m@th\displaystyle{{}\the\hashtoks@}$\hfil\tabskip\centering@&}% |
| 784 |
\atcount@#1\relax\advance\atcount@\m@ne\loop\ifnum\atcount@>\z@ |
| 785 |
\toks@=\expandafter{\the\toks@&\hfil$\m@th\displaystyle{\the\hashtoks@}$% |
| 786 |
\tabskip\z@skip&$\m@th\displaystyle{{}\the\hashtoks@}$\hfil |
| 787 |
\tabskip\centering@}\advance\atcount@\m@ne\repeat |
| 788 |
\xdef\preamble@{\the\toks@\tabskip\z@skip}\xdef\preamble@@{\preamble@}} |
| 789 |
\Invalid@\endxxalignat |
| 790 |
\newdimen\gwidth@ |
| 791 |
\newdimen\gmaxwidth@ |
| 792 |
\def\gmeasure@#1\endgather{\gwidth@\z@\gmaxwidth@\z@\setbox@ne\vbox{\Let@ |
| 793 |
\halign{\setboxz@h{$\m@th\displaystyle{##}$}\global\gwidth@\wdz@ |
| 794 |
\ifdim\gwidth@>\gmaxwidth@\global\gmaxwidth@\gwidth@\fi |
| 795 |
&\eat@{##}\crcr#1\crcr}}} |
| 796 |
\def\gather{\RIfMIfI@\DN@{\onlydmatherr@\gather}\else |
| 797 |
\ingather@true\inany@true\def\tag{&}% |
| 798 |
\vspace@\allowdisplaybreak@\displaybreak@\intertext@ |
| 799 |
\displ@y\Let@ |
| 800 |
\iftagsleft@\DN@{\csname gather \endcsname}\else |
| 801 |
\DN@{\csname gather \space\endcsname}\fi\fi |
| 802 |
\else\DN@{\onlydmatherr@\gather}\fi\next@} |
| 803 |
\expandafter\def\csname gather \space\endcsname#1\endgather |
| 804 |
{\gmeasure@#1\endgather\tabskip\centering@ |
| 805 |
\halign to\displaywidth{\hfil\strut@\setboxz@h{$\m@th\displaystyle{##}$}% |
| 806 |
\global\gwidth@\wdz@\boxz@\hfil& |
| 807 |
\setboxz@h{\strut@{\maketag@##\maketag@}}% |
| 808 |
\dimen@\displaywidth\advance\dimen@-\gwidth@ |
| 809 |
\ifdim\dimen@>\tw@\wdz@\llap{\boxz@}\else |
| 810 |
\llap{\vtop{\normalbaselines\null\boxz@}}\fi |
| 811 |
\tabskip\z@skip\crcr#1\crcr\black@\gmaxwidth@}} |
| 812 |
\newdimen\glineht@ |
| 813 |
\expandafter\def\csname gather \endcsname#1\endgather{\gmeasure@#1\endgather |
| 814 |
\ifdim\gmaxwidth@>\displaywidth\let\gdisplaywidth@\gmaxwidth@\else |
| 815 |
\let\gdisplaywidth@\displaywidth\fi\tabskip\centering@\halign to\displaywidth |
| 816 |
{\hfil\strut@\setboxz@h{$\m@th\displaystyle{##}$}% |
| 817 |
\global\gwidth@\wdz@\global\glineht@\ht\z@\boxz@\hfil&\kern-\gdisplaywidth@ |
| 818 |
\setboxz@h{\strut@{\maketag@##\maketag@}}% |
| 819 |
\dimen@\displaywidth\advance\dimen@-\gwidth@ |
| 820 |
\ifdim\dimen@>\tw@\wdz@\rlap{\boxz@}\else |
| 821 |
\rlap{\vbox{\normalbaselines\boxz@\vbox to\glineht@{}}}\fi |
| 822 |
\tabskip\gdisplaywidth@\crcr#1\crcr\black@\gmaxwidth@}} |
| 823 |
\newif\ifctagsplit@ |
| 824 |
\def\CenteredTagsOnSplits{\global\ctagsplit@true} |
| 825 |
\def\TopOrBottomTagsOnSplits{\global\ctagsplit@false} |
| 826 |
\TopOrBottomTagsOnSplits |
| 827 |
\def\split{\relax\ifinany@\let\next@\insplit@\else |
| 828 |
\ifmmode\ifinner\def\next@{\onlydmatherr@\split}\else |
| 829 |
\let\next@\outsplit@\fi\else |
| 830 |
\def\next@{\onlydmatherr@\split}\fi\fi\next@} |
| 831 |
\def\insplit@{\global\setbox\z@\vbox\bgroup\vspace@\Let@\ialign\bgroup |
| 832 |
\hfil\strut@$\m@th\displaystyle{##}$&$\m@th\displaystyle{{}##}$\hfill\crcr} |
| 833 |
\def\endsplit{\crcr\egroup\egroup\iftagsleft@\expandafter\lendsplit@\else |
| 834 |
\expandafter\rendsplit@\fi} |
| 835 |
\def\rendsplit@{\global\setbox9 \vbox |
| 836 |
{\unvcopy\z@\global\setbox8 \lastbox\unskip}% %1 |
| 837 |
\setbox@ne\hbox{\unhcopy8 \unskip\global\setbox\tw@\lastbox |
| 838 |
\unskip\global\setbox\thr@@\lastbox}% %2 |
| 839 |
\global\setbox7 \hbox{\unhbox\tw@\unskip}% %3 |
| 840 |
\ifinalign@\ifctagsplit@ %4 |
| 841 |
\gdef\split@{\hbox to\wd\thr@@{}& |
| 842 |
\vcenter{\vbox{\moveleft\wd\thr@@\boxz@}}}% %5 |
| 843 |
\else\gdef\split@{&\vbox{\moveleft\wd\thr@@\box9}\crcr |
| 844 |
\box\thr@@&\box7}\fi %6 |
| 845 |
\else %7 |
| 846 |
\ifctagsplit@\gdef\split@{\vcenter{\boxz@}}\else |
| 847 |
\gdef\split@{\box9\crcr\hbox{\box\thr@@\box7}}\fi |
| 848 |
\fi |
| 849 |
\split@} %8 |
| 850 |
\def\lendsplit@{\global\setbox9\vtop{\unvcopy\z@}% %1 |
| 851 |
\setbox@ne\vbox{\unvcopy\z@\global\setbox8\lastbox}% %2 |
| 852 |
\setbox@ne\hbox{\unhcopy8\unskip\setbox\tw@\lastbox |
| 853 |
\unskip\global\setbox\thr@@\lastbox}% %3 |
| 854 |
\ifinalign@\ifctagsplit@ %4 |
| 855 |
\gdef\split@{\hbox to\wd\thr@@{}& |
| 856 |
\vcenter{\vbox{\moveleft\wd\thr@@\box9}}}% %5 |
| 857 |
\else %6 |
| 858 |
\gdef\split@{\hbox to\wd\thr@@{}&\vbox{\moveleft\wd\thr@@\box9}}\fi |
| 859 |
\else |
| 860 |
\ifctagsplit@\gdef\split@{\vcenter{\box9}}\else |
| 861 |
\gdef\split@{\box9}\fi |
| 862 |
\fi\split@} |
| 863 |
\def\outsplit@#1$${\align\insplit@#1\endalign$$} |
| 864 |
\newdimen\multlinegap@ |
| 865 |
\multlinegap@1em |
| 866 |
\newdimen\multlinetaggap@ |
| 867 |
\multlinetaggap@1em |
| 868 |
\def\MultlineGap#1{\global\multlinegap@#1\relax} |
| 869 |
\def\multlinegap#1{\RIfMIfI@\onlydmatherr@\multlinegap\else |
| 870 |
\multlinegap@#1\relax\fi\else\onlydmatherr@\multlinegap\fi} |
| 871 |
\def\nomultlinegap{\multlinegap{\z@}} |
| 872 |
\def\multline{\RIfMIfI@ |
| 873 |
\DN@{\onlydmatherr@\multline}\else |
| 874 |
\DN@{\multline@}\fi\else |
| 875 |
\DN@{\onlydmatherr@\multline}\fi\next@} |
| 876 |
\newif\iftagin@ |
| 877 |
\def\tagin@#1{\tagin@false\in@\tag{#1}\ifin@\tagin@true\fi} |
| 878 |
\def\multline@#1$${\inany@true\vspace@\allowdisplaybreak@\displaybreak@ |
| 879 |
\tagin@{#1}\iftagsleft@\DN@{\multline@l#1$$}\else |
| 880 |
\DN@{\multline@r#1$$}\fi\next@} |
| 881 |
\newdimen\mwidth@ |
| 882 |
\def\rmmeasure@#1\endmultline{% |
| 883 |
\def\shoveleft##1{##1}\def\shoveright##1{##1}% %1 |
| 884 |
\setbox@ne\vbox{\Let@\halign{\setboxz@h |
| 885 |
{$\m@th\@lign\displaystyle{}##$}\global\mwidth@\wdz@ |
| 886 |
\crcr#1\crcr}}} |
| 887 |
\newdimen\mlineht@ |
| 888 |
\newif\ifzerocr@ |
| 889 |
\newif\ifonecr@ |
| 890 |
\def\lmmeasure@#1\endmultline{\global\zerocr@true\global\onecr@false |
| 891 |
\everycr{\noalign{\ifonecr@\global\onecr@false\fi |
| 892 |
\ifzerocr@\global\zerocr@false\global\onecr@true\fi}}% %1 |
| 893 |
\def\shoveleft##1{##1}\def\shoveright##1{##1}% |
| 894 |
\setbox@ne\vbox{\Let@\halign{\setboxz@h |
| 895 |
{$\m@th\@lign\displaystyle{}##$}\ifonecr@\global\mwidth@\wdz@ |
| 896 |
\global\mlineht@\ht\z@\fi\crcr#1\crcr}}} |
| 897 |
\newbox\mtagbox@ |
| 898 |
\newdimen\ltwidth@ |
| 899 |
\newdimen\rtwidth@ |
| 900 |
\def\multline@l#1$${\iftagin@\DN@{\lmultline@@#1$$}\else |
| 901 |
\DN@{\setbox\mtagbox@\null\ltwidth@\z@\rtwidth@\z@ |
| 902 |
\lmultline@@@#1$$}\fi\next@} |
| 903 |
\def\lmultline@@#1\endmultline\tag#2$${% |
| 904 |
\setbox\mtagbox@\hbox{\maketag@#2\maketag@}% %1 |
| 905 |
\lmmeasure@#1\endmultline\dimen@\mwidth@\advance\dimen@\wd\mtagbox@ |
| 906 |
\advance\dimen@\multlinetaggap@ %2 |
| 907 |
\ifdim\dimen@>\displaywidth\ltwidth@\z@\else\ltwidth@\wd\mtagbox@\fi %3 |
| 908 |
\lmultline@@@#1\endmultline$$} |
| 909 |
\def\lmultline@@@{\displ@y |
| 910 |
\def\shoveright##1{##1\hfilneg\hskip\multlinegap@}% |
| 911 |
\def\shoveleft##1{\setboxz@h{$\m@th\displaystyle{}##1$}% |
| 912 |
\setbox@ne\hbox{$\m@th\displaystyle##1$}% |
| 913 |
\hfilneg |
| 914 |
\iftagin@ |
| 915 |
\ifdim\ltwidth@>\z@\hskip\ltwidth@\hskip\multlinetaggap@\fi |
| 916 |
\else\hskip\multlinegap@\fi\hskip.5\wd@ne\hskip-.5\wdz@##1}% %1 |
| 917 |
\halign\bgroup\Let@\hbox to\displaywidth |
| 918 |
{\strut@$\m@th\displaystyle\hfil{}##\hfil$}\crcr |
| 919 |
\hfilneg %2 |
| 920 |
\iftagin@ %3 |
| 921 |
\ifdim\ltwidth@>\z@ %4 |
| 922 |
\box\mtagbox@\hskip\multlinetaggap@ %5 |
| 923 |
\else |
| 924 |
\rlap{\vbox{\normalbaselines\hbox{\strut@\box\mtagbox@}% |
| 925 |
\vbox to\mlineht@{}}}\fi %6 |
| 926 |
\else\hskip\multlinegap@\fi} %7 |
| 927 |
\def\multline@r#1$${\iftagin@\DN@{\rmultline@@#1$$}\else |
| 928 |
\DN@{\setbox\mtagbox@\null\ltwidth@\z@\rtwidth@\z@ |
| 929 |
\rmultline@@@#1$$}\fi\next@} |
| 930 |
\def\rmultline@@#1\endmultline\tag#2$${\ltwidth@\z@ |
| 931 |
\setbox\mtagbox@\hbox{\maketag@#2\maketag@}% |
| 932 |
\rmmeasure@#1\endmultline\dimen@\mwidth@\advance\dimen@\wd\mtagbox@ |
| 933 |
\advance\dimen@\multlinetaggap@ |
| 934 |
\ifdim\dimen@>\displaywidth\rtwidth@\z@\else\rtwidth@\wd\mtagbox@\fi |
| 935 |
\rmultline@@@#1\endmultline$$} |
| 936 |
\def\rmultline@@@{\displ@y |
| 937 |
\def\shoveright##1{##1\hfilneg\iftagin@\ifdim\rtwidth@>\z@ |
| 938 |
\hskip\rtwidth@\hskip\multlinetaggap@\fi\else\hskip\multlinegap@\fi}% |
| 939 |
\def\shoveleft##1{\setboxz@h{$\m@th\displaystyle{}##1$}% |
| 940 |
\setbox@ne\hbox{$\m@th\displaystyle##1$}% |
| 941 |
\hfilneg\hskip\multlinegap@\hskip.5\wd@ne\hskip-.5\wdz@##1}% |
| 942 |
\halign\bgroup\Let@\hbox to\displaywidth |
| 943 |
{\strut@$\m@th\displaystyle\hfil{}##\hfil$}\crcr |
| 944 |
\hfilneg\hskip\multlinegap@} |
| 945 |
\def\endmultline{\iftagsleft@\expandafter\lendmultline@\else |
| 946 |
\expandafter\rendmultline@\fi} |
| 947 |
\def\lendmultline@{\hfilneg\hskip\multlinegap@\crcr\egroup} |
| 948 |
\def\rendmultline@{\iftagin@ %1 |
| 949 |
\ifdim\rtwidth@>\z@ %2 |
| 950 |
\hskip\multlinetaggap@\box\mtagbox@ %3 |
| 951 |
\else\llap{\vtop{\normalbaselines\null\hbox{\strut@\box\mtagbox@}}}\fi %4 |
| 952 |
\else\hskip\multlinegap@\fi %5 |
| 953 |
\hfilneg\crcr\egroup} |
| 954 |
\def\bmod{\mskip-\medmuskip\mkern5mu\mathbin{\fam\z@ mod}\penalty900 |
| 955 |
\mkern5mu\mskip-\medmuskip} |
| 956 |
\def\pmod#1{\allowbreak\ifinner\mkern8mu\else\mkern18mu\fi |
| 957 |
({\fam\z@ mod}\,\,#1)} |
| 958 |
\def\pod#1{\allowbreak\ifinner\mkern8mu\else\mkern18mu\fi(#1)} |
| 959 |
\def\mod#1{\allowbreak\ifinner\mkern12mu\else\mkern18mu\fi{\fam\z@ mod}\,\,#1} |
| 960 |
\message{continued fractions,} |
| 961 |
\newcount\cfraccount@ |
| 962 |
\def\cfrac{\bgroup\bgroup\advance\cfraccount@\@ne\strut |
| 963 |
\iffalse{\fi\def\\{\over\displaystyle}\iffalse}\fi} |
| 964 |
\def\lcfrac{\bgroup\bgroup\advance\cfraccount@\@ne\strut |
| 965 |
\iffalse{\fi\def\\{\hfill\over\displaystyle}\iffalse}\fi} |
| 966 |
\def\rcfrac{\bgroup\bgroup\advance\cfraccount@\@ne\strut\hfill |
| 967 |
\iffalse{\fi\def\\{\over\displaystyle}\iffalse}\fi} |
| 968 |
\def\gloop@#1\repeat{\gdef\body{#1}\iterate} |
| 969 |
\def\endcfrac{\gloop@\ifnum\cfraccount@>\z@\global\advance\cfraccount@\m@ne |
| 970 |
\egroup\hskip-\nulldelimiterspace\egroup\repeat} |
| 971 |
\message{compound symbols,} |
| 972 |
\def\binrel@#1{\setboxz@h{\thinmuskip0mu |
| 973 |
\medmuskip\m@ne mu\thickmuskip\@ne mu$#1\m@th$}% |
| 974 |
\setbox@ne\hbox{\thinmuskip0mu\medmuskip\m@ne mu\thickmuskip |
| 975 |
\@ne mu${}#1{}\m@th$}% |
| 976 |
\setbox\tw@\hbox{\hskip\wd@ne\hskip-\wdz@}} |
| 977 |
\def\overset#1\to#2{\binrel@{#2}\ifdim\wd\tw@<\z@ |
| 978 |
\mathbin{\mathop{\kern\z@#2}\limits^{#1}}\else\ifdim\wd\tw@>\z@ |
| 979 |
\mathrel{\mathop{\kern\z@#2}\limits^{#1}}\else |
| 980 |
{\mathop{\kern\z@#2}\limits^{#1}}{}\fi\fi} |
| 981 |
\def\underset#1\to#2{\binrel@{#2}\ifdim\wd\tw@<\z@ |
| 982 |
\mathbin{\mathop{\kern\z@#2}\limits_{#1}}\else\ifdim\wd\tw@>\z@ |
| 983 |
\mathrel{\mathop{\kern\z@#2}\limits_{#1}}\else |
| 984 |
{\mathop{\kern\z@#2}\limits_{#1}}{}\fi\fi} |
| 985 |
\def\oversetbrace#1\to#2{\overbrace{#2}^{#1}} |
| 986 |
\def\undersetbrace#1\to#2{\underbrace{#2}_{#1}} |
| 987 |
\def\sideset#1\and#2\to#3{% |
| 988 |
\setbox@ne\hbox{$\dsize{\vphantom{#3}}#1{#3}\m@th$}% |
| 989 |
\setbox\tw@\hbox{$\dsize{#3}#2\m@th$}% |
| 990 |
\hskip\wd@ne\hskip-\wd\tw@\mathop{\hskip\wd\tw@\hskip-\wd@ne |
| 991 |
{\vphantom{#3}}#1{#3}#2}} |
| 992 |
\def\rightarrowfill@#1{\setboxz@h{$#1-\m@th$}\ht\z@\z@ |
| 993 |
$#1\m@th\copy\z@\mkern-6mu\cleaders |
| 994 |
\hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill |
| 995 |
\mkern-6mu\mathord\rightarrow$} |
| 996 |
\def\leftarrowfill@#1{\setboxz@h{$#1-\m@th$}\ht\z@\z@ |
| 997 |
$#1\m@th\mathord\leftarrow\mkern-6mu\cleaders |
| 998 |
\hbox{$#1\mkern-2mu\copy\z@\mkern-2mu$}\hfill |
| 999 |
\mkern-6mu\box\z@$} |
| 1000 |
\def\leftrightarrowfill@#1{\setboxz@h{$#1-\m@th$}\ht\z@\z@ |
| 1001 |
$#1\m@th\mathord\leftarrow\mkern-6mu\cleaders |
| 1002 |
\hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill |
| 1003 |
\mkern-6mu\mathord\rightarrow$} |
| 1004 |
\def\overrightarrow{\mathpalette\overrightarrow@} |
| 1005 |
\def\overrightarrow@#1#2{\vbox{\ialign{##\crcr\rightarrowfill@#1\crcr |
| 1006 |
\noalign{\kern-\ex@\nointerlineskip}$\m@th\hfil#1#2\hfil$\crcr}}} |
| 1007 |
\let\overarrow\overrightarrow |
| 1008 |
\def\overleftarrow{\mathpalette\overleftarrow@} |
| 1009 |
\def\overleftarrow@#1#2{\vbox{\ialign{##\crcr\leftarrowfill@#1\crcr |
| 1010 |
\noalign{\kern-\ex@\nointerlineskip}$\m@th\hfil#1#2\hfil$\crcr}}} |
| 1011 |
\def\overleftrightarrow{\mathpalette\overleftrightarrow@} |
| 1012 |
\def\overleftrightarrow@#1#2{\vbox{\ialign{##\crcr\leftrightarrowfill@#1\crcr |
| 1013 |
\noalign{\kern-\ex@\nointerlineskip}$\m@th\hfil#1#2\hfil$\crcr}}} |
| 1014 |
\def\underrightarrow{\mathpalette\underrightarrow@} |
| 1015 |
\def\underrightarrow@#1#2{\vtop{\ialign{##\crcr$\m@th\hfil#1#2\hfil$\crcr |
| 1016 |
\noalign{\nointerlineskip}\rightarrowfill@#1\crcr}}} |
| 1017 |
\let\underarrow\underrightarrow |
| 1018 |
\def\underleftarrow{\mathpalette\underleftarrow@} |
| 1019 |
\def\underleftarrow@#1#2{\vtop{\ialign{##\crcr$\m@th\hfil#1#2\hfil$\crcr |
| 1020 |
\noalign{\nointerlineskip}\leftarrowfill@#1\crcr}}} |
| 1021 |
\def\underleftrightarrow{\mathpalette\underleftrightarrow@} |
| 1022 |
\def\underleftrightarrow@#1#2{\vtop{\ialign{##\crcr$\m@th\hfil#1#2\hfil$\crcr |
| 1023 |
\noalign{\nointerlineskip}\leftrightarrowfill@#1\crcr}}} |
| 1024 |
\message{various kinds of dots,} |
| 1025 |
\let\DOTSI\relax |
| 1026 |
\let\DOTSB\relax |
| 1027 |
\let\DOTSX\relax |
| 1028 |
\newif\ifmath@ |
| 1029 |
{\uccode`7=`\\ \uccode`8=`m \uccode`9=`a \uccode`0=`t \uccode`!=`h |
| 1030 |
\uppercase{\gdef\math@#1#2#3#4#5#6\math@{\global\math@false\ifx 7#1\ifx 8#2% |
| 1031 |
\ifx 9#3\ifx 0#4\ifx !#5\xdef\meaning@{#6}\global\math@true\fi\fi\fi\fi\fi}}} |
| 1032 |
\newif\ifmathch@ |
| 1033 |
{\uccode`7=`c \uccode`8=`h \uccode`9=`\" |
| 1034 |
\uppercase{\gdef\mathch@#1#2#3#4#5#6\mathch@{\global\mathch@false |
| 1035 |
\ifx 7#1\ifx 8#2\ifx 9#5\global\mathch@true\xdef\meaning@{9#6}\fi\fi\fi}}} |
| 1036 |
\newcount\classnum@ |
| 1037 |
\def\getmathch@#1.#2\getmathch@{\classnum@#1 \divide\classnum@4096 |
| 1038 |
\ifcase\number\classnum@\or\or\gdef\thedots@{\dotsb@}\or |
| 1039 |
\gdef\thedots@{\dotsb@}\fi} |
| 1040 |
\newif\ifmathbin@ |
| 1041 |
{\uccode`4=`b \uccode`5=`i \uccode`6=`n |
| 1042 |
\uppercase{\gdef\mathbin@#1#2#3{\relaxnext@ |
| 1043 |
\DNii@##1\mathbin@{\ifx\space@\next\global\mathbin@true\fi}% |
| 1044 |
\global\mathbin@false\DN@##1\mathbin@{}% |
| 1045 |
\ifx 4#1\ifx 5#2\ifx 6#3\DN@{\FN@\nextii@}\fi\fi\fi\next@}}} |
| 1046 |
\newif\ifmathrel@ |
| 1047 |
{\uccode`4=`r \uccode`5=`e \uccode`6=`l |
| 1048 |
\uppercase{\gdef\mathrel@#1#2#3{\relaxnext@ |
| 1049 |
\DNii@##1\mathrel@{\ifx\space@\next\global\mathrel@true\fi}% |
| 1050 |
\global\mathrel@false\DN@##1\mathrel@{}% |
| 1051 |
\ifx 4#1\ifx 5#2\ifx 6#3\DN@{\FN@\nextii@}\fi\fi\fi\next@}}} |
| 1052 |
\newif\ifmacro@ |
| 1053 |
{\uccode`5=`m \uccode`6=`a \uccode`7=`c |
| 1054 |
\uppercase{\gdef\macro@#1#2#3#4\macro@{\global\macro@false |
| 1055 |
\ifx 5#1\ifx 6#2\ifx 7#3\global\macro@true |
| 1056 |
\xdef\meaning@{\macro@@#4\macro@@}\fi\fi\fi}}} |
| 1057 |
\def\macro@@#1->#2\macro@@{#2} |
| 1058 |
\newif\ifDOTS@ |
| 1059 |
\newcount\DOTSCASE@ |
| 1060 |
{\uccode`6=`\\ \uccode`7=`D \uccode`8=`O \uccode`9=`T \uccode`0=`S |
| 1061 |
\uppercase{\gdef\DOTS@#1#2#3#4#5{\global\DOTS@false\DN@##1\DOTS@{}% |
| 1062 |
\ifx 6#1\ifx 7#2\ifx 8#3\ifx 9#4\ifx 0#5\let\next@\DOTS@@\fi\fi\fi\fi\fi |
| 1063 |
\next@}}} |
| 1064 |
{\uccode`3=`B \uccode`4=`I \uccode`5=`X |
| 1065 |
\uppercase{\gdef\DOTS@@#1{\relaxnext@ |
| 1066 |
\DNii@##1\DOTS@{\ifx\space@\next\global\DOTS@true\fi}% |
| 1067 |
\DN@{\FN@\nextii@}% |
| 1068 |
\ifx 3#1\global\DOTSCASE@\z@\else |
| 1069 |
\ifx 4#1\global\DOTSCASE@\@ne\else |
| 1070 |
\ifx 5#1\global\DOTSCASE@\tw@\else\DN@##1\DOTS@{}% |
| 1071 |
\fi\fi\fi\next@}}} |
| 1072 |
\newif\ifnot@ |
| 1073 |
{\uccode`5=`\\ \uccode`6=`n \uccode`7=`o \uccode`8=`t |
| 1074 |
\uppercase{\gdef\not@#1#2#3#4{\relaxnext@ |
| 1075 |
\DNii@##1\not@{\ifx\space@\next\global\not@true\fi}% |
| 1076 |
\global\not@false\DN@##1\not@{}% |
| 1077 |
\ifx 5#1\ifx 6#2\ifx 7#3\ifx 8#4\DN@{\FN@\nextii@}\fi\fi\fi |
| 1078 |
\fi\next@}}} |
| 1079 |
\newif\ifkeybin@ |
| 1080 |
\def\keybin@{\keybin@true |
| 1081 |
\ifx\next+\else\ifx\next=\else\ifx\next<\else\ifx\next>\else\ifx\next-\else |
| 1082 |
\ifx\next*\else\ifx\next:\else\keybin@false\fi\fi\fi\fi\fi\fi\fi} |
| 1083 |
\def\dots{\RIfM@\expandafter\mdots@\else\expandafter\tdots@\fi} |
| 1084 |
\def\tdots@{\unskip\relaxnext@ |
| 1085 |
\DN@{$\m@th\mathinner{\ldotp\ldotp\ldotp}\, |
| 1086 |
\ifx\next,\,$\else\ifx\next.\,$\else\ifx\next;\,$\else\ifx\next:\,$\else |
| 1087 |
\ifx\next?\,$\else\ifx\next!\,$\else$ \fi\fi\fi\fi\fi\fi}% |
| 1088 |
\ \FN@\next@} |
| 1089 |
\def\mdots@{\FN@\mdots@@} |
| 1090 |
\def\mdots@@{\gdef\thedots@{\dotso@}% %1 |
| 1091 |
\ifx\next\boldkey\gdef\thedots@\boldkey{\boldkeydots@}\else %2 |
| 1092 |
\ifx\next\boldsymbol\gdef\thedots@\boldsymbol{\boldsymboldots@}\else %3 |
| 1093 |
\ifx,\next\gdef\thedots@{\dotsc}% %4 |
| 1094 |
\else\ifx\not\next\gdef\thedots@{\dotsb@}% %5 |
| 1095 |
\else\keybin@ |
| 1096 |
\ifkeybin@\gdef\thedots@{\dotsb@}% %6 |
| 1097 |
\else\xdef\meaning@{\meaning\next..........}\xdef\meaning@@{\meaning@}% %7 |
| 1098 |
\expandafter\math@\meaning@\math@ |
| 1099 |
\ifmath@ |
| 1100 |
\expandafter\mathch@\meaning@\mathch@ |
| 1101 |
\ifmathch@\expandafter\getmathch@\meaning@\getmathch@\fi %8 |
| 1102 |
\else\expandafter\macro@\meaning@@\macro@ %9 |
| 1103 |
\ifmacro@ %10 |
| 1104 |
\expandafter\not@\meaning@\not@\ifnot@\gdef\thedots@{\dotsb@}% %11 |
| 1105 |
\else\expandafter\DOTS@\meaning@\DOTS@ |
| 1106 |
\ifDOTS@ |
| 1107 |
\ifcase\number\DOTSCASE@\gdef\thedots@{\dotsb@}% |
| 1108 |
\or\gdef\thedots@{\dotsi}\else\fi %12 |
| 1109 |
\else\expandafter\math@\meaning@\math@ %13 |
| 1110 |
\ifmath@\expandafter\mathbin@\meaning@\mathbin@ |
| 1111 |
\ifmathbin@\gdef\thedots@{\dotsb@}% %14 |
| 1112 |
\else\expandafter\mathrel@\meaning@\mathrel@ |
| 1113 |
\ifmathrel@\gdef\thedots@{\dotsb@}% %15 |
| 1114 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi |
| 1115 |
\thedots@} |
| 1116 |
\def\plainldots@{\mathinner{\ldotp\ldotp\ldotp}} |
| 1117 |
\def\plaincdots@{\mathinner{\cdotp\cdotp\cdotp}} |
| 1118 |
\def\dotsi{\!\plaincdots@} |
| 1119 |
\let\dotsb@\plaincdots@ |
| 1120 |
\newif\ifextra@ |
| 1121 |
\newif\ifrightdelim@ |
| 1122 |
\def\rightdelim@{\global\rightdelim@true %1 |
| 1123 |
\ifx\next)\else %2 |
| 1124 |
\ifx\next]\else |
| 1125 |
\ifx\next\rbrack\else |
| 1126 |
\ifx\next\}\else |
| 1127 |
\ifx\next\rbrace\else |
| 1128 |
\ifx\next\rangle\else |
| 1129 |
\ifx\next\rceil\else |
| 1130 |
\ifx\next\rfloor\else |
| 1131 |
\ifx\next\rgroup\else |
| 1132 |
\ifx\next\rmoustache\else |
| 1133 |
\ifx\next\right\else |
| 1134 |
\ifx\next\bigr\else |
| 1135 |
\ifx\next\biggr\else |
| 1136 |
\ifx\next\Bigr\else %3 |
| 1137 |
\ifx\next\Biggr\else\global\rightdelim@false |
| 1138 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} |
| 1139 |
\def\extra@{% |
| 1140 |
\global\extra@false\rightdelim@\ifrightdelim@\global\extra@true %1 |
| 1141 |
\else\ifx\next$\global\extra@true %2 |
| 1142 |
\else\xdef\meaning@{\meaning\next..........}% %3 |
| 1143 |
\expandafter\macro@\meaning@\macro@\ifmacro@ %4 |
| 1144 |
\expandafter\DOTS@\meaning@\DOTS@ |
| 1145 |
\ifDOTS@ |
| 1146 |
\ifnum\DOTSCASE@=\tw@\global\extra@true %5 |
| 1147 |
\fi\fi\fi\fi\fi} |
| 1148 |
\newif\ifbold@ |
| 1149 |
\def\dotso@{\relaxnext@ |
| 1150 |
\ifbold@ |
| 1151 |
\let\next\delayed@ |
| 1152 |
\DNii@{\extra@\plainldots@\ifextra@\,\fi}% |
| 1153 |
\else |
| 1154 |
\DNii@{\DN@{\extra@\plainldots@\ifextra@\,\fi}\FN@\next@}% |
| 1155 |
\fi |
| 1156 |
\nextii@} |
| 1157 |
\def\extrap@#1{% |
| 1158 |
\ifx\next,\DN@{#1\,}\else |
| 1159 |
\ifx\next;\DN@{#1\,}\else |
| 1160 |
\ifx\next.\DN@{#1\,}\else\extra@ |
| 1161 |
\ifextra@\DN@{#1\,}\else |
| 1162 |
\let\next@#1\fi\fi\fi\fi\next@} |
| 1163 |
\def\ldots{\DN@{\extrap@\plainldots@}% |
| 1164 |
\FN@\next@} |
| 1165 |
\def\cdots{\DN@{\extrap@\plaincdots@}% |
| 1166 |
\FN@\next@} |
| 1167 |
\let\dotso\ldots |
| 1168 |
\let\dotsb\cdots |
| 1169 |
\let\dotsm\dotsb |
| 1170 |
\def\dotsc{\relaxnext@ |
| 1171 |
\DN@{\ifx\next;\plainldots@\,\else |
| 1172 |
\ifx\next.\plainldots@\,\else\extra@\plainldots@ |
| 1173 |
\ifextra@\,\fi\fi\fi}% |
| 1174 |
\FN@\next@} |
| 1175 |
\def\cdot{\mathchar"2201 } |
| 1176 |
\def\longrightarrow{\DOTSB\relbar\joinrel\rightarrow} |
| 1177 |
\def\Longrightarrow{\DOTSB\Relbar\joinrel\Rightarrow} |
| 1178 |
\def\longleftarrow{\DOTSB\leftarrow\joinrel\relbar} |
| 1179 |
\def\Longleftarrow{\DOTSB\Leftarrow\joinrel\Relbar} |
| 1180 |
\def\longleftrightarrow{\DOTSB\leftarrow\joinrel\rightarrow} |
| 1181 |
\def\Longleftrightarrow{\DOTSB\Leftarrow\joinrel\Rightarrow} |
| 1182 |
\def\mapsto{\DOTSB\mapstochar\rightarrow} |
| 1183 |
\def\longmapsto{\DOTSB\mapstochar\longrightarrow} |
| 1184 |
\def\hookrightarrow{\DOTSB\lhook\joinrel\rightarrow} |
| 1185 |
\def\hookleftarrow{\DOTSB\leftarrow\joinrel\rhook} |
| 1186 |
\def\doteq{\DOTSB\buildrel\textstyle.\over=} |
| 1187 |
\def\iff{\DOTSB\;\Longleftrightarrow\;} |
| 1188 |
\message{special superscripts,} |
| 1189 |
\def\dddot#1{{\mathop{#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@ |
| 1190 |
\hbox{\rm...}\vss}}}} |
| 1191 |
\def\ddddot#1{{\mathop{#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@ |
| 1192 |
\hbox{\rm....}\vss}}}} |
| 1193 |
\def\sphat{^{\mathchoice{}{}% |
| 1194 |
{\,\,\botsmash{\hbox{\lower4\ex@\hbox{$\m@th\widehat{\null}$}}}}% |
| 1195 |
{\,\botsmash{\hbox{\lower3\ex@\hbox{$\m@th\hat{\null}$}}}}}} |
| 1196 |
\def\spcheck{^\vee} |
| 1197 |
\def\sptilde{^\sim} |
| 1198 |
\def\spacute{^{\!\botsmash{\hbox{\lower\@ne ex\hbox{\'{}}}}}} |
| 1199 |
\def\spgrave{^{\mathchoice{}{}{}{\!}% |
| 1200 |
\botsmash{\hbox{\lower\@ne ex\hbox{\`{}}}}}} |
| 1201 |
\def\spdot{^{\hbox{\raise\ex@\hbox{\rm.}}}} |
| 1202 |
\def\spddot{^{\hbox{\raise\ex@\hbox{\rm..}}}} |
| 1203 |
\def\spdddot{^{\hbox{\raise\ex@\hbox{\rm...}}}} |
| 1204 |
\def\spddddot{^{\hbox{\raise\ex@\hbox{\rm....}}}} |
| 1205 |
\def\spbreve{^{\!\botsmash{\hbox{\lower4\ex@\hbox{\u{}}}}}} |
| 1206 |
\def\spbar{^-} |
| 1207 |
\def\spvec{^\rightarrow} |
| 1208 |
\message{\string\text,} |
| 1209 |
\def\textonlyfont@#1#2{\def#1{\RIfM@ |
| 1210 |
\Err@{Use \string#1\space only in text}\else#2\fi}} |
| 1211 |
\textonlyfont@\rm\tenrm |
| 1212 |
\textonlyfont@\it\tenit |
| 1213 |
\textonlyfont@\sl\tensl |
| 1214 |
\textonlyfont@\bf\tenbf |
| 1215 |
\def\oldnos#1{\RIfM@{\mathcode`\,="013B \fam\@ne#1}\else |
| 1216 |
\leavevmode\hbox{$\m@th\mathcode`\,="013B \fam\@ne#1$}\fi} |
| 1217 |
\def\text{\RIfM@\expandafter\text@\else\expandafter\text@@\fi} |
| 1218 |
\def\text@@#1{\leavevmode\hbox{#1}} |
| 1219 |
\def\mathhexbox@#1#2#3{\text{$\m@th\mathchar"#1#2#3$}} |
| 1220 |
\def\dag{{\mathhexbox@279}} |
| 1221 |
\def\ddag{{\mathhexbox@27A}} |
| 1222 |
\def\S{{\mathhexbox@278}} |
| 1223 |
\def\P{{\mathhexbox@27B}} |
| 1224 |
\newif\iffirstchoice@ |
| 1225 |
\firstchoice@true |
| 1226 |
\def\text@#1{\mathchoice |
| 1227 |
{\hbox{\everymath{\displaystyle}\def\textfonti{\the\textfont\@ne}% |
| 1228 |
\def\textfontii{\the\textfont\tw@}\textdef@@ T#1}} |
| 1229 |
{\hbox{\firstchoice@false |
| 1230 |
\everymath{\textstyle}\def\textfonti{\the\textfont\@ne}% |
| 1231 |
\def\textfontii{\the\textfont\tw@}\textdef@@ T#1}} |
| 1232 |
{\hbox{\firstchoice@false |
| 1233 |
\everymath{\scriptstyle}\def\textfonti{\the\scriptfont\@ne}% |
| 1234 |
\def\textfontii{\the\scriptfont\tw@}\textdef@@ S\rm#1}} |
| 1235 |
{\hbox{\firstchoice@false |
| 1236 |
\everymath{\scriptscriptstyle}\def\textfonti |
| 1237 |
{\the\scriptscriptfont\@ne}% |
| 1238 |
\def\textfontii{\the\scriptscriptfont\tw@}\textdef@@ s\rm#1}}} |
| 1239 |
\def\textdef@@#1{\textdef@#1\rm\textdef@#1\bf\textdef@#1\sl\textdef@#1\it} |
| 1240 |
\def\rmfam{0} |
| 1241 |
\def\textdef@#1#2{% |
| 1242 |
\DN@{\csname\expandafter\eat@\string#2fam\endcsname}% |
| 1243 |
\if S#1\edef#2{\the\scriptfont\next@\relax}% |
| 1244 |
\else\if s#1\edef#2{\the\scriptscriptfont\next@\relax}% |
| 1245 |
\else\edef#2{\the\textfont\next@\relax}\fi\fi} |
| 1246 |
\scriptfont\itfam\tenit \scriptscriptfont\itfam\tenit |
| 1247 |
\scriptfont\slfam\tensl \scriptscriptfont\slfam\tensl |
| 1248 |
\newif\iftopfolded@ |
| 1249 |
\newif\ifbotfolded@ |
| 1250 |
\def\topfoldedtext{\topfolded@true\botfolded@false\foldedtext@} |
| 1251 |
\def\botfoldedtext{\botfolded@true\topfolded@false\foldedtext@} |
| 1252 |
\def\foldedtext{\topfolded@false\botfolded@false\foldedtext@} |
| 1253 |
\Invalid@\foldedwidth |
| 1254 |
\def\foldedtext@{\relaxnext@ |
| 1255 |
\DN@{\ifx\next\foldedwidth\let\next@\nextii@\else |
| 1256 |
\DN@{\nextii@\foldedwidth{.3\hsize}}\fi\next@}% |
| 1257 |
\DNii@\foldedwidth##1##2{\setbox\z@\vbox |
| 1258 |
{\normalbaselines\hsize##1\relax |
| 1259 |
\tolerance1600 \noindent\ignorespaces##2}\ifbotfolded@\boxz@\else |
| 1260 |
\iftopfolded@\vtop{\unvbox\z@}\else\vcenter{\boxz@}\fi\fi}% |
| 1261 |
\FN@\next@} |
| 1262 |
\message{math font commands,} |
| 1263 |
\def\bold{\RIfM@\expandafter\bold@\else |
| 1264 |
\expandafter\nonmatherr@\expandafter\bold\fi} |
| 1265 |
\def\bold@#1{{\bold@@{#1}}} |
| 1266 |
\def\bold@@#1{\fam\bffam\relax#1} |
| 1267 |
\def\slanted{\RIfM@\expandafter\slanted@\else |
| 1268 |
\expandafter\nonmatherr@\expandafter\slanted\fi} |
| 1269 |
\def\slanted@#1{{\slanted@@{#1}}} |
| 1270 |
\def\slanted@@#1{\fam\slfam\relax#1} |
| 1271 |
\def\roman{\RIfM@\expandafter\roman@\else |
| 1272 |
\expandafter\nonmatherr@\expandafter\roman\fi} |
| 1273 |
\def\roman@#1{{\roman@@{#1}}} |
| 1274 |
\def\roman@@#1{\fam\rmfam\relax#1} |
| 1275 |
\def\italic{\RIfM@\expandafter\italic@\else |
| 1276 |
\expandafter\nonmatherr@\expandafter\italic\fi} |
| 1277 |
\def\italic@#1{{\italic@@{#1}}} |
| 1278 |
\def\italic@@#1{\fam\itfam\relax#1} |
| 1279 |
\def\Cal{\RIfM@\expandafter\Cal@\else |
| 1280 |
\expandafter\nonmatherr@\expandafter\Cal\fi} |
| 1281 |
\def\Cal@#1{{\Cal@@{#1}}} |
| 1282 |
\def\Cal@@#1{\noaccents@\fam\tw@#1} |
| 1283 |
\mathchardef\Gamma="0000 |
| 1284 |
\mathchardef\Delta="0001 |
| 1285 |
\mathchardef\Theta="0002 |
| 1286 |
\mathchardef\Lambda="0003 |
| 1287 |
\mathchardef\Xi="0004 |
| 1288 |
\mathchardef\Pi="0005 |
| 1289 |
\mathchardef\Sigma="0006 |
| 1290 |
\mathchardef\Upsilon="0007 |
| 1291 |
\mathchardef\Phi="0008 |
| 1292 |
\mathchardef\Psi="0009 |
| 1293 |
\mathchardef\Omega="000A |
| 1294 |
\mathchardef\varGamma="0100 |
| 1295 |
\mathchardef\varDelta="0101 |
| 1296 |
\mathchardef\varTheta="0102 |
| 1297 |
\mathchardef\varLambda="0103 |
| 1298 |
\mathchardef\varXi="0104 |
| 1299 |
\mathchardef\varPi="0105 |
| 1300 |
\mathchardef\varSigma="0106 |
| 1301 |
\mathchardef\varUpsilon="0107 |
| 1302 |
\mathchardef\varPhi="0108 |
| 1303 |
\mathchardef\varPsi="0109 |
| 1304 |
\mathchardef\varOmega="010A |
| 1305 |
\let\alloc@@\alloc@ |
| 1306 |
\def\hexnumber@#1{\ifcase#1 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or 8\or |
| 1307 |
9\or A\or B\or C\or D\or E\or F\fi} |
| 1308 |
\def\loadmsam{% |
| 1309 |
\font@\tenmsa=msam10 |
| 1310 |
\font@\sevenmsa=msam7 |
| 1311 |
\font@\fivemsa=msam5 |
| 1312 |
\alloc@@8\fam\chardef\sixt@@n\msafam |
| 1313 |
\textfont\msafam=\tenmsa |
| 1314 |
\scriptfont\msafam=\sevenmsa |
| 1315 |
\scriptscriptfont\msafam=\fivemsa |
| 1316 |
\edef\next{\hexnumber@\msafam}% |
| 1317 |
\mathchardef\dabar@"0\next39 |
| 1318 |
\edef\dashrightarrow{\mathrel{\dabar@\dabar@\mathchar"0\next4B}}% |
| 1319 |
\edef\dashleftarrow{\mathrel{\mathchar"0\next4C\dabar@\dabar@}}% |
| 1320 |
\let\dasharrow\dashrightarrow |
| 1321 |
\edef\ulcorner{\delimiter"4\next70\next70 }% |
| 1322 |
\edef\urcorner{\delimiter"5\next71\next71 }% |
| 1323 |
\edef\llcorner{\delimiter"4\next78\next78 }% |
| 1324 |
\edef\lrcorner{\delimiter"5\next79\next79 }% |
| 1325 |
\edef\yen{{\noexpand\mathhexbox@\next55}}% |
| 1326 |
\edef\checkmark{{\noexpand\mathhexbox@\next58}}% |
| 1327 |
\edef\circledR{{\noexpand\mathhexbox@\next72}}% |
| 1328 |
\edef\maltese{{\noexpand\mathhexbox@\next7A}}% |
| 1329 |
\global\let\loadmsam\empty}% |
| 1330 |
\def\loadmsbm{% |
| 1331 |
\font@\tenmsb=msbm10 \font@\sevenmsb=msbm7 \font@\fivemsb=msbm5 |
| 1332 |
\alloc@@8\fam\chardef\sixt@@n\msbfam |
| 1333 |
\textfont\msbfam=\tenmsb |
| 1334 |
\scriptfont\msbfam=\sevenmsb \scriptscriptfont\msbfam=\fivemsb |
| 1335 |
\global\let\loadmsbm\empty |
| 1336 |
} |
| 1337 |
\def\widehat#1{\ifx\undefined\msbfam \DN@{362}% |
| 1338 |
\else \setboxz@h{$\m@th#1$}% |
| 1339 |
\edef\next@{\ifdim\wdz@>\tw@ em% |
| 1340 |
\hexnumber@\msbfam 5B% |
| 1341 |
\else 362\fi}\fi |
| 1342 |
\mathaccent"0\next@{#1}} |
| 1343 |
\def\widetilde#1{\ifx\undefined\msbfam \DN@{365}% |
| 1344 |
\else \setboxz@h{$\m@th#1$}% |
| 1345 |
\edef\next@{\ifdim\wdz@>\tw@ em% |
| 1346 |
\hexnumber@\msbfam 5D% |
| 1347 |
\else 365\fi}\fi |
| 1348 |
\mathaccent"0\next@{#1}} |
| 1349 |
\message{\string\newsymbol,} |
| 1350 |
\def\newsymbol#1#2#3#4#5{\define#1{}% |
| 1351 |
\count@#2\relax \advance\count@\m@ne % to push case 0 to the \else clause |
| 1352 |
\ifcase\count@ |
| 1353 |
\ifx\undefined\msafam\loadmsam\fi \let\next@\msafam |
| 1354 |
\or \ifx\undefined\msbfam\loadmsbm\fi \let\next@\msbfam |
| 1355 |
\else \Err@{\Invalid@@\string\newsymbol}\let\next@\tw@\fi |
| 1356 |
\mathchardef#1="#3\hexnumber@\next@#4#5\space} |
| 1357 |
\def\UseAMSsymbols{\loadmsam\loadmsbm \input amssym.tex } |
| 1358 |
\def\Bbb{\RIfM@\expandafter\Bbb@\else |
| 1359 |
\expandafter\nonmatherr@\expandafter\Bbb\fi} |
| 1360 |
\def\Bbb@#1{{\Bbb@@{#1}}} |
| 1361 |
\def\Bbb@@#1{\noaccents@\fam\msbfam\relax#1} |
| 1362 |
\message{bold Greek and bold symbols,} |
| 1363 |
\def\loadbold{% |
| 1364 |
\font@\tencmmib=cmmib10 \font@\sevencmmib=cmmib7 \font@\fivecmmib=cmmib5 |
| 1365 |
\skewchar\tencmmib'177 \skewchar\sevencmmib'177 \skewchar\fivecmmib'177 |
| 1366 |
\alloc@@8\fam\chardef\sixt@@n\cmmibfam |
| 1367 |
\textfont\cmmibfam\tencmmib |
| 1368 |
\scriptfont\cmmibfam\sevencmmib \scriptscriptfont\cmmibfam\fivecmmib |
| 1369 |
\font@\tencmbsy=cmbsy10 \font@\sevencmbsy=cmbsy7 \font@\fivecmbsy=cmbsy5 |
| 1370 |
\skewchar\tencmbsy'60 \skewchar\sevencmbsy'60 \skewchar\fivecmbsy'60 |
| 1371 |
\alloc@@8\fam\chardef\sixt@@n\cmbsyfam |
| 1372 |
\textfont\cmbsyfam\tencmbsy |
| 1373 |
\scriptfont\cmbsyfam\sevencmbsy \scriptscriptfont\cmbsyfam\fivecmbsy |
| 1374 |
\let\loadbold\empty |
| 1375 |
} |
| 1376 |
\def\boldnotloaded#1{\Err@{\ifcase#1\or First\else Second\fi |
| 1377 |
bold symbol font not loaded}} |
| 1378 |
\def\mathchari@#1#2#3{\ifx\undefined\cmmibfam |
| 1379 |
\boldnotloaded@\@ne |
| 1380 |
\else\mathchar"#1\hexnumber@\cmmibfam#2#3\space \fi} |
| 1381 |
\def\mathcharii@#1#2#3{\ifx\undefined\cmbsyfam |
| 1382 |
\boldnotloaded\tw@ |
| 1383 |
\else \mathchar"#1\hexnumber@\cmbsyfam#2#3\space\fi} |
| 1384 |
\edef\bffam@{\hexnumber@\bffam} |
| 1385 |
\def\boldkey#1{\ifcat\noexpand#1A% |
| 1386 |
\ifx\undefined\cmmibfam \boldnotloaded\@ne |
| 1387 |
\else {\fam\cmmibfam#1}\fi |
| 1388 |
\else |
| 1389 |
\ifx#1!\mathchar"5\bffam@21 \else |
| 1390 |
\ifx#1(\mathchar"4\bffam@28 \else\ifx#1)\mathchar"5\bffam@29 \else |
| 1391 |
\ifx#1+\mathchar"2\bffam@2B \else\ifx#1:\mathchar"3\bffam@3A \else |
| 1392 |
\ifx#1;\mathchar"6\bffam@3B \else\ifx#1=\mathchar"3\bffam@3D \else |
| 1393 |
\ifx#1?\mathchar"5\bffam@3F \else\ifx#1[\mathchar"4\bffam@5B \else |
| 1394 |
\ifx#1]\mathchar"5\bffam@5D \else |
| 1395 |
\ifx#1,\mathchari@63B \else |
| 1396 |
\ifx#1-\mathcharii@200 \else |
| 1397 |
\ifx#1.\mathchari@03A \else |
| 1398 |
\ifx#1/\mathchari@03D \else |
| 1399 |
\ifx#1<\mathchari@33C \else |
| 1400 |
\ifx#1>\mathchari@33E \else |
| 1401 |
\ifx#1*\mathcharii@203 \else |
| 1402 |
\ifx#1|\mathcharii@06A \else |
| 1403 |
\ifx#10\bold0\else\ifx#11\bold1\else\ifx#12\bold2\else\ifx#13\bold3\else |
| 1404 |
\ifx#14\bold4\else\ifx#15\bold5\else\ifx#16\bold6\else\ifx#17\bold7\else |
| 1405 |
\ifx#18\bold8\else\ifx#19\bold9\else |
| 1406 |
\Err@{\string\boldkey\space can't be used with #1}% |
| 1407 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi |
| 1408 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} |
| 1409 |
\def\boldsymbol#1{% |
| 1410 |
\DN@{\Err@{You can't use \string\boldsymbol\space with \string#1}#1}% |
| 1411 |
\ifcat\noexpand#1A% |
| 1412 |
\let\next@\relax |
| 1413 |
\ifx\undefined\cmmibfam \boldnotloaded\@ne |
| 1414 |
\else {\fam\cmmibfam#1}\fi |
| 1415 |
\else |
| 1416 |
\xdef\meaning@{\meaning#1.........}% |
| 1417 |
\expandafter\math@\meaning@\math@ |
| 1418 |
\ifmath@ |
| 1419 |
\expandafter\mathch@\meaning@\mathch@ |
| 1420 |
\ifmathch@ |
| 1421 |
\expandafter\boldsymbol@@\meaning@\boldsymbol@@ |
| 1422 |
\fi |
| 1423 |
\else |
| 1424 |
\expandafter\macro@\meaning@\macro@ |
| 1425 |
\expandafter\delim@\meaning@\delim@ |
| 1426 |
\ifdelim@ |
| 1427 |
\expandafter\delim@@\meaning@\delim@@ |
| 1428 |
\else |
| 1429 |
\boldsymbol@{#1}% |
| 1430 |
\fi |
| 1431 |
\fi |
| 1432 |
\fi |
| 1433 |
\next@} |
| 1434 |
\def\mathhexboxii@#1#2{\ifx\undefined\cmbsyfam |
| 1435 |
\boldnotloaded\tw@ |
| 1436 |
\else \mathhexbox@{\hexnumber@\cmbsyfam}{#1}{#2}\fi} |
| 1437 |
\def\boldsymbol@#1{\let\next@\relax\let\next#1% |
| 1438 |
\ifx\next\cdot\mathcharii@201 \else |
| 1439 |
\ifx\next\prime{{\null\mathcharii@030 \null}}\else |
| 1440 |
\ifx\next\lbrack\mathchar"4\bffam@5B \else |
| 1441 |
\ifx\next\rbrack\mathchar"5\bffam@5D \else |
| 1442 |
\ifx\next\{\mathcharii@466 \else |
| 1443 |
\ifx\next\lbrace\mathcharii@466 \else |
| 1444 |
\ifx\next\}\mathcharii@567 \else |
| 1445 |
\ifx\next\rbrace\mathcharii@567 \else |
| 1446 |
\ifx\next\surd{{\mathcharii@170}}\else |
| 1447 |
\ifx\next\S{{\mathhexboxii@78}}\else |
| 1448 |
\ifx\next\P{{\mathhexboxii@7B}}\else |
| 1449 |
\ifx\next\dag{{\mathhexboxii@79}}\else |
| 1450 |
\ifx\next\ddag{{\mathhexboxii@7A}}\else |
| 1451 |
\DN@{\Err@{You can't use \string\boldsymbol\space with \string#1}#1}% |
| 1452 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} |
| 1453 |
\def\boldsymbol@@#1.#2\boldsymbol@@{\classnum@#1 \count@@@\classnum@ %1 |
| 1454 |
\divide\classnum@4096 \count@\classnum@ %2 |
| 1455 |
\multiply\count@4096 \advance\count@@@-\count@ \count@@\count@@@ %3 |
| 1456 |
\divide\count@@@\@cclvi \count@\count@@ %4 |
| 1457 |
\multiply\count@@@\@cclvi \advance\count@@-\count@@@ %5 |
| 1458 |
\divide\count@@@\@cclvi %6 |
| 1459 |
\multiply\classnum@4096 \advance\classnum@\count@@ %7 |
| 1460 |
\ifnum\count@@@=\z@ %8 |
| 1461 |
\count@"\bffam@ \multiply\count@\@cclvi |
| 1462 |
\advance\classnum@\count@ |
| 1463 |
\DN@{\mathchar\number\classnum@}% |
| 1464 |
\else |
| 1465 |
\ifnum\count@@@=\@ne %9 |
| 1466 |
\ifx\undefined\cmmibfam \DN@{\boldnotloaded\@ne}% |
| 1467 |
\else \count@\cmmibfam \multiply\count@\@cclvi |
| 1468 |
\advance\classnum@\count@ |
| 1469 |
\DN@{\mathchar\number\classnum@}\fi |
| 1470 |
\else |
| 1471 |
\ifnum\count@@@=\tw@ %10 |
| 1472 |
\ifx\undefined\cmbsyfam |
| 1473 |
\DN@{\boldnotloaded\tw@}% |
| 1474 |
\else |
| 1475 |
\count@\cmbsyfam \multiply\count@\@cclvi |
| 1476 |
\advance\classnum@\count@ |
| 1477 |
\DN@{\mathchar\number\classnum@}% |
| 1478 |
\fi |
| 1479 |
\fi |
| 1480 |
\fi |
| 1481 |
\fi} |
| 1482 |
\newif\ifdelim@ |
| 1483 |
\newcount\delimcount@ |
| 1484 |
{\uccode`6=`\\ \uccode`7=`d \uccode`8=`e \uccode`9=`l |
| 1485 |
\uppercase{\gdef\delim@#1#2#3#4#5\delim@ |
| 1486 |
{\delim@false\ifx 6#1\ifx 7#2\ifx 8#3\ifx 9#4\delim@true |
| 1487 |
\xdef\meaning@{#5}\fi\fi\fi\fi}}} |
| 1488 |
\def\delim@@#1"#2#3#4#5#6\delim@@{\if#32% |
| 1489 |
\let\next@\relax |
| 1490 |
\ifx\undefined\cmbsyfam \boldnotloaded\@ne |
| 1491 |
\else \mathcharii@#2#4#5\space \fi\fi} |
| 1492 |
\def\vert{\delimiter"026A30C } |
| 1493 |
\def\Vert{\delimiter"026B30D } |
| 1494 |
\let\|\Vert |
| 1495 |
\def\backslash{\delimiter"026E30F } |
| 1496 |
\def\boldkeydots@#1{\bold@true\let\next=#1\let\delayed@=#1\mdots@@ |
| 1497 |
\boldkey#1\bold@false} % = required! |
| 1498 |
\def\boldsymboldots@#1{\bold@true\let\next#1\let\delayed@#1\mdots@@ |
| 1499 |
\boldsymbol#1\bold@false} |
| 1500 |
\message{Euler fonts,} |
| 1501 |
\def\loadeufm{\loadmathfont{eufm}} |
| 1502 |
\def\loadeufb{\loadmathfont{eufb}} |
| 1503 |
\def\loadeusm{\loadmathfont{eusm}} |
| 1504 |
\def\loadeusb{\loadmathfont{eusb}} |
| 1505 |
\def\loadeurm{\loadmathfont{eurm}} |
| 1506 |
\def\loadeurb{\loadmathfont{eurb}} |
| 1507 |
\def\frak{\mathfont@\frak} |
| 1508 |
\def\frakfam{\eufmfam} |
| 1509 |
\let\goth\frak |
| 1510 |
\def\loadmathfont#1{% |
| 1511 |
\expandafter\font@\csname ten#1\endcsname=#110 |
| 1512 |
\expandafter\font@\csname seven#1\endcsname=#17 |
| 1513 |
\expandafter\font@\csname five#1\endcsname=#15 |
| 1514 |
\edef\next{\noexpand\alloc@@8\fam\chardef\sixt@@n |
| 1515 |
\expandafter\noexpand\csname#1fam\endcsname}% |
| 1516 |
\next |
| 1517 |
\textfont\csname#1fam\endcsname \csname ten#1\endcsname |
| 1518 |
\scriptfont\csname#1fam\endcsname \csname seven#1\endcsname |
| 1519 |
\scriptscriptfont\csname#1fam\endcsname \csname five#1\endcsname |
| 1520 |
\expandafter\def\csname #1\expandafter\endcsname\expandafter{% |
| 1521 |
\expandafter\mathfont@\csname#1\endcsname}% |
| 1522 |
\expandafter\gdef\csname load#1\endcsname{}% |
| 1523 |
} |
| 1524 |
\def\mathfont@#1{\RIfM@\expandafter\mathfont@@\expandafter#1\else |
| 1525 |
\expandafter\nonmatherr@\expandafter#1\fi} |
| 1526 |
\def\mathfont@@#1#2{{\mathfont@@@#1{#2}}} |
| 1527 |
\def\mathfont@@@#1#2{\noaccents@ |
| 1528 |
\fam\csname\expandafter\eat@\string#1fam\endcsname |
| 1529 |
\relax#2} |
| 1530 |
\message{math accents,} |
| 1531 |
\def\accentclass@{7} |
| 1532 |
\def\noaccents@{\def\accentclass@{0}} |
| 1533 |
\def\makeacc@#1#2{\def#1{\mathaccent"\accentclass@#2 }} |
| 1534 |
\makeacc@\hat{05E} |
| 1535 |
\makeacc@\check{014} |
| 1536 |
\makeacc@\tilde{07E} |
| 1537 |
\makeacc@\acute{013} |
| 1538 |
\makeacc@\grave{012} |
| 1539 |
\makeacc@\dot{05F} |
| 1540 |
\makeacc@\ddot{07F} |
| 1541 |
\makeacc@\breve{015} |
| 1542 |
\makeacc@\bar{016} |
| 1543 |
\def\vec{\mathaccent"017E } |
| 1544 |
\newcount\skewcharcount@ |
| 1545 |
\newcount\familycount@ |
| 1546 |
\def\theskewchar@{\familycount@\@ne |
| 1547 |
\global\skewcharcount@\the\skewchar\textfont\@ne %1 |
| 1548 |
\ifnum\fam>\m@ne\ifnum\fam<16 |
| 1549 |
\global\familycount@\the\fam\relax |
| 1550 |
\global\skewcharcount@\the\skewchar\textfont\the\fam\relax\fi\fi %2 |
| 1551 |
\ifnum\skewcharcount@>\m@ne |
| 1552 |
\ifnum\skewcharcount@<128 |
| 1553 |
\multiply\familycount@256 |
| 1554 |
\global\advance\skewcharcount@\familycount@ |
| 1555 |
\global\advance\skewcharcount@28672 |
| 1556 |
\mathchar\skewcharcount@\else |
| 1557 |
\global\skewcharcount@\m@ne\fi\else |
| 1558 |
\global\skewcharcount@\m@ne\fi} %3 |
| 1559 |
\newcount\pointcount@ |
| 1560 |
\def\getpoints@#1.#2\getpoints@{\pointcount@#1 } |
| 1561 |
\newdimen\accentdimen@ |
| 1562 |
\newcount\accentmu@ |
| 1563 |
\def\dimentomu@{\multiply\accentdimen@ 100 |
| 1564 |
\expandafter\getpoints@\the\accentdimen@\getpoints@ |
| 1565 |
\multiply\pointcount@18 |
| 1566 |
\divide\pointcount@\@m |
| 1567 |
\global\accentmu@\pointcount@} |
| 1568 |
\def\Makeacc@#1#2{\def#1{\RIfM@\DN@{\mathaccent@ |
| 1569 |
{"\accentclass@#2 }}\else\DN@{\nonmatherr@{#1}}\fi\next@}} |
| 1570 |
\def\unbracefonts@{\let\Cal@\Cal@@\let\roman@\roman@@\let\bold@\bold@@ |
| 1571 |
\let\slanted@\slanted@@} |
| 1572 |
\def\mathaccent@#1#2{\ifnum\fam=\m@ne\xdef\thefam@{1}\else |
| 1573 |
\xdef\thefam@{\the\fam}\fi %1 |
| 1574 |
\accentdimen@\z@ %2 |
| 1575 |
\setboxz@h{\unbracefonts@$\m@th\fam\thefam@\relax#2$}% %3 |
| 1576 |
\ifdim\accentdimen@=\z@\DN@{\mathaccent#1{#2}}% %4 |
| 1577 |
\setbox@ne\hbox{\unbracefonts@$\m@th\fam\thefam@\relax#2\theskewchar@$}% %5a |
| 1578 |
\setbox\tw@\hbox{$\m@th\ifnum\skewcharcount@=\m@ne\else |
| 1579 |
\mathchar\skewcharcount@\fi$}% %5b |
| 1580 |
\global\accentdimen@\wd@ne\global\advance\accentdimen@-\wdz@ |
| 1581 |
\global\advance\accentdimen@-\wd\tw@ %5c |
| 1582 |
\global\multiply\accentdimen@\tw@ |
| 1583 |
\dimentomu@\global\advance\accentmu@\@ne %5d |
| 1584 |
\else\DN@{{\mathaccent#1{#2\mkern\accentmu@ mu}% |
| 1585 |
\mkern-\accentmu@ mu}{}}\fi %6 |
| 1586 |
\next@}\Makeacc@\Hat{05E} |
| 1587 |
\Makeacc@\Check{014} |
| 1588 |
\Makeacc@\Tilde{07E} |
| 1589 |
\Makeacc@\Acute{013} |
| 1590 |
\Makeacc@\Grave{012} |
| 1591 |
\Makeacc@\Dot{05F} |
| 1592 |
\Makeacc@\Ddot{07F} |
| 1593 |
\Makeacc@\Breve{015} |
| 1594 |
\Makeacc@\Bar{016} |
| 1595 |
\def\Vec{\RIfM@\DN@{\mathaccent@{"017E }}\else |
| 1596 |
\DN@{\nonmatherr@\Vec}\fi\next@} |
| 1597 |
\def\accentedsymbol#1#2{\csname newbox\expandafter\endcsname |
| 1598 |
\csname\expandafter\eat@\string#1@box\endcsname |
| 1599 |
\expandafter\setbox\csname\expandafter\eat@ |
| 1600 |
\string#1@box\endcsname\hbox{$\m@th#2$}\define |
| 1601 |
#1{\copy\csname\expandafter\eat@\string#1@box\endcsname{}}} |
| 1602 |
\message{roots,} |
| 1603 |
\def\sqrt#1{\radical"270370 {#1}} |
| 1604 |
\let\underline@\underline |
| 1605 |
\let\overline@\overline |
| 1606 |
\def\underline#1{\underline@{#1}} |
| 1607 |
\def\overline#1{\overline@{#1}} |
| 1608 |
\Invalid@\leftroot |
| 1609 |
\Invalid@\uproot |
| 1610 |
\newcount\uproot@ |
| 1611 |
\newcount\leftroot@ |
| 1612 |
\def\root{\relaxnext@ |
| 1613 |
\DN@{\ifx\next\uproot\let\next@\nextii@\else |
| 1614 |
\ifx\next\leftroot\let\next@\nextiii@\else |
| 1615 |
\let\next@\plainroot@\fi\fi\next@}% |
| 1616 |
\DNii@\uproot##1{\uproot@##1\relax\FN@\nextiv@}% |
| 1617 |
\def\nextiv@{\ifx\next\space@\DN@. {\FN@\nextv@}\else |
| 1618 |
\DN@.{\FN@\nextv@}\fi\next@.}% |
| 1619 |
\def\nextv@{\ifx\next\leftroot\let\next@\nextvi@\else |
| 1620 |
\let\next@\plainroot@\fi\next@}% |
| 1621 |
\def\nextvi@\leftroot##1{\leftroot@##1\relax\plainroot@}% |
| 1622 |
\def\nextiii@\leftroot##1{\leftroot@##1\relax\FN@\nextvii@}% |
| 1623 |
\def\nextvii@{\ifx\next\space@ |
| 1624 |
\DN@. {\FN@\nextviii@}\else |
| 1625 |
\DN@.{\FN@\nextviii@}\fi\next@.}% |
| 1626 |
\def\nextviii@{\ifx\next\uproot\let\next@\nextix@\else |
| 1627 |
\let\next@\plainroot@\fi\next@}% |
| 1628 |
\def\nextix@\uproot##1{\uproot@##1\relax\plainroot@}% |
| 1629 |
\bgroup\uproot@\z@\leftroot@\z@\FN@\next@} |
| 1630 |
\def\plainroot@#1\of#2{\setbox\rootbox\hbox{$\m@th\scriptscriptstyle{#1}$}% |
| 1631 |
\mathchoice{\r@@t\displaystyle{#2}}{\r@@t\textstyle{#2}} |
| 1632 |
{\r@@t\scriptstyle{#2}}{\r@@t\scriptscriptstyle{#2}}\egroup} |
| 1633 |
\def\r@@t#1#2{\setboxz@h{$\m@th#1\sqrt{#2}$}% |
| 1634 |
\dimen@\ht\z@\advance\dimen@-\dp\z@ |
| 1635 |
\setbox@ne\hbox{$\m@th#1\mskip\uproot@ mu$}\advance\dimen@ 1.667\wd@ne |
| 1636 |
\mkern-\leftroot@ mu\mkern5mu\raise.6\dimen@\copy\rootbox |
| 1637 |
\mkern-10mu\mkern\leftroot@ mu\boxz@} |
| 1638 |
\def\boxed#1{\setboxz@h{$\m@th\displaystyle{#1}$}\[email protected]\ex@ |
| 1639 |
\advance\dimen@3\ex@\advance\dimen@\dp\z@ |
| 1640 |
\hbox{\lower\dimen@\hbox{% |
| 1641 |
\vbox{\hrule height.4\ex@ |
| 1642 |
\hbox{\vrule width.4\ex@\hskip3\ex@\vbox{\vskip3\ex@\boxz@\vskip3\ex@}% |
| 1643 |
\hskip3\ex@\vrule width.4\ex@}\hrule height.4\ex@}% |
| 1644 |
}}} |
| 1645 |
\message{commutative diagrams,} |
| 1646 |
\let\ampersand@\relax |
| 1647 |
\newdimen\minaw@ |
| 1648 |
\[email protected]\ex@ |
| 1649 |
\newdimen\minCDaw@ |
| 1650 |
\[email protected] |
| 1651 |
\def\minCDarrowwidth#1{\RIfMIfI@\onlydmatherr@\minCDarrowwidth |
| 1652 |
\else\minCDaw@#1\relax\fi\else\onlydmatherr@\minCDarrowwidth\fi} |
| 1653 |
\newif\ifCD@ |
| 1654 |
\def\CD{\bgroup\vspace@\relax\iffalse{\fi\let\ampersand@&\iffalse}\fi |
| 1655 |
\CD@true\vcenter\bgroup\Let@\tabskip\z@skip\baselineskip20\ex@ |
| 1656 |
\lineskip3\ex@\lineskiplimit3\ex@\halign\bgroup |
| 1657 |
&\hfill$\m@th##$\hfill\crcr} |
| 1658 |
\def\endCD{\crcr\egroup\egroup\egroup} |
| 1659 |
\newdimen\bigaw@ |
| 1660 |
\atdef@>#1>#2>{\ampersand@ %1 |
| 1661 |
\setboxz@h{$\m@th\ssize\;{#1}\;\;$}% %2 |
| 1662 |
\setbox@ne\hbox{$\m@th\ssize\;{#2}\;\;$}% %3 |
| 1663 |
\setbox\tw@\hbox{$\m@th#2$}% %4 |
| 1664 |
\ifCD@\global\bigaw@\minCDaw@\else\global\bigaw@\minaw@\fi %5 |
| 1665 |
\ifdim\wdz@>\bigaw@\global\bigaw@\wdz@\fi |
| 1666 |
\ifdim\wd@ne>\bigaw@\global\bigaw@\wd@ne\fi %6 |
| 1667 |
\ifCD@\enskip\fi %7 |
| 1668 |
\ifdim\wd\tw@>\z@ |
| 1669 |
\mathrel{\mathop{\hbox to\bigaw@{\rightarrowfill@\displaystyle}}% |
| 1670 |
\limits^{#1}_{#2}}% %8 |
| 1671 |
\else\mathrel{\mathop{\hbox to\bigaw@{\rightarrowfill@\displaystyle}}% |
| 1672 |
\limits^{#1}}\fi %9 |
| 1673 |
\ifCD@\enskip\fi %10 |
| 1674 |
\ampersand@} %11 |
| 1675 |
\atdef@<#1<#2<{\ampersand@\setboxz@h{$\m@th\ssize\;\;{#1}\;$}% |
| 1676 |
\setbox@ne\hbox{$\m@th\ssize\;\;{#2}\;$}\setbox\tw@\hbox{$\m@th#2$}% |
| 1677 |
\ifCD@\global\bigaw@\minCDaw@\else\global\bigaw@\minaw@\fi |
| 1678 |
\ifdim\wdz@>\bigaw@\global\bigaw@\wdz@\fi |
| 1679 |
\ifdim\wd@ne>\bigaw@\global\bigaw@\wd@ne\fi |
| 1680 |
\ifCD@\enskip\fi |
| 1681 |
\ifdim\wd\tw@>\z@ |
| 1682 |
\mathrel{\mathop{\hbox to\bigaw@{\leftarrowfill@\displaystyle}}% |
| 1683 |
\limits^{#1}_{#2}}\else |
| 1684 |
\mathrel{\mathop{\hbox to\bigaw@{\leftarrowfill@\displaystyle}}% |
| 1685 |
\limits^{#1}}\fi |
| 1686 |
\ifCD@\enskip\fi\ampersand@} |
| 1687 |
\begingroup |
| 1688 |
\catcode`\~=\active \lccode`\~=`\@ |
| 1689 |
\lowercase{% |
| 1690 |
\global\atdef@)#1)#2){~>#1>#2>} |
| 1691 |
\global\atdef@(#1(#2({~<#1<#2<}} |
| 1692 |
\endgroup |
| 1693 |
\atdef@ A#1A#2A{\llap{$\m@th\vcenter{\hbox |
| 1694 |
{$\ssize#1$}}$}\Big\uparrow\rlap{$\m@th\vcenter{\hbox{$\ssize#2$}}$}&&} |
| 1695 |
\atdef@ V#1V#2V{\llap{$\m@th\vcenter{\hbox |
| 1696 |
{$\ssize#1$}}$}\Big\downarrow\rlap{$\m@th\vcenter{\hbox{$\ssize#2$}}$}&&} |
| 1697 |
\atdef@={&\enskip\mathrel |
| 1698 |
{\vbox{\hrule width\minCDaw@\vskip3\ex@\hrule width |
| 1699 |
\minCDaw@}}\enskip&} |
| 1700 |
\atdef@|{\Big\Vert&&} |
| 1701 |
\atdef@\vert{\Big\Vert&&} |
| 1702 |
\def\pretend#1\haswidth#2{\setboxz@h{$\m@th\scriptstyle{#2}$}\hbox |
| 1703 |
to\wdz@{\hfill$\m@th\scriptstyle{#1}$\hfill}} |
| 1704 |
\message{poor man's bold,} |
| 1705 |
\def\pmb{\RIfM@\expandafter\mathpalette\expandafter\pmb@\else |
| 1706 |
\expandafter\pmb@@\fi} |
| 1707 |
\def\pmb@@#1{\leavevmode\setboxz@h{#1}% |
| 1708 |
\dimen@-\wdz@ |
| 1709 |
\kern-.5\ex@\copy\z@ |
| 1710 |
\kern\dimen@\kern.25\ex@\raise.4\ex@\copy\z@ |
| 1711 |
\kern\dimen@\kern.25\ex@\box\z@ |
| 1712 |
} |
| 1713 |
\def\binrel@@#1{\ifdim\wd2<\z@\mathbin{#1}\else\ifdim\wd\tw@>\z@ |
| 1714 |
\mathrel{#1}\else{#1}\fi\fi} |
| 1715 |
\newdimen\pmbraise@ |
| 1716 |
% Note: because of the use of \mathpalette, if \pmb@ is |
| 1717 |
% applied to a single math italic character (or a single |
| 1718 |
% character from some other slanted math font), the italic |
| 1719 |
% correction will be added. This will cause subscripts |
| 1720 |
% to fall too far away from the character in some |
| 1721 |
% cases, e.g., $\pmb{T}_1$ or $\pmb{\Cal T}_1$. |
| 1722 |
\def\pmb@#1#2{\setbox\thr@@\hbox{$\m@th#1{#2}$}% |
| 1723 |
\setbox4\hbox{$\m@th#1\mkern.5mu$}\pmbraise@\wd4\relax |
| 1724 |
\binrel@{#2}% |
| 1725 |
\dimen@-\wd\thr@@ |
| 1726 |
\binrel@@{% |
| 1727 |
\mkern-.8mu\copy\thr@@ |
| 1728 |
\kern\dimen@\mkern.4mu\raise\pmbraise@\copy\thr@@ |
| 1729 |
\kern\dimen@\mkern.4mu\box\thr@@ |
| 1730 |
}} |
| 1731 |
\def\documentstyle#1{\W@{}\input #1.sty\relax} |
| 1732 |
\message{syntax check,} |
| 1733 |
\font\dummyft@=dummy |
| 1734 |
\fontdimen1 \dummyft@=\z@ |
| 1735 |
\fontdimen2 \dummyft@=\z@ |
| 1736 |
\fontdimen3 \dummyft@=\z@ |
| 1737 |
\fontdimen4 \dummyft@=\z@ |
| 1738 |
\fontdimen5 \dummyft@=\z@ |
| 1739 |
\fontdimen6 \dummyft@=\z@ |
| 1740 |
\fontdimen7 \dummyft@=\z@ |
| 1741 |
\fontdimen8 \dummyft@=\z@ |
| 1742 |
\fontdimen9 \dummyft@=\z@ |
| 1743 |
\fontdimen10 \dummyft@=\z@ |
| 1744 |
\fontdimen11 \dummyft@=\z@ |
| 1745 |
\fontdimen12 \dummyft@=\z@ |
| 1746 |
\fontdimen13 \dummyft@=\z@ |
| 1747 |
\fontdimen14 \dummyft@=\z@ |
| 1748 |
\fontdimen15 \dummyft@=\z@ |
| 1749 |
\fontdimen16 \dummyft@=\z@ |
| 1750 |
\fontdimen17 \dummyft@=\z@ |
| 1751 |
\fontdimen18 \dummyft@=\z@ |
| 1752 |
\fontdimen19 \dummyft@=\z@ |
| 1753 |
\fontdimen20 \dummyft@=\z@ |
| 1754 |
\fontdimen21 \dummyft@=\z@ |
| 1755 |
\fontdimen22 \dummyft@=\z@ |
| 1756 |
\def\fontlist@{\\{\tenrm}\\{\sevenrm}\\{\fiverm}\\{\teni}\\{\seveni}% |
| 1757 |
\\{\fivei}\\{\tensy}\\{\sevensy}\\{\fivesy}\\{\tenex}\\{\tenbf}\\{\sevenbf}% |
| 1758 |
\\{\fivebf}\\{\tensl}\\{\tenit}} |
| 1759 |
\def\font@#1=#2 {\rightappend@#1\to\fontlist@\font#1=#2 } |
| 1760 |
\def\dodummy@{{\def\\##1{\global\let##1\dummyft@}\fontlist@}} |
| 1761 |
\def\nopages@{\output{\setbox\z@\box\@cclv \deadcycles\z@}% |
| 1762 |
\alloc@5\toks\toksdef\@cclvi\output} |
| 1763 |
\let\galleys\nopages@ |
| 1764 |
\newif\ifsyntax@ |
| 1765 |
\newcount\countxviii@ |
| 1766 |
\def\syntax{\syntax@true\dodummy@\countxviii@\count18 |
| 1767 |
\loop\ifnum\countxviii@>\m@ne\textfont\countxviii@=\dummyft@ |
| 1768 |
\scriptfont\countxviii@=\dummyft@\scriptscriptfont\countxviii@=\dummyft@ |
| 1769 |
\advance\countxviii@\m@ne\repeat %1 |
| 1770 |
\dummyft@\tracinglostchars\z@\nopages@\frenchspacing\hbadness\@M} |
| 1771 |
\def\first@#1#2\end{#1} |
| 1772 |
\def\printoptions{\W@{Do you want S(yntax check), |
| 1773 |
G(alleys) or P(ages)?}% |
| 1774 |
\message{Type S, G or P, followed by <return>: }% |
| 1775 |
\begingroup % to localize the following change to \endlinechar: |
| 1776 |
\endlinechar\m@ne % to prevent a space or \par in \ans@ from ^^M |
| 1777 |
\read\m@ne to\ans@ |
| 1778 |
% Define \ans@ to uppercase itself, and default to P if the user |
| 1779 |
% just pressed <return>. |
| 1780 |
\edef\ans@{\uppercase{\def\noexpand\ans@{% |
| 1781 |
\expandafter\first@\ans@ P\end}}}% |
| 1782 |
% Cast the new definition of \ans@ outside the group |
| 1783 |
\expandafter\endgroup\ans@ |
| 1784 |
\if\ans@ P% fine, no action needs to be taken |
| 1785 |
\else \if\ans@ S\syntax |
| 1786 |
\else \if\ans@ G\galleys |
| 1787 |
\else\message{? Unknown option: \ans@; using the `pages' option.}% |
| 1788 |
\fi\fi\fi} |
| 1789 |
\def\alloc@#1#2#3#4#5{\global\advance\count1#1by\@ne |
| 1790 |
\ch@ck#1#4#2\allocationnumber=\count1#1 |
| 1791 |
\global#3#5=\allocationnumber |
| 1792 |
\ifalloc@\wlog{\string#5=\string#2\the\allocationnumber}\fi} |
| 1793 |
\def\document{\def\alloclist@{}\def\fontlist@{}} |
| 1794 |
\let\enddocument\bye |
| 1795 |
\let\plainproclaim\proclaim |
| 1796 |
\let\plainfootnote\footnote |
| 1797 |
\let\proclaim\undefined |
| 1798 |
\let\footnote\undefined |
| 1799 |
\let\=\undefined |
| 1800 |
\let\>\undefined |
| 1801 |
\let\cal\undefined |
| 1802 |
\let\mit\undefined |
| 1803 |
\let\oldstyle\undefined |
| 1804 |
\catcode`\@=\active |
| 1805 |
\message{... finished} |
| 1806 |
\endinput |