diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/stackrel.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/stackrel.dtx | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/stackrel.dtx b/Master/texmf-dist/source/latex/oberdiek/stackrel.dtx index 3cce4a5dcfe..e623f5962e9 100644 --- a/Master/texmf-dist/source/latex/oberdiek/stackrel.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/stackrel.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% 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 @@ -66,7 +66,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: stackrel 2006/12/02 v1.0 Adding subscript option to stackrel (HO)} +\Msg{* Package: stackrel 2007/05/06 v1.1 Adding subscript option to stackrel (HO)} \Msg{************************************************************************} \keepsilent @@ -76,7 +76,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 @@ -126,7 +126,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{stackrel.drv}% - [2006/12/02 v1.0 Adding subscript option to stackrel (HO)]% + [2007/05/06 v1.1 Adding subscript option to stackrel (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc} \usepackage{amsmath} @@ -137,7 +137,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{97} +% \CheckSum{89} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -158,7 +158,7 @@ and the derived files % \GetFileInfo{stackrel.drv} % % \title{The \xpackage{stackrel} package} -% \date{2006/12/02 v1.0} +% \date{2007/05/06 v1.1} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -205,7 +205,7 @@ and the derived files %<*package> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{stackrel} - [2006/12/02 v1.0 Adding subscript option to stackrel (HO)]% + [2007/05/06 v1.1 Adding subscript option to stackrel (HO)]% % \end{macrocode} % % Given the original definition of \cs{stackrel} the addition @@ -220,26 +220,15 @@ and the derived files % define macros with arguments). % \begin{macro}{\stack@relbin} % \begin{macrocode} -\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 +\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 }% @@ -251,6 +240,17 @@ and the derived files \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 % \end{macrocode} % \end{macro} @@ -404,6 +404,10 @@ and the derived files % \item % First version. % \end{Version} +% \begin{Version}{2007/05/06 v1.1} +% \item +% Uses package \xpackage{etexcmds}. +% \end{Version} % \end{History} % % \PrintIndex |