summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/picture.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/picture.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/picture.sty51
1 files changed, 33 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/picture.sty b/Master/texmf-dist/tex/latex/oberdiek/picture.sty
index 849b94fc9db..9c043e3f2f2 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/picture.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/picture.sty
@@ -8,8 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2006, 2007, 2008 by
-%% Heiko Oberdiek <oberdiek@uni-freiburg.de>
+%% Copyright (C) 2006-2009 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
@@ -30,7 +29,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{picture}%
- [2008/11/26 v1.2 Dimens for picture macros (HO)]%
+ [2009/10/11 v1.3 Dimens for picture macros (HO)]%
\def\Pc@calcname{calc}
\def\Pc@etexname{etex}
\def\Pc@plainname{plain}
@@ -75,26 +74,42 @@
\setlength\dimen@{#1\unitlength}\Pc@next\Pc@nil{#1}%
}%
\let\PcOrg@calc@error\calc@error
- \def\Pc@calc@error#1{%
- \expandafter\ifx\expandafter\unitlength\noexpand#1\relax
- \def\calc@next##1!{%
- \endgroup
- \aftergroup\afterassignment
- \aftergroup\Pc@next
+ \@ifpackagelater{calc}{2007/08/22}{% v4.3
+ \def\Pc@calc@error#1{%
+ \expandafter\ifx\expandafter\unitlength\noexpand#1\relax
+ \def\calc@next##1!{%
+ \endgroup
+ \aftergroup\afterassignment
+ \aftergroup\Pc@next
+ }%
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
+ {%
+ \calc@next{#1}%
+ }{%
+ \PcOrg@calc@error{#1}%
}%
- \else
- \@ReturnAfterFi{%
+ }%
+ }{%
+ \def\Pc@calc@error#1{%
+ \expandafter\ifx\expandafter\unitlength\noexpand#1\relax
+ \def\calc@next##1!{%
+ \endgroup
+ \aftergroup\afterassignment
+ \aftergroup\Pc@next
+ }%
+ \expandafter\@gobble
+ \else
+ \expandafter\@firstofone
+ \fi
+ {%
\PcOrg@calc@error{#1}%
}%
- \fi
+ }%
}%
- \expandafter\@firstofone
-\else
- \expandafter\@gobble
\fi
-{%
- \long\def\@ReturnAfterFi#1\fi{\fi#1}%
-}
\ifx\Pc@method\Pc@etexname
\def\Pc@tokslength#1{%
\begingroup