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