| 1 |
%% |
| 2 |
%% This is file `amsopn.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% amsopn.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 December 1994 or later |
| 26 |
\ProvidesPackage{amsopn}[2022/04/08 v2.04 operator names] |
| 27 |
\def\nolimits@{\@ifnextchar\limits{\nolimits\@gobble}{\nolimits}} |
| 28 |
\begingroup \catcode`\"=12 |
| 29 |
\ifx\Umathcode\@undefined |
| 30 |
\gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A% |
| 31 |
\ifnum\mathcode`\-=45 \else |
| 32 |
\mathchardef\std@minus\mathcode`\-\relax |
| 33 |
\fi |
| 34 |
\mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax} |
| 35 |
\else |
| 36 |
\gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A% |
| 37 |
\ifnum\Umathcodenum`\-=45 \else |
| 38 |
\Umathcharnumdef\std@minus\Umathcodenum`\-\relax |
| 39 |
\fi |
| 40 |
\mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax} |
| 41 |
\fi |
| 42 |
\endgroup |
| 43 |
\DeclareRobustCommand{\operatorname}{% |
| 44 |
\@ifstar{\qopname\newmcodes@ m}% |
| 45 |
{\qopname\newmcodes@ o}}% |
| 46 |
\DeclareRobustCommand{\qopname}[3]{% |
| 47 |
\mathop{#1\kern\z@\operator@font#3}% |
| 48 |
\csname n#2limits@\endcsname} |
| 49 |
\newcommand{\DeclareMathOperator}{% |
| 50 |
\@ifstar{\@declmathop m}{\@declmathop o}} |
| 51 |
\long\def\@declmathop#1#2#3{% |
| 52 |
\@ifdefinable{#2}{% |
| 53 |
\DeclareRobustCommand{#2}{\qopname\newmcodes@#1{#3}}}} |
| 54 |
\@onlypreamble\DeclareMathOperator |
| 55 |
\@onlypreamble\@declmathop |
| 56 |
\protected\def\arccos{\qopname\relax o{arccos}} |
| 57 |
\protected\def\arcsin{\qopname\relax o{arcsin}} |
| 58 |
\protected\def\arctan{\qopname\relax o{arctan}} |
| 59 |
\protected\def\arg{\qopname\relax o{arg}} |
| 60 |
\protected\def\cos{\qopname\relax o{cos}} |
| 61 |
\protected\def\cosh{\qopname\relax o{cosh}} |
| 62 |
\protected\def\cot{\qopname\relax o{cot}} |
| 63 |
\protected\def\coth{\qopname\relax o{coth}} |
| 64 |
\protected\def\csc{\qopname\relax o{csc}} |
| 65 |
\protected\def\deg{\qopname\relax o{deg}} |
| 66 |
\protected\def\det{\qopname\relax m{det}} |
| 67 |
\protected\def\dim{\qopname\relax o{dim}} |
| 68 |
\protected\def\exp{\qopname\relax o{exp}} |
| 69 |
\protected\def\gcd{\qopname\relax m{gcd}} |
| 70 |
\protected\def\hom{\qopname\relax o{hom}} |
| 71 |
\protected\def\inf{\qopname\relax m{inf}} |
| 72 |
\protected\def\injlim{\qopname\relax m{inj\,lim}} |
| 73 |
\protected\def\ker{\qopname\relax o{ker}} |
| 74 |
\protected\def\lg{\qopname\relax o{lg}} |
| 75 |
\protected\def\lim{\qopname\relax m{lim}} |
| 76 |
\protected\def\liminf{\qopname\relax m{lim\,inf}} |
| 77 |
\protected\def\limsup{\qopname\relax m{lim\,sup}} |
| 78 |
\protected\def\ln{\qopname\relax o{ln}} |
| 79 |
\protected\def\log{\qopname\relax o{log}} |
| 80 |
\protected\def\max{\qopname\relax m{max}} |
| 81 |
\protected\def\min{\qopname\relax m{min}} |
| 82 |
\protected\def\Pr{\qopname\relax m{Pr}} |
| 83 |
\protected\def\projlim{\qopname\relax m{proj\,lim}} |
| 84 |
\protected\def\sec{\qopname\relax o{sec}} |
| 85 |
\protected\def\sin{\qopname\relax o{sin}} |
| 86 |
\protected\def\sinh{\qopname\relax o{sinh}} |
| 87 |
\protected\def\sup{\qopname\relax m{sup}} |
| 88 |
\protected\def\tan{\qopname\relax o{tan}} |
| 89 |
\protected\def\tanh{\qopname\relax o{tanh}} |
| 90 |
\def\operatorfont{\operator@font} |
| 91 |
\def\operatornamewithlimits{\operatorname*} |
| 92 |
\protected\def\varlim@#1#2{% |
| 93 |
\vtop{\m@th\ialign{##\cr |
| 94 |
\hfil$#1\operator@font lim$\hfil\cr |
| 95 |
\noalign{\nointerlineskip\kern1.5\ex@}#2\cr |
| 96 |
\noalign{\nointerlineskip\kern-\ex@}\cr}}% |
| 97 |
} |
| 98 |
\protected\def\varinjlim{% |
| 99 |
\mathop{\mathpalette\varlim@{\rightarrowfill@\textstyle}}\nmlimits@ |
| 100 |
} |
| 101 |
\protected\def\varprojlim{% |
| 102 |
\mathop{\mathpalette\varlim@{\leftarrowfill@\textstyle}}\nmlimits@ |
| 103 |
} |
| 104 |
\protected\def\varliminf{\mathop{\mathpalette\varliminf@{}}\nmlimits@} |
| 105 |
\def\varliminf@#1{\@@underline{\vrule\@depth.2\ex@\@width\z@ |
| 106 |
\hbox{$#1\m@th\operator@font lim$}}} |
| 107 |
\protected\def\varlimsup{\mathop{\mathpalette\varlimsup@{}}\nmlimits@} |
| 108 |
\def\varlimsup@#1{\@@overline{\hbox{$#1\m@th\operator@font lim$}}} |
| 109 |
\let\nmlimits@\displaylimits |
| 110 |
\DeclareOption{namelimits}{\let\nmlimits@\displaylimits} |
| 111 |
\DeclareOption{nonamelimits}{\let\nmlimits@\nolimits} |
| 112 |
\ProcessOptions\relax |
| 113 |
\RequirePackage{amsgen}\relax |
| 114 |
\endinput |
| 115 |
%% |
| 116 |
%% End of file `amsopn.sty'. |