| 1 |
%% |
| 2 |
%% This is file `amstext.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% amstext.dtx |
| 8 |
%% |
| 9 |
%% Copyright (C) 1995, 1999 American Mathematical Society. |
| 10 |
%% Copyright (C) 2016-2025 LaTeX Project and American Mathematical Society. |
| 11 |
%% |
| 12 |
%% This work may be distributed and/or modified under the |
| 13 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 14 |
%% of this license or (at your option) any later version. |
| 15 |
%% The latest version of this license is in |
| 16 |
%% https://www.latex-project.org/lppl.txt |
| 17 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 18 |
%% version 2005/12/01 or later. |
| 19 |
%% |
| 20 |
%% This work has the LPPL maintenance status `maintained'. |
| 21 |
%% |
| 22 |
%% The Current Maintainer of this work is the LaTeX Project. |
| 23 |
%% |
| 24 |
\NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX) |
| 25 |
[1994/12/01]% LaTeX date must be December 1994 or later |
| 26 |
\ProvidesPackage{amstext}[2024/11/17 v2.01 AMS text] |
| 27 |
\RequirePackage{amsgen} |
| 28 |
\DeclareRobustCommand{\text}{% |
| 29 |
\ifmmode\expandafter\text@\else\expandafter\mbox\fi} |
| 30 |
\let\nfss@text\text |
| 31 |
\def\text@#1{{\mathchoice |
| 32 |
{\textdef@\displaystyle\f@size{#1}}% |
| 33 |
{\textdef@\textstyle\f@size{\firstchoice@false #1}}% |
| 34 |
{\textdef@\textstyle\sf@size{\firstchoice@false #1}}% |
| 35 |
{\textdef@\textstyle \ssf@size{\firstchoice@false #1}}% |
| 36 |
\check@mathfonts |
| 37 |
}% |
| 38 |
} |
| 39 |
\def\textdef@#1#2#3{\hbox{{% |
| 40 |
\everymath{#1}% |
| 41 |
\let\f@size#2\selectfont |
| 42 |
#3}}} |
| 43 |
\newif\iffirstchoice@ |
| 44 |
\firstchoice@true |
| 45 |
\def\stepcounter#1{% |
| 46 |
\iffirstchoice@ |
| 47 |
\addtocounter{#1}\@ne |
| 48 |
\begingroup \let\@elt\@stpelt \csname cl@#1\endcsname \endgroup |
| 49 |
\fi |
| 50 |
} |
| 51 |
\def\addtocounter#1#2{% |
| 52 |
\iffirstchoice@ |
| 53 |
\@ifundefined {c@#1}{\@nocounterr {#1}}% |
| 54 |
{\global \advance \csname c@#1\endcsname #2\relax}% |
| 55 |
\fi} |
| 56 |
\let\m@gobble\@empty |
| 57 |
\@xp\let\csname m@gobble4\endcsname\@gobblefour |
| 58 |
\long\@xp\def\csname m@gobble6\endcsname#1#2#3#4#5#6{} |
| 59 |
\toks@{% |
| 60 |
\csname m@gobble\iffirstchoice@\else 4\fi\endcsname |
| 61 |
\protect} |
| 62 |
\edef\GenericInfo{\the\toks@ |
| 63 |
\@xp\@nx\csname GenericInfo \endcsname} |
| 64 |
\edef\GenericWarning{\the\toks@ |
| 65 |
\@xp\@nx\csname GenericWarning \endcsname} |
| 66 |
\toks@{% |
| 67 |
\csname m@gobble\iffirstchoice@\else 6\fi\endcsname |
| 68 |
\protect} |
| 69 |
\edef\GenericError{\the\toks@ |
| 70 |
\@xp\@nx\csname GenericError \endcsname} |
| 71 |
\begingroup \catcode`\"=12 |
| 72 |
\gdef\mathhexbox#1#2#3{\text{$\m@th\mathchar"#1#2#3$}} |
| 73 |
\endgroup |
| 74 |
\endinput |
| 75 |
%% |
| 76 |
%% End of file `amstext.sty'. |