summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/oberdiek
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-10 22:17:04 +0000
committerKarl Berry <karl@freefriends.org>2019-12-10 22:17:04 +0000
commite3d3d0b218d7c26a0ab0547288ce9b8f0ec4a7ff (patch)
treed654414440d9781634ce8cde7c22d10620cb4374 /Master/texmf-dist/tex/generic/oberdiek
parent0b29f1d9bb37fb5c793896273962d8e746a56a3c (diff)
oberdiek (10dec19)
git-svn-id: svn://tug.org/texlive/trunk@53088 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek')
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/alphalph.sty474
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/bitset.sty1452
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/catchfile.sty314
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty782
4 files changed, 0 insertions, 3022 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/alphalph.sty b/Master/texmf-dist/tex/generic/oberdiek/alphalph.sty
deleted file mode 100644
index fe31c84ce74..00000000000
--- a/Master/texmf-dist/tex/generic/oberdiek/alphalph.sty
+++ /dev/null
@@ -1,474 +0,0 @@
-%%
-%% This is file `alphalph.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% alphalph.dtx (with options: `package')
-%%
-%% This is a generated file.
-%%
-%% Project: alphalph
-%% Version: 2016/05/16 v2.5
-%%
-%% Copyright (C)
-%% 1999, 2006-2008, 2010, 2011 Heiko Oberdiek
-%% 2016-2019 Oberdiek Package Support Group
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% https://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% https://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% The Current Maintainers of this work are
-%% Heiko Oberdiek and the Oberdiek Package Support Group
-%% https://github.com/ho-tex/oberdiek/issues
-%%
-%%
-%% The Base Interpreter refers to any `TeX-Format',
-%% because some files are installed in TDS:tex/generic//.
-%%
-%% This work consists of the main source file alphalph.dtx
-%% and the derived files
-%% alphalph.sty, alphalph.pdf, alphalph.ins, alphalph.drv,
-%% alphalph-test1.tex, alphalph-test2.tex, alphalph-test3.tex.
-%%
-\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@alphalph.sty\endcsname
- \ifx\x\relax % plain-TeX, first loading
- \else
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{alphalph}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\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}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver@alphalph.sty\endcsname
-\ProvidesPackage{alphalph}%
- [2016/05/16 v2.5 Convert numbers to letters (HO)]%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode123=1 % {
- \catcode125=2 % }
- \catcode64=11 % @
- \def\x{\endgroup
- \expandafter\edef\csname AlPh@AtEnd\endcsname{%
- \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\catcode61\catcode48\catcode32=10\relax%
-\catcode13=5 % ^^M
-\endlinechar=13 %
-\catcode35=6 % #
-\catcode64=11 % @
-\catcode123=1 % {
-\catcode125=2 % }
-\def\TMP@EnsureCode#1#2{%
- \edef\AlPh@AtEnd{%
- \AlPh@AtEnd
- \catcode#1=\the\catcode#1\relax
- }%
- \catcode#1=#2\relax
-}
-\TMP@EnsureCode{33}{12}% !
-\TMP@EnsureCode{39}{12}% '
-\TMP@EnsureCode{40}{12}% (
-\TMP@EnsureCode{41}{12}% )
-\TMP@EnsureCode{43}{12}% +
-\TMP@EnsureCode{44}{12}% ,
-\TMP@EnsureCode{46}{12}% .
-\TMP@EnsureCode{47}{12}% /
-\TMP@EnsureCode{59}{12}% ;
-\TMP@EnsureCode{60}{12}% <
-\TMP@EnsureCode{62}{12}% >
-\TMP@EnsureCode{91}{12}% [
-\TMP@EnsureCode{93}{12}% ]
-\TMP@EnsureCode{96}{12}% `
-\TMP@EnsureCode{124}{12}% |
-\edef\AlPh@AtEnd{\AlPh@AtEnd\noexpand\endinput}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname RequirePackage\endcsname\relax
- \input infwarerr.sty\relax
- \input intcalc.sty\relax
-\else
- \RequirePackage{infwarerr}[2007/09/09]%
- \RequirePackage{intcalc}[2007/09/09]%
-\fi
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname numexpr\endcsname\relax
- \catcode124=9 % '!': ignore
- \catcode43=14 % '+': comment
-\else
- \catcode124=14 % '!': comment
- \catcode43=9 % '+': ignore
-\fi
-\def\AlPh@Error#1{%
- \begingroup
- \escapechar=92 % backslash
- \@PackageError{alphalph}{#1}\@ehc
- \endgroup
-}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname @ifdefinable\endcsname\relax
- \def\AlPh@IfDefinable#1#2{%
- \ifcase\ifx#1\@undefined\else\ifx#1\relax\else1\fi\fi0 %
- #2%
- \else
- \AlPh@Error{%
- Command \string#1 already defined%
- }%
- \fi
- }%
-\else
- \let\AlPh@IfDefinable\@ifdefinable
-\fi
-\long\def\@ReturnAfterElseFi#1\else#2\fi{\fi#1}
-\long\def\@ReturnAfterFi#1\fi{\fi#1}
-\expandafter\ifx\csname @gobblefour\endcsname\relax
- \long\def\@gobblefour#1#2#3#4{}%
-\fi
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname kernel@ifnextchar\endcsname\relax
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname @ifnextchar\endcsname\relax
- \def\AlPh@IfOptArg#1#2{%
- \def\AlPh@TempA{#1}%
- \def\AlPh@TempB{#2}%
- \futurelet\AlPh@Token\AlPh@IfOptArgNext
- }%
- \let\AlPh@BracketLeft=[%]
- \def\AlPh@IfOptArgNext{%
- \ifx\AlPh@Token\AlPh@BracketLeft
- \expandafter\AlPh@TempA
- \else
- \expandafter\AlPh@TempB
- \fi
- }%
- \else
- \def\AlPh@IfOptArg{\@ifnextchar[}%]
- \fi
-\else
- \def\AlPh@IfOptArg{\kernel@ifnextchar[}%]
-\fi
-\def\alphalph@Alph#1{%
- \ifcase#1%
- @%
- \or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or K\or L\or M%
- \or N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or X\or Y\or Z%
- \else
- \AlPh@ctrerr
- @%
- \fi
-}
-\def\alphalph@alph#1{%
- \ifcase#1%
- @%
- \or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or k\or l\or m%
- \or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or y\or z%
- \else
- \AlPh@ctrerr
- @%
- \fi
-}
-\def\AlPh@ctrerr{}
-\def\AlPh@GetNumberOfSymbols#1{%
- \AlPh@TestNumber1!{#1}%
- \ifAlPh@Unavailable
- \def\AlPh@Number{0}%
- \AlPh@Error{No symbols found}%
- \else
- \def\AlPh@Number{1}%
- \AlPh@ExpSearch2!{#1}%
- \fi
-}
-\let\ifAlPh@Unavailable\iffalse
-\def\AlPh@Unavailabletrue{%
- \global\let\ifAlPh@Unavailable\iftrue
-}
-\def\AlPh@Unavailablefalse{%
- \global\let\ifAlPh@Unavailable\iffalse
-}
-\def\AlPh@TestNumber#1!#2{%
- \AlPh@Unavailablefalse
- \begingroup
- \setbox0=\hbox{%
- \begingroup % color
- \let\@ctrerr\AlPh@Unavailabletrue
- \let\AlPh@ctrerr\AlPh@Unavailabletrue
- #2{#1}%
- \endgroup
- }%
- \ifdim\wd0=0pt %
- \AlPh@Unavailabletrue
- \fi
- \endgroup
-}
-\def\AlPh@ExpSearch#1!#2{%
- \let\AlPh@Next\relax
- \AlPh@TestNumber#1!{#2}%
- \ifAlPh@Unavailable
- \expandafter\AlPh@BinSearch\AlPh@Number!#1!{#2}%
- \else
- \def\AlPh@Number{#1}%
- \ifnum#1>1073741823 %
- \AlPh@TestNumber2147483647!{#2}%
- \ifAlPh@Unavailable
- \AlPh@BinSearch#1!2147483647!{#2}%
- \else
- \def\AlPh@Number{0}%
- \AlPh@Error{%
- Maximal symbol number not found%
- }%
- \fi
- \else
- \def\AlPh@Next{%
- \expandafter\AlPh@ExpSearch\number\intcalcShl{#1}!{#2}%
- }%
- \fi
- \fi
- \AlPh@Next
-}
-\def\AlPh@BinSearch#1!#2!#3{%
- \expandafter\AlPh@ProcessBinSearch
- \number\intcalcShr{\intcalcAdd{#1}{#2}}!%
- #1!#2!{#3}%
-}
-\def\AlPh@ProcessBinSearch#1!#2!#3!#4{%
- \let\AlPh@Next\relax
- \ifnum#1>#2 %
- \ifnum#1<#3 %
- \AlPh@TestNumber#1!{#4}%
- \ifAlPh@Unavailable
- \def\AlPh@Next{%
- \AlPh@BinSearch#2!#1!{#4}%
- }%
- \else
- \def\AlPh@Next{%
- \AlPh@BinSearch#1!#3!{#4}%
- }%
- \fi
- \else
- \def\AlPh@Number{#2}%
- \fi
- \else
- \def\AlPh@Number{#2}%
- \fi
- \AlPh@Next
-}
-\def\AlPh@CheckPositive#1!#2{%
- \ifnum#1<1 %
- \expandafter\@gobblefour
- \fi
- #2{#1}%
-}
-\def\AlPh@Method@alph#1#2#3{%
- \expandafter\AlPh@CheckPositive
-| \number#3!%
-+ \the\numexpr#3!%
- \AlPh@ProcessAlph
- {#1}{#2}%
-}
-\def\AlPh@ProcessAlph#1#2#3{%
- \ifnum#1>#2 %
- \@ReturnAfterElseFi{%
- \expandafter\AlPh@StepAlph\number
- \intcalcInc{%
- \intcalcMod{\intcalcDec{#1}}{#2}%
- }%
- \expandafter!\number
- \intcalcDiv{\intcalcDec{#1}}{#2}%
- !{#2}{#3}%
- }%
- \else
- \@ReturnAfterFi{%
- #3{#1}%
- }%
- \fi
-}
-\def\AlPh@StepAlph#1!#2!#3#4{%
- \AlPh@ProcessAlph{#2}{#3}{#4}%
- #4{#1}%
-}
-\def\AlPh@Method@wrap#1#2#3{%
- \expandafter\AlPh@CheckPositive
-| \number#3!%
-+ \the\numexpr#3!%
- \AlPh@ProcessWrap
- {#1}{#2}%
-}
-\def\AlPh@ProcessWrap#1#2#3{%
- \ifnum#1>#2 %
- \@ReturnAfterElseFi{%
- \expandafter\AlPh@StepWrap\number
- \intcalcInc{\intcalcMod{\intcalcDec{#1}}{#2}}%
- !{#3}%
- }%
- \else
- \@ReturnAfterFi{%
- #3{#1}%
- }%
- \fi
-}
-\def\AlPh@StepWrap#1!#2{%
- #2{#1}%
-}
-\def\AlPh@Method@mult#1#2#3{%
- \expandafter\AlPh@CheckPositive
-| \number#3!%
-+ \the\numexpr#3!%
- \AlPh@ProcessMult
- {#1}{#2}%
-}
-\def\AlPh@ProcessMult#1#2#3{%
- \ifnum#1>#2 %
- \@ReturnAfterElseFi{%
- \expandafter\AlPh@StepMult\romannumeral
- \intcalcInc{\intcalcDiv{\intcalcDec{#1}}{#2}}%
- 000%
- \expandafter!\number
- \intcalcInc{\intcalcMod{\intcalcDec{#1}}{#2}}%
- !{#3}%
- }%
- \else
- \@ReturnAfterFi{%
- #3{#1}%
- }%
- \fi
-}
-\def\AlPh@StepMult#1#2!#3!#4{%
- \ifx\\#2\\%
- \else
- \@ReturnAfterFi{%
- \AlPh@StepMult#2!#3!{#4}%
- }%
- \fi
- #4{#3}%
-}
-\AlPh@IfDefinable\newalphalph{%
- \def\newalphalph#1{%
- \AlPh@IfOptArg{%
- \AlPh@newalphalph{#1}%
- }{%
- \AlPh@newalphalph{#1}[alph]%
- }%
- }%
-}
-\def\AlPh@newalphalph#1[#2]#3#4{%
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname AlPh@Method@#2\endcsname\relax
- \AlPh@Error{%
- Unknown method %
-| `#2'%
-+ `\detokenize{#2}'%
- }%
- \else
- \ifx\\#4\\%
- \AlPh@GetNumberOfSymbols{#3}%
- \ifcase\AlPh@Number
- \else
- \begingroup
- \escapechar=92 % backslash
- \@PackageInfo{alphalph}{%
- Number of symbols for \string#1 is \AlPh@Number
- }%
- \endgroup
- \expandafter\AlPh@NewAlphAlph
- \csname AlPh@Method@#2\expandafter\endcsname
- \AlPh@Number!{#1}{#3}%
- \fi
- \else
- \expandafter\AlPh@NewAlphAlph
- \csname AlPh@Method@#2\expandafter\endcsname
-| \number#4!%
-+ \the\numexpr#4!%
- {#1}{#3}%
- \fi
- \fi
-}%
-\def\AlPh@NewAlphAlph#1#2!#3#4{%
- \AlPh@IfDefinable#3{%
- \ifnum#2>0 %
- \def#3{#1{#2}{#4}}%
- \else
- \AlPh@Error{%
- Definition of \string#3 failed,\MessageBreak
- because number of symbols (#2) is not positive%
- }%
- \fi
- }%
-}
-\newalphalph\AlphAlph\alphalph@Alph{26}
-\newalphalph\alphalph\alphalph@alph{26}
-\AlPh@AtEnd%
-\endinput
-%%
-%% End of file `alphalph.sty'.
diff --git a/Master/texmf-dist/tex/generic/oberdiek/bitset.sty b/Master/texmf-dist/tex/generic/oberdiek/bitset.sty
deleted file mode 100644
index d815b1fbc68..00000000000
--- a/Master/texmf-dist/tex/generic/oberdiek/bitset.sty
+++ /dev/null
@@ -1,1452 +0,0 @@
-%%
-%% This is file `bitset.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bitset.dtx (with options: `package')
-%%
-%% This is a generated file.
-%%
-%% Project: bitset
-%% Version: 2016/05/16 v1.2
-%%
-%% Copyright (C)
-%% 2007, 2011 Heiko Oberdiek
-%% 2016-2019 Oberdiek Package Support Group
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% https://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% https://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% The Current Maintainers of this work are
-%% Heiko Oberdiek and the Oberdiek Package Support Group
-%% https://github.com/ho-tex/oberdiek/issues
-%%
-%%
-%% The Base Interpreter refers to any `TeX-Format',
-%% because some files are installed in TDS:tex/generic//.
-%%
-%% This work consists of the main source file bitset.dtx
-%% and the derived files
-%% bitset.sty, bitset.pdf, bitset.ins, bitset.drv, bitset-test1.tex,
-%% bitset-test2.tex, bitset-test3.tex.
-%%
-\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@bitset.sty\endcsname
- \ifx\x\relax % plain-TeX, first loading
- \else
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{bitset}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\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}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver@bitset.sty\endcsname
-\ProvidesPackage{bitset}%
- [2016/05/16 v1.2 Handle bit-vector datatype (HO)]%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode123=1 % {
- \catcode125=2 % }
- \catcode64=11 % @
- \def\x{\endgroup
- \expandafter\edef\csname BitSet@AtEnd\endcsname{%
- \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\catcode61\catcode48\catcode32=10\relax%
-\catcode13=5 % ^^M
-\endlinechar=13 %
-\catcode35=6 % #
-\catcode64=11 % @
-\catcode123=1 % {
-\catcode125=2 % }
-\def\TMP@EnsureCode#1#2{%
- \edef\BitSet@AtEnd{%
- \BitSet@AtEnd
- \catcode#1=\the\catcode#1\relax
- }%
- \catcode#1=#2\relax
-}
-\TMP@EnsureCode{33}{12}% !
-\TMP@EnsureCode{39}{12}% '
-\TMP@EnsureCode{40}{12}% (
-\TMP@EnsureCode{41}{12}% )
-\TMP@EnsureCode{42}{12}% *
-\TMP@EnsureCode{43}{12}% +
-\TMP@EnsureCode{44}{12}% ,
-\TMP@EnsureCode{45}{12}% -
-\TMP@EnsureCode{46}{12}% .
-\TMP@EnsureCode{47}{12}% /
-\TMP@EnsureCode{58}{11}% : (letter!)
-\TMP@EnsureCode{60}{12}% <
-\TMP@EnsureCode{62}{12}% >
-\TMP@EnsureCode{63}{14}% ? (comment!)
-\TMP@EnsureCode{91}{12}% [
-\TMP@EnsureCode{93}{12}% ]
-\TMP@EnsureCode{96}{12}% `
-\edef\BitSet@AtEnd{\BitSet@AtEnd\noexpand\endinput}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname BitSet@TestMode\endcsname\relax
-\else
- \catcode63=9 % ? (ignore)
-\fi
-? \let\BitSet@@TestMode\BitSet@TestMode
-\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{infwarerr}[2007/09/09]%
- \TMP@RequirePackage{intcalc}[2007/09/27]%
- \TMP@RequirePackage{bigintcalc}[2007/09/27]%
-\else
- \RequirePackage{infwarerr}[2007/09/09]%
- \RequirePackage{intcalc}[2007/09/27]%
- \RequirePackage{bigintcalc}[2007/09/27]%
-\fi
-\def\BitSet@MaxSize{2147483647}%
-\def\BitSet@Empty{}
-\def\BitSet@FirstOfOne#1{#1}
-\def\BitSet@Gobble#1{}
-\def\BitSet@FirstOfTwo#1#2{#1}
-\def\BitSet@SecondOfTwo#1#2{#2}
-\def\BitSet@Space{ }
-\def\BitSet@ZapSpace#1 #2{%
- #1%
- \ifx\BitSet@Empty#2%
- \else
- \expandafter\BitSet@ZapSpace
- \fi
- #2%
-}
-\let\BitSet@Fi\fi
-\def\BitSet@AfterFi#1#2\BitSet@Fi{\fi#1}
-\def\BitSet@AfterFiFi#1#2\BitSet@Fi{\fi\fi#1}%
-\def\BitSet@AfterFiFiFi#1#2\BitSet@Fi{\fi\fi\fi#1}%
-\def\BitSet@IfUndefined#1{%
- \expandafter\ifx\csname BS@#1\endcsname\relax
- \expandafter\BitSet@FirstOfTwo
- \else
- \expandafter\BitSet@SecondOfTwo
- \fi
-}
-\def\BitSet@CheckIndex#1#2#3{%
- \BitSet@IfUndefined{#2}{\bitsetReset{#2}}{}%
- \expandafter\expandafter\expandafter\BitSet@@CheckIndex
- \intcalcNum{#3}!%
- {#2}{#1}%
-}
-\def\BitSet@@CheckIndex#1!#2#3{%
- \ifnum#1<0 %
- \BitSet@AfterFi{%
- \@PackageError{bitset}{%
- Invalid negative index (#1)%
- }\@ehc
- }%
- \else
- \BitSet@AfterFi{%
- #3{#2}{#1}%
- }%
- \BitSet@Fi
-}
-\def\bitsetReset#1{%
- \expandafter\def\csname BS@#1\endcsname{0}%
-}
-\def\bitsetLet#1#2{%
- \BitSet@IfUndefined{#2}{%
- \bitsetReset{#1}%
- }{%
- \expandafter\let\csname BS@#1\expandafter\endcsname
- \csname BS@#2\endcsname
- }%
-}
-\def\bitsetSetBin#1#2{%
- \edef\BitSet@Temp{#2}%
- \edef\BitSet@Temp{%
- \expandafter\expandafter\expandafter\BitSet@ZapSpace
- \expandafter\BitSet@Temp\BitSet@Space\BitSet@Empty
- }%
- \edef\BitSet@Temp{%
- \expandafter\BitSet@KillZeros\BitSet@Temp\BitSet@Empty
- }%
- \ifx\BitSet@Temp\BitSet@Empty
- \expandafter\let\csname BS@#1\endcsname\BitSet@Zero
- \else
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\BitSet@Reverse\BitSet@Temp!%
- }%
- \fi
-}
-\def\BitSet@KillZeros#1{%
- \ifx#10%
- \expandafter\BitSet@KillZeros
- \else
- #1%
- \fi
-}
-\def\BitSet@Reverse#1#2!{%
- \ifx\\#2\\%
- #1%
- \else
- \BitSet@AfterFi{%
- \BitSet@Reverse#2!#1%
- }%
- \BitSet@Fi
-}
-\def\bitsetSetOct{%
- \BitSet@SetOctHex\BitSet@FromFirstOct
-}
-\def\bitsetSetHex{%
- \BitSet@SetOctHex\BitSet@FromFirstHex
-}
-\def\BitSet@SetOctHex#1#2#3{%
- \edef\BitSet@Temp{#3}%
- \edef\BitSet@Temp{%
- \expandafter\expandafter\expandafter\BitSet@ZapSpace
- \expandafter\BitSet@Temp\BitSet@Space\BitSet@Empty
- }%
- \edef\BitSet@Temp{%
- \expandafter\BitSet@KillZeros\BitSet@Temp\BitSet@Empty
- }%
- \ifx\BitSet@Temp\BitSet@Empty
- \expandafter\let\csname BS@#2\endcsname\BitSet@Zero
- \else
- \edef\BitSet@Temp{%
- \expandafter#1\BitSet@Temp!%
- }%
- \ifx\BitSet@Temp\BitSet@Empty
- \expandafter\let\csname BS@#2\endcsname\BitSet@Zero
- \else
- \expandafter\edef\csname BS@#2\endcsname{%
- \expandafter\BitSet@Reverse\BitSet@Temp!%
- }%
- \fi
- \fi
-}
-\def\BitSet@FromFirstOct#1{%
- \ifx#1!%
- \else
- \ifcase#1 \BitSet@AfterFiFi\BitSet@FromFirstOct
- \or 1%
- \or 10%
- \or 11%
- \or 100%
- \or 101%
- \or 110%
- \or 111%
- \else \BitSetError:WrongOctalDigit%
- \fi
- \expandafter\BitSet@FromOct
- \BitSet@Fi
-}
-\def\BitSet@FromOct#1{%
- \ifx#1!%
- \else
- \ifcase#1 000%
- \or 001%
- \or 010%
- \or 011%
- \or 100%
- \or 101%
- \or 110%
- \or 111%
- \else \BitSetError:WrongOctalDigit%
- \fi
- \expandafter\BitSet@FromOct
- \fi
-}
-\def\BitSet@FromFirstHex#1{%
- \ifx#1!%
- \else
- \ifx#10%
- \BitSet@AfterFiFi\BitSet@FromFirstHex
- \fi
- \expandafter\ifx\csname BitSet@Hex#1\endcsname\relax
- \BitSetError:InvalidHexDigit%
- \else
- \expandafter\expandafter\expandafter\BitSet@KillZeros
- \csname BitSet@Hex#1\endcsname
- \fi
- \expandafter\BitSet@FromHex
- \BitSet@Fi
-}
-\def\BitSet@FromHex#1{%
- \ifx#1!%
- \else
- \expandafter\ifx\csname BitSet@Hex#1\endcsname\relax
- \BitSetError:InvalidHexDigit%
- \else
- \csname BitSet@Hex#1\endcsname
- \fi
- \expandafter\BitSet@FromHex
- \fi
-}
-\def\BitSet@Temp#1{%
- \expandafter\def\csname BitSet@Hex#1\endcsname
-}
-\BitSet@Temp 0{0000}%
-\BitSet@Temp 1{0001}%
-\BitSet@Temp 2{0010}%
-\BitSet@Temp 3{0011}%
-\BitSet@Temp 4{0100}%
-\BitSet@Temp 5{0101}%
-\BitSet@Temp 6{0110}%
-\BitSet@Temp 7{0111}%
-\BitSet@Temp 8{1000}%
-\BitSet@Temp 9{1001}%
-\BitSet@Temp A{1010}%
-\BitSet@Temp B{1011}%
-\BitSet@Temp C{1100}%
-\BitSet@Temp D{1101}%
-\BitSet@Temp E{1110}%
-\BitSet@Temp F{1111}%
-\BitSet@Temp a{1010}%
-\BitSet@Temp b{1011}%
-\BitSet@Temp c{1100}%
-\BitSet@Temp d{1101}%
-\BitSet@Temp e{1110}%
-\BitSet@Temp f{1111}%
-\def\bitsetSetDec#1#2{%
- \edef\BitSet@Temp{#2}%
- \edef\BitSet@Temp{%
- \expandafter\expandafter\expandafter\BitSet@ZapSpace
- \expandafter\BitSet@Temp\BitSet@Space\BitSet@Empty
- }%
- \edef\BitSet@Temp{%
- \expandafter\BitSet@KillZeros\BitSet@Temp\BitSet@Empty
- }%
- \ifx\BitSet@Temp\BitSet@Empty
- \expandafter\let\csname BS@#1\endcsname\BitSet@Zero
- \else
- \ifcase\bigintcalcSgn{\BitSet@Temp} %
- \expandafter\let\csname BS@#1\endcsname\BitSet@Zero
- \or
- \ifnum\bigintcalcCmp\BitSet@Temp\BitSet@MaxSize>0 %
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\BitSet@SetDecBig\BitSet@Temp!%
- }%
- \else
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\BitSet@SetDec\BitSet@Temp!%
- }%
- \fi
- \else
- \@PackageError{bitset}{%
- Bit sets cannot be negative%
- }\@ehc
- \fi
- \fi
-}
-\def\BitSet@SetDecBig#1#2#3#4#5#6#7#8#9!{%
- \ifx\\#9\\%
- \BitSet@SetDec#1#2#3#4#5#6#7#8!%
- \else
- \ifcase\BigIntCalcOdd#1#2#4#5#6#7#8#9! %
- 0%
- \or
- 1%
-? \else\BitSetError:ThisCannotHappen%
- \fi
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@SetDecBig
- \BigIntCalcShr#1#2#3#4#5#6#7#8#9!!%
- }%
- \BitSet@Fi
-}
-\def\BitSet@SetDec#1!{%
- \ifcase#1 %
- \or 1%
- \else
- \ifodd#1 %
- 1%
- \else
- 0%
- \fi
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@SetDec
- \IntCalcShr#1!!%
- }%
- \BitSet@Fi
-}
-\def\bitsetGetBin#1#2{%
- \romannumeral0%
- \expandafter\expandafter\expandafter\BitSet@@GetBin
- \intcalcNum{#2}!{#1}%
-}
-\def\BitSet@@GetBin#1!#2{%
- \BitSet@IfUndefined{#2}{%
- \ifnum#1>1 %
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@Fill
- \IntCalcDec#1!!0%
- }%
- \else
- \BitSet@AfterFi{ 0}%
- \BitSet@Fi
- }{%
- \expandafter\expandafter\expandafter\BitSet@NumBinRev
- \expandafter\expandafter\expandafter1%
- \expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!!#1!%
- }%
-}
-\def\BitSet@Fill#1!{%
- \ifnum#1>0 %
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@Fill
- \IntCalcDec#1!!0%
- }%
- \else
- \BitSet@AfterFi{ }%
- \BitSet@Fi
-}
-\def\BitSet@NumBinRev#1!#2#3!{%
- \ifx\\#3\\%
- \BitSet@AfterFi{%
- \BitSet@NumBinFill#1!#2%
- }%
- \else
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@NumBinRev
- \IntCalcInc#1!!#3!#2%
- }%
- \BitSet@Fi
-}
-\def\BitSet@NumBinFill#1!#2!#3!{%
- \ifnum#3>#1 %
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@Fill
- \IntCalcSub#3!#1!!#2%
- }%
- \else
- \BitSet@AfterFi{ #2}%
- \BitSet@Fi
-}
-\def\bitsetGetOct#1#2{%
- \romannumeral0%
- \bitsetIsEmpty{#1}{%
- \expandafter\expandafter\expandafter\BitSet@@GetOctHex
- \intcalcNum{#2}!3!230%
- }{%
- \expandafter\expandafter\expandafter\BitSet@@GetOct
- \expandafter\expandafter\expandafter1%
- \expandafter\expandafter\expandafter!%
- \expandafter\expandafter\expandafter!%
- \csname BS@#1\endcsname00%
- \BitSet@Empty\BitSet@Empty\BitSet@Empty!{#2}%
- }%
-}
-\def\bitsetGetHex#1#2{%
- \romannumeral0%
- \bitsetIsEmpty{#1}{%
- \expandafter\expandafter\expandafter\BitSet@@GetOctHex
- \intcalcNum{#2}!4!340%
- }{%
- \expandafter\expandafter\expandafter\BitSet@@GetHex
- \expandafter\expandafter\expandafter1%
- \expandafter\expandafter\expandafter!%
- \expandafter\expandafter\expandafter!%
- \csname BS@#1\endcsname000%
- \BitSet@Empty\BitSet@Empty\BitSet@Empty\BitSet@Empty!{#2}%
- }%
-}
-\def\BitSet@@GetOct#1!#2!#3#4#5{%
- \ifx#5\BitSet@Empty
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@GetOctHex
- \IntCalcDec#1!!#2!23%
- }%
- \else
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@@GetOct
- \number\IntCalcInc#1!\expandafter\expandafter\expandafter!%
- \csname BitSet@Oct#5#4#3\endcsname#2!%
- }%
- \BitSet@Fi
-}
-\def\BitSet@Temp#1#2#3#4{%
- \expandafter\def\csname BitSet@Oct#1#2#3\endcsname{#4}%
-}
-\BitSet@Temp0000%
-\BitSet@Temp0011%
-\BitSet@Temp0102%
-\BitSet@Temp0113%
-\BitSet@Temp1004%
-\BitSet@Temp1015%
-\BitSet@Temp1106%
-\BitSet@Temp1117%
-\def\BitSet@@GetHex#1!#2!#3#4#5#6{%
- \ifx#6\BitSet@Empty
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@GetOctHex
- \IntCalcDec#1!!#2!34%
- }%
- \else
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@@GetHex
- \number\IntCalcInc#1!\expandafter\expandafter\expandafter!%
- \csname BitSet@Hex#6#5#4#3\endcsname#2!%
- }%
- \BitSet@Fi
-}
-\def\BitSet@Temp#1#2#3#4#5{%
- \expandafter\def\csname BitSet@Hex#1#2#3#4\endcsname{#5}%
-}
-\BitSet@Temp00000%
-\BitSet@Temp00011%
-\BitSet@Temp00102%
-\BitSet@Temp00113%
-\BitSet@Temp01004%
-\BitSet@Temp01015%
-\BitSet@Temp01106%
-\BitSet@Temp01117%
-\BitSet@Temp10008%
-\BitSet@Temp10019%
-\BitSet@Temp1010A%
-\BitSet@Temp1011B%
-\BitSet@Temp1100C%
-\BitSet@Temp1101D%
-\BitSet@Temp1110E%
-\BitSet@Temp1111F%
-\def\BitSet@GetOctHex#1!#2!#3#4#5!#6{%
- \expandafter\BitSet@@GetOctHex
- \number\intcalcNum{#6}\expandafter\expandafter\expandafter!%
- \IntCalcMul#1!#4!!#3#4#2%
-}
-\def\BitSet@@GetOctHex#1!#2!#3#4{%
- \ifnum#1>#2 %
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\expandafter
- \expandafter\expandafter\expandafter\BitSet@Fill
- \expandafter\IntCalcDiv\number
- \expandafter\expandafter\expandafter\IntCalcAdd
- \IntCalcSub#1!#2!!#3!!#4!!%
- }%
- \else
- \BitSet@AfterFi{ }%
- \BitSet@Fi
-}
-\def\bitsetGetDec#1{%
- \romannumeral0%
- \BitSet@IfUndefined{#1}{ 0}{%
- \expandafter\expandafter\expandafter\BitSet@GetDec
- \csname BS@#1\endcsname!%
- }%
-}
-\def\BitSet@GetDec#1#2!{%
- \ifx\\#2\\%
- \BitSet@AfterFi{ #1}%
- \else
- \BitSet@AfterFi{%
- \BitSet@@GetDec2!#1!#2!%
- }%
- \BitSet@Fi
-}
-\def\BitSet@@GetDec#1!#2!#3#4!{%
- \ifx\\#4\\%
- \ifx#31%
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@Space
- \IntCalcAdd#1!#2!%
- }%
- \else
- \BitSet@AfterFiFi{ #2}%
- \fi
- \else
- \ifx#31%
- \BitSet@AfterFiFi{%
- \csname BitSet@N#1%
- \expandafter\expandafter\expandafter\endcsname
- \IntCalcAdd#1!#2!!#4!%
- }%
- \else
- \BitSet@AfterFiFi{%
- \csname BitSet@N#1\endcsname#2!#4!%
- }%
- \fi
- \BitSet@Fi
-}
-\def\BitSet@Temp#1#2{%
- \expandafter\def\csname BitSet@N#1\endcsname{%
- \BitSet@@GetDec#2!%
- }%
-}
-\BitSet@Temp{1}{2}
-\BitSet@Temp{2}{4}
-\BitSet@Temp{4}{8}
-\BitSet@Temp{8}{16}
-\BitSet@Temp{16}{32}
-\BitSet@Temp{32}{64}
-\BitSet@Temp{64}{128}
-\BitSet@Temp{128}{256}
-\BitSet@Temp{256}{512}
-\BitSet@Temp{512}{1024}
-\BitSet@Temp{1024}{2048}
-\BitSet@Temp{2048}{4096}
-\BitSet@Temp{4096}{8192}
-\BitSet@Temp{8192}{16384}
-\BitSet@Temp{16384}{32768}
-\BitSet@Temp{32768}{65536}
-\BitSet@Temp{65536}{131072}
-\BitSet@Temp{131072}{262144}
-\BitSet@Temp{262144}{524288}
-\BitSet@Temp{524288}{1048576}
-\BitSet@Temp{1048576}{2097152}
-\BitSet@Temp{2097152}{4194304}
-\BitSet@Temp{4194304}{8388608}
-\BitSet@Temp{8388608}{16777216}
-\BitSet@Temp{16777216}{33554432}
-\BitSet@Temp{33554432}{67108864}
-\BitSet@Temp{67108864}{134217728}
-\BitSet@Temp{134217728}{268435456}
-\BitSet@Temp{268435456}{536870912}
-\BitSet@Temp{536870912}{1073741824}
-\expandafter\def\csname BitSet@N1073741824\endcsname{%
- \BitSet@GetDecBig2147483648!%
-}%
-\def\BitSet@GetDecBig#1!#2!#3#4!{%
- \ifx\\#4\\%
- \ifx#31%
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@Space
- \BigIntCalcAdd#1!#2!%
- }%
- \else
- \BitSet@AfterFiFi{ #2}%
- \fi
- \else
- \ifx#31%
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@@GetDecBig
- \BigIntCalcAdd#1!#2!!#1!#4!%
- }%
- \else
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@GetDecBig
- \BigIntCalcShl#1!!#2!#4!%
- }%
- \fi
- \BitSet@Fi
-}
-\def\BitSet@@GetDecBig#1!#2!{%
- \expandafter\expandafter\expandafter\BitSet@GetDecBig
- \BigIntCalcShl#2!!#1!%
-}
-\def\bitsetAnd#1#2{%
- \bitsetIsEmpty{#1}{%
- \bitsetReset{#1}%
- }{%
- \bitsetIsEmpty{#2}{%
- \bitsetReset{#1}%
- }{%
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\expandafter\expandafter\BitSet@And
- \csname BS@#1\expandafter\expandafter\expandafter\endcsname
- \expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!!%
- }%
- \expandafter\ifx\csname BS@#1\endcsname\BitSet@Empty
- \bitsetReset{#1}%
- \fi
- }%
- }%
-}
-\def\BitSet@And#1#2!#3#4!#5!{%
- \ifx\\#2\\%
- \ifnum#1#3=11 #51\fi
- \else
- \ifx\\#4\\%
- \ifnum#1#3=11 #51\fi
- \else
- \ifnum#1#3=11 %
- #51%
- \BitSet@AfterFiFiFi{%
- \BitSet@And#2!#4!!%
- }%
- \else
- \BitSet@AfterFiFiFi{%
- \BitSet@And#2!#4!#50!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\bitsetAndNot#1#2{%
- \bitsetIsEmpty{#1}{%
- \bitsetReset{#1}%
- }{%
- \bitsetIsEmpty{#2}{%
- }{%
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\expandafter\expandafter\BitSet@AndNot
- \csname BS@#1\expandafter\expandafter\expandafter\endcsname
- \expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!!%
- }%
- \expandafter\ifx\csname BS@#1\endcsname\BitSet@Empty
- \bitsetReset{#1}%
- \fi
- }%
- }%
-}
-\def\BitSet@AndNot#1#2!#3#4!#5!{%
- \ifx\\#2\\%
- \ifnum#1#3=10 #51\fi
- \else
- \ifx\\#4\\%
- #5%
- \ifnum#1#3=10 1\else 0\fi
- #2%
- \else
- \ifnum#1#3=10 %
- #51%
- \BitSet@AfterFiFiFi{%
- \BitSet@AndNot#2!#4!!%
- }%
- \else
- \BitSet@AfterFiFiFi{%
- \BitSet@AndNot#2!#4!#50!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\bitsetOr#1#2{%
- \bitsetIsEmpty{#2}{%
- \BitSet@IfUndefined{#1}{\bitsetReset{#1}}{}%
- }{%
- \bitsetIsEmpty{#1}{%
- \expandafter\let\csname BS@#1\expandafter\endcsname
- \csname BS@#2\endcsname
- }{%
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\expandafter\expandafter\BitSet@Or
- \csname BS@#1\expandafter\expandafter\expandafter\endcsname
- \expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!%
- }%
- }%
- }%
-}
-\def\BitSet@Or#1#2!#3#4!{%
- \ifnum#1#3>0 1\else 0\fi
- \ifx\\#2\\%
- #4%
- \else
- \ifx\\#4\\%
- #2%
- \else
- \BitSet@AfterFiFi{%
- \BitSet@Or#2!#4!%
- }%
- \fi
- \BitSet@Fi
-}
-\def\bitsetXor#1#2{%
- \bitsetIsEmpty{#2}{%
- \BitSet@IfUndefined{#1}{\bitsetReset{#1}}{}%
- }{%
- \bitsetIsEmpty{#1}{%
- \expandafter\let\csname BS@#1\expandafter\endcsname
- \csname BS@#2\endcsname
- }{%
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\expandafter\expandafter\BitSet@Xor
- \csname BS@#1\expandafter\expandafter\expandafter\endcsname
- \expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!!%
- }%
- \expandafter\ifx\csname BS@#1\endcsname\BitSet@Empty
- \bitsetReset{#1}%
- \fi
- }%
- }%
-}
-\def\BitSet@Xor#1#2!#3#4!#5!{%
- \ifx\\#2\\%
- \ifx#1#3%
- \ifx\\#4\\%
- \else
- #50#4%
- \fi
- \else
- #51#4%
- \fi
- \else
- \ifx\\#4\\%
- #5%
- \ifx#1#30\else 1\fi
- #2%
- \else
- \ifx#1#3%
- \BitSet@AfterFiFiFi{%
- \BitSet@Xor#2!#4!#50!%
- }%
- \else
- #51%
- \BitSet@AfterFiFiFi{%
- \BitSet@Xor#2!#4!!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\bitsetShiftLeft#1#2{%
- \BitSet@IfUndefined{#1}{%
- \bitsetReset{#1}%
- }{%
- \bitsetIsEmpty{#1}{%
- }{%
- \expandafter\expandafter\expandafter\BitSet@ShiftLeft
- \intcalcNum{#2}!{#1}%
- }%
- }%
-}
-\def\BitSet@ShiftLeft#1!#2{%
- \ifcase\intcalcSgn{#1} %
- \or
- \begingroup
- \uccode`m=`0 %
- \uppercase\expandafter{\expandafter\endgroup
- \expandafter\edef\csname BS@#2\expandafter\endcsname
- \expandafter{%
- \romannumeral#1000\expandafter\BitSet@Space
- \csname BS@#2\endcsname
- }%
- }%
- \else
- \expandafter\BitSet@ShiftRight\BitSet@Gobble#1!{#2}%
- \fi
-}
-\def\bitsetShiftRight#1#2{%
- \BitSet@IfUndefined{#1}{%
- \bitsetReset{#1}%
- }{%
- \bitsetIsEmpty{#1}{%
- }{%
- \expandafter\expandafter\expandafter\BitSet@ShiftRight
- \intcalcNum{#2}!{#1}%
- }%
- }%
-}
-\def\BitSet@ShiftRight#1!#2{%
- \ifcase\intcalcSgn{#1} %
- \or
- \expandafter\edef\csname BS@#2\endcsname{%
- \expandafter\expandafter\expandafter\BitSet@Kill
- \csname BS@#2\expandafter\endcsname\expandafter\BitSet@Empty
- \expandafter=%
- \expandafter{\expandafter}\expandafter{\expandafter}%
- \romannumeral#1000!%
- }%
- \else
- \expandafter\BitSet@ShiftLeft\BitSet@Gobble#1!{#2}%
- \fi
-}
-\def\BitSet@Kill#1#2=#3#4#5{%
- #3#4%
- \ifx#5!%
- \ifx#1\BitSet@Empty
- 0%
- \else
- #1#2%
- \fi
- \else
- \ifx#1\BitSet@Empty
- 0%
- \BitSet@AfterFiFi\BitSet@Cleanup
- \else
- \BitSet@Kill#2=%
- \fi
- \BitSet@Fi
-}
-\def\bitsetClear{%
- \BitSet@CheckIndex\BitSet@Clear
-}
-\def\bitsetSet{%
- \BitSet@CheckIndex\BitSet@Set
-}
-\def\bitsetFlip{%
- \BitSet@CheckIndex\BitSet@Flip
-}
-\def\bitsetSetValue#1#2#3{%
- \expandafter\expandafter\expandafter\BitSet@SetValue
- \intcalcNum{#3}!{#1}{#2}%
-}
-\def\BitSet@SetValue#1!{%
- \BitSet@CheckIndex{%
- \ifcase#1 %
- \expandafter\BitSet@Clear
- \or
- \expandafter\BitSet@Set
- \else
- \BitSet@ErrorInvalidBitValue{#1}%
- \expandafter\expandafter\expandafter\BitSet@Gobble
- \expandafter\BitSet@Gobble
- \fi
- }%
-}
-\def\BitSet@ErrorInvalidBitValue#1{%
- \@PackageError{bitset}{%
- Invalid bit value (#1) not in range 0..1%
- }\@ehc
-}
-\def\BitSet@Clear#1#2{%
- \edef\BitSet@Temp{%
- \expandafter\expandafter\expandafter\BitSet@@Clear
- \csname BS@#1\expandafter\endcsname
- \expandafter\BitSet@Empty\expandafter=\expandafter!%
- \romannumeral#2000!%
- }%
- \expandafter\let\csname BS@#1\expandafter\endcsname
- \ifx\BitSet@Temp\BitSet@Empty
- \BitSet@Zero
- \else
- \BitSet@Temp
- \fi
-}
-\def\BitSet@@Clear#1#2=#3!#4{%
- \ifx#4!%
- \ifx#1\BitSet@Empty
- \else
- \ifx\BitSet@Empty#2%
- \else
- #30#2%
- \fi
- \fi
- \else
- \ifx#1\BitSet@Empty
- \BitSet@AfterFiFi\BitSet@Cleanup
- \else
- \ifx#10%
- \BitSet@AfterFiFiFi{%
- \BitSet@@Clear#2=#30!%
- }%
- \else
- #31%
- \BitSet@AfterFiFiFi{%
- \BitSet@@Clear#2=!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\BitSet@Set#1#2{%
- \expandafter\edef\csname BS@#1\endcsname{%
- \expandafter\expandafter\expandafter\BitSet@@Set
- \csname BS@#1\expandafter\endcsname
- \expandafter\BitSet@Empty\expandafter=%
- \expandafter{\expandafter}\expandafter{\expandafter}%
- \romannumeral#2000!%
- }%
-}
-\def\BitSet@@Set#1#2=#3#4#5{%
- #3#4%
- \ifx#5!%
- 1#2%
- \else
- \ifx#1\BitSet@Empty
- 0%
- \BitSet@AfterFiFi\BitSet@@@Set
- \else
- #1%
- \BitSet@@Set#2=%
- \fi
- \BitSet@Fi
-}
-\def\BitSet@@@Set#1{%
- \ifx#1!%
- 1%
- \else
- 0%
- \expandafter\BitSet@@@Set
- \fi
-}
-\def\BitSet@Flip#1#2{%
- \edef\BitSet@Temp{%
- \expandafter\expandafter\expandafter\BitSet@@Flip
- \csname BS@#1\expandafter\endcsname
- \expandafter\BitSet@Empty\expandafter=\expandafter!%
- \romannumeral#2000!%
- }%
- \expandafter\let\csname BS@#1\expandafter\endcsname
- \ifx\BitSet@Temp\BitSet@Empty
- \BitSet@Zero
- \else
- \BitSet@Temp
- \fi
-}
-\def\BitSet@@Flip#1#2=#3!#4{%
- \ifx#4!%
- \ifx#11%
- \ifx\BitSet@Empty#2%
- \else
- #30#2%
- \fi
- \else
- #31#2%
- \fi
- \else
- \ifx#1\BitSet@Empty
- #30%
- \BitSet@AfterFiFi\BitSet@@@Set
- \else
- \ifx#10%
- \BitSet@AfterFiFiFi{%
- \BitSet@@Flip#2=#30!%
- }%
- \else
- #31%
- \BitSet@AfterFiFiFi{%
- \BitSet@@Flip#2=!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\bitsetClearRange{%
- \BitSet@Range\BitSet@Clear
-}
-\def\bitsetSetRange{%
- \BitSet@Range\BitSet@Set
-}
-\def\bitsetFlipRange{%
- \BitSet@Range\BitSet@Flip
-}
-\def\bitsetSetValueRange#1#2#3#4{%
- \expandafter\expandafter\expandafter\BitSet@SetValueRange
- \intcalcNum{#4}!{#1}{#2}{#3}%
-}
-\def\BitSet@SetValueRange#1!#2#3#4{%
- \ifcase#1 %
- \BitSet@Range\BitSet@Clear{#2}{#3}{#4}%
- \or
- \BitSet@Range\BitSet@Set{#2}{#3}{#4}%
- \else
- \BitSet@ErrorInvalidBitValue{#1}%
- \fi
-}
-\def\BitSet@Range#1#2#3#4{%
- \edef\BitSet@Temp{%
- \noexpand\BitSet@@Range\noexpand#1{#2}%
- \intcalcNum{#3}!\intcalcNum{#4}!%
- }%
- \BitSet@Temp
-}
-\def\BitSet@@Range#1#2#3!#4!{%
- \ifnum#3<0 %
- \BitSet@NegativeIndex#1{#2}#3!#4!0!#4!%
- \else
- \ifnum#4<0 %
- \BitSet@NegativeIndex#1{#2}#3!#4!#3!0!%
- \else
- \ifcase\intcalcCmp{#3}{#4} %
- \or
- \@PackageError{bitset}{%
- Wrong index numbers in range [#3..#4]\MessageBreak% hash-ok
- for clear/set/flip on bit set `#2'.\MessageBreak
- The lower index exceeds the upper index.\MessageBreak
- Canceling the operation as error recovery%
- }\@ehc
- \else
- \BitSet@@@Range#3!#4!#1{#2}%
- \fi
- \fi
- \fi
-}
-\def\BitSet@NegativeIndex#1#2#3!#4!#5!#6!{%
- \@PackageError{bitset}{%
- Negative index in range [#3..#4]\MessageBreak % hash-ok
- for \string\bitset
- \ifx#1\BitSet@Clear
- Clear%
- \else
- \ifx#1\BitSet@Set
- Set%
- \else
- Flip%
- \fi
- \fi
- Range on bit set `#2'.\MessageBreak
- Using [#5..#6] as error recovery% hash-ok
- }\@ehc
- \BitSet@@Range#1{#2}#5!#6!%
-}
-\def\BitSet@@@Range#1!#2!#3#4{%
- \ifnum#1<#2 %
- #3{#4}{#1}%
- \BitSet@AfterFi{%
- \expandafter\expandafter\expandafter\BitSet@@@Range
- \IntCalcInc#1!!#2!#3{#4}%
- }%
- \BitSet@Fi
-}
-\def\bitsetGet#1#2{%
- \number
- \expandafter\expandafter\expandafter\BitSet@Get
- \intcalcNum{#2}!{#1}%
-}
-\def\BitSet@Get#1!#2{%
- \ifnum#1<0 %
- \BitSet@AfterFi{%
- 0 \BitSetError:NegativeIndex%
- }%
- \else
- \BitSet@IfUndefined{#2}{0}{%
- \expandafter\expandafter\expandafter\BitSet@@Get
- \csname BS@#2\expandafter\endcsname
- \expandafter!\expandafter=%
- \expandafter{\expandafter}\expandafter{\expandafter}%
- \romannumeral\intcalcNum{#1}000!%
- }%
- \expandafter\BitSet@Space
- \BitSet@Fi
-}
-\def\BitSet@@Get#1#2=#3#4#5{%
- #3#4%
- \ifx#5!%
- \ifx#1!%
- 0%
- \else
- #1%
- \fi
- \else
- \ifx#1!%
- 0%
- \BitSet@AfterFiFi\BitSet@Cleanup
- \else
- \BitSet@@Get#2=%
- \fi
- \BitSet@Fi
-}
-\def\bitsetNextClearBit#1#2{%
- \number
- \expandafter\expandafter\expandafter\BitSet@NextClearBit
- \intcalcNum{#2}!{#1} %
-}
-\def\BitSet@NextClearBit#1!#2{%
- \ifnum#1<0 %
- \BitSet@NextClearBit0!{#2}%
- \BitSet@AfterFi{%
- \expandafter\BitSet@Space
- \expandafter\BitSetError:NegativeIndex\romannumeral0%
- }%
- \else
- \bitsetIsEmpty{#2}{#1}{%
- \expandafter\BitSet@Skip
- \number#1\expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!!!!!!!!!=%
- {\BitSet@@NextClearBit#1!}%
- }%
- \BitSet@Fi
-}
-\def\BitSet@@NextClearBit#1!#2{%
- \ifx#2!%
- #1%
- \else
- \ifx#20%
- #1%
- \BitSet@AfterFiFi\BitSet@Cleanup
- \else
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@@NextClearBit
- \IntCalcInc#1!!%
- }%
- \fi
- \BitSet@Fi
-}
-\def\bitsetNextSetBit#1#2{%
- \number
- \expandafter\expandafter\expandafter\BitSet@NextSetBit
- \intcalcNum{#2}!{#1} %
-}
-\def\BitSet@NextSetBit#1!#2{%
- \ifnum#1<0 %
- \BitSet@NextSetBit0!{#2}%
- \BitSet@AfterFi{%
- \expandafter\BitSet@Space
- \expandafter\BitSetError:NegativeIndex\romannumeral0%
- }%
- \else
- \bitsetIsEmpty{#2}{-1}{%
- \expandafter\BitSet@Skip
- \number#1\expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!!!!!!!!!=%
- {\BitSet@@NextSetBit#1!}%
- }%
- \BitSet@Fi
-}
-\def\BitSet@@NextSetBit#1!#2{%
- \ifx#2!%
- -1%
- \else
- \ifx#21%
- #1%
- \BitSet@AfterFiFi\BitSet@Cleanup
- \else
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@@NextSetBit
- \IntCalcInc#1!!%
- }%
- \fi
- \BitSet@Fi
-}
-\def\BitSet@Cleanup#1!{}
-\def\BitSet@Skip#1!#2{%
- \ifx#2!%
- \BitSet@AfterFi{%
- \BitSet@SkipContinue%
- }%
- \else
- \ifcase#1 %
- \BitSet@AfterFiFi{%
- \BitSet@SkipContinue#2%
- }%
- \or
- \BitSet@AfterFiFi\BitSet@SkipContinue
- \or
- \BitSet@AfterFiFi{%
- \expandafter\BitSet@SkipContinue\BitSet@Gobble
- }%
- \else
- \ifnum#1>8 %
- \BitSet@AfterFiFiFi{%
- \expandafter\BitSet@Skip
- \number\IntCalcSub#1!8!\expandafter!%
- \BitSet@GobbleSeven
- }%
- \else
- \BitSet@AfterFiFiFi{%
- \expandafter\expandafter\expandafter\BitSet@Skip
- \IntCalcDec#1!!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\BitSet@SkipContinue#1!#2=#3{%
- #3#1!%
-}
-\def\BitSet@GobbleSeven#1#2#3#4#5#6#7{}
-\def\bitsetGetSetBitList#1{%
- \romannumeral0%
- \bitsetIsEmpty{#1}{ }{%
- \expandafter\BitSet@GetSetBitList
- \number\BitSet@NextSetBit0!{#1}!{#1}{}!%
- }%
-}
-\def\BitSet@GetSetBitList#1!#2#3#4!{%
- \ifnum#1<0 %
- \BitSet@AfterFi{ #4}%
- \else
- \BitSet@AfterFi{%
- \expandafter\BitSet@GetSetBitList\number
- \expandafter\expandafter\expandafter\BitSet@NextSetBit
- \IntCalcInc#1!!{#2}!{#2},#4#3#1!%
- }%
- \BitSet@Fi
-}
-\def\bitsetSize#1{%
- \number
- \BitSet@IfUndefined{#1}{0 }{%
- \expandafter\expandafter\expandafter\BitSet@Size
- \expandafter\expandafter\expandafter1%
- \expandafter\expandafter\expandafter!%
- \csname BS@#1\endcsname!0!%
- }%
-}
-\def\BitSet@Size#1!#2#3!#4!{%
- \ifx#21%
- \ifx\\#3\\%
- \BitSet@AfterFiFi{#1 }%
- \else
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@Size
- \IntCalcInc#1!!#3!#1!%
- }%
- \fi
- \else
- \ifx\\#3\\%
- \BitSet@AfterFiFi{#4 }%
- \else
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@Size
- \IntCalcInc#1!!#3!#4!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\bitsetCardinality#1{%
- \number
- \BitSet@IfUndefined{#1}{0 }{%
- \expandafter\expandafter\expandafter\BitSet@Cardinality
- \expandafter\expandafter\expandafter0%
- \expandafter\expandafter\expandafter!%
- \csname BS@#1\endcsname!%
- }%
-}
-\def\BitSet@Cardinality#1!#2#3!{%
- \ifx#21%
- \ifx\\#3\\%
- \BitSet@AfterFiFi{\IntCalcInc#1! }%
- \else
- \BitSet@AfterFiFi{%
- \expandafter\expandafter\expandafter\BitSet@Cardinality
- \IntCalcInc#1!!#3!%
- }%
- \fi
- \else
- \ifx\\#3\\%
- \BitSet@AfterFiFi{#1 }%
- \else
- \BitSet@AfterFiFi{%
- \BitSet@Cardinality#1!#3!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\def\bitsetIsDefined#1{%
- \BitSet@IfUndefined{#1}%
- \BitSet@SecondOfTwo
- \BitSet@FirstOfTwo
-}
-\def\bitsetIsEmpty#1{%
- \BitSet@IfUndefined{#1}\BitSet@FirstOfTwo{%
- \expandafter\ifx\csname BS@#1\endcsname\BitSet@Zero
- \expandafter\BitSet@FirstOfTwo
- \else
- \expandafter\BitSet@SecondOfTwo
- \fi
- }%
-}
-\def\BitSet@Zero{0}
-\def\bitsetQuery#1#2{%
- \ifnum\bitsetGet{#1}{#2}=1 %
- \expandafter\BitSet@FirstOfTwo
- \else
- \expandafter\BitSet@SecondOfTwo
- \fi
-}
-\def\bitsetEquals#1#2{%
- \BitSet@IfUndefined{#1}{%
- \BitSet@IfUndefined{#2}\BitSet@FirstOfTwo\BitSet@SecondOfTwo
- }{%
- \BitSet@IfUndefined{#2}\BitSet@SecondOfTwo{%
- \expandafter\ifx\csname BS@#1\expandafter\endcsname
- \csname BS@#2\endcsname
- \expandafter\BitSet@FirstOfTwo
- \else
- \expandafter\BitSet@SecondOfTwo
- \fi
- }%
- }%
-}
-\def\bitsetIntersects#1#2{%
- \bitsetIsEmpty{#1}\BitSet@SecondOfTwo{%
- \bitsetIsEmpty{#2}\BitSet@SecondOfTwo{%
- \expandafter\expandafter\expandafter\BitSet@Intersects
- \csname BS@#1\expandafter\expandafter\expandafter\endcsname
- \expandafter\expandafter\expandafter!%
- \csname BS@#2\endcsname!%
- }%
- }%
-}
-\def\BitSet@Intersects#1#2!#3#4!{%
- \ifnum#1#3=11 %
- \BitSet@AfterFi\BitSet@FirstOfTwo
- \else
- \ifx\\#2\\%
- \BitSet@AfterFiFi\BitSet@SecondOfTwo
- \else
- \ifx\\#4\\%
- \BitSet@AfterFiFiFi\BitSet@SecondOfTwo
- \else
- \BitSet@AfterFiFiFi{%
- \BitSet@Intersects#2!#4!%
- }%
- \fi
- \fi
- \BitSet@Fi
-}
-\BitSet@AtEnd%
-%% \section{Installation}
-\endinput
-%%
-%% End of file `bitset.sty'.
diff --git a/Master/texmf-dist/tex/generic/oberdiek/catchfile.sty b/Master/texmf-dist/tex/generic/oberdiek/catchfile.sty
deleted file mode 100644
index f27709bfe9f..00000000000
--- a/Master/texmf-dist/tex/generic/oberdiek/catchfile.sty
+++ /dev/null
@@ -1,314 +0,0 @@
-%%
-%% This is file `catchfile.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% catchfile.dtx (with options: `package')
-%%
-%% This is a generated file.
-%%
-%% Project: catchfile
-%% Version: 2016/05/16 v1.7
-%%
-%% Copyright (C)
-%% 2007, 2010, 2011 Heiko Oberdiek
-%% 2016-2019 Oberdiek Package Support Group
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% https://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% https://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% The Current Maintainers of this work are
-%% Heiko Oberdiek and the Oberdiek Package Support Group
-%% https://github.com/ho-tex/oberdiek/issues
-%%
-%%
-%% The Base Interpreter refers to any `TeX-Format',
-%% because some files are installed in TDS:tex/generic//.
-%%
-%% This work consists of the main source file catchfile.dtx
-%% and the derived files
-%% catchfile.sty, catchfile.pdf, catchfile.ins, catchfile.drv,
-%% catchfile-test1.tex, catchfile-test2.tex,
-%% catchfile-test3.tex.
-%%
-\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@catchfile.sty\endcsname
- \ifx\x\relax % plain-TeX, first loading
- \else
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{catchfile}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\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}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver@catchfile.sty\endcsname
-\ProvidesPackage{catchfile}%
- [2016/05/16 v1.7 Catch the contents of a file (HO)]%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode123=1 % {
- \catcode125=2 % }
- \catcode64=11 % @
- \def\x{\endgroup
- \expandafter\edef\csname CatchFile@AtEnd\endcsname{%
- \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\catcode61\catcode48\catcode32=10\relax%
-\catcode13=5 % ^^M
-\endlinechar=13 %
-\catcode35=6 % #
-\catcode64=11 % @
-\catcode123=1 % {
-\catcode125=2 % }
-\def\TMP@EnsureCode#1#2{%
- \edef\CatchFile@AtEnd{%
- \CatchFile@AtEnd
- \catcode#1=\the\catcode#1\relax
- }%
- \catcode#1=#2\relax
-}
-\TMP@EnsureCode{39}{12}% '
-\TMP@EnsureCode{44}{12}% ,
-\TMP@EnsureCode{45}{12}% -
-\TMP@EnsureCode{46}{12}% .
-\TMP@EnsureCode{47}{12}% /
-\TMP@EnsureCode{91}{12}% [
-\TMP@EnsureCode{93}{12}% ]
-\TMP@EnsureCode{96}{12}% `
-\edef\CatchFile@AtEnd{\CatchFile@AtEnd\noexpand\endinput}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname RequirePackage\endcsname\relax
- \input infwarerr.sty\relax
- \input ltxcmds.sty\relax
-\else
- \RequirePackage{infwarerr}[2007/09/09]%
- \RequirePackage{ltxcmds}[2010/03/09]%
-\fi
-\begingroup
- \escapechar=92\relax
- \edef\TestString{\string\everyeof}%
- \edef\TestMeaning{\meaning\everyeof}%
- \ifx\TestString\TestMeaning
- \else
- \@PackageError{catchfile}{%
- Cannot find e-TeX's \string\everyeof,\MessageBreak
- package loading is aborted%
- }\@ehd
- \endgroup
- \expandafter\CatchFile@AtEnd
- \fi%
-\endgroup
-\begingroup
- \def\Check#1#2#3#4\endgroup{%
- \edef\TestString{\string#1}%
- \edef\TestMeaning{\meaning#2}%
- \ifx\TestString\TestMeaning
- \endgroup
- \let\CatchFile@Primitive#2%
- \def\CatchFile@Input{\CatchFile@Primitive#3}%
- \else
- #4\endgroup
- \fi
- }%
- \Check\input\input{}%
- \Check\input\@@input{}%
- \Check\pdfprimitive\pdfprimitive\input
- \@PackageError{%
- Cannot find primitive \string\input,\MessageBreak
- package loading is aborted%
- }\@ehd
- \csname endgroup\endcsname
- \CatchFile@AtEnd%
-\endgroup
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname IfFileExists\endcsname\relax
- \input pdftexcmds.sty\relax
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname pdf@filesize\endcsname\relax
- \def\CatchFile@CheckFileExists#1{%
- \expandafter\ifx\csname @inputcheck\endcsname\relax
- \csname newread\endcsname\@inputcheck
- \fi
- \openin\@inputcheck#1\relax
- \expandafter\closein\expandafter\@inputcheck
- \ifeof\@inputcheck
- \let\CatchFile@File\relax
- \else
- \def\CatchFile@File{#1}%
- \fi
- }%
- \else
- \def\CatchFile@CheckFileExists#1{%
- \expandafter\expandafter\expandafter\ifx
- \expandafter\expandafter\expandafter\relax\pdf@filesize{#1}\relax
- \let\CatchFile@File\relax
- \else
- \def\CatchFile@File{#1}%
- \fi
- }%
- \fi
-\else
- \def\CatchFile@CheckFileExists#1{%
- \IfFileExists{#1}{%
- \expandafter\CatchFile@DefFile\@filef@und\@nil
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname @addtofilelist\endcsname\relax
- \else
- \@addtofilelist\CatchFile@File
- \fi
- }{%
- \let\CatchFile@File\relax
- }%
- }%
- \def\CatchFile@DefFile#1 \@nil{%
- \def\CatchFile@File{#1}%
- }%
-\fi
-\def\CatchFile@NotFound#1#2{%
- \def#1{}%
- \@PackageError{catchfile}{%
- File `#2' not found%
- }\@ehc
-}
-\ltx@IfUndefined{RequirePackage}{%
- \input etexcmds.sty\relax
-}{%
- \RequirePackage{etexcmds}[2010/01/28]%
-}
-\long\def\CatchFileEdef#1#2#3{%
- \CatchFile@CheckFileExists{#2}%
- \ifx\CatchFile@File\relax
- \CatchFile@NotFound{#1}{#2}%
- \else
- \begingroup
- \everyeof{\noexpand}%
- #3%
- \xdef\CatchFile@Contents{\CatchFile@Input\CatchFile@File\space}%
- \endgroup
- \let#1\CatchFile@Contents
- \fi
-}
-\long\def\CatchFileDef#1#2#3{%
- \CatchFile@CheckFileExists{#2}%
- \ifx\CatchFile@File\relax
- \CatchFile@NotFound{#1}{#2}%
- \else
- \begingroup
- \everyeof\expandafter{%
- \CatchFile@EOF
- \expandafter\CatchFile@Finish
- \noexpand
- }%
- \ltx@ifundefined{etex@unexpanded}{%
- \expandafter\long\expandafter\def\expandafter\CatchFile@Do
- \expandafter##\expandafter1\CatchFile@EOF{%
- \toks\ltx@zero{##1}%
- \xdef\CatchFile@gtemp{\the\toks\ltx@zero}%
- \def\CatchFile@Finish{%
- \endgroup
- \let#1\CatchFile@gtemp
- \global\let\CatchFile@gtemp\ltx@undefined
- }%
- }%
- }{%
- \expandafter\long\expandafter\def\expandafter\CatchFile@Do
- \expandafter##\expandafter1\CatchFile@EOF{%
- \edef\CatchFile@Finish{%
- \endgroup
- \etex@unexpanded{%
- \edef#1{\etex@unexpanded{##1}}%
- }%
- }%
- }%
- }%
- #3\relax
- \expandafter\expandafter\expandafter\CatchFile@Do
- \CatchFile@Input\CatchFile@File\relax
- \fi
-}
-\begingroup
- \lccode65=64 % lowercase('A') = '@'
- \lccode66=64 % lowercase('B') = '@'
- \catcode65=8 % catcode('A') = subscript
- \catcode66=3 % catcode('B') = math shift
-\lowercase{\endgroup
- \def\CatchFile@EOF{AB}%
-}
-\CatchFile@AtEnd%
-%% \section{Installation}
-\endinput
-%%
-%% End of file `catchfile.sty'.
diff --git a/Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty b/Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty
deleted file mode 100644
index 83314b191e3..00000000000
--- a/Master/texmf-dist/tex/generic/oberdiek/pdfescape.sty
+++ /dev/null
@@ -1,782 +0,0 @@
-%%
-%% This is file `pdfescape.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% pdfescape.dtx (with options: `package')
-%%
-%% This is a generated file.
-%%
-%% Project: pdfescape
-%% Version: 2016/05/16 v1.14
-%%
-%% Copyright (C)
-%% 2007, 2010, 2011 Heiko Oberdiek
-%% 2016-2019 Oberdiek Package Support Group
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% https://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% https://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% The Current Maintainers of this work are
-%% Heiko Oberdiek and the Oberdiek Package Support Group
-%% https://github.com/ho-tex/oberdiek/issues
-%%
-%%
-%% The Base Interpreter refers to any `TeX-Format',
-%% because some files are installed in TDS:tex/generic//.
-%%
-%% This work consists of the main source file pdfescape.dtx
-%% and the derived files
-%% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv,
-%% pdfescape-test1.tex, pdfescape-test2.tex,
-%% pdfescape-test3.tex, pdfescape-test4.tex,
-%% pdfescape-test5.tex, pdfescape-test6.tex.
-%%
-\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
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{pdfescape}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\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}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver@pdfescape.sty\endcsname
-\ProvidesPackage{pdfescape}%
- [2016/05/16 v1.14 Implements pdfTeX's escape features (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{%
- \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\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=#3\relax
-}
-\TMP@EnsureCode\catcode{0}{12}% ^^@
-\TMP@EnsureCode\catcode{34}{12}% "
-\TMP@EnsureCode\catcode{36}{3}% $
-\TMP@EnsureCode\catcode{38}{4}% &
-\TMP@EnsureCode\catcode{39}{12}% '
-\TMP@EnsureCode\catcode{42}{12}% *
-\TMP@EnsureCode\catcode{45}{12}% -
-\TMP@EnsureCode\catcode{46}{12}% .
-\TMP@EnsureCode\catcode{47}{12}% /
-\TMP@EnsureCode\catcode{60}{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{%
- \begingroup
- \csname @safe@activestrue\endcsname
- \edef#1{#2}%
- \PE@onelevel@sanitize#1%
- \expandafter\endgroup
- \expandafter\def\expandafter#1\expandafter{#1}%
- }%
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname @onelevel@sanitize\endcsname\relax
- \def\PE@onelevel@sanitize#1{%
- \edef#1{\expandafter\PE@strip@prefix\meaning#1}%
- }%
- \def\PE@strip@prefix#1>{}%
- \else
- \let\PE@onelevel@sanitize\@onelevel@sanitize
- \fi
-\else
- \long\def\EdefSanitize#1#2{%
- \begingroup
- \csname @safe@activestrue\endcsname
- \edef#1{#2}%
- \expandafter\endgroup
- \expandafter\def\expandafter#1\expandafter{%
- \detokenize\expandafter{#1}%
- }%
- }%
- \def\PE@onelevel@sanitize#1{%
- \edef#1{\detokenize\expandafter{#1}}%
- }%
-\fi
-\let\PE@sanitize\EdefSanitize
-\begingroup
- \catcode`\ =12\relax%
-\def\x{\endgroup\def\PE@space@other{ }}\x\relax
-\def\PE@space@space{ }
-\def\PE@SanitizeSpaceOther#1{%
- \edef#1{\expandafter\PE@SpaceToOther#1 \relax}%
-}
-\def\PE@SpaceToOther#1 #2\relax{%
- #1%
- \ifx\\#2\\%
- \else
- \PE@space@other
- \ltx@ReturnAfterFi{%
- \PE@SpaceToOther#2\relax
- }%
- \fi
-}
-\def\EdefUnescapeName#1#2{%
- \EdefSanitize#1{#2}%
- \PE@SanitizeSpaceOther#1%
- \PE@UnescapeName#1%
- \PE@onelevel@sanitize#1%
-}
-\begingroup
- \catcode`\$=6 % hash
- \catcode`\#=12 % other
- \gdef\PE@UnescapeName$1{%
- \begingroup
- \PE@InitUccodeHexDigit
- \def\PE@result{}%
- \expandafter\PE@DeName$1#\relax\relax
- \expandafter\endgroup
- \expandafter\def\expandafter$1\expandafter{\PE@result}%
- }%
- \gdef\PE@DeName$1#$2$3{%
- \ifx\relax$2%
- \edef\PE@result{\PE@result$1}%
- \let\PE@next\relax
- \else
- \ifx\relax$3%
- % wrong escape sequence in input
- \edef\PE@result{\PE@result$1#}%
- \let\PE@next\relax
- \else
- \uppercase{%
- \def\PE@testA{$2}%
- \def\PE@testB{$3}%
- }%
- \ifcase\ifcase\expandafter\PE@TestUcHexDigit\PE@testA
- \ifcase\expandafter\PE@TestUcHexDigit\PE@testB
- \ltx@zero
- \else
- \ltx@one
- \fi
- \else
- \ltx@one
- \fi
- \uccode\ltx@zero="\PE@testA\PE@testB\relax
- \uppercase{%
- \def\PE@temp{^^@}%
- }%
- \uccode\ltx@zero=\ltx@zero
- \edef\PE@result{\PE@result$1\PE@temp}%
- \let\PE@next\PE@DeName
- \else
- % wrong escape sequence in input
- \edef\PE@result{\PE@result$1#}%
- \def\PE@next{\PE@DeName$2$3}%
- \fi
- \fi
- \fi
- \PE@next
- }%
-\endgroup
-\def\PE@InitUccodeHexDigit{%
- \uccode`a=`A\relax
- \uccode`b=`B\relax
- \uccode`c=`C\relax
- \uccode`d=`D\relax
- \uccode`e=`E\relax
- \uccode`f=`F\relax
- \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
- \ltx@one
- \else
- \ifnum`#1>70 % F
- \ltx@one
- \else
- \ifnum`#1>57 % 9
- \ifnum`#1<65 % A
- \ltx@one
- \else
- \ltx@zero
- \fi
- \else
- \ltx@zero
- \fi
- \fi
- \fi
-}
-\def\EdefUnescapeString#1#2{%
- \EdefSanitize#1{#2}%
- \PE@SanitizeSpaceOther#1%
- \PE@NormalizeLineEnd#1%
- \PE@UnescapeString#1%
- \PE@onelevel@sanitize#1%
-}
-\begingroup
- \uccode`\8=10 % lf
- \uccode`\9=13 % cr
-\def\x#1#2{\endgroup
- \def\PE@NormalizeLineEnd##1{%
- \def\PE@result{}%
- \expandafter\PE@@NormalizeLineEnd##1#2\relax
- \let##1\PE@result
- }%
- \def\PE@@NormalizeLineEnd##1#2##2{%
- \ifx\relax##2%
- \edef\PE@result{\PE@result##1}%
- \let\PE@next\relax
- \else
- \edef\PE@result{\PE@result##1#1}%
- \ifx#1##2% lf
- \let\PE@next\PE@@NormalizeLineEnd
- \else
- \def\PE@next{\PE@@NormalizeLineEnd##2}%
- \fi
- \fi
- \PE@next
- }%
-}%
-\uppercase{%
- \x 89%
-}
-\begingroup
- \catcode`\|=0 %
- \catcode`\\=12 %
- |gdef|PE@UnescapeString#1{%
- |begingroup
- |def|PE@result{}%
- |expandafter|PE@DeString#1\|relax
- |expandafter|endgroup
- |expandafter|def|expandafter#1|expandafter{|PE@result}%
- }%
- |gdef|PE@DeString#1\#2{%
- |ifx|relax#2%
- |edef|PE@result{|PE@result#1}%
- |let|PE@next|relax
- |else
- |if n#2%
- |uccode|ltx@zero=10 %
- |else|if r#2%
- |uccode|ltx@zero=13 %
- |else|if t#2%
- |uccode|ltx@zero=9 %
- |else|if b#2%
- |uccode|ltx@zero=8 %
- |else|if f#2%
- |uccode|ltx@zero=12 %
- |else
- |uccode|ltx@zero=|ltx@zero
- |fi|fi|fi|fi|fi
- |ifnum|uccode|ltx@zero>|ltx@zero
- |uppercase{%
- |edef|PE@temp{^^@}%
- }%
- |edef|PE@result{|PE@result#1|PE@temp}%
- |let|PE@next|PE@DeString
- |else
- |if\#2% backslash
- |edef|PE@result{|PE@result#1}%
- |let|PE@next|PE@CheckEndBackslash
- |else
- |ifnum`#2=10 % linefeed
- |edef|PE@result{|PE@result#1}%
- |let|PE@next|PE@DeString
- |else
- |ifcase|PE@TestOctDigit#2%
- |edef|PE@result{|PE@result#1}%
- |def|PE@next{|PE@OctI#2}%
- |else
- |edef|PE@result{|PE@result#1#2}%
- |let|PE@next|PE@DeString
- |fi
- |fi
- |fi
- |fi
- |fi
- |PE@next
- }%
- |gdef|PE@CheckEndBackslash#1{%
- |ifx|relax#1%
- |else
- |edef|PE@result{|PE@result\}%
- |expandafter|PE@DeString|expandafter#1%
- |fi
- }%
-|endgroup
-\def\PE@TestOctDigit#1{%
- \ifnum`#1<48 % 0
- \ltx@one
- \else
- \ifnum`#1>55 % 7
- \ltx@one
- \else
- \ltx@zero
- \fi
- \fi
-}
-\def\PE@OctI#1#2{%
- \ifcase\PE@TestOctDigit#2%
- \def\PE@next{\PE@OctII{#1#2}}%
- \else
- \def\PE@next{\PE@OctAll#1#2}%
- \fi
- \PE@next
-}
-\def\PE@OctII#1#2{%
- \ifcase\PE@TestOctDigit#2%
- \def\PE@next{\PE@OctIII#1#2}%
- \else
- \def\PE@next{\PE@OctAll{#1}#2}%
- \fi
- \PE@next
-}
-\ltx@IfUndefined{numexpr}{%
- \catcode`\$=9 %
- \catcode`\&=14 %
-}{%
- \catcode`\$=14 %
- \catcode`\&=9 %
-}
-\def\PE@OctIII#1#2#3{%
- \ifnum#1<4 %
- \def\PE@next{\PE@OctAll{#1#2#3}}%
- \else
-$ \count\ltx@cclv#1 %
-$ \advance\count\ltx@cclv -4 %
- \edef\PE@next{%
- \noexpand\PE@OctAll{%
-$ \the\count\ltx@cclv
-& \the\numexpr#1-4\relax
- #2#3%
- }%
- }%
- \fi
- \PE@next
-}
-\def\PE@OctAll#1{%
- \uccode\ltx@zero='#1\relax
- \uppercase{%
- \edef\PE@result{\PE@result^^@}%
- }%
- \PE@DeString
-}
-\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{pdftexcmds}[2007/11/11]%
-\else
- \RequirePackage{pdftexcmds}[2007/11/11]%
-\fi
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname pdf@escapehex\endcsname\relax
- \long\def\EdefEscapeHex#1#2{%
- \EdefSanitize#1{#2}%
- \PE@SanitizeSpaceOther#1%
- \PE@EscapeHex#1%
- }%
- \def\EdefUnescapeHex#1#2{%
- \EdefSanitize#1{#2}%
- \PE@UnescapeHex#1%
- }%
- \long\def\EdefEscapeName#1#2{%
- \EdefSanitize#1{#2}%
- \PE@SanitizeSpaceOther#1%
- \PE@EscapeName#1%
- }%
- \long\def\EdefEscapeString#1#2{%
- \EdefSanitize#1{#2}%
- \PE@SanitizeSpaceOther#1%
- \PE@EscapeString#1%
- }%
-\else
- \long\def\PE@edefbabel#1#2#3{%
- \begingroup
- \csname @save@activestrue\endcsname
- \edef#1{#2{#3}}%
- \expandafter\endgroup
- \expandafter\def\expandafter#1\expandafter{#1}%
- }%
- \long\def\EdefEscapeHex#1#2{%
- \PE@edefbabel#1\pdf@escapehex{#2}%
- }%
- \def\EdefUnescapeHex#1#2{%
- \PE@edefbabel#1\pdf@unescapehex{#2}%
- }%
- \long\def\EdefEscapeName#1#2{%
- \PE@edefbabel#1\pdf@escapename{#2}%
- }%
- \long\def\EdefEscapeString#1#2{%
- \PE@edefbabel#1\pdf@escapestring{#2}%
- }%
- \expandafter\PE@AtEnd
-\fi%
-\edef\PE@hash{\string#}
-\begingroup
- \escapechar=-1 %
-\edef\x{\endgroup
- \def\noexpand\PE@backslash{\string\\}%
-}
-\x
-\ltx@newif\ifPE@etex
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname numexpr\endcsname\relax
-\else
- \PE@etextrue
-\fi
-\ifPE@etex
- \def\PE@EscapeHex#1{%
- \edef#1{\expandafter\PE@ToHex#1\relax}%
- }%
-\else
- \def\PE@EscapeHex#1{%
- \def\PE@result{}%
- \expandafter\PE@ToHex#1\relax
- \let#1\PE@result
- }%
-\fi
-\def\PE@ToHex#1{%
- \ifx\relax#1%
- \else
- \PE@HexChar{#1}%
- \expandafter\PE@ToHex
- \fi
-}%
-\ifPE@etex
- \def\PE@HexChar#1{%
- \PE@HexDigit{\numexpr\dimexpr.0625\dimexpr`#1sp\relax\relax\relax}%
- \PE@HexDigit{%
- \numexpr`#1-16*\dimexpr.0625\dimexpr`#1sp\relax\relax\relax
- }%
- }%
-\else
- \def\PE@HexChar#1{%
- \dimen0=`#1sp%
- \dimen2=.0625\dimen0 %
- \advance\dimen0-16\dimen2 %
- \edef\PE@result{%
- \PE@result
- \PE@HexDigit{\dimen2 }%
- \PE@HexDigit{\dimen0 }%
- }%
- }%
-\fi
-\def\PE@HexDigit#1{%
- \expandafter\string
- \ifcase#1%
- 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or 8\or 9\or
- A\or B\or C\or D\or E\or F%
- \fi
-}
-\ifPE@etex
- \def\PE@OctChar#1{%
- \expandafter\PE@@OctChar
- \the\numexpr\dimexpr.015625\dimexpr`#1sp\relax\relax
- \expandafter\relax
- \expandafter\relax
- \the\numexpr\dimexpr.125\dimexpr`#1sp\relax\relax\relax
- \relax
- #1%
- }%
- \def\PE@@OctChar#1\relax#2\relax#3{%
- \PE@backslash
- #1%
- \the\numexpr#2-8*#1\relax
- \the\numexpr\dimexpr`#3sp\relax-8*#2\relax
- }%
-\else
- \def\PE@OctChar#1{%
- \dimen0=`#1sp%
- \dimen2=.125\dimen0 %
- \dimen4=.125\dimen2 %
- \advance\dimen0-8\dimen2 %
- \advance\dimen2-8\dimen4 %
- \edef\PE@result{%
- \PE@result
- \PE@backslash
- \number\dimen4 %
- \number\dimen2 %
- \number\dimen0 %
- }%
- }%
-\fi
-\def\PE@UnescapeHex#1{%
- \begingroup
- \PE@InitUccodeHexDigit
- \def\PE@result{}%
- \expandafter\PE@DeHex#1\relax\relax
- \expandafter\endgroup
- \expandafter\def\expandafter#1\expandafter{\PE@result}%
-}
-\def\PE@DeHex#1#2{%
- \ifx#2\relax
- \ifx#1\relax
- \let\PE@next\relax
- \else
- \uppercase{%
- \def\PE@testA{#1}%
- }%
- \ifcase\expandafter\PE@TestUcHexDigit\PE@testA
- \def\PE@next{%
- \PE@DeHex#10\relax\relax
- }%
- \else
- \let\PE@next\relax
- \fi
- \fi
- \else
- \uppercase{%
- \def\PE@testA{#1}%
- \def\PE@testB{#2}%
- }%
- \ifcase\expandafter\PE@TestUcHexDigit\PE@testA
- \ifcase\expandafter\PE@TestUcHexDigit\PE@testB
- \uccode\ltx@zero="\PE@testA\PE@testB\relax
- \ifnum\uccode\ltx@zero=32 %
- \let\PE@temp\PE@space@space
- \else
- \uppercase{%
- \def\PE@temp{^^@}%
- }%
- \fi
- \edef\PE@result{\PE@result\PE@temp}%
- \let\PE@next\PE@DeHex
- \else
- % invalid input sequence
- \def\PE@next{%
- \PE@DeHex#1%
- }%
- \fi
- \else
- % invalid input sequence
- \def\PE@next{\PE@DeHex#2}%
- \fi
- \fi
- \PE@next
-}
-\ifPE@etex
- \def\PE@EscapeName#1{%
- \edef#1{\expandafter\PE@EscapeNameTokens#1\relax}%
- }%
-\else
- \def\PE@EscapeName#1{%
- \def\PE@result{}%
- \expandafter\PE@EscapeNameTokens#1\relax
- \let#1\PE@result
- }%
-\fi
-\def\PE@EscapeNameTokens#1{%
- \ifx\relax#1%
- \else
- \ifnum`#1<33 %
- \ifcase`#1 %
- % drop illegal zero
- \else
- \PE@EscapeNameAdd\PE@hash
- \PE@HexChar#1%
- \fi
- \else
- \ifnum`#1>126 %
- \PE@EscapeNameAdd\PE@hash
- \PE@HexChar#1%
- \else \ifnum`#1=35 \PE@EscapeNameHashChar 23% #
- \else\ifnum`#1=37 \PE@EscapeNameHashChar 25% %
- \else\ifnum`#1=40 \PE@EscapeNameHashChar 28% (
- \else\ifnum`#1=41 \PE@EscapeNameHashChar 29% )
- \else\ifnum`#1=47 \PE@EscapeNameHashChar 2F% /
- \else\ifnum`#1=60 \PE@EscapeNameHashChar 3C% <
- \else\ifnum`#1=62 \PE@EscapeNameHashChar 3E% >
- \else\ifnum`#1=91 \PE@EscapeNameHashChar 5B% [
- \else\ifnum`#1=93 \PE@EscapeNameHashChar 5D% ]
- \else\ifnum`#1=123 \PE@EscapeNameHashChar 7B% {
- \else\ifnum`#1=125 \PE@EscapeNameHashChar 7D% }
- \else
- \PE@EscapeNameAdd{#1}%
- \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
- \fi
- \fi
- \expandafter\PE@EscapeNameTokens
- \fi
-}%
-\def\PE@EscapeNameHashChar#1#2{%
- \PE@EscapeNameAdd{\PE@hash\string#1\string#2}%
-}%
-\ifPE@etex
- \def\PE@EscapeNameAdd#1{#1}%
-\else
- \def\PE@EscapeNameAdd#1{%
- \edef\PE@result{%
- \PE@result
- #1%
- }%
- }%
-\fi
-\ifPE@etex
- \def\PE@EscapeString#1{%
- \edef#1{\expandafter\PE@EscapeStringTokens#1\relax}%
- }%
-\else
- \def\PE@EscapeString#1{%
- \begingroup
- \def\PE@result{}%
- \expandafter\PE@EscapeStringTokens#1\relax
- \expandafter\endgroup
- \expandafter\def\expandafter#1\expandafter{\PE@result}%
- }%
-\fi
-\def\PE@EscapeStringTokens#1{%
- \ifx\relax#1%
- \else
- \ifnum`#1<33 %
- \PE@OctChar#1%
- \else
- \ifnum`#1>126 %
- \PE@OctChar#1%
- \else \ifnum`#1=40 \PE@EscapeStringAdd{\string\(}% (
- \else\ifnum`#1=41 \PE@EscapeStringAdd{\string\)}% )
- \else\ifnum`#1=92 \PE@EscapeStringAdd{\string\\}% \
- \else
- \PE@EscapeStringAdd{#1}%
- \fi\fi\fi
- \fi
- \fi
- \expandafter\PE@EscapeStringTokens
- \fi
-}%
-\ifPE@etex
- \def\PE@EscapeStringAdd#1{#1}%
-\else
- \def\PE@EscapeStringAdd#1{%
- \edef\PE@result{%
- \PE@result
- #1%
- }%
- }%
-\fi
-\PE@AtEnd%
-%% \section{Installation}
-\endinput
-%%
-%% End of file `pdfescape.sty'.