diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty | 207 |
1 files changed, 120 insertions, 87 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty b/Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty index fbad931ec12..964577f21dd 100644 --- a/Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty +++ b/Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,16 +33,20 @@ %% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv, %% pdfescape-test1.tex, pdfescape-test2.tex, %% pdfescape-test3.tex, pdfescape-test4.tex, -%% pdfescape-test5.tex. +%% pdfescape-test5.tex, pdfescape-test6.tex. %% -\begingroup - \catcode44 12 % , - \catcode45 12 % - - \catcode46 12 % . - \catcode58 12 % : - \catcode64 11 % @ - \catcode123 1 % { - \catcode125 2 % } +\begingroup\catcode61\catcode48\catcode32=10\relax% + \catcode13=5 % ^^M + \endlinechar=13 % + \catcode35=6 % # + \catcode39=12 % ' + \catcode44=12 % , + \catcode45=12 % - + \catcode46=12 % . + \catcode58=12 % : + \catcode64=11 % @ + \catcode123=1 % { + \catcode125=2 % } \expandafter\let\expandafter\x\csname ver@pdfescape.sty\endcsname \ifx\x\relax % plain-TeX, first loading \else @@ -50,7 +54,6 @@ \ifx\x\empty % LaTeX, first loading, % variable is initialized, but \ProvidesPackage not yet seen \else - \catcode35 6 % # \expandafter\ifx\csname PackageInfo\endcsname\relax \def\x#1#2{% \immediate\write-1{Package #1 Info: #2.}% @@ -62,21 +65,24 @@ \aftergroup\endinput \fi \fi -\endgroup -\begingroup - \catcode35 6 % # - \catcode40 12 % ( - \catcode41 12 % ) - \catcode44 12 % , - \catcode45 12 % - - \catcode46 12 % . - \catcode47 12 % / - \catcode58 12 % : - \catcode64 11 % @ - \catcode91 12 % [ - \catcode93 12 % ] - \catcode123 1 % { - \catcode125 2 % } +\endgroup% +\begingroup\catcode61\catcode48\catcode32=10\relax% + \catcode13=5 % ^^M + \endlinechar=13 % + \catcode35=6 % # + \catcode39=12 % ' + \catcode40=12 % ( + \catcode41=12 % ) + \catcode44=12 % , + \catcode45=12 % - + \catcode46=12 % . + \catcode47=12 % / + \catcode58=12 % : + \catcode64=11 % @ + \catcode91=12 % [ + \catcode93=12 % ] + \catcode123=1 % { + \catcode125=2 % } \expandafter\ifx\csname ProvidesPackage\endcsname\relax \def\x#1#2#3[#4]{\endgroup \immediate\write-1{Package: #3 #4}% @@ -95,29 +101,38 @@ \fi \expandafter\x\csname ver@pdfescape.sty\endcsname \ProvidesPackage{pdfescape}% - [2010/03/01 v1.9 Provides hex, PDF name and string conversions (HO)] -\begingroup + [2011/04/04 v1.12 Provides string conversions (HO)]% +\begingroup\catcode61\catcode48\catcode32=10\relax% + \catcode13=5 % ^^M + \endlinechar=13 % \catcode123 1 % { \catcode125 2 % } + \catcode64 11 % \def\x{\endgroup \expandafter\edef\csname PE@AtEnd\endcsname{% - \catcode35 \the\catcode35\relax - \catcode64 \the\catcode64\relax - \catcode123 \the\catcode123\relax - \catcode125 \the\catcode125\relax + \endlinechar=\the\endlinechar\relax + \catcode13=\the\catcode13\relax + \catcode32=\the\catcode32\relax + \catcode35=\the\catcode35\relax + \catcode61=\the\catcode61\relax + \catcode64=\the\catcode64\relax + \catcode123=\the\catcode123\relax + \catcode125=\the\catcode125\relax }% }% -\x -\catcode35 6 % # -\catcode64 11 % @ -\catcode123 1 % { -\catcode125 2 % } +\x\catcode61\catcode48\catcode32=10\relax% +\catcode13=5 % ^^M +\endlinechar=13 % +\catcode35=6 % # +\catcode64=11 % @ +\catcode123=1 % { +\catcode125=2 % } \def\TMP@EnsureCode#1#2#3{% \edef\PE@AtEnd{% \PE@AtEnd - #1#2 \the#1#2\relax + #1#2=\the#1#2\relax }% - #1#2 #3\relax + #1#2=#3\relax } \TMP@EnsureCode\catcode{0}{12}% ^^@ \TMP@EnsureCode\catcode{34}{12}% " @@ -127,13 +142,27 @@ \TMP@EnsureCode\catcode{46}{12}% . \TMP@EnsureCode\catcode{47}{12}% / \TMP@EnsureCode\catcode{60}{12}% < -\TMP@EnsureCode\catcode{61}{12}% = \TMP@EnsureCode\catcode{62}{12}% > +\TMP@EnsureCode\catcode{91}{12}% [ +\TMP@EnsureCode\catcode{93}{12}% ] \TMP@EnsureCode\catcode{94}{7}% ^ \TMP@EnsureCode\catcode{96}{12}% ` \TMP@EnsureCode\uccode{34}{0}% " \TMP@EnsureCode\uccode{48}{0}% 0 \TMP@EnsureCode\uccode{61}{0}% = +\edef\PE@AtEnd{\PE@AtEnd\noexpand\endinput} +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \def\TMP@RequirePackage#1[#2]{% + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname ver@#1.sty\endcsname\relax + \input #1.sty\relax + \fi + }% + \TMP@RequirePackage{ltxcmds}[2010/04/08]% +\else + \RequirePackage{ltxcmds}[2010/04/08]% +\fi \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname detokenize\endcsname\relax \long\def\EdefSanitize#1#2{% @@ -180,12 +209,11 @@ \ifx\\#2\\% \else \PE@space@other - \@ReturnAfterFi{% + \ltx@ReturnAfterFi{% \PE@SpaceToOther#2\relax }% \fi } -\long\def\@ReturnAfterFi#1\fi{\fi#1} \def\EdefUnescapeName#1#2{% \EdefSanitize#1{#2}% \PE@SanitizeSpaceOther#1% @@ -219,18 +247,18 @@ }% \ifcase\ifcase\expandafter\PE@TestUcHexDigit\PE@testA \ifcase\expandafter\PE@TestUcHexDigit\PE@testB - \z@ + \ltx@zero \else - \@ne + \ltx@one \fi \else - \@ne + \ltx@one \fi - \uccode\z@="\PE@testA\PE@testB\relax + \uccode\ltx@zero="\PE@testA\PE@testB\relax \uppercase{% \def\PE@temp{^^@}% }% - \uccode\z@=\z@ + \uccode\ltx@zero=\ltx@zero \edef\PE@result{\PE@result$1\PE@temp}% \let\PE@next\PE@DeName \else @@ -250,38 +278,38 @@ \uccode`d=`D\relax \uccode`e=`E\relax \uccode`f=`F\relax - \uccode`A=\z@ - \uccode`B=\z@ - \uccode`C=\z@ - \uccode`D=\z@ - \uccode`E=\z@ - \uccode`F=\z@ - \uccode`0=\z@ - \uccode`1=\z@ - \uccode`2=\z@ - \uccode`3=\z@ - \uccode`4=\z@ - \uccode`5=\z@ - \uccode`6=\z@ - \uccode`7=\z@ - \uccode`8=\z@ - \uccode`9=\z@ + \uccode`A=\ltx@zero + \uccode`B=\ltx@zero + \uccode`C=\ltx@zero + \uccode`D=\ltx@zero + \uccode`E=\ltx@zero + \uccode`F=\ltx@zero + \uccode`0=\ltx@zero + \uccode`1=\ltx@zero + \uccode`2=\ltx@zero + \uccode`3=\ltx@zero + \uccode`4=\ltx@zero + \uccode`5=\ltx@zero + \uccode`6=\ltx@zero + \uccode`7=\ltx@zero + \uccode`8=\ltx@zero + \uccode`9=\ltx@zero } \def\PE@TestUcHexDigit#1{% \ifnum`#1<48 % 0 - \@ne + \ltx@one \else \ifnum`#1>70 % F - \@ne + \ltx@one \else \ifnum`#1>57 % 9 \ifnum`#1<65 % A - \@ne + \ltx@one \else - \z@ + \ltx@zero \fi \else - \z@ + \ltx@zero \fi \fi \fi @@ -336,19 +364,19 @@ |let|PE@next|relax |else |if n#2% - |uccode|z@=10 % + |uccode|ltx@zero=10 % |else|if r#2% - |uccode|z@=13 % + |uccode|ltx@zero=13 % |else|if t#2% - |uccode|z@=9 % + |uccode|ltx@zero=9 % |else|if b#2% - |uccode|z@=8 % + |uccode|ltx@zero=8 % |else|if f#2% - |uccode|z@=12 % + |uccode|ltx@zero=12 % |else - |uccode|z@=|z@ + |uccode|ltx@zero=|ltx@zero |fi|fi|fi|fi|fi - |ifnum|uccode|z@>|z@ + |ifnum|uccode|ltx@zero>|ltx@zero |uppercase{% |edef|PE@temp{^^@}% }% @@ -386,12 +414,12 @@ |endgroup \def\PE@TestOctDigit#1{% \ifnum`#1<48 % 0 - \@ne + \ltx@one \else \ifnum`#1>55 % 7 - \@ne + \ltx@one \else - \z@ + \ltx@zero \fi \fi } @@ -412,7 +440,7 @@ \PE@next } \def\PE@OctAll#1{% - \uccode\z@='#1\relax + \uccode\ltx@zero='#1\relax \uppercase{% \edef\PE@result{\PE@result^^@}% }% @@ -420,7 +448,13 @@ } \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname RequirePackage\endcsname\relax - \input pdftexcmds.sty\relax + \def\TMP@RequirePackage#1[#2]{% + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname ver@#1.sty\endcsname\relax + \input #1.sty\relax + \fi + }% + \TMP@RequirePackage{pdftexcmds}[2007/11/11]% \else \RequirePackage{pdftexcmds}[2007/11/11]% \fi @@ -465,9 +499,8 @@ \long\def\EdefEscapeString#1#2{% \PE@edefbabel#1\pdf@escapestring{#2}% }% - \PE@AtEnd - \expandafter\endinput -\fi + \expandafter\PE@AtEnd +\fi% \edef\PE@hash{\string#} \begingroup \escapechar=-1 % @@ -475,7 +508,7 @@ \def\noexpand\PE@backslash{\string\\}% } \x -\newif\ifPE@etex +\ltx@newif\ifPE@etex \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname numexpr\endcsname\relax \else @@ -588,8 +621,8 @@ }% \ifcase\expandafter\PE@TestUcHexDigit\PE@testA \ifcase\expandafter\PE@TestUcHexDigit\PE@testB - \uccode\z@="\PE@testA\PE@testB\relax - \ifnum\uccode\z@=32 % + \uccode\ltx@zero="\PE@testA\PE@testB\relax + \ifnum\uccode\ltx@zero=32 % \let\PE@temp\PE@space@space \else \uppercase{% @@ -710,7 +743,7 @@ }% }% \fi -\PE@AtEnd +\PE@AtEnd% \endinput %% %% End of file `pdfescape.sty'. |