1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
%%
%% This is file `amstext.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% amstext.dtx
%%
%%% ====================================================================
%%% @LaTeX-file{
%%% filename = "amstext.dtx",
%%% version = "2.01",
%%% date = "2000/06/29",
%%% time = "08:34:33 EDT",
%%% checksum = "09860 314 1647 12368",
%%% author = "American Mathematical Society",
%%% copyright = "Copyright 1995, 1999 American Mathematical Society,
%%% all rights reserved. Copying of this file is
%%% authorized only if either:
%%% (1) you make absolutely no changes to your copy,
%%% including name; OR
%%% (2) if you do make changes, you first rename it
%%% to some other name.",
%%% address = "American Mathematical Society,
%%% Technical Support,
%%% Electronic Products and Services,
%%% P. O. Box 6248,
%%% Providence, RI 02940,
%%% USA",
%%% telephone = "401-455-4080 or (in the USA and Canada)
%%% 800-321-4AMS (321-4267)",
%%% FAX = "401-331-3842",
%%% email = "tech-support@ams.org (Internet)",
%%% supported = "yes",
%%% keywords = "latex, math, text",
%%% abstract = "This is a \LaTeX{} package that defines a
%%% \cn{\text} macro, which makes it easy to
%%% incorporate fragments of text inside a displayed
%%% equation or a sub or superscript. Font sizes
%%% are automatically scaled in sub/superscripts.",
%%% docstring = "The checksum field above contains a CRC-16
%%% checksum as the first value, followed by the
%%% equivalent of the standard UNIX wc (word
%%% count) utility output of lines, words, and
%%% characters. This is produced by Robert
%%% Solovay's checksum utility.",
%%% }
%%% ====================================================================
\NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
[1994/12/01]% LaTeX date must be December 1994 or later
\ProvidesPackage{amstext}[2000/06/29 v2.01]
\RequirePackage{amsgen}
\DeclareRobustCommand{\text}{%
\ifmmode\expandafter\text@\else\expandafter\mbox\fi}
\let\nfss@text\text
\def\text@#1{{\mathchoice
{\textdef@\displaystyle\f@size{#1}}%
{\textdef@\textstyle\f@size{\firstchoice@false #1}}%
{\textdef@\textstyle\sf@size{\firstchoice@false #1}}%
{\textdef@\textstyle \ssf@size{\firstchoice@false #1}}%
\check@mathfonts
}%
}
\def\textdef@#1#2#3{\hbox{{%
\everymath{#1}%
\let\f@size#2\selectfont
#3}}}
\newif\iffirstchoice@
\firstchoice@true
\def\stepcounter#1{%
\iffirstchoice@
\addtocounter{#1}\@ne
\begingroup \let\@elt\@stpelt \csname cl@#1\endcsname \endgroup
\fi
}
\def\addtocounter#1#2{%
\iffirstchoice@
\@ifundefined {c@#1}{\@nocounterr {#1}}%
{\global \advance \csname c@#1\endcsname #2\relax}%
\fi}
\let\m@gobble\@empty
\@xp\let\csname m@gobble4\endcsname\@gobblefour
\long\@xp\def\csname m@gobble6\endcsname#1#2#3#4#5#6{}
\toks@{%
\csname m@gobble\iffirstchoice@\else 4\fi\endcsname
\protect}
\edef\GenericInfo{\the\toks@
\@xp\@nx\csname GenericInfo \endcsname}
\edef\GenericWarning{\the\toks@
\@xp\@nx\csname GenericWarning \endcsname}
\toks@{%
\csname m@gobble\iffirstchoice@\else 6\fi\endcsname
\protect}
\edef\GenericError{\the\toks@
\@xp\@nx\csname GenericError \endcsname}
\begingroup \catcode`\"=12
\gdef\mathhexbox#1#2#3{\text{$\m@th\mathchar"#1#2#3$}}
\endgroup
\endinput
%%
%% End of file `amstext.sty'.
|