| 1 |
%% |
| 2 |
%% This is file `stackrel.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% stackrel.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: stackrel |
| 12 |
%% Version: 2016/05/16 v1.3 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2006, 2007 Heiko Oberdiek |
| 16 |
%% 2016-2019 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/oberdiek/issues |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% This work consists of the main source file stackrel.dtx |
| 36 |
%% and the derived files |
| 37 |
%% stackrel.sty, stackrel.pdf, stackrel.ins, stackrel.drv. |
| 38 |
%% |
| 39 |
\NeedsTeXFormat{LaTeX2e} |
| 40 |
\ProvidesPackage{stackrel} |
| 41 |
[2016/05/16 v1.3 Adding subscript option to stackrel (HO)]% |
| 42 |
\RequirePackage{etexcmds}[2007/09/09] |
| 43 |
\ifetex@unexpanded |
| 44 |
\RequirePackage{pdftexcmds}[2016/05/16]% |
| 45 |
\begingroup\expandafter\expandafter\expandafter\endgroup |
| 46 |
\expandafter\ifx\csname pdf@strcmp\endcsname\relax |
| 47 |
\newcommand*{\stack@relbin}[3][]{% |
| 48 |
\mathop{#3}\limits |
| 49 |
\edef\reserved@a{\etex@unexpanded{#1}}% |
| 50 |
\ifx\reserved@a\@empty\else_{#1}\fi |
| 51 |
\edef\reserved@a{\etex@unexpanded{#2}}% |
| 52 |
\ifx\reserved@a\@empty\else^{#2}\fi |
| 53 |
\egroup |
| 54 |
}% |
| 55 |
\else |
| 56 |
\newcommand*{\stack@relbin}[3][]{% |
| 57 |
\mathop{#3}\limits |
| 58 |
\ifcase\pdf@strcmp{\detokenize{#1}}{}\else_{#1}\fi |
| 59 |
\ifcase\pdf@strcmp{\detokenize{#2}}{}\else^{#2}\fi |
| 60 |
\egroup |
| 61 |
}% |
| 62 |
\fi |
| 63 |
\else |
| 64 |
\newcommand*{\stack@relbin}[3][]{% |
| 65 |
\mathop{#3}\limits |
| 66 |
\toks@{#1}% |
| 67 |
\edef\reserved@a{\the\toks@}% |
| 68 |
\ifx\reserved@a\@empty\else_{#1}\fi |
| 69 |
\toks@{#2}% |
| 70 |
\edef\reserved@a{\the\toks@}% |
| 71 |
\ifx\reserved@a\@empty\else^{#2}\fi |
| 72 |
\egroup |
| 73 |
}% |
| 74 |
\fi |
| 75 |
\renewcommand*{\stackrel}{% |
| 76 |
\mathrel\bgroup\stack@relbin |
| 77 |
} |
| 78 |
\newcommand*{\stackbin}{% |
| 79 |
\mathbin\bgroup\stack@relbin |
| 80 |
} |
| 81 |
\endinput |
| 82 |
%% |
| 83 |
%% End of file `stackrel.sty'. |