%% %% This is file `amstext.sty', generated %% on <1994/12/16> with the docstrip utility (2.2h). %% %% The original source files were: %% %% amstext.dtx %%% ==================================================================== %%% @LaTeX-file{ %%% filename = "amstext.dtx", %%% version = "1.2beta", %%% date = "1994/12/13", %%% time = "11:39:46 EST", %%% author = "American Mathematical Society", %%% copyright = "Copyright (C) 1994 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", %%% checksum = "38673 282 1382 11263", %%% email = "tech-support@math.ams.org (Internet)", %%% codetable = "ISO/ASCII", %%% keywords = "latex, amslatex, ams-latex", %%% supported = "yes", %%% abstract = "This is part of the AMS-\LaTeX{} distribution. %%% It 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} \ProvidesPackage{amstext}[1994/10/27 v1.2beta] \RequirePackage{amsgen}[1994/09/01] \DeclareRobustCommand{\text}{% \ifmmode\expandafter\text@\else\expandafter\mbox\fi} \let\nfss@text\text \def\text@#1{\mathchoice {\textdef@\displaystyle\f@size{#1}}% {\textdef@\textstyle\tf@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@ \global\expandafter\advance\csname c@#1\endcsname \@ne \begingroup \let\@elt\@stpelt \csname cl@#1\endcsname \endgroup \fi} \toks@{\iffirstchoice@\else\@xp\@gobblefour\fi\protect} \edef\GenericInfo{\the\toks@ \@xp\@nx\csname GenericInfo \endcsname} \edef\GenericWarning{\the\toks@ \@xp\@nx\csname GenericWarning \endcsname} \toks@{\iffirstchoice@\else \@xp\@xp\@xp\@gobblefour \@xp\@gobbletwo\fi\protect} \edef\GenericError{\the\toks@ \@xp\@nx\csname GenericError \endcsname} \def\label#1{\@bsphack\iffirstchoice@\if@filesw {\let\thepage\relax \def\protect{\noexpand\noexpand\noexpand}% \xdef\@gtempa{\write\@auxout{\string \newlabel{#1}{{\@currentlabel}{\thepage}}}}}\@gtempa \if@nobreak \ifvmode\nobreak\fi\fi\fi\fi\@esphack} \begingroup \catcode`\"=12 \gdef\mathhexbox#1#2#3{\text{$\m@th\mathchar"#1#2#3$}} \endgroup \endinput %% %% End of file `amstext.sty'.