diff options
author | Karl Berry <karl@freefriends.org> | 2007-05-09 21:54:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-05-09 21:54:51 +0000 |
commit | 1b38d8b54a69cadeaa6385690a7c81d829136b57 (patch) | |
tree | 04211e793c0561074765e235bccf1e6ccb3ff23b /Master/texmf-dist/tex/latex/oberdiek/stackrel.sty | |
parent | 64ae38fe6e63257c9c5387838608ac4e8f664446 (diff) |
oberdiek update
git-svn-id: svn://tug.org/texlive/trunk@4272 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/stackrel.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/stackrel.sty | 34 |
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 |