summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/stackrel.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/stackrel.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/stackrel.sty34
1 files changed, 17 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/stackrel.sty b/Master/texmf-dist/tex/latex/oberdiek/stackrel.sty
index df90b264be1..a6cf3ac5131 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/stackrel.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/stackrel.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+%% Copyright (C) 2006, 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -28,27 +28,16 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{stackrel}
- [2006/12/02 v1.0 Adding subscript option to stackrel (HO)]%
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname unexpanded\endcsname\relax
- \newcommand*{\stack@relbin}[3][]{%
- \mathop{#3}\limits
- \toks@{#1}%
- \edef\reserved@a{\the\toks@}%
- \ifx\reserved@a\@empty\else_{#1}\fi
- \toks@{#2}%
- \edef\reserved@a{\the\toks@}%
- \ifx\reserved@a\@empty\else^{#2}\fi
- \egroup
- }%
-\else
+ [2007/05/06 v1.1 Adding subscript option to stackrel (HO)]%
+\RequirePackage{etexcmds}
+\ifetex@unexpanded
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdfstrcmp\endcsname\relax
\newcommand*{\stack@relbin}[3][]{%
\mathop{#3}\limits
- \edef\reserved@a{\unexpanded{#1}}%
+ \edef\reserved@a{\etex@unexpanded{#1}}%
\ifx\reserved@a\@empty\else_{#1}\fi
- \edef\reserved@a{\unexpanded{#2}}%
+ \edef\reserved@a{\etex@unexpanded{#2}}%
\ifx\reserved@a\@empty\else^{#2}\fi
\egroup
}%
@@ -60,6 +49,17 @@
\egroup
}%
\fi
+\else
+ \newcommand*{\stack@relbin}[3][]{%
+ \mathop{#3}\limits
+ \toks@{#1}%
+ \edef\reserved@a{\the\toks@}%
+ \ifx\reserved@a\@empty\else_{#1}\fi
+ \toks@{#2}%
+ \edef\reserved@a{\the\toks@}%
+ \ifx\reserved@a\@empty\else^{#2}\fi
+ \egroup
+ }%
\fi
\renewcommand*{\stackrel}{%
\mathrel\bgroup\stack@relbin