From 3707e3785f1d6e36f8c2efb2aae533f4f4856d42 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 17 Dec 2019 23:31:05 +0000 Subject: oberdiek reduction (18dec19) git-svn-id: svn://tug.org/texlive/trunk@53174 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/generic/oberdiek/bigintcalc.sty | 1831 -------------------- .../texmf-dist/tex/generic/oberdiek/etexcmds.sty | 292 ---- .../tex/generic/oberdiek/gettitlestring.sty | 313 ---- Master/texmf-dist/tex/generic/oberdiek/intcalc.sty | 1734 ------------------ .../tex/generic/oberdiek/kvdefinekeys.sty | 196 --- .../texmf-dist/tex/generic/oberdiek/kvsetkeys.sty | 584 ------- Master/texmf-dist/tex/generic/oberdiek/ltxcmds.sty | 752 -------- .../texmf-dist/tex/generic/oberdiek/soulutf8.sty | 697 -------- .../tex/generic/oberdiek/uniquecounter.sty | 242 --- Master/texmf-dist/tex/latex/oberdiek/auxhook.sty | 144 -- Master/texmf-dist/tex/latex/oberdiek/hycolor.sty | 576 ------ Master/texmf-dist/tex/latex/oberdiek/refcount.sty | 403 ----- .../texmf-dist/tex/latex/oberdiek/xcolor-patch.sty | 197 --- 13 files changed, 7961 deletions(-) delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/bigintcalc.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/etexcmds.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/gettitlestring.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/intcalc.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/ltxcmds.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/soulutf8.sty delete mode 100644 Master/texmf-dist/tex/generic/oberdiek/uniquecounter.sty delete mode 100644 Master/texmf-dist/tex/latex/oberdiek/auxhook.sty delete mode 100644 Master/texmf-dist/tex/latex/oberdiek/hycolor.sty delete mode 100644 Master/texmf-dist/tex/latex/oberdiek/refcount.sty delete mode 100644 Master/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/generic/oberdiek/bigintcalc.sty b/Master/texmf-dist/tex/generic/oberdiek/bigintcalc.sty deleted file mode 100644 index 0638702a1ec..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/bigintcalc.sty +++ /dev/null @@ -1,1831 +0,0 @@ -%% -%% This is file `bigintcalc.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% bigintcalc.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: bigintcalc -%% Version: 2016/05/16 v1.4 -%% -%% Copyright (C) -%% 2007, 2011, 2012 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 bigintcalc.dtx -%% and the derived files -%% bigintcalc.sty, bigintcalc.pdf, bigintcalc.ins, bigintcalc.drv, -%% bigintcalc-test1.tex, bigintcalc-test2.tex, -%% bigintcalc-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@bigintcalc.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{bigintcalc}{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@bigintcalc.sty\endcsname -\ProvidesPackage{bigintcalc}% - [2016/05/16 v1.4 Expandable calculations on big integers (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname BIC@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\BIC@AtEnd{% - \BIC@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{33}{12}% ! -\TMP@EnsureCode{36}{14}% $ (comment!) -\TMP@EnsureCode{38}{14}% & (comment!) -\TMP@EnsureCode{40}{12}% ( -\TMP@EnsureCode{41}{12}% ) -\TMP@EnsureCode{42}{12}% * -\TMP@EnsureCode{43}{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}% ] -\edef\BIC@AtEnd{\BIC@AtEnd\noexpand\endinput} -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname BIC@TestMode\endcsname\relax -\else - \catcode63=9 % ? (ignore) -\fi -? \let\BIC@@TestMode\BIC@TestMode -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname numexpr\endcsname\relax - \catcode36=9 % $ (ignore) -\else - \catcode38=9 % & (ignore) -\fi -\let\BIC@Fi\fi -\def\BIC@AfterFi#1#2\BIC@Fi{\fi#1}% -\def\BIC@AfterFiFi#1#2\BIC@Fi{\fi\fi#1}% -\def\BIC@AfterFiFiFi#1#2\BIC@Fi{\fi\fi\fi#1}% -\begingroup - \def\x#1{\endgroup - \let\BIC@Space= #1% - }% -\x{ } -\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 - \def\BIC@Expand#1{% - \romannumeral0% - \BIC@@Expand#1!\@nil{}% - }% - \def\BIC@@Expand#1#2\@nil#3{% - \expandafter\ifcat\noexpand#1\relax - \expandafter\@firstoftwo - \else - \expandafter\@secondoftwo - \fi - {% - \expandafter\BIC@@Expand#1#2\@nil{#3}% - }{% - \ifx#1!% - \expandafter\@firstoftwo - \else - \expandafter\@secondoftwo - \fi - { #3}{% - \BIC@@Expand#2\@nil{#3#1}% - }% - }% - }% - \expandafter\ifx\csname @firstoftwo\endcsname\relax - \long\def\@firstoftwo#1#2{#1}% - \fi - \expandafter\ifx\csname @secondoftwo\endcsname\relax - \long\def\@secondoftwo#1#2{#2}% - \fi -\else - \def\BIC@Expand#1{% - \romannumeral0\expandafter\expandafter\expandafter\BIC@Space - \pdf@unescapehex{% - \expandafter\expandafter\expandafter - \BIC@StripHexSpace\pdf@escapehex{#1}20\@nil - }% - }% - \def\BIC@StripHexSpace#120#2\@nil{% - #1% - \ifx\\#2\\% - \else - \BIC@AfterFi{% - \BIC@StripHexSpace#2\@nil - }% - \BIC@Fi - }% -\fi -\def\BIC@Normalize#1#2{% - \ifx#2-% - \ifx\\#1\\% - \BIC@AfterFiFi{% - \BIC@Normalize-% - }% - \else - \BIC@AfterFiFi{% - \BIC@Normalize{}% - }% - \fi - \else - \ifx#2+% - \BIC@AfterFiFi{% - \BIC@Normalize{#1}% - }% - \else - \ifx#20% - \BIC@AfterFiFiFi{% - \BIC@NormalizeZero{#1}% - }% - \else - \BIC@AfterFiFiFi{% - \BIC@NormalizeDigits#1#2% - }% - \fi - \fi - \BIC@Fi -} -\def\BIC@NormalizeZero#1#2{% - \ifx#2!% - \BIC@AfterFi{ 0}% - \else - \ifx#20% - \BIC@AfterFiFi{% - \BIC@NormalizeZero{#1}% - }% - \else - \BIC@AfterFiFi{% - \BIC@NormalizeDigits#1#2% - }% - \fi - \BIC@Fi -} -\def\BIC@NormalizeDigits#1!{ #1} -\def\bigintcalcNum#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Normalize - \expandafter\expandafter\expandafter{% - \expandafter\expandafter\expandafter}% - \BIC@Expand{#1}!% -} -\def\bigintcalcInv#1{% - \romannumeral0\expandafter\expandafter\expandafter\BIC@Space - \bigintcalcNum{-#1}% -} -\def\bigintcalcAbs#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Abs - \bigintcalcNum{#1}% -} -\def\BIC@Abs#1{% - \ifx#1-% - \expandafter\BIC@Space - \else - \expandafter\BIC@Space - \expandafter#1% - \fi -} -\def\bigintcalcSgn#1{% - \number - \expandafter\expandafter\expandafter\BIC@Sgn - \bigintcalcNum{#1}! % -} -\def\BIC@Sgn#1#2!{% - \ifx#1-% - -1% - \else - \ifx#10% - 0% - \else - 1% - \fi - \fi -} -\def\bigintcalcCmp#1#2{% - \number - \expandafter\expandafter\expandafter\BIC@Cmp - \bigintcalcNum{#2}!{#1}% -} -\def\BIC@Cmp#1!#2{% - \expandafter\expandafter\expandafter\BIC@@Cmp - \bigintcalcNum{#2}!#1!% -} -\def\BIC@@Cmp#1#2!#3#4!{% - \ifx#1-% - \ifx#3-% - \BIC@AfterFiFi{% - \BIC@@Cmp#4!#2!% - }% - \else - \BIC@AfterFiFi{% - -1 % - }% - \fi - \else - \ifx#3-% - \BIC@AfterFiFi{% - 1 % - }% - \else - \BIC@AfterFiFi{% - \BIC@CmpLength#1#2!#3#4!#1#2!#3#4!% - }% - \fi - \BIC@Fi -} -\def\BIC@PosCmp#1!#2!{% - \BIC@CmpLength#1!#2!#1!#2!% -} -\def\BIC@CmpLength#1#2!#3#4!{% - \ifx\\#2\\% - \ifx\\#4\\% - \BIC@AfterFiFi\BIC@CmpDiff - \else - \BIC@AfterFiFi{% - \BIC@CmpResult{-1}% - }% - \fi - \else - \ifx\\#4\\% - \BIC@AfterFiFi{% - \BIC@CmpResult1% - }% - \else - \BIC@AfterFiFi{% - \BIC@CmpLength#2!#4!% - }% - \fi - \BIC@Fi -} -\def\BIC@CmpResult#1#2!#3!{#1 } -\def\BIC@CmpDiff#1#2!#3#4!{% - \ifnum#1<#3 % - \BIC@AfterFi{% - -1 % - }% - \else - \ifnum#1>#3 % - \BIC@AfterFiFi{% - 1 % - }% - \else - \ifx\\#2\\% - \BIC@AfterFiFiFi{% - 0 % - }% - \else - \BIC@AfterFiFiFi{% - \BIC@CmpDiff#2!#4!% - }% - \fi - \fi - \BIC@Fi -} -\def\bigintcalcMin#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@MinMax - \bigintcalcNum{#1}!-!% -} -\def\bigintcalcMax#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@MinMax - \bigintcalcNum{#1}!!% -} -\def\BIC@MinMax#1!#2!#3{% - \expandafter\expandafter\expandafter\BIC@@MinMax - \bigintcalcNum{#3}!#1!#2!% -} -\def\BIC@@MinMax#1!#2!#3!{% - \ifnum\BIC@@Cmp#1!#2!=#31 % - \BIC@AfterFi{ #1}% - \else - \BIC@AfterFi{ #2}% - \BIC@Fi -} -\def\bigintcalcOdd#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Odd - \bigintcalcAbs{#1}!% -} -\def\BigIntCalcOdd#1!{% - \romannumeral0% - \BIC@Odd#1!% -} -\def\BIC@Odd#1#2{% - \ifx#2!% - \ifodd#1 % - \BIC@AfterFiFi{ 1}% - \else - \BIC@AfterFiFi{ 0}% - \fi - \else - \expandafter\BIC@Odd\expandafter#2% - \BIC@Fi -} -\def\bigintcalcInc#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@IncSwitch - \bigintcalcNum{#1}!% -} -\def\BIC@IncSwitch#1#2!{% - \ifcase\BIC@@Cmp#1#2!-1!% - \BIC@AfterFi{ 0}% - \or - \BIC@AfterFi{% - \BIC@Inc#1#2!{}% - }% - \else - \BIC@AfterFi{% - \expandafter-\romannumeral0% - \BIC@Dec#2!{}% - }% - \BIC@Fi -} -\def\bigintcalcDec#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@DecSwitch - \bigintcalcNum{#1}!% -} -\def\BIC@DecSwitch#1#2!{% - \ifcase\BIC@Sgn#1#2! % - \BIC@AfterFi{ -1}% - \or - \BIC@AfterFi{% - \BIC@Dec#1#2!{}% - }% - \else - \BIC@AfterFi{% - \expandafter-\romannumeral0% - \BIC@Inc#2!{}% - }% - \BIC@Fi -} -\def\BigIntCalcInc#1!{% - \romannumeral0\BIC@Inc#1!{}% -} -\def\BigIntCalcDec#1!{% - \romannumeral0\BIC@Dec#1!{}% -} -\def\BIC@Inc#1#2!#3{% - \ifx\\#2\\% - \BIC@AfterFi{% - \BIC@@Inc1#1#3!{}% - }% - \else - \BIC@AfterFi{% - \BIC@Inc#2!{#1#3}% - }% - \BIC@Fi -} -\def\BIC@@Inc#1#2#3!#4{% - \ifcase#1 % - \ifx\\#3\\% - \BIC@AfterFiFi{ #2#4}% - \else - \BIC@AfterFiFi{% - \BIC@@Inc0#3!{#2#4}% - }% - \fi - \else - \ifnum#2<9 % - \BIC@AfterFiFi{% -& \expandafter\BIC@@@Inc\the\numexpr#2+1\relax -$ \expandafter\expandafter\expandafter\BIC@@@Inc -$ \ifcase#2 \expandafter1% -$ \or\expandafter2% -$ \or\expandafter3% -$ \or\expandafter4% -$ \or\expandafter5% -$ \or\expandafter6% -$ \or\expandafter7% -$ \or\expandafter8% -$ \or\expandafter9% -$? \else\BigIntCalcError:ThisCannotHappen% -$ \fi - 0#3!{#4}% - }% - \else - \BIC@AfterFiFi{% - \BIC@@@Inc01#3!{#4}% - }% - \fi - \BIC@Fi -} -\def\BIC@@@Inc#1#2#3!#4{% - \ifx\\#3\\% - \ifnum#2=1 % - \BIC@AfterFiFi{ 1#1#4}% - \else - \BIC@AfterFiFi{ #1#4}% - \fi - \else - \BIC@AfterFi{% - \BIC@@Inc#2#3!{#1#4}% - }% - \BIC@Fi -} -\def\BIC@Dec#1#2!#3{% - \ifx\\#2\\% - \BIC@AfterFi{% - \BIC@@Dec1#1#3!{}% - }% - \else - \BIC@AfterFi{% - \BIC@Dec#2!{#1#3}% - }% - \BIC@Fi -} -\def\BIC@@Dec#1#2#3!#4{% - \ifcase#1 % - \ifx\\#3\\% - \BIC@AfterFiFi{ #2#4}% - \else - \BIC@AfterFiFi{% - \BIC@@Dec0#3!{#2#4}% - }% - \fi - \else - \ifnum#2>0 % - \BIC@AfterFiFi{% -& \expandafter\BIC@@@Dec\the\numexpr#2-1\relax -$ \expandafter\expandafter\expandafter\BIC@@@Dec -$ \ifcase#2 -$? \BigIntCalcError:ThisCannotHappen% -$ \or\expandafter0% -$ \or\expandafter1% -$ \or\expandafter2% -$ \or\expandafter3% -$ \or\expandafter4% -$ \or\expandafter5% -$ \or\expandafter6% -$ \or\expandafter7% -$ \or\expandafter8% -$? \else\BigIntCalcError:ThisCannotHappen% -$ \fi - 0#3!{#4}% - }% - \else - \BIC@AfterFiFi{% - \BIC@@@Dec91#3!{#4}% - }% - \fi - \BIC@Fi -} -\def\BIC@@@Dec#1#2#3!#4{% - \ifx\\#3\\% - \ifcase#1 % - \ifx\\#4\\% - \BIC@AfterFiFiFi{ 0}% - \else - \BIC@AfterFiFiFi{ #4}% - \fi - \else - \BIC@AfterFiFi{ #1#4}% - \fi - \else - \BIC@AfterFi{% - \BIC@@Dec#2#3!{#1#4}% - }% - \BIC@Fi -} -\def\bigintcalcAdd#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Add - \bigintcalcNum{#1}!% -} -\def\BIC@Add#1!#2{% - \expandafter\expandafter\expandafter - \BIC@AddSwitch\bigintcalcNum{#2}!#1!% -} -\def\bigintcalcSub#1#2{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Add - \bigintcalcNum{-#2}!{#1}% -} -\def\BIC@AddSwitch#1#2!#3#4!{% - \ifx#1-% x < 0 - \ifx#3-% y < 0 - \expandafter-\romannumeral0% - \ifnum\BIC@PosCmp#2!#4!=1 % -x > -y - \BIC@AfterFiFiFi{% - \BIC@AddXY#2!#4!!!% - }% - \else % -x <= -y - \BIC@AfterFiFiFi{% - \BIC@AddXY#4!#2!!!% - }% - \fi - \else % y >= 0 - \ifcase\BIC@PosCmp#2!#3#4!% -x = y - \BIC@AfterFiFiFi{ 0}% - \or % -x > y - \expandafter-\romannumeral0% - \BIC@AfterFiFiFi{% - \BIC@SubXY#2!#3#4!!!% - }% - \else % -x <= y - \BIC@AfterFiFiFi{% - \BIC@SubXY#3#4!#2!!!% - }% - \fi - \fi - \else % x >= 0 - \ifx#3-% y < 0 - \ifcase\BIC@PosCmp#1#2!#4!% x = -y - \BIC@AfterFiFiFi{ 0}% - \or % x > -y - \BIC@AfterFiFiFi{% - \BIC@SubXY#1#2!#4!!!% - }% - \else % x <= -y - \expandafter-\romannumeral0% - \BIC@AfterFiFiFi{% - \BIC@SubXY#4!#1#2!!!% - }% - \fi - \else % y >= 0 - \ifnum\BIC@PosCmp#1#2!#3#4!=1 % x > y - \BIC@AfterFiFiFi{% - \BIC@AddXY#1#2!#3#4!!!% - }% - \else % x <= y - \BIC@AfterFiFiFi{% - \BIC@AddXY#3#4!#1#2!!!% - }% - \fi - \fi - \BIC@Fi -} -\def\BigIntCalcAdd#1!#2!{% - \romannumeral0\BIC@AddXY#1!#2!!!% -} -\def\BigIntCalcSub#1!#2!{% - \romannumeral0\BIC@SubXY#1!#2!!!% -} -\def\BIC@AddXY#1#2!#3#4!#5!#6!{% - \ifx\\#2\\% - \ifx\\#3\\% - \BIC@AfterFiFi{% - \BIC@DoAdd0!#1#5!#60!% - }% - \else - \BIC@AfterFiFi{% - \BIC@DoAdd0!#1#5!#3#6!% - }% - \fi - \else - \ifx\\#4\\% - \ifx\\#3\\% - \BIC@AfterFiFiFi{% - \BIC@AddXY#2!{}!#1#5!#60!% - }% - \else - \BIC@AfterFiFiFi{% - \BIC@AddXY#2!{}!#1#5!#3#6!% - }% - \fi - \else - \BIC@AfterFiFi{% - \BIC@AddXY#2!#4!#1#5!#3#6!% - }% - \fi - \BIC@Fi -} -\def\BIC@DoAdd#1#2!#3#4!#5#6!{% - \ifx\\#4\\% - \BIC@AfterFi{% -& \expandafter\BIC@Space -& \the\numexpr#1+#3+#5\relax#2% -$ \expandafter\expandafter\expandafter\BIC@AddResult -$ \BIC@AddDigit#1#3#5#2% - }% - \else - \BIC@AfterFi{% - \expandafter\expandafter\expandafter\BIC@DoAdd - \BIC@AddDigit#1#3#5#2!#4!#6!% - }% - \BIC@Fi -} -$ \def\BIC@AddResult#1{% -$ \ifx#10% -$ \expandafter\BIC@Space -$ \else -$ \expandafter\BIC@Space\expandafter#1% -$ \fi -$ }% -\def\BIC@AddDigit#1#2#3{% - \romannumeral0% -& \expandafter\BIC@@AddDigit\the\numexpr#1+#2+#3!% -$ \expandafter\BIC@@AddDigit\number% -$ \csname -$ BIC@AddCarry% -$ \ifcase#1 % -$ #2% -$ \else -$ \ifcase#2 1\or2\or3\or4\or5\or6\or7\or8\or9\or10\fi -$ \fi -$ \endcsname#3!% -} -\def\BIC@@AddDigit#1!{% - \ifnum#1<10 % - \BIC@AfterFi{ 0#1}% - \else - \BIC@AfterFi{ #1}% - \BIC@Fi -} -$ \expandafter\def\csname BIC@AddCarry0\endcsname#1{#1}% -$ \expandafter\def\csname BIC@AddCarry10\endcsname#1{1#1}% -$ \def\BIC@Temp#1#2{% -$ \expandafter\def\csname BIC@AddCarry#1\endcsname##1{% -$ \ifcase##1 #1\or -$ #2% -$? \else\BigIntCalcError:ThisCannotHappen% -$ \fi -$ }% -$ }% -$ \BIC@Temp 0{1\or2\or3\or4\or5\or6\or7\or8\or9}% -$ \BIC@Temp 1{2\or3\or4\or5\or6\or7\or8\or9\or10}% -$ \BIC@Temp 2{3\or4\or5\or6\or7\or8\or9\or10\or11}% -$ \BIC@Temp 3{4\or5\or6\or7\or8\or9\or10\or11\or12}% -$ \BIC@Temp 4{5\or6\or7\or8\or9\or10\or11\or12\or13}% -$ \BIC@Temp 5{6\or7\or8\or9\or10\or11\or12\or13\or14}% -$ \BIC@Temp 6{7\or8\or9\or10\or11\or12\or13\or14\or15}% -$ \BIC@Temp 7{8\or9\or10\or11\or12\or13\or14\or15\or16}% -$ \BIC@Temp 8{9\or10\or11\or12\or13\or14\or15\or16\or17}% -$ \BIC@Temp 9{10\or11\or12\or13\or14\or15\or16\or17\or18}% -\def\BIC@SubXY#1#2!#3#4!#5!#6!{% - \ifx\\#2\\% - \ifx\\#3\\% - \BIC@AfterFiFi{% - \BIC@DoSub0!#1#5!#60!% - }% - \else - \BIC@AfterFiFi{% - \BIC@DoSub0!#1#5!#3#6!% - }% - \fi - \else - \ifx\\#4\\% - \ifx\\#3\\% - \BIC@AfterFiFiFi{% - \BIC@SubXY#2!{}!#1#5!#60!% - }% - \else - \BIC@AfterFiFiFi{% - \BIC@SubXY#2!{}!#1#5!#3#6!% - }% - \fi - \else - \BIC@AfterFiFi{% - \BIC@SubXY#2!#4!#1#5!#3#6!% - }% - \fi - \BIC@Fi -} -\def\BIC@DoSub#1#2!#3#4!#5#6!{% - \ifx\\#4\\% - \BIC@AfterFi{% - \expandafter\expandafter\expandafter\BIC@SubResult - \BIC@SubDigit#1#3#5#2% - }% - \else - \BIC@AfterFi{% - \expandafter\expandafter\expandafter\BIC@DoSub - \BIC@SubDigit#1#3#5#2!#4!#6!% - }% - \BIC@Fi -} -\def\BIC@SubResult#1{% - \ifx#10% - \expandafter\BIC@SubResult - \else - \expandafter\BIC@Space\expandafter#1% - \fi -} -\def\BIC@SubDigit#1#2#3{% - \romannumeral0% -& \expandafter\BIC@@SubDigit\the\numexpr#2-#3-#1!% -$ \expandafter\BIC@@AddDigit\number -$ \csname -$ BIC@SubCarry% -$ \ifcase#1 % -$ #3% -$ \else -$ \ifcase#3 1\or2\or3\or4\or5\or6\or7\or8\or9\or10\fi -$ \fi -$ \endcsname#2!% -} -& \def\BIC@@SubDigit#1!{% -& \ifnum#1<0 % -& \BIC@AfterFi{% -& \expandafter\BIC@Space -& \expandafter1\the\numexpr#1+10\relax -& }% -& \else -& \BIC@AfterFi{ 0#1}% -& \BIC@Fi -& }% -$ \expandafter\def\csname BIC@SubCarry0\endcsname#1{#1}% -$ \expandafter\def\csname BIC@SubCarry10\endcsname#1{1#1}% -$ \def\BIC@Temp#1#2{% -$ \expandafter\def\csname BIC@SubCarry#1\endcsname##1{% -$ \ifcase##1 #2% -$? \else\BigIntCalcError:ThisCannotHappen% -$ \fi -$ }% -$ }% -$ \BIC@Temp 1{19\or0\or1\or2\or3\or4\or5\or6\or7\or8}% -$ \BIC@Temp 2{18\or19\or0\or1\or2\or3\or4\or5\or6\or7}% -$ \BIC@Temp 3{17\or18\or19\or0\or1\or2\or3\or4\or5\or6}% -$ \BIC@Temp 4{16\or17\or18\or19\or0\or1\or2\or3\or4\or5}% -$ \BIC@Temp 5{15\or16\or17\or18\or19\or0\or1\or2\or3\or4}% -$ \BIC@Temp 6{14\or15\or16\or17\or18\or19\or0\or1\or2\or3}% -$ \BIC@Temp 7{13\or14\or15\or16\or17\or18\or19\or0\or1\or2}% -$ \BIC@Temp 8{12\or13\or14\or15\or16\or17\or18\or19\or0\or1}% -$ \BIC@Temp 9{11\or12\or13\or14\or15\or16\or17\or18\or19\or0}% -\def\bigintcalcShl#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Shl - \bigintcalcNum{#1}!% -} -\def\BIC@Shl#1#2!{% - \ifx#1-% - \BIC@AfterFi{% - \expandafter-\romannumeral0% -& \BIC@@Shl#2!!% -$ \BIC@AddXY#2!#2!!!% - }% - \else - \BIC@AfterFi{% -& \BIC@@Shl#1#2!!% -$ \BIC@AddXY#1#2!#1#2!!!% - }% - \BIC@Fi -} -\def\BigIntCalcShl#1!{% - \romannumeral0% -& \BIC@@Shl#1!!% -$ \BIC@AddXY#1!#1!!!% -} -& \def\BIC@@Shl#1#2!{% -& \ifx\\#2\\% -& \BIC@AfterFi{% -& \BIC@@@Shl0!#1% -& }% -& \else -& \BIC@AfterFi{% -& \BIC@@Shl#2!#1% -& }% -& \BIC@Fi -& }% -& \def\BIC@@@Shl#1#2!#3#4!{% -& \ifx\\#4\\% -& \BIC@AfterFi{% -& \expandafter\BIC@Space -& \the\numexpr#3*2+#1\relax#2% -& }% -& \else -& \BIC@AfterFi{% -& \expandafter\BIC@@@@Shl\the\numexpr#3*2+#1!#2!#4!% -& }% -& \BIC@Fi -& }% -& \def\BIC@@@@Shl#1!{% -& \ifnum#1<10 % -& \BIC@AfterFi{% -& \BIC@@@Shl0#1% -& }% -& \else -& \BIC@AfterFi{% -& \BIC@@@Shl#1% -& }% -& \BIC@Fi -& }% -\def\bigintcalcShr#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Shr - \bigintcalcNum{#1}!% -} -\def\BIC@Shr#1#2!{% - \ifx#1-% - \expandafter-\romannumeral0% - \BIC@AfterFi{% - \BIC@@Shr#2!% - }% - \else - \BIC@AfterFi{% - \BIC@@Shr#1#2!% - }% - \BIC@Fi -} -\def\BigIntCalcShr#1!{% - \romannumeral0% - \BIC@@Shr#1!% -} -\def\BIC@@Shr#1#2!{% - \ifcase#1 % - \BIC@AfterFi{ 0}% - \or - \ifx\\#2\\% - \BIC@AfterFiFi{ 0}% - \else - \BIC@AfterFiFi{% - \BIC@@@Shr#1#2!!% - }% - \fi - \else - \BIC@AfterFi{% - \BIC@@@Shr0#1#2!!% - }% - \BIC@Fi -} -\def\BIC@@@Shr#1#2#3!#4!{% - \ifx\\#3\\% - \ifodd#1#2 % - \BIC@AfterFiFi{% -& \expandafter\BIC@ShrResult\the\numexpr(#1#2-1)/2\relax -$ \expandafter\expandafter\expandafter\BIC@ShrResult -$ \csname BIC@ShrDigit#1#2\endcsname - #4!% - }% - \else - \BIC@AfterFiFi{% -& \expandafter\BIC@ShrResult\the\numexpr#1#2/2\relax -$ \expandafter\expandafter\expandafter\BIC@ShrResult -$ \csname BIC@ShrDigit#1#2\endcsname - #4!% - }% - \fi - \else - \ifodd#1#2 % - \BIC@AfterFiFi{% -& \expandafter\BIC@@@@Shr\the\numexpr(#1#2-1)/2\relax1% -$ \expandafter\expandafter\expandafter\BIC@@@@Shr -$ \csname BIC@ShrDigit#1#2\endcsname - #3!#4!% - }% - \else - \BIC@AfterFiFi{% -& \expandafter\BIC@@@@Shr\the\numexpr#1#2/2\relax0% -$ \expandafter\expandafter\expandafter\BIC@@@@Shr -$ \csname BIC@ShrDigit#1#2\endcsname - #3!#4!% - }% - \fi - \BIC@Fi -} -& \def\BIC@ShrResult#1#2!{ #2#1}% -$ \def\BIC@ShrResult#1#2#3!{ #3#1}% -\def\BIC@@@@Shr#1#2#3!#4!{% - \BIC@@@Shr#2#3!#4#1!% -} -$ \def\BIC@Temp#1#2#3#4{% -$ \expandafter\def\csname BIC@ShrDigit#1#2\endcsname{#3#4}% -$ }% -$ \BIC@Temp 0000% -$ \BIC@Temp 0101% -$ \BIC@Temp 0210% -$ \BIC@Temp 0311% -$ \BIC@Temp 0420% -$ \BIC@Temp 0521% -$ \BIC@Temp 0630% -$ \BIC@Temp 0731% -$ \BIC@Temp 0840% -$ \BIC@Temp 0941% -$ \BIC@Temp 1050% -$ \BIC@Temp 1151% -$ \BIC@Temp 1260% -$ \BIC@Temp 1361% -$ \BIC@Temp 1470% -$ \BIC@Temp 1571% -$ \BIC@Temp 1680% -$ \BIC@Temp 1781% -$ \BIC@Temp 1890% -$ \BIC@Temp 1991% -\def\BIC@Tim#1!#2{% - \romannumeral0% - \ifcase#2 % 0 - \BIC@AfterFi{ 0}% - \or % 1 - \BIC@AfterFi{ #1}% - \or % 2 - \BIC@AfterFi{% - \BIC@Shl#1!% - }% - \else % 3-9 - \BIC@AfterFi{% - \BIC@@Tim#1!!#2% - }% - \BIC@Fi -} -\def\BIC@@Tim#1#2!{% - \ifx\\#2\\% - \BIC@AfterFi{% - \BIC@ProcessTim0!#1% - }% - \else - \BIC@AfterFi{% - \BIC@@Tim#2!#1% - }% - \BIC@Fi -} -\def\BIC@ProcessTim#1#2!#3#4!#5{% - \ifx\\#4\\% - \BIC@AfterFi{% - \expandafter\BIC@Space -& \the\numexpr#3*#5+#1\relax -$ \romannumeral0\BIC@TimDigit#3#5#1% - #2% - }% - \else - \BIC@AfterFi{% - \expandafter\BIC@@ProcessTim -& \the\numexpr#3*#5+#1% -$ \romannumeral0\BIC@TimDigit#3#5#1% - !#2!#4!#5% - }% - \BIC@Fi -} -\def\BIC@@ProcessTim#1#2!{% - \ifx\\#2\\% - \BIC@AfterFi{% - \BIC@ProcessTim0#1% - }% - \else - \BIC@AfterFi{% - \BIC@ProcessTim#1#2% - }% - \BIC@Fi -} -$ \def\BIC@TimDigit#1#2#3{% -$ \ifcase#1 % 0 -$ \BIC@AfterFi{ #3}% -$ \or % 1 -$ \BIC@AfterFi{% -$ \expandafter\BIC@Space -$ \number\csname BIC@AddCarry#2\endcsname#3 % -$ }% -$ \else -$ \ifcase#3 % -$ \BIC@AfterFiFi{% -$ \expandafter\BIC@Space -$ \number\csname BIC@MulDigit#2\endcsname#1 % -$ }% -$ \else -$ \BIC@AfterFiFi{% -$ \expandafter\BIC@Space -$ \romannumeral0% -$ \expandafter\BIC@AddXY -$ \number\csname BIC@MulDigit#2\endcsname#1!% -$ #3!!!% -$ }% -$ \fi -$ \BIC@Fi -$ }% -$ \def\BIC@Temp#1#2{% -$ \expandafter\def\csname BIC@MulDigit#1\endcsname##1{% -$ \ifcase##1 0% -$ \or ##1% -$ \or #2% -$? \else\BigIntCalcError:ThisCannotHappen% -$ \fi -$ }% -$ }% -$ \BIC@Temp 3{6\or9\or12\or15\or18\or21\or24\or27}% -$ \BIC@Temp 4{8\or12\or16\or20\or24\or28\or32\or36}% -$ \BIC@Temp 5{10\or15\or20\or25\or30\or35\or40\or45}% -$ \BIC@Temp 6{12\or18\or24\or30\or36\or42\or48\or54}% -$ \BIC@Temp 7{14\or21\or28\or35\or42\or49\or56\or63}% -$ \BIC@Temp 8{16\or24\or32\or40\or48\or56\or64\or72}% -$ \BIC@Temp 9{18\or27\or36\or45\or54\or63\or72\or81}% -\def\bigintcalcMul#1#2{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Mul - \bigintcalcNum{#1}!{#2}% -} -\def\BIC@Mul#1!#2{% - \expandafter\expandafter\expandafter\BIC@MulSwitch - \bigintcalcNum{#2}!#1!% -} -\def\BIC@MulSwitch#1#2!#3#4!{% - \ifcase\BIC@Sgn#1#2! % x = 0 - \BIC@AfterFi{ 0}% - \or % x > 0 - \ifcase\BIC@Sgn#3#4! % y = 0 - \BIC@AfterFiFi{ 0}% - \or % y > 0 - \ifnum\BIC@PosCmp#1#2!#3#4!=1 % x > y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#1#2!#3#4!% - }% - \else % x <= y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#3#4!#1#2!% - }% - \fi - \else % y < 0 - \expandafter-\romannumeral0% - \ifnum\BIC@PosCmp#1#2!#4!=1 % x > -y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#1#2!#4!% - }% - \else % x <= -y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#4!#1#2!% - }% - \fi - \fi - \else % x < 0 - \ifcase\BIC@Sgn#3#4! % y = 0 - \BIC@AfterFiFi{ 0}% - \or % y > 0 - \expandafter-\romannumeral0% - \ifnum\BIC@PosCmp#2!#3#4!=1 % -x > y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#2!#3#4!% - }% - \else % -x <= y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#3#4!#2!% - }% - \fi - \else % y < 0 - \ifnum\BIC@PosCmp#2!#4!=1 % -x > -y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#2!#4!% - }% - \else % -x <= -y - \BIC@AfterFiFiFi{% - \BIC@ProcessMul0!#4!#2!% - }% - \fi - \fi - \BIC@Fi -} -\def\BigIntCalcMul#1!#2!{% - \romannumeral0% - \BIC@ProcessMul0!#1!#2!% -} -\def\BIC@ProcessMul#1!#2!#3#4!{% - \ifx\\#4\\% - \BIC@AfterFi{% - \expandafter\expandafter\expandafter\BIC@Space - \bigintcalcAdd{\BIC@Tim#2!#3}{#10}% - }% - \else - \BIC@AfterFi{% - \expandafter\expandafter\expandafter\BIC@ProcessMul - \bigintcalcAdd{\BIC@Tim#2!#3}{#10}!#2!#4!% - }% - \BIC@Fi -} -\def\bigintcalcSqr#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Sqr - \bigintcalcNum{#1}!% -} -\def\BIC@Sqr#1{% - \ifx#1-% - \expandafter\BIC@@Sqr - \else - \expandafter\BIC@@Sqr\expandafter#1% - \fi -} -\def\BIC@@Sqr#1!{% - \BIC@ProcessMul0!#1!#1!% -} -\def\bigintcalcFac#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Fac - \bigintcalcNum{#1}!% -} -\def\BIC@Fac#1#2!{% - \ifx#1-% - \BIC@AfterFi{ 0\BigIntCalcError:FacNegative}% - \else - \ifnum\BIC@PosCmp#1#2!13!<0 % - \ifcase#1#2 % - \BIC@AfterFiFiFi{ 1}% 0! - \or\BIC@AfterFiFiFi{ 1}% 1! - \or\BIC@AfterFiFiFi{ 2}% 2! - \or\BIC@AfterFiFiFi{ 6}% 3! - \or\BIC@AfterFiFiFi{ 24}% 4! - \or\BIC@AfterFiFiFi{ 120}% 5! - \or\BIC@AfterFiFiFi{ 720}% 6! - \or\BIC@AfterFiFiFi{ 5040}% 7! - \or\BIC@AfterFiFiFi{ 40320}% 8! - \or\BIC@AfterFiFiFi{ 362880}% 9! - \or\BIC@AfterFiFiFi{ 3628800}% 10! - \or\BIC@AfterFiFiFi{ 39916800}% 11! - \or\BIC@AfterFiFiFi{ 479001600}% 12! -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \else - \BIC@AfterFiFi{% - \BIC@ProcessFac#1#2!479001600!% - }% - \fi - \BIC@Fi -} -\def\BIC@ProcessFac#1!#2!{% - \ifnum\BIC@PosCmp#1!12!=0 % - \BIC@AfterFi{ #2}% - \else - \BIC@AfterFi{% - \expandafter\BIC@@ProcessFac - \romannumeral0\BIC@ProcessMul0!#2!#1!% - !#1!% - }% - \BIC@Fi -} -\def\BIC@@ProcessFac#1!#2!{% - \expandafter\BIC@ProcessFac - \romannumeral0\BIC@Dec#2!{}% - !#1!% -} -\def\bigintcalcPow#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Pow - \bigintcalcNum{#1}!% -} -\def\BIC@Pow#1!#2{% - \expandafter\expandafter\expandafter\BIC@PowSwitch - \bigintcalcNum{#2}!#1!% -} -\def\BIC@PowSwitch#1#2!#3#4!{% - \ifcase\ifx\\#2\\% - \ifx#100 % y = 0 - \else\ifx#111 % y = 1 - \else\ifx#122 % y = 2 - \else4 % y > 2 - \fi\fi\fi - \else - \ifx#1-3 % y < 0 - \else4 % y > 2 - \fi - \fi - \BIC@AfterFi{ 1}% y = 0 - \or % y = 1 - \BIC@AfterFi{ #3#4}% - \or % y = 2 - \ifx#3-% x < 0 - \BIC@AfterFiFi{% - \BIC@ProcessMul0!#4!#4!% - }% - \else % x >= 0 - \BIC@AfterFiFi{% - \BIC@ProcessMul0!#3#4!#3#4!% - }% - \fi - \or % y < 0 - \ifcase\ifx\\#4\\% - \ifx#300 % x = 0 - \else\ifx#311 % x = 1 - \else3 % x > 1 - \fi\fi - \else - \ifcase\BIC@MinusOne#3#4! % - 3 % |x| > 1 - \or - 2 % x = -1 -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \fi - \BIC@AfterFiFi{ 0\BigIntCalcError:DivisionByZero}% x = 0 - \or % x = 1 - \BIC@AfterFiFi{ 1}% x = 1 - \or % x = -1 - \ifcase\BIC@ModTwo#2! % even(y) - \BIC@AfterFiFiFi{ 1}% - \or % odd(y) - \BIC@AfterFiFiFi{ -1}% -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \or % |x| > 1 - \BIC@AfterFiFi{ 0}% -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \or % y > 2 - \ifcase\ifx\\#4\\% - \ifx#300 % x = 0 - \else\ifx#311 % x = 1 - \else4 % x > 1 - \fi\fi - \else - \ifx#3-% - \ifcase\BIC@MinusOne#3#4! % - 3 % x < -1 - \else - 2 % x = -1 - \fi - \else - 4 % x > 1 - \fi - \fi - \BIC@AfterFiFi{ 0}% x = 0 - \or % x = 1 - \BIC@AfterFiFi{ 1}% x = 1 - \or % x = -1 - \ifcase\BIC@ModTwo#1#2! % even(y) - \BIC@AfterFiFiFi{ 1}% - \or % odd(y) - \BIC@AfterFiFiFi{ -1}% -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \or % x < -1 - \ifcase\BIC@ModTwo#1#2! % even(y) - \BIC@AfterFiFiFi{% - \BIC@PowRec#4!#1#2!1!% - }% - \or % odd(y) - \expandafter-\romannumeral0% - \BIC@AfterFiFiFi{% - \BIC@PowRec#4!#1#2!1!% - }% -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \or % x > 1 - \BIC@AfterFiFi{% - \BIC@PowRec#3#4!#1#2!1!% - }% -? \else\BigIntCalcError:ThisCannotHappen% - \fi -? \else\BigIntCalcError:ThisCannotHappen% - \BIC@Fi -} -\def\BIC@ModTwo#1#2!{% - \ifx\\#2\\% - \ifodd#1 % - \BIC@AfterFiFi1% - \else - \BIC@AfterFiFi0% - \fi - \else - \BIC@AfterFi{% - \BIC@ModTwo#2!% - }% - \BIC@Fi -} -\def\BIC@MinusOne#1#2!{% - \ifx#1-% - \BIC@@MinusOne#2!% - \else - 0% - \fi -} -\def\BIC@@MinusOne#1#2!{% - \ifx#11% - \ifx\\#2\\% - 1% - \else - 0% - \fi - \else - 0% - \fi -} -\def\BIC@PowRec#1!#2#3!#4!{% - \ifcase\ifx#21\ifx\\#3\\0 \else1 \fi\else1 \fi % y = 1 - \ifnum\BIC@PosCmp#1!#4!=1 % x > r - \BIC@AfterFiFi{% - \BIC@ProcessMul0!#1!#4!% - }% - \else - \BIC@AfterFiFi{% - \BIC@ProcessMul0!#4!#1!% - }% - \fi - \or - \ifcase\BIC@ModTwo#2#3! % even(y) - \BIC@AfterFiFi{% - \expandafter\BIC@@PowRec\romannumeral0% - \BIC@@Shr#2#3!% - !#1!#4!% - }% - \or % odd(y) - \ifnum\BIC@PosCmp#1!#4!=1 % x > r - \BIC@AfterFiFiFi{% - \expandafter\BIC@@@PowRec\romannumeral0% - \BIC@ProcessMul0!#1!#4!% - !#1!#2#3!% - }% - \else - \BIC@AfterFiFiFi{% - \expandafter\BIC@@@PowRec\romannumeral0% - \BIC@ProcessMul0!#1!#4!% - !#1!#2#3!% - }% - \fi -? \else\BigIntCalcError:ThisCannotHappen% - \fi -? \else\BigIntCalcError:ThisCannotHappen% - \BIC@Fi -} -\def\BIC@@PowRec#1!#2!#3!{% - \expandafter\BIC@PowRec\romannumeral0% - \BIC@ProcessMul0!#2!#2!% - !#1!#3!% -} -\def\BIC@@@PowRec#1!#2!#3!{% - \expandafter\BIC@@PowRec\romannumeral0% - \BIC@@Shr#3!% - !#2!#1!% -} -\def\bigintcalcDiv#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Div - \bigintcalcNum{#1}!% -} -\def\BIC@Div#1!#2{% - \expandafter\expandafter\expandafter\BIC@DivSwitchSign - \bigintcalcNum{#2}!#1!% -} -\def\BigIntCalcDiv#1!#2!{% - \romannumeral0% - \BIC@DivSwitchSign#2!#1!% -} -\def\BIC@DivSwitchSign#1#2!#3#4!{% - \ifcase\BIC@Sgn#1#2! % y = 0 - \BIC@AfterFi{ 0\BigIntCalcError:DivisionByZero}% - \or % y > 0 - \ifcase\BIC@Sgn#3#4! % x = 0 - \BIC@AfterFiFi{ 0}% - \or % x > 0 - \BIC@AfterFiFi{% - \BIC@DivSwitch{}#3#4!#1#2!% - }% - \else % x < 0 - \BIC@AfterFiFi{% - \BIC@DivSwitch-#4!#1#2!% - }% - \fi - \else % y < 0 - \ifcase\BIC@Sgn#3#4! % x = 0 - \BIC@AfterFiFi{ 0}% - \or % x > 0 - \BIC@AfterFiFi{% - \BIC@DivSwitch-#3#4!#2!% - }% - \else % x < 0 - \BIC@AfterFiFi{% - \BIC@DivSwitch{}#4!#2!% - }% - \fi - \BIC@Fi -} -\def\BIC@DivSwitch#1#2!#3#4!{% - \ifcase\BIC@PosCmp#3#4!#2!% y = x - \BIC@AfterFi{ #11}% - \or % y > x - \BIC@AfterFi{ 0}% - \else % y < x - \ifx\\#1\\% - \else - \expandafter-\romannumeral0% - \fi - \ifcase\ifx\\#4\\% - \ifx#310 % y = 1 - \else\ifx#321 % y = 2 - \else\ifx#342 % y = 4 - \else3 % y > 2 - \fi\fi\fi - \else - 3 % y > 2 - \fi - \BIC@AfterFiFi{ #2}% y = 1 - \or % y = 2 - \BIC@AfterFiFi{% - \BIC@@Shr#2!% - }% - \or % y = 4 - \BIC@AfterFiFi{% - \expandafter\BIC@@Shr\romannumeral0% - \BIC@@Shr#2!!% - }% - \or % y > 2 - \BIC@AfterFiFi{% - \BIC@DivStartX#2!#3#4!!!% - }% -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \BIC@Fi -} -\def\BIC@DivStartX#1#2!#3#4!#5!#6!{% - \ifx\\#4\\% - \BIC@AfterFi{% - \BIC@DivStartYii#6#3#4!{#5#1}#2=!% - }% - \else - \BIC@AfterFi{% - \BIC@DivStartX#2!#4!#5#1!#6#3!% - }% - \BIC@Fi -} -\def\BIC@DivStartYii#1!{% - \expandafter\BIC@DivStartYiv\romannumeral0% - \BIC@Shl#1!% - !#1!% -} -\def\BIC@DivStartYiv#1!{% - \expandafter\BIC@DivStartYvi\romannumeral0% - \BIC@Shl#1!% - !#1!% -} -\def\BIC@DivStartYvi#1!#2!{% - \expandafter\BIC@DivStartYviii\romannumeral0% - \BIC@AddXY#1!#2!!!% - !#1!#2!% -} -\def\BIC@DivStartYviii#1!#2!{% - \expandafter\BIC@DivStart\romannumeral0% - \BIC@Shl#2!% - !#1!#2!% -} -\def\BIC@DivStart#1!#2!#3!#4!#5!#6!{% - \BIC@ProcessDiv#6!!#5!#4!#3!#2!#1!=% -} -\def\BIC@ProcessDiv#1#2#3!#4!#5!{% - \ifcase\BIC@PosCmp#5!#1!% y = #1 - \ifx#2=% - \BIC@AfterFiFi{\BIC@DivCleanup{#41}}% - \else - \BIC@AfterFiFi{% - \BIC@ProcessDiv#2#3!#41!#5!% - }% - \fi - \or % y > #1 - \ifx#2=% - \BIC@AfterFiFi{\BIC@DivCleanup{#40}}% - \else - \ifx\\#4\\% - \BIC@AfterFiFiFi{% - \BIC@ProcessDiv{#1#2}#3!!#5!% - }% - \else - \BIC@AfterFiFiFi{% - \BIC@ProcessDiv{#1#2}#3!#40!#5!% - }% - \fi - \fi - \else % y < #1 - \BIC@AfterFi{% - \BIC@@ProcessDiv{#1}#2#3!#4!#5!% - }% - \BIC@Fi -} -\def\BIC@DivCleanup#1#2={ #1}% -\def\BIC@@ProcessDiv#1#2#3!#4!#5!#6!#7!{% - \ifcase\BIC@PosCmp#7!#1!% 4y = #1 - \ifx#2=% - \BIC@AfterFiFi{\BIC@DivCleanup{#44}}% - \else - \BIC@AfterFiFi{% - \BIC@ProcessDiv#2#3!#44!#5!#6!#7!% - }% - \fi - \or % 4y > #1 - \ifcase\BIC@PosCmp#6!#1!% 2y = #1 - \ifx#2=% - \BIC@AfterFiFiFi{\BIC@DivCleanup{#42}}% - \else - \BIC@AfterFiFiFi{% - \BIC@ProcessDiv#2#3!#42!#5!#6!#7!% - }% - \fi - \or % 2y > #1 - \ifx#2=% - \BIC@AfterFiFiFi{\BIC@DivCleanup{#41}}% - \else - \BIC@AfterFiFiFi{% - \BIC@DivSub#1!#5!#2#3!#41!#5!#6!#7!% - }% - \fi - \else % 2y < #1 - \BIC@AfterFiFi{% - \expandafter\BIC@ProcessDivII\romannumeral0% - \BIC@SubXY#1!#6!!!% - !#2#3!#4!#5!23% - #6!#7!% - }% - \fi - \else % 4y < #1 - \BIC@AfterFi{% - \BIC@@@ProcessDiv{#1}#2#3!#4!#5!#6!#7!% - }% - \BIC@Fi -} -\def\BIC@DivSub#1!#2!#3{% - \expandafter\BIC@ProcessDiv\expandafter{% - \romannumeral0% - \BIC@SubXY#1!#2!!!% - #3% - }% -} -\def\BIC@ProcessDivII#1!#2#3!#4!#5!#6#7{% - \ifcase\BIC@PosCmp#5!#1!% y = #1 - \ifx#2=% - \BIC@AfterFiFi{\BIC@DivCleanup{#4#7}}% - \else - \BIC@AfterFiFi{% - \BIC@ProcessDiv#2#3!#4#7!#5!% - }% - \fi - \or % y > #1 - \ifx#2=% - \BIC@AfterFiFi{\BIC@DivCleanup{#4#6}}% - \else - \BIC@AfterFiFi{% - \BIC@ProcessDiv{#1#2}#3!#4#6!#5!% - }% - \fi - \else % y < #1 - \ifx#2=% - \BIC@AfterFiFi{\BIC@DivCleanup{#4#7}}% - \else - \BIC@AfterFiFi{% - \BIC@DivSub#1!#5!#2#3!#4#7!#5!% - }% - \fi - \BIC@Fi -} -\def\BIC@@@ProcessDiv#1#2#3!#4!#5!#6!#7!#8!#9!{% - \ifcase\BIC@PosCmp#8!#1!% 6y = #1 - \ifx#2=% - \BIC@AfterFiFi{\BIC@DivCleanup{#46}}% - \else - \BIC@AfterFiFi{% - \BIC@ProcessDiv#2#3!#46!#5!#6!#7!#8!#9!% - }% - \fi - \or % 6y > #1 - \BIC@AfterFi{% - \expandafter\BIC@ProcessDivII\romannumeral0% - \BIC@SubXY#1!#7!!!% - !#2#3!#4!#5!45% - #6!#7!#8!#9!% - }% - \else % 6y < #1 - \ifcase\BIC@PosCmp#9!#1!% 8y = #1 - \ifx#2=% - \BIC@AfterFiFiFi{\BIC@DivCleanup{#48}}% - \else - \BIC@AfterFiFiFi{% - \BIC@ProcessDiv#2#3!#48!#5!#6!#7!#8!#9!% - }% - \fi - \or % 8y > #1 - \BIC@AfterFiFi{% - \expandafter\BIC@ProcessDivII\romannumeral0% - \BIC@SubXY#1!#8!!!% - !#2#3!#4!#5!67% - #6!#7!#8!#9!% - }% - \else % 8y < #1 - \BIC@AfterFiFi{% - \expandafter\BIC@ProcessDivII\romannumeral0% - \BIC@SubXY#1!#9!!!% - !#2#3!#4!#5!89% - #6!#7!#8!#9!% - }% - \fi - \BIC@Fi -} -\def\bigintcalcMod#1{% - \romannumeral0% - \expandafter\expandafter\expandafter\BIC@Mod - \bigintcalcNum{#1}!% -} -\def\BIC@Mod#1!#2{% - \expandafter\expandafter\expandafter\BIC@ModSwitchSign - \bigintcalcNum{#2}!#1!% -} -\def\BigIntCalcMod#1!#2!{% - \romannumeral0% - \BIC@ModSwitchSign#2!#1!% -} -\def\BIC@ModSwitchSign#1#2!#3#4!{% - \ifcase\ifx\\#2\\% - \ifx#100 % y = 0 - \else1 % y > 0 - \fi - \else - \ifx#1-2 % y < 0 - \else1 % y > 0 - \fi - \fi - \BIC@AfterFi{ 0\BigIntCalcError:DivisionByZero}% - \or % y > 0 - \ifcase\ifx\\#4\\\ifx#300 \else1 \fi\else1 \fi % x = 0 - \BIC@AfterFiFi{ 0}% - \else - \BIC@AfterFiFi{% - \BIC@ModSwitch{}#3#4!#1#2!% - }% - \fi - \else % y < 0 - \ifcase\ifx\\#4\\% - \ifx#300 % x = 0 - \else1 % x > 0 - \fi - \else - \ifx#3-2 % x < 0 - \else1 % x > 0 - \fi - \fi - \BIC@AfterFiFi{ 0}% - \or % x > 0 - \BIC@AfterFiFi{% - \BIC@ModSwitch--#3#4!#2!% - }% - \else % x < 0 - \BIC@AfterFiFi{% - \BIC@ModSwitch-#4!#2!% - }% - \fi - \BIC@Fi -} -\def\BIC@ModSwitch#1#2#3!#4#5!{% - \ifcase\ifx\\#5\\% - \ifx#410 % y = 1 - \else\ifx#421 % y = 2 - \else2 % y > 2 - \fi\fi - \else2 % y > 2 - \fi - \BIC@AfterFi{ 0}% y = 1 - \or % y = 2 - \ifcase\BIC@ModTwo#2#3! % even(x) - \BIC@AfterFiFi{ 0}% - \or % odd(x) - \BIC@AfterFiFi{ #11}% -? \else\BigIntCalcError:ThisCannotHappen% - \fi - \or % y > 2 - \ifx\\#1\\% - \else - \expandafter\BIC@Space\romannumeral0% - \expandafter\BIC@ModMinus\romannumeral0% - \fi - \ifx#2-% x < 0 - \BIC@AfterFiFi{% - \expandafter\expandafter\expandafter\BIC@ModX - \bigintcalcSub{#2#3}{% - \bigintcalcMul{#4#5}{\bigintcalcDiv{#2#3}{#4#5}}% - }!#4#5!% - }% - \else % x > 0 - \BIC@AfterFiFi{% - \expandafter\expandafter\expandafter\BIC@Space - \bigintcalcSub{#2#3}{% - \bigintcalcMul{#4#5}{\bigintcalcDiv{#2#3}{#4#5}}% - }% - }% - \fi -? \else\BigIntCalcError:ThisCannotHappen% - \BIC@Fi -} -\def\BIC@ModMinus#1{% - \ifx#10% - \BIC@AfterFi{ 0}% - \else - \BIC@AfterFi{ -#1}% - \BIC@Fi -} -\def\BIC@ModX#1#2!#3!{% - \ifx#1-% z < 0 - \BIC@AfterFi{% - \expandafter\BIC@Space\romannumeral0% - \BIC@SubXY#3!#2!!!% - }% - \else % z >= 0 - \BIC@AfterFi{ #1#2}% - \BIC@Fi -} -\BIC@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `bigintcalc.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/etexcmds.sty b/Master/texmf-dist/tex/generic/oberdiek/etexcmds.sty deleted file mode 100644 index 4f8413b4cd2..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/etexcmds.sty +++ /dev/null @@ -1,292 +0,0 @@ -%% -%% This is file `etexcmds.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% etexcmds.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: etexcmds -%% Version: 2016/05/16 v1.6 -%% -%% 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 etexcmds.dtx -%% and the derived files -%% etexcmds.sty, etexcmds.pdf, etexcmds.ins, etexcmds.drv, -%% etexcmds-test1.tex, etexcmds-test2.tex, etexcmds-test3.tex, -%% etexcmds-test4.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@etexcmds.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{etexcmds}{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@etexcmds.sty\endcsname -\ProvidesPackage{etexcmds}% - [2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname etexcmds@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\etexcmds@AtEnd{% - \etexcmds@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{39}{12}% ' -\TMP@EnsureCode{40}{12}% ( -\TMP@EnsureCode{41}{12}% ) -\TMP@EnsureCode{44}{12}% , -\TMP@EnsureCode{45}{12}% - -\TMP@EnsureCode{46}{12}% . -\TMP@EnsureCode{47}{12}% / -\TMP@EnsureCode{60}{12}% < -\TMP@EnsureCode{91}{12}% [ -\TMP@EnsureCode{93}{12}% ] -\edef\etexcmds@AtEnd{% - \etexcmds@AtEnd - \escapechar\the\escapechar\relax - \noexpand\endinput -} -\escapechar=92 % backslash -\def\etexcmds@newif#1{% - \expandafter\edef\csname etex@#1false\endcsname{% - \let - \expandafter\noexpand\csname ifetex@#1\endcsname - \noexpand\iffalse - }% - \expandafter\edef\csname etex@#1true\endcsname{% - \let - \expandafter\noexpand\csname ifetex@#1\endcsname - \noexpand\iftrue - }% - \csname etex@#1false\endcsname -} -\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{ifluatex}[2010/03/01]% -\else - \RequirePackage{infwarerr}[2007/09/09]% - \RequirePackage{ifluatex}[2010/03/01]% -\fi -\etexcmds@newif{unexpanded} -\begingroup -\edef\x{\string\unexpanded}% -\edef\y{\meaning\unexpanded}% -\ifx\x\y - \endgroup - \let\etex@unexpanded\unexpanded - \etex@unexpandedtrue -\else - \edef\y{\meaning\normalunexpanded}% - \ifx\x\y - \endgroup - \let\etex@unexpanded\normalunexpanded - \etex@unexpandedtrue - \else - \edef\y{\meaning\@@unexpanded}% - \ifx\x\y - \endgroup - \let\etex@unexpanded\@@unexpanded - \etex@unexpandedtrue - \else - \ifluatex - \ifnum\luatexversion<36 % - \else - \begingroup - \directlua{% - tex.enableprimitives('etex@',{'unexpanded'})% - }% - \global\let\etex@unexpanded\etex@unexpanded - \endgroup - \fi - \fi - \edef\y{\meaning\etex@unexpanded}% - \ifx\x\y - \endgroup - \etex@unexpandedtrue - \else - \endgroup - \@PackageInfoNoLine{etexcmds}{% - Could not find \string\unexpanded.\MessageBreak - That can mean that you are not using e-TeX or% - \MessageBreak - that some package has redefined \string\unexpanded.% - \MessageBreak - In the latter case, load this package earlier% - }% - \etex@unexpandedfalse - \fi - \fi - \fi -\fi -\etexcmds@newif{expanded} -\begingroup -\edef\x{\string\expanded}% -\edef\y{\meaning\expanded}% -\ifx\x\y - \endgroup - \let\etex@expanded\expanded - \etex@expandedtrue -\else - \edef\y{\meaning\normalexpanded}% - \ifx\x\y - \endgroup - \let\etex@expanded\normalexpanded - \etex@expandedtrue - \else - \edef\y{\meaning\@@expanded}% - \ifx\x\y - \endgroup - \let\etex@expanded\@@expanded - \etex@expandedtrue - \else - \ifluatex - \ifnum\luatexversion<36 % - \else - \begingroup - \directlua{% - tex.enableprimitives('etex@',{'expanded'})% - }% - \global\let\etex@expanded\etex@expanded - \endgroup - \fi - \fi - \edef\y{\meaning\etex@expanded}% - \ifx\x\y - \endgroup - \etex@expandedtrue - \else - \endgroup - \@PackageInfoNoLine{etexcmds}{% - Could not find \string\expanded.\MessageBreak - That can mean that you are not using pdfTeX 1.50 or% - \MessageBreak - that some package has redefined \string\expanded.% - \MessageBreak - In the latter case, load this package earlier% - }% - \etex@expandedfalse - \fi - \fi - \fi -\fi -\etexcmds@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `etexcmds.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/gettitlestring.sty b/Master/texmf-dist/tex/generic/oberdiek/gettitlestring.sty deleted file mode 100644 index 699574db6ad..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/gettitlestring.sty +++ /dev/null @@ -1,313 +0,0 @@ -%% -%% This is file `gettitlestring.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% gettitlestring.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: gettitlestring -%% Version: 2016/05/16 v1.5 -%% -%% Copyright (C) -%% 2009, 2010 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 gettitlestring.dtx -%% and the derived files -%% gettitlestring.sty, gettitlestring.pdf, gettitlestring.ins, -%% gettitlestring.drv, gettitlestring-test1.tex, -%% gettitlestring-test2.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@gettitlestring.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{gettitlestring}{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@gettitlestring.sty\endcsname -\ProvidesPackage{gettitlestring}% - [2016/05/16 v1.5 Cleanup title references (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname GTS@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\GTS@AtEnd{% - \GTS@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{42}{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}% ] -\edef\GTS@AtEnd{\GTS@AtEnd\noexpand\endinput} -\RequirePackage{kvoptions}[2009/07/17] -\SetupKeyvalOptions{% - family=gettitlestring,% - prefix=GTS@% -} -\newcommand*{\GetTitleStringSetup}{% - \setkeys{gettitlestring}% -} -\DeclareBoolOption{expand} -\InputIfFileExists{gettitlestring.cfg}{}{} -\ProcessKeyvalOptions*\relax -\newcommand*{\GetTitleString}{% - \ifGTS@expand - \expandafter\GetTitleStringExpand - \else - \expandafter\GetTitleStringNonExpand - \fi -} -\newcommand{\GetTitleStringExpand}[1]{% - \def\GetTitleStringResult{#1}% - \begingroup - \GTS@DisablePredefinedCmds - \GTS@DisableHook - \edef\x{\endgroup - \noexpand\def\noexpand\GetTitleStringResult{% - \GetTitleStringResult - }% - }% - \x -} -\newcommand{\GetTitleStringNonExpand}[1]{% - \def\GetTitleStringResult{#1}% - \global\let\GTS@GlobalString\GetTitleStringResult - \begingroup - \GTS@RemoveLeft - \GTS@RemoveRight - \endgroup - \let\GetTitleStringResult\GTS@GlobalString -} -\def\GTS@DisablePredefinedCmds{% - \let\label\@gobble - \let\zlabel\@gobble - \let\zref@label\@gobble - \let\zref@labelbylist\@gobbletwo - \let\zref@labelbyprops\@gobbletwo - \let\index\@gobble - \let\glossary\@gobble - \let\markboth\@gobbletwo - \let\@mkboth\@gobbletwo - \let\markright\@gobble - \let\phantomsection\@empty - \def\addcontentsline{\expandafter\@gobble\@gobbletwo}% - \let\raggedright\@empty - \let\raggedleft\@empty - \let\centering\@empty - \let\protect\@unexpandable@protect - \let\enit@format\@empty % package enumitem -} -\providecommand*{\GTS@DisableHook}{} -\def\GetTitleStringDisableCommands{% - \begingroup - \makeatletter - \GTS@DisableCommands -} -\long\def\GTS@DisableCommands#1{% - \toks0=\expandafter{\GTS@DisableHook}% - \toks2={#1}% - \xdef\GTS@GlobalString{\the\toks0 \the\toks2}% - \endgroup - \let\GTS@DisableHook\GTS@GlobalString -} -\def\GTS@RemoveLeft{% - \toks@\expandafter\expandafter\expandafter{% - \expandafter\GTS@Car\GTS@GlobalString{}{}{}{}\GTS@Nil - }% - \edef\GTS@Token{\the\toks@}% - \GTS@PredefinedLeftCmds - \expandafter\futurelet\expandafter\GTS@Token - \expandafter\GTS@TestLeftSpace\GTS@GlobalString\GTS@Nil - \GTS@End -} -\def\GTS@End{} -\long\def\GTS@TestLeft#1#2{% - \def\GTS@temp{#1}% - \ifx\GTS@temp\GTS@Token - \toks@\expandafter\expandafter\expandafter{% - \expandafter#2\GTS@GlobalString\GTS@Nil - }% - \expandafter\GTS@TestLeftEnd - \fi -} -\long\def\GTS@TestLeftEnd#1\GTS@End{% - \xdef\GTS@GlobalString{\the\toks@}% - \GTS@RemoveLeft -} -\long\def\GTS@Car#1#2\GTS@Nil{#1} -\long\def\GTS@Cdr#1#2\GTS@Nil{#2} -\long\def\GTS@CdrTwo#1#2#3\GTS@Nil{#3} -\long\def\GTS@CdrThree#1#2#3#4\GTS@Nil{#4} -\long\def\GTS@CdrFour#1#2#3#4#5\GTS@Nil{#5} -\long\def\GTS@TestLeftSpace#1\GTS@Nil{% - \ifx\GTS@Token\@sptoken - \toks@\expandafter{% - \romannumeral-0\GTS@GlobalString - }% - \expandafter\GTS@TestLeftEnd - \fi -} -\def\GTS@PredefinedLeftCmds{% - \GTS@TestLeft\Hy@phantomsection\GTS@Cdr - \GTS@TestLeft\Hy@SectionAnchor\GTS@Cdr - \GTS@TestLeft\Hy@SectionAnchorHref\GTS@CdrTwo - \GTS@TestLeft\label\GTS@CdrTwo - \GTS@TestLeft\zlabel\GTS@CdrTwo - \GTS@TestLeft\index\GTS@CdrTwo - \GTS@TestLeft\glossary\GTS@CdrTwo - \GTS@TestLeft\markboth\GTS@CdrThree - \GTS@TestLeft\@mkboth\GTS@CdrThree - \GTS@TestLeft\addcontentsline\GTS@CdrFour - \GTS@TestLeft\enit@format\GTS@Cdr % package enumitem -} -\def\GTS@RemoveRight{% - \toks@{}% - \expandafter\GTS@TestRightLabel\GTS@GlobalString - \label{}\GTS@Nil\@nil - \GTS@RemoveRightSpace -} -\begingroup - \def\GTS@temp#1{\endgroup - \def\GTS@RemoveRightSpace{% - \expandafter\GTS@TestRightSpace\GTS@GlobalString - \GTS@Nil#1\GTS@Nil\@nil - }% - }% -\GTS@temp{ } -\def\GTS@TestRightSpace#1 \GTS@Nil#2\@nil{% - \ifx\relax#2\relax - \else - \gdef\GTS@GlobalString{#1}% - \expandafter\GTS@RemoveRightSpace - \fi -} -\def\GTS@TestRightLabel#1\label#2#3\GTS@Nil#4\@nil{% - \def\GTS@temp{#3}% - \ifx\GTS@temp\@empty - \expandafter\gdef\expandafter\GTS@GlobalString\expandafter{% - \the\toks@ - #1% - }% - \expandafter\@gobble - \else - \expandafter\@firstofone - \fi - {% - \toks@\expandafter{\the\toks@#1}% - \GTS@TestRightLabel#3\GTS@Nil\@nil - }% -} -\GTS@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `gettitlestring.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/intcalc.sty b/Master/texmf-dist/tex/generic/oberdiek/intcalc.sty deleted file mode 100644 index 84124d615ae..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/intcalc.sty +++ /dev/null @@ -1,1734 +0,0 @@ -%% -%% This is file `intcalc.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% intcalc.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: intcalc -%% Version: 2016/05/16 v1.2 -%% -%% Copyright (C) -%% 2007 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 intcalc.dtx -%% and the derived files -%% intcalc.sty, intcalc.pdf, intcalc.ins, intcalc.drv, -%% intcalc-test1.tex, intcalc-test2.tex, intcalc-test3.tex, -%% intcalc-test4.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@intcalc.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{intcalc}{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@intcalc.sty\endcsname -\ProvidesPackage{intcalc}% - [2016/05/16 v1.2 Expandable calculations with integers (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname InCa@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\InCa@AtEnd{% - \InCa@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{33}{12}% ! -\TMP@EnsureCode{40}{12}% ( -\TMP@EnsureCode{41}{12}% ) -\TMP@EnsureCode{42}{12}% * -\TMP@EnsureCode{43}{12}% + -\TMP@EnsureCode{45}{12}% - -\TMP@EnsureCode{47}{12}% / -\TMP@EnsureCode{58}{11}% : (letter!) -\TMP@EnsureCode{60}{12}% < -\TMP@EnsureCode{62}{12}% > -\TMP@EnsureCode{63}{14}% ? (comment!) -\edef\InCa@AtEnd{\InCa@AtEnd\noexpand\endinput} -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname InCa@TestMode\endcsname\relax -\else - \catcode63=9 % ? (ignore) -\fi -? \let\InCa@@TestMode\InCa@TestMode -\def\InCa@Abs#1#2!{% - \ifx#1-% - #2% - \else - #1#2% - \fi -} -\def\InCa@Sgn#1#2!{% - \ifx#1-% - -1% - \else - \ifx#10% - 0% - \else - 1% - \fi - \fi -} -\def\InCa@Min#1!#2!{% - \ifnum#1<#2 % - #1% - \else - #2% - \fi -} -\def\InCa@Max#1!#2!{% - \ifnum#1>#2 % - #1% - \else - #2% - \fi -} -\def\InCa@Cmp#1!#2!{% - \ifnum#1=#2 % - 0% - \else - \ifnum#1<#2 % - -% - \fi - 1% - \fi -} -\def\InCa@Fac#1!{% - \ifcase#1 1% 0! - \or 1% 1! - \or 2% 2! - \or 6% 3! - \or 24% 4! - \or 120% 5! - \or 720% 6! - \or 5040% 7! - \or 40320% 8! - \or 362880% 9! - \or 3628800% 10! - \or 39916800% 11! - \or 479001600% 12! - \else - \ifnum#1<\z@ - 0\IntCalcError:FacNegative% - \else - 0\IntCalcError:FacOverflow% - \fi - \fi -} -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname numexpr\endcsname\relax -\else - \def\intcalcNum#1{% - \the\numexpr#1\relax - }% - \def\intcalcInv#1{% - \number-\intcalcNum{#1} % - }% - \def\intcalcAbs#1{% - \number\expandafter\InCa@Abs\the\numexpr#1! % - }% - \def\intcalcSgn#1{% - \number\expandafter\InCa@Sgn\the\numexpr#1! % - }% - \def\intcalcMin#1#2{% - \number\expandafter\InCa@Min - \the\numexpr#1\expandafter!% - \the\numexpr#2! % - }% - \def\intcalcMax#1#2{% - \number\expandafter\InCa@Max - \the\numexpr#1\expandafter!% - \the\numexpr#2! % - }% - \def\intcalcCmp#1#2{% - \number\expandafter\InCa@Cmp - \the\numexpr#1\expandafter!\the\numexpr#2! % - }% - \def\intcalcInc#1{% - \the\numexpr#1+1\relax - }% - \def\intcalcDec#1{% - \the\numexpr#1-1\relax - }% - \def\IntCalcInc#1!{% - \the\numexpr#1+1\relax - }% - \def\IntCalcDec#1!{% - \the\numexpr#1-1\relax - }% - \def\intcalcAdd#1#2{% - \the\numexpr#1+(#2)\relax - }% - \def\intcalcSub#1#2{% - \the\numexpr#1-(#2)\relax - }% - \def\IntCalcAdd#1!#2!{% - \the\numexpr#1+#2\relax - }% - \def\IntCalcSub#1!#2!{% - \the\numexpr#1-#2\relax - }% - \def\intcalcShl#1{% - \the\numexpr(#1)*2\relax - }% - \def\intcalcShr#1{% - \number\expandafter\InCa@Shr\the\numexpr#1! % - }% - \def\IntCalcShl#1!{% - \the\numexpr#1*2\relax - }% - \def\IntCalcShr#1!{% - \the\numexpr\ifodd#1 (#1-1)\else#1\fi/2\relax - }% - \def\InCa@Shr#1#2!{% - \ifx#1-% - -\InCa@Shr#2!% - \else - \ifodd#1#2 % - \the\numexpr(#1#2-1)/2\relax - \else - \the\numexpr#1#2/2\relax - \fi - \fi - }% - \def\intcalcMul#1#2{% - \the\numexpr(#1)*(#2)\relax - }% - \def\IntCalcMul#1!#2!{% - \the\numexpr#1*#2\relax - }% - \def\intcalcSqr#1{% - \number\expandafter\InCa@Sqr\the\numexpr#1! % - }% - \def\InCa@Sqr#1!{% - \the\numexpr#1*#1\relax - }% - \def\intcalcFac#1{% - \number\expandafter\InCa@Fac\the\numexpr#1! % - }% - \def\intcalcPow#1#2{% - \number\expandafter\InCa@Pow - \the\numexpr#1\expandafter!% - \the\numexpr#2! % - }% - \def\InCa@Pow#1#2!#3#4!{% - \ifcase#3#4 % power = 0 - 1% - \or % power = 1 - #1#2% - \or % power = 2 - \the\numexpr#1#2*#1#2\relax - \else - \ifcase#1#2 % basis = 0, power <> 0 - 0% - \ifx#3-% power < 0 - 0\IntCalcError:DivisionByZero% - \fi - \or - 1% basis = 1 - \else - \ifnum#1#2=\m@ne % basis = -1 - \ifodd#3#4 % - -% - \fi - 1% - \else % |basis| > 1 - \ifx#3-% power < 0 - 0% - \else % power > 2 - \InCa@PowRec#1#2!#3#4!1!% - \fi - \fi - \fi - \fi - }% - \def\InCa@PowRec#1!#2!#3!{% - \ifnum#2=\@ne - \the\numexpr#1*#3\relax - \else - \ifodd#2 % - \expandafter\InCa@PowRec - \the\numexpr#1*#1\expandafter!% - \the\numexpr(#2-1)/2\expandafter!% - \the\numexpr#1*#3\expandafter\expandafter\expandafter!% - \else - \expandafter\InCa@PowRec - \the\numexpr#1*#1\expandafter!% - \the\numexpr(#2-1)/2\expandafter!% - \number#3\expandafter\expandafter\expandafter!% - \fi - \fi - }% - \def\intcalcDiv#1#2{% - \number\expandafter\InCa@Div - \the\numexpr#1\expandafter!% - \the\numexpr#2! % - }% - \def\InCa@Div#1!#2!{% - \ifcase#2 % - 0\IntCalcError:DivisionByZero% - \else - \ifcase#1 % - 0% - \else - \expandafter\InCa@@Div - \romannumeral 0% - \ifnum#1<\z@ - \expandafter-\number-#1% - \else - \expandafter+\number#1% - \fi - \expandafter!% - \romannumeral 0% - \ifnum#2<\z@ - \expandafter-\number-#2% - \else - \expandafter+\number#2% - \fi - !% - \fi - \fi - }% - \def\InCa@Temp#1{% - \def\IntCalcDiv##1!##2!{% - \number - \ifcase##2 % - 0\IntCalcError:DivisionByZero% - \else - \ifcase##1 % - 0% - \else - \the\numexpr(##1-(##2-1)/2)/##2\relax - \fi - \fi - #1% - }% - }% - \InCa@Temp{ }% - \def\InCa@@Div#1#2!#3#4!{% - #1#3% - \the\numexpr(#2-(#4-1)/2)/#4\relax - }% - \def\intcalcMod#1#2{% - \number\expandafter\InCa@Mod - \the\numexpr#1\expandafter!% - \the\numexpr#2! % - }% - \def\InCa@Mod#1!#2!{% - \ifcase#2 % - 0\IntCalcError:DivisionByZero% - \else - \ifcase#1 % - 0% - \else - \expandafter\InCa@@Mod - \romannumeral 0% - \ifnum#1<\z@ - \expandafter-\number-#1% - \else - \expandafter+\number#1% - \fi - \expandafter!% - \romannumeral 0% - \ifnum#2<\z@ - \expandafter-\number-#2% - \else - \expandafter+\number#2% - \fi - !% - \fi - \fi - }% - \def\InCa@Temp#1{% - \def\IntCalcMod##1!##2!{% - \number - \ifcase##2 % - 0\IntCalcError:DivisionByZero% - \else - \ifcase##1 % - 0% - \else - \the\numexpr##1-(##1-(##2-1)/2)/##2*##2\relax - \fi - \fi - #1% - }% - }% - \InCa@Temp{ }% - \def\InCa@@Mod#1#2!#3#4!{% - \if#3+% - \if#1+% - \the\numexpr#2-\InCa@@Div+#2!+#4!*#4\relax - \else - \expandafter\InCa@ModX - \the\numexpr-#2+\InCa@@Div+#2!+#4!*#4!#4!% - \fi - \else - -% - \if#1+% - \expandafter\InCa@ModX - \the\numexpr-#2+\InCa@@Div+#2!+#4!*#4!#4!% - \else - \the\numexpr#2-\InCa@@Div+#2!+#4!*#4\relax - \fi - \fi - }% - \def\InCa@ModX#1!#2!{% - \ifcase#1 % - 0% - \else - \the\numexpr#1+#2\relax - \fi - }% - \expandafter\InCa@AtEnd -\fi% -\def\intcalcNum#1{% - \number\expandafter\InCa@FirstOfOne\number#1! % -} -\def\intcalcInv#1{% - \number\expandafter\InCa@FirstOfOne\number-#1! % -} -\def\InCa@FirstOfOne#1!{#1} -\def\intcalcAbs#1{% - \number\expandafter\InCa@Abs\number#1! % -} -\def\intcalcSgn#1{% - \number\expandafter\InCa@Sgn\number#1! % -} -\def\intcalcMin#1#2{% - \number\expandafter\InCa@Min - \number\number#1\expandafter!\number#2! % -} -\def\intcalcMax#1#2{% - \number\expandafter\InCa@Max - \number\number#1\expandafter!\number#2! % -} -\def\intcalcCmp#1#2{% - \number\expandafter\InCa@Cmp - \number\number#1\expandafter!\number#2! % -}% -\def\intcalcInc#1{% - \number\expandafter\InCa@IncSwitch\number#1! % -} -\def\InCa@IncSwitch#1#2!{% - \ifx#1-% - -% - \csname InCa@Empty% - \InCa@Dec#2!% - \else - \csname InCa@Empty% - \InCa@Inc#1#2!% - \fi -} -\def\intcalcDec#1{% - \number\expandafter\InCa@DecSwitch\number#1! % -} -\def\InCa@DecSwitch#1#2!{% - \ifx#1-% - -% - \csname InCa@Empty% - \expandafter\InCa@Inc#2!% - \else - \ifx#10% - -1% - \else - \csname InCa@Empty% - \InCa@Dec#1#2!% - \fi - \fi -} -\def\IntCalcInc#1!{% - \number\csname InCa@Empty\InCa@Inc#1! % -} -\def\IntCalcDec#1!{% - \number\csname InCa@Empty\InCa@Dec#1! % -} -\def\InCa@Inc#1#2{% - \ifx#2!% - \csname InCa@IncDigit#1\endcsname1% - \else - \csname InCa@IncDigit#1% - \expandafter\InCa@Inc\expandafter#2% - \fi -} -\def\InCa@Temp#1#2{% - \expandafter\def\csname InCa@IncDigit#1\endcsname##1{% - \endcsname - 0% - \ifcase##1 % - #1% - \else - #2% - \fi - }% -} -\InCa@Temp 01 -\InCa@Temp 12 -\InCa@Temp 23 -\InCa@Temp 34 -\InCa@Temp 45 -\InCa@Temp 56 -\InCa@Temp 67 -\InCa@Temp 78 -\InCa@Temp 89 -\expandafter\def\csname InCa@IncDigit9\endcsname#1{% - \expandafter\endcsname - \ifcase#1 % - 09% - \else - 10% - \fi -} -\def\InCa@Dec#1#2{% - \ifx#2!% - \csname InCa@DecDigit#1\endcsname1% - \else - \csname InCa@DecDigit#1% - \expandafter\InCa@Dec\expandafter#2% - \fi -} -\def\InCa@Temp#1#2{% - \expandafter\def\csname InCa@DecDigit#1\endcsname##1{% - \endcsname - 0% - \ifcase##1 % - #1% - \else - #2% - \fi - }% -} -\InCa@Temp 98 -\InCa@Temp 87 -\InCa@Temp 76 -\InCa@Temp 65 -\InCa@Temp 54 -\InCa@Temp 43 -\InCa@Temp 32 -\InCa@Temp 21 -\InCa@Temp 10 -\expandafter\def\csname InCa@DecDigit0\endcsname#1{% - \expandafter\endcsname - \ifcase#1 % - 00% - \else - 19% - \fi -} -\def\intcalcAdd#1#2{% - \number - \expandafter\InCa@AddSwitch - \number\number#1\expandafter!% - \number#2! % -} -\def\intcalcSub#1#2{% - \number - \expandafter\InCa@AddSwitch - \number\number#1\expandafter!% - \number-\number#2! % -} -\def\InCa@AddSwitch#1!#2!{% - \ifnum#1<\z@ - \ifnum#2<\z@ - -% - \ifnum#1<#2 % - \expandafter\InCa@Add\number-#1\expandafter!% - \@gobble#2!% - \else - \expandafter\InCa@Add\number-#2\expandafter!% - \@gobble#1!% - \fi - \else - \ifnum-#1>#2 % - -% - \expandafter\InCa@Sub\@gobble#1!#2!% - \else - \expandafter\InCa@Sub\number#2\expandafter!% - \@gobble#1!% - \fi - \fi - \else - \ifnum#2<\z@ - \ifnum#1>-#2 % - \expandafter\InCa@Sub\number#1\expandafter!% - \@gobble#2!% - \else - -% - \expandafter\InCa@Sub\@gobble#2!#1!% - \fi - \else - \ifnum#1>#2 % - \InCa@Add#1!#2!% - \else - \InCa@Add#2!#1!% - \fi - \fi - \fi -} -\def\IntCalcAdd#1!#2!{% - \number\InCa@Add#1!#2! % -} -\def\IntCalcSub#1!#2!{% - \number\InCa@Sub#1!#2! % -} -\begingroup - \def\x#1{\endgroup - \let\InCa@Space= #1% - }% -\x{ } -\def\InCa@Add#1!#2!{% - \ifcase#2 % - #1% - \else - \InCa@@Add#1!#2!000000000\InCa@Space - \fi -} -\def\InCa@Sub#1!#2!{% - \ifnum#1=#2 % - 0% - \else - \InCa@@Sub#1!#2!000000000\InCa@Space - \fi -} -\def\InCa@@Add#1!#2#3!{% - \ifx\InCa@Empty#3\InCa@Empty - \@ReturnAfterElseFi{% - \InCa@@@Add!!#1!#2% - }% - \else - \@ReturnAfterFi{% - \InCa@@Add#1!#3!#2% - }% - \fi -} -\def\InCa@@Sub#1!#2#3!{% - \ifx\InCa@Empty#3\InCa@Empty - \@ReturnAfterElseFi{% - \InCa@@@Sub!!#1!#2% - }% - \else - \@ReturnAfterFi{% - \InCa@@Sub#1!#3!#2% - }% - \fi -} -\def\InCa@@@Add#1!#2!#3#4!#5{% - \ifx\InCa@Empty#4\InCa@Empty - \csname InCa@Empty% - \@ReturnAfterElseFi{% - \InCa@ProcessAdd#1#3!#5#2% - }% - \else - \@ReturnAfterFi{% - \InCa@@@Add#1#3!#5#2!#4!% - }% - \fi -} -\def\InCa@@@Sub#1!#2!#3#4!#5{% - \ifx\InCa@Empty#4\InCa@Empty - \csname @gobble% - \@ReturnAfterElseFi{% - \InCa@ProcessSub#1#3!#5#2% - }% - \else - \@ReturnAfterFi{% - \InCa@@@Sub#1#3!#5#2!#4!% - }% - \fi -} -\def\InCa@ProcessAdd#1#2!#3#4{% - \ifx\InCa@Empty#2\InCa@Empty - \csname InCa@AddDigit#1\endcsname#3% - \romannumeral0#4% - \else - \csname InCa@AddDigit#1\csname InCa@DigitCarry#3% - \@ReturnAfterFi{% - \InCa@ProcessAdd#2!#4% - }% - \fi -} -\def\InCa@ProcessSub#1#2!#3#4{% - \ifx\InCa@Empty#2\InCa@Empty - \csname InCa@SubDigit#1\endcsname#3% - \romannumeral0#4% - \else - \csname InCa@SubDigit#1\csname InCa@DigitCarry#3% - \@ReturnAfterFi{% - \InCa@ProcessSub#2!#4% - }% - \fi -} -\def\InCa@Temp#1#2{% - \expandafter\def\csname InCa@DigitCarry#1\endcsname##1{% - \ifcase##1 % - \endcsname#1% - \else - \endcsname#2% - \fi - }% -} -\InCa@Temp 01 -\InCa@Temp 12 -\InCa@Temp 23 -\InCa@Temp 34 -\InCa@Temp 45 -\InCa@Temp 56 -\InCa@Temp 67 -\InCa@Temp 78 -\InCa@Temp 89 -\InCa@Temp 9{{10}} -\expandafter\def\csname InCa@AddDigit0\endcsname#1{% - \ifnum#1>9 % - \endcsname10% - \else - \endcsname0#1% - \fi -} -\def\InCa@Temp#1#2#3{% - \expandafter\def\csname InCa@AddDigit#1\endcsname##1{% - \ifnum##1>#2 % - \endcsname 1% - \else - \endcsname 0% - \fi - \ifcase##1 #1% 0 - #3% - \else #1% 10 - \fi - }% -} -\InCa@Temp 18{% - \or 2% 1 - \or 3% 2 - \or 4% 3 - \or 5% 4 - \or 6% 5 - \or 7% 6 - \or 8% 7 - \or 9% 8 - \or 0% 9 -}% -\InCa@Temp 27{% - \or 3% 1 - \or 4% 2 - \or 5% 3 - \or 6% 4 - \or 7% 5 - \or 8% 6 - \or 9% 7 - \or 0% 8 - \or 1% 9 -}% -\InCa@Temp 36{% - \or 4% 1 - \or 5% 2 - \or 6% 3 - \or 7% 4 - \or 8% 5 - \or 9% 6 - \or 0% 7 - \or 1% 8 - \or 2% 9 -}% -\InCa@Temp 45{% - \or 5% 1 - \or 6% 2 - \or 7% 3 - \or 8% 4 - \or 9% 5 - \or 0% 6 - \or 1% 7 - \or 2% 8 - \or 3% 9 -}% -\InCa@Temp 54{% - \or 6% 1 - \or 7% 2 - \or 8% 3 - \or 9% 4 - \or 0% 5 - \or 1% 6 - \or 2% 7 - \or 3% 8 - \or 4% 9 -}% -\InCa@Temp 63{% - \or 7% 1 - \or 8% 2 - \or 9% 3 - \or 0% 4 - \or 1% 5 - \or 2% 6 - \or 3% 7 - \or 4% 8 - \or 5% 9 -}% -\InCa@Temp 72{% - \or 8% 1 - \or 9% 2 - \or 0% 3 - \or 1% 4 - \or 2% 5 - \or 3% 6 - \or 4% 7 - \or 5% 8 - \or 6% 9 -}% -\InCa@Temp 81{% - \or 9% 1 - \or 0% 2 - \or 1% 3 - \or 2% 4 - \or 3% 5 - \or 4% 6 - \or 5% 7 - \or 6% 8 - \or 7% 9 -}% -\InCa@Temp 90{% - \or 0% 1 - \or 1% 2 - \or 2% 3 - \or 3% 4 - \or 4% 5 - \or 5% 6 - \or 6% 7 - \or 7% 8 - \or 8% 9 -}% -\def\InCa@Temp#1#2{% - \expandafter\def\csname InCa@SubDigit#1\endcsname##1{% - \ifnum##1>#1 % - \endcsname 1% - \else - \endcsname 0% - \fi - \ifcase##1 #1% 0 - #2% - \else #1% 10 - \fi - }% -} -\InCa@Temp 0{% - \or 9% 1 - \or 8% 2 - \or 7% 3 - \or 6% 4 - \or 5% 5 - \or 4% 6 - \or 3% 7 - \or 2% 8 - \or 1% 9 -} -\InCa@Temp 1{% - \or 0% 1 - \or 9% 2 - \or 8% 3 - \or 7% 4 - \or 6% 5 - \or 5% 6 - \or 4% 7 - \or 3% 8 - \or 2% 9 -} -\InCa@Temp 2{% - \or 1% 1 - \or 0% 2 - \or 9% 3 - \or 8% 4 - \or 7% 5 - \or 6% 6 - \or 5% 7 - \or 4% 8 - \or 3% 9 -} -\InCa@Temp 3{% - \or 2% 1 - \or 1% 2 - \or 0% 3 - \or 9% 4 - \or 8% 5 - \or 7% 6 - \or 6% 7 - \or 5% 8 - \or 4% 9 -} -\InCa@Temp 4{% - \or 3% 1 - \or 2% 2 - \or 1% 3 - \or 0% 4 - \or 9% 5 - \or 8% 6 - \or 7% 7 - \or 6% 8 - \or 5% 9 -} -\InCa@Temp 5{% - \or 4% 1 - \or 3% 2 - \or 2% 3 - \or 1% 4 - \or 0% 5 - \or 9% 6 - \or 8% 7 - \or 7% 8 - \or 6% 9 -} -\InCa@Temp 6{% - \or 5% 1 - \or 4% 2 - \or 3% 3 - \or 2% 4 - \or 1% 5 - \or 0% 6 - \or 9% 7 - \or 8% 8 - \or 7% 9 -} -\InCa@Temp 7{% - \or 6% 1 - \or 5% 2 - \or 4% 3 - \or 3% 4 - \or 2% 5 - \or 1% 6 - \or 0% 7 - \or 9% 8 - \or 8% 9 -} -\InCa@Temp 8{% - \or 7% 1 - \or 6% 2 - \or 5% 3 - \or 4% 4 - \or 3% 5 - \or 2% 6 - \or 1% 7 - \or 0% 8 - \or 9% 9 -} -\InCa@Temp 9{% - \or 8% 1 - \or 7% 2 - \or 6% 3 - \or 5% 4 - \or 4% 5 - \or 3% 6 - \or 2% 7 - \or 1% 8 - \or 0% 9 -} -\def\intcalcShl#1{% - \number\expandafter\InCa@ShlSwitch\number#1! % -} -\def\InCa@ShlSwitch#1#2!{% - \ifx#1-% - -\csname InCa@Empty% - \InCa@Shl#2!% - \else - \csname InCa@Empty% - \InCa@Shl#1#2!% - \fi -} -\def\IntCalcShl#1!{% - \number - \csname InCa@Empty% - \InCa@Shl#1! % -} -\def\InCa@Shl#1#2{% - \ifx#2!% - \csname InCa@ShlDigit#1\endcsname0% - \else - \csname InCa@ShlDigit#1% - \@ReturnAfterFi{% - \InCa@Shl#2% - }% - \fi -} -\expandafter\def\csname InCa@ShlDigit0\endcsname{% - \endcsname0% -} -\def\InCa@Temp#1#2#3#4#5{% - \expandafter\def\csname InCa@ShlDigit#1\endcsname##1{% - \expandafter\endcsname - \ifcase##1 % - #2#3% - \else - #4#5% - \fi - }% -} -\InCa@Temp 10203 -\InCa@Temp 20405 -\InCa@Temp 30607 -\InCa@Temp 40809 -\InCa@Temp 51011 -\InCa@Temp 61213 -\InCa@Temp 71415 -\InCa@Temp 81617 -\InCa@Temp 91819 -\def\intcalcShr#1{% - \number\expandafter\InCa@ShrSwitch\number#1! % -} -\def\InCa@ShrSwitch#1#2!{% - \ifx#1-% - -\InCa@Shr#2!% - \else - \InCa@Shr#1#2!% - \fi -} -\def\IntCalcShr#1!{% - \number\InCa@Shr#1! % -} -\def\InCa@Shr#1#2{% - \InCa@ShrDigit#1!% - \ifx#2!% - \else - \@ReturnAfterFi{% - \ifodd#1 % - \@ReturnAfterElseFi{% - \InCa@Shr{1#2}% - }% - \else - \expandafter\InCa@Shr\expandafter#2% - \fi - }% - \fi -} -\def\InCa@ShrDigit#1!{% - \ifcase#1 0% 0 - \or 0% 1 - \or 1% 2 - \or 1% 3 - \or 2% 4 - \or 2% 5 - \or 3% 6 - \or 3% 7 - \or 4% 8 - \or 4% 9 - \or 5% 10 - \or 5% 11 - \or 6% 12 - \or 6% 13 - \or 7% 14 - \or 7% 15 - \or 8% 16 - \or 8% 17 - \or 9% 18 - \or 9% 19 - \fi -} -\def\InCa@Temp#1{% - \def\InCa@Tim##1##2{% - \number - \ifcase##2 % 0 - 0% - \or % 1 - ##1% - \else % 2-9 - \csname InCa@Empty% - \InCa@ProcessTim##2##1!% - \fi - #1% - }% -} -\InCa@Temp{ } -\def\InCa@ProcessTim#1#2#3{% - \ifx#3!% - \csname InCa@TimDigit#2\endcsname#10% - \else - \csname InCa@TimDigit#2\csname InCa@Param#1% - \@ReturnAfterFi{% - \InCa@ProcessTim#1#3% - }% - \fi -} -\def\InCa@Temp#1{% - \expandafter\def\csname InCa@Param#1\endcsname{% - \endcsname#1% - }% -} -\InCa@Temp 0% -\InCa@Temp 1% -\InCa@Temp 2% -\InCa@Temp 3% -\InCa@Temp 4% -\InCa@Temp 5% -\InCa@Temp 6% -\InCa@Temp 7% -\InCa@Temp 8% -\InCa@Temp 9% -\expandafter\def\csname InCa@TimDigit0\endcsname#1#2{% - \endcsname - 0#2% -} -\expandafter\def\csname InCa@TimDigit1\endcsname#1#2{% - \ifcase#2 % - \endcsname 0#1% - \else - \csname InCa@AddDigit#1\endcsname #2% - \fi -} -\def\InCa@Temp#1#2{% - \expandafter\def\csname InCa@TimDigit#1\endcsname##1{% - \expandafter\InCa@TimDigitCarry - \number - \ifcase##1 0% 0 - #2% - \fi - !% - }% -} -\InCa@Temp 2{% - \or 2% 1 - \or 4% 2 - \or 6% 3 - \or 8% 4 - \or 10% 5 - \or 12% 6 - \or 14% 7 - \or 16% 8 - \or 18% 9 -} -\InCa@Temp 3{% - \or 3% 1 - \or 6% 2 - \or 9% 3 - \or 12% 4 - \or 15% 5 - \or 18% 6 - \or 21% 7 - \or 24% 8 - \or 27% 9 -} -\InCa@Temp 4{% - \or 4% 1 - \or 8% 2 - \or 12% 3 - \or 16% 4 - \or 20% 5 - \or 24% 6 - \or 28% 7 - \or 32% 8 - \or 36% 9 -} -\InCa@Temp 5{% - \or 5% 1 - \or 10% 2 - \or 15% 3 - \or 20% 4 - \or 25% 5 - \or 30% 6 - \or 35% 7 - \or 40% 8 - \or 45% 9 -} -\InCa@Temp 6{% - \or 6% 1 - \or 12% 2 - \or 18% 3 - \or 24% 4 - \or 30% 5 - \or 36% 6 - \or 42% 7 - \or 48% 8 - \or 54% 9 -} -\InCa@Temp 7{% - \or 7% 1 - \or 14% 2 - \or 21% 3 - \or 28% 4 - \or 35% 5 - \or 42% 6 - \or 49% 7 - \or 56% 8 - \or 63% 9 -} -\InCa@Temp 8{% - \or 8% 1 - \or 16% 2 - \or 24% 3 - \or 32% 4 - \or 40% 5 - \or 48% 6 - \or 56% 7 - \or 64% 8 - \or 72% 9 -} -\InCa@Temp 9{% - \or 9% 1 - \or 18% 2 - \or 27% 3 - \or 36% 4 - \or 45% 5 - \or 54% 6 - \or 63% 7 - \or 72% 8 - \or 81% 9 -} -\def\InCa@TimDigitCarry#1!{% - \ifnum#1<10 % - \csname InCa@AddDigit#1\expandafter\endcsname - \else - \@ReturnAfterFi{% - \InCa@@TimDigitCarry#1!% - }% - \fi -} -\def\InCa@@TimDigitCarry#1#2!#3{% - \csname InCa@DigitCarry#1% - \csname InCa@AddDigit#2\endcsname #3% -} -\def\intcalcMul#1#2{% - \number - \expandafter\InCa@MulSwitch - \number\number#1\expandafter!% - \number#2! % -} -\def\InCa@MulSwitch#1!#2!{% - \ifnum#1<\z@ - \ifnum#2<\z@ - \ifnum#1<#2 % - \expandafter\InCa@Mul\number-#1\expandafter!% - \@gobble#2!% - \else - \expandafter\InCa@Mul\number-#2\expandafter!% - \@gobble#1!% - \fi - \else - -% - \ifnum-#1>#2 % - \expandafter\InCa@Mul\@gobble#1!#2!% - \else - \expandafter\InCa@Mul\number#2\expandafter!% - \@gobble#1!% - \fi - \fi - \else - \ifnum#2<\z@ - -% - \ifnum#1>-#2 % - \expandafter\InCa@Mul\number#1\expandafter!% - \@gobble#2!% - \else - \expandafter\InCa@Mul\@gobble#2!#1!% - \fi - \else - \ifnum#1>#2 % - \InCa@Mul#1!#2!% - \else - \InCa@Mul#2!#1!% - \fi - \fi - \fi -} -\def\IntCalcMul#1!#2!{% - \number\InCa@Mul#1!#2! % -} -\def\InCa@Mul#1!#2!{% - \ifcase#2 % - 0% - \or - #1% - \or - \csname InCa@Empty% - \expandafter\InCa@Shl#1!% - \else - \ifnum#2<10 % - \InCa@Tim{#1}#2% - \else - \InCa@ProcessMul!#2!#1!% - \fi - \fi -} -\def\InCa@ProcessMul#1!#2#3!#4!{% - \ifx\InCa@Empty#3\InCa@Empty - \expandafter\InCa@Add\number - #10\expandafter\expandafter\expandafter!% - \InCa@Tim{#4}#2!% - \else - \ifx\InCa@Empty#1\InCa@Empty - \expandafter\expandafter\expandafter\InCa@ProcessMul - \InCa@Tim{#4}#2!% - #3!#4!% - \else - \expandafter\InCa@ProcessMul\number - \expandafter\InCa@Add\number% - #10\expandafter\expandafter\expandafter!% - \InCa@Tim{#4}#2!!% - #3!#4!% - \fi - \fi -} -\def\intcalcSqr#1{% - \number\expandafter\InCa@Sqr\number#1! % -} -\def\InCa@Sqr#1#2!{% - \ifx#1-% - \InCa@Mul#2!#2!% - \else - \InCa@Mul#1#2!#1#2!% - \fi -} -\def\intcalcFac#1{% - \number\expandafter\InCa@Fac\number#1! % -} -\def\intcalcPow#1#2{% - \number\expandafter\InCa@Pow - \number\number#1\expandafter!% - \number#2! % -} -\def\InCa@Pow#1#2!#3#4!{% - \ifcase#3#4 % power = 0 - 1% - \or % power = 1 - #1#2% - \or % power = 2 - \ifx#1-% - \InCa@Mul#2!#2!% - \else - \InCa@Mul#1#2!#1#2!% - \fi - \else - \ifcase#1#2 % basis = 0, power <> 0 - 0% - \ifx#3-% power < 0 - 0\IntCalcError:DivisionByZero% - \fi - \or - 1% basis = 1 - \else - \ifnum#1#2=\m@ne % basis = -1 - \ifodd#3#4 % - -% - \fi - 1% - \else % |basis| > 1 - \ifx#3-% power < 0 - 0% - \else % power > 2 - \ifx#1-% basis < 0 - \ifodd#3#4 % - -% - \fi - \InCa@PowRec#2!#3#4!1!% - \else - \InCa@PowRec#1#2!#3#4!1!% - \fi - \fi - \fi - \fi - \fi -} -\def\InCa@PowRec#1!#2!#3!{% - \ifnum#2=\@ne - \ifnum#1>#3 % - \InCa@Mul#1!#3!% - \else - \InCa@Mul#3!#1!% - \fi - \else - \expandafter\InCa@PowRec - \number\InCa@Mul#1!#1!\expandafter!% - \number\intcalcShr{#2}\expandafter!% - \number - \ifodd#2 % - \ifnum#1>#3 % - \InCa@Mul#1!#3!% - \else - \InCa@Mul#3!#1!% - \fi - \else - #3% - \fi - \expandafter!% - \fi -} -\def\intcalcDiv#1#2{% - \number\expandafter\InCa@Div - \number\number#1\expandafter!% - \number#2! % -} -\def\InCa@Div#1!#2!{% - \ifcase#2 % - 0\IntCalcError:DivisionByZero% - \else - \ifcase#1 % - 0% - \else - \expandafter\InCa@DivSwitch - \number#1\expandafter!% - \number#2!% - \fi - \fi -} -\def\InCa@Temp#1{% - \def\IntCalcDiv##1!##2!{% - \number - \ifcase##2 % - 0\IntCalcError:DivisionByZero% - \else - \ifcase##1 % - 0% - \else - \InCa@@Div##1!##2!% - \fi - \fi - #1% - }% -} -\InCa@Temp{ }% -\def\InCa@DivSwitch#1!#2!{% - \ifnum#1<\z@ - \ifnum#2<\z@ - \expandafter\InCa@@Div\number-#1\expandafter!% - \@gobble#2!% - \else - -% - \expandafter\InCa@@Div\@gobble#1!#2!% - \fi - \else - \ifnum#2<\z@ - -% - \expandafter\InCa@@Div\number#1\expandafter!% - \@gobble#2!% - \else - \InCa@@Div#1!#2!% - \fi - \fi -} -\def\InCa@@Div#1!#2!{% - \ifnum#1>#2 % - \ifcase#2 % 0 already catched -? \IntCalcError:ThisCannotHappen% - \or % 1 - #1% - \or % 2 - \InCa@Shr#1!% - \else - \InCa@DivStart!#1!#2!#2!% - \fi - \else - \ifnum#1=#2 % - 1% - \else - 0% - \fi - \fi -} -\def\InCa@DivStart#1!#2#3!#4#5{% - \ifx#5!% - \@ReturnAfterElseFi{% - \InCa@DivStartI{#1#2}#3=!% - }% - \else - \@ReturnAfterFi{% - \InCa@DivStart{#1#2}!#3!#5% - }% - \fi -} -\def\InCa@DivStartI#1!#2!{% - \expandafter\InCa@DivStartII - \number#2\expandafter\expandafter\expandafter!% - \intcalcShl{#2}!% - #1!% -} -\def\InCa@DivStartII#1!#2!{% - \expandafter\InCa@DivStartIII - \number#1\expandafter!% - \number#2\expandafter\expandafter\expandafter!% - \intcalcShl{#2}!% -} -\def\InCa@DivStartIII#1!#2!#3!{% - \expandafter\InCa@DivStartIV - \number#1\expandafter!% - \number#2\expandafter!% - \number#3\expandafter!% - \number\InCa@Add#3!#2!\expandafter\expandafter\expandafter!% - \intcalcShl{#3}!% -} -\def\InCa@DivStartIV#1!#2!#3!#4!#5!#6!{% - \InCa@ProcessDiv#6!#1!#2!#3!#4!#5!/% -} -\def\InCa@ProcessDiv#1#2#3!#4!#5!#6!#7!#8!#9/{% - #9% - \ifnum#1<#4 % 0 - 0% - \ifx#2=% - \else - \InCa@ProcessDiv{#1#2}#3!#4!#5!#6!#7!#8!% - \fi - \else % 1-9 - \ifnum#1<#5 % 1 - 1% - \ifx#2=% - \else - \expandafter\InCa@ProcessDiv\expandafter{% - \number\InCa@Sub#1!#4!% - #2% - }#3!#4!#5!#6!#7!#8!% - \fi - \else % 2-9 - \ifnum#1<#7 % 2 3 4 5 - \ifnum#1<#6 % 2 3 - \@ReturnAfterElseFi{% - \expandafter\InCa@@ProcessDiv - \number\InCa@Sub#1!#5!!% - 23% - }% - \else % 4 5 - \@ReturnAfterFi{% - \expandafter\InCa@@ProcessDiv - \number\InCa@Sub#1!#6!!% - 45% - }% - \fi - #2#3!#4!#5!#6!#7!#8!% - \else % 6 7 8 9 - \ifnum#1<#8 % 6 7 - \@ReturnAfterElseFi{% - \expandafter\InCa@@ProcessDiv - \number\InCa@Sub#1!#7!!% - 67% - }% - \else % 8 9 - \@ReturnAfterFi{% - \expandafter\InCa@@ProcessDiv - \number\InCa@Sub#1!#8!!% - 89% - }% - \fi - #2#3!#4!#5!#6!#7!#8!% - \fi - \fi - \fi - \ifx#2=% - \expandafter\@gobble - \fi - /% -} -\def\InCa@@ProcessDiv#1!#2#3#4#5!#6!{% - \ifnum#1<#6 % - #2% - \@ReturnAfterElseFi{% - \ifx#4=% - \expandafter\InCa@CleanupIV - \else - \@ReturnAfterFi{% - \InCa@ProcessDiv{#1#4}#5!#6!% - }% - \fi - }% - \else - #3% - \@ReturnAfterFi{% - \ifx#4=% - \expandafter\InCa@CleanupIV - \else - \@ReturnAfterFi{% - \expandafter\InCa@ProcessDiv\expandafter{% - \number\InCa@Sub#1!#6! % - #4% - }#5!#6!% - }% - \fi - }% - \fi -} -\def\InCa@CleanupIV#1!#2!#3!#4!{} -\def\intcalcMod#1#2{% - \number\expandafter\InCa@Mod - \number\number#1\expandafter!% - \number#2! % -} -\def\InCa@Mod#1!#2!{% - \ifcase#2 % - 0\IntCalcError:DivisionByZero% - \else - \ifnum#2<\z@ - -% - \expandafter\InCa@Mod - \number-#1\expandafter!% - \number-#2!% - \else - \ifcase#1 % - 0% - \else - \ifcase#2 % 0 already catched -? \IntCalcError:ThisCannotHappen% - \or % 1 - 0% - \or % 2 - \ifodd#1 1\else 0\fi - \else - \ifnum#1<\z@ - \expandafter\InCa@ModShift - \number-% - \expandafter\InCa@Sub - \number\@gobble#1\expandafter!% - \number\intcalcMul{#2}{% - \expandafter\InCa@Div\@gobble#1!#2!% - }!% - !#2!% - \else - \expandafter\InCa@Sub\number#1\expandafter!% - \number\intcalcMul{#2}{\InCa@Div#1!#2!}!% - \fi - \fi - \fi - \fi - \fi -} -\def\InCa@Temp#1{% - \def\IntCalcMod##1!##2!{% - \number - \ifcase##2 % - 0\IntCalcError:DivisionByZero% - \else - \ifcase##1 % - 0% - \else - \ifcase##2 % 0 already catched -? \IntCalcError:ThisCannotHappen - \or % 1 - 0% - \or % 2 - \ifodd ##1 1\else 0\fi - \else - \expandafter\InCa@Sub\number##1\expandafter!% - \number\intcalcMul{##2}{\InCa@Div##1!##2!}!% - \fi - \fi - \fi - #1% - }% -} -\InCa@Temp{ }% -\def\InCa@ModShift#1!#2!{% - \ifnum#1<\z@ - \expandafter\InCa@Sub\number#2\expandafter!% - \@gobble#1!% - \else - #1% - \fi -} -\def\InCa@Empty{} -\expandafter\ifx\csname @gobble\endcsname\relax - \long\def\@gobble#1{}% -\fi -\long\def\@ReturnAfterFi#1\fi{\fi#1}% -\long\def\@ReturnAfterElseFi#1\else#2\fi{\fi#1}% -\InCa@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `intcalc.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty b/Master/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty deleted file mode 100644 index 271d1009445..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty +++ /dev/null @@ -1,196 +0,0 @@ -%% -%% This is file `kvdefinekeys.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% kvdefinekeys.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: kvdefinekeys -%% Version: 2016/05/16 v1.4 -%% -%% Copyright (C) -%% 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 kvdefinekeys.dtx -%% and the derived files -%% kvdefinekeys.sty, kvdefinekeys.pdf, kvdefinekeys.ins, kvdefinekeys.drv, -%% kvdefinekeys-test1.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@kvdefinekeys.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{kvdefinekeys}{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@kvdefinekeys.sty\endcsname -\ProvidesPackage{kvdefinekeys}% - [2016/05/16 v1.4 Define keys (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname KVD@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\KVD@AtEnd{% - \KVD@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{42}{12}% * -\TMP@EnsureCode{46}{12}% . -\TMP@EnsureCode{47}{12}% / -\TMP@EnsureCode{91}{12}% [ -\TMP@EnsureCode{93}{12}% ] -\edef\KVD@AtEnd{\KVD@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/03/01]% -\else - \RequirePackage{ltxcmds}[2010/03/01]% -\fi -\ltx@IfUndefined{protected}{% - \ltx@IfUndefined{DeclareRobustCommand}{% - \def\kv@define@key#1#2% - }{% - \DeclareRobustCommand*{\kv@define@key}[2]% - }% -}{% - \protected\def\kv@define@key#1#2% -}% -{% - \begingroup - \csname @safe@activestrue\endcsname - \let\ifincsname\iftrue - \edef\KVD@temp{\endgroup - \noexpand\KVD@DefineKey{#1}{#2}% - }% - \KVD@temp -} -\def\KVD@DefineKey#1#2{% - \ltx@ifnextchar[{% - \KVD@DefineKeyWithDefault{#1}{#2}% - }{% - \long\expandafter\def\csname KV@#1@#2\endcsname##1% - }% -} -\long\def\KVD@DefineKeyWithDefault#1#2[#3]{% - \expandafter\def\csname KV@#1@#2@default\expandafter\endcsname - \expandafter{% - \csname KV@#1@#2\endcsname{#3}% - }% - \long\expandafter\def\csname KV@#1@#2\endcsname##1% -} -\KVD@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `kvdefinekeys.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty b/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty deleted file mode 100644 index 8a7696ea07f..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty +++ /dev/null @@ -1,584 +0,0 @@ -%% -%% This is file `kvsetkeys.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% kvsetkeys.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: kvsetkeys -%% Version: 2016/05/16 v1.17 -%% -%% Copyright (C) -%% 2006, 2007, 2009-2012 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 kvsetkeys.dtx -%% and the derived files -%% kvsetkeys.sty, kvsetkeys.pdf, kvsetkeys.ins, kvsetkeys.drv, -%% kvsetkeys-example.tex, kvsetkeys-test1.tex, -%% kvsetkeys-test2.tex, kvsetkeys-test3.tex, -%% kvsetkeys-test4.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@kvsetkeys.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{kvsetkeys}{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@kvsetkeys.sty\endcsname -\ProvidesPackage{kvsetkeys}% - [2016/05/16 v1.17 Key value parser (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname KVS@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\KVS@AtEnd{% - \KVS@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{36}{3}% $ -\TMP@EnsureCode{38}{4}% & -\TMP@EnsureCode{39}{12}% ' -\TMP@EnsureCode{43}{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{94}{7}% ^ (superscript) -\TMP@EnsureCode{96}{12}% ` -\TMP@EnsureCode{126}{13}% ~ (active) -\edef\KVS@AtEnd{\KVS@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{infwarerr}[2007/09/09]% - \TMP@RequirePackage{etexcmds}[2010/01/28]% -\else - \RequirePackage{infwarerr}[2007/09/09]% - \RequirePackage{etexcmds}[2010/01/28]% -\fi -\expandafter\ifx\csname toks@\endcsname\relax - \toksdef\toks@=0 % -\fi -\begingroup\expandafter\endgroup -\ifcase0\ifetex@unexpanded - \expandafter\ifx\csname ifcsname\endcsname\relax - \else - \expandafter\ifx\csname unless\endcsname\relax - \else - 1% - \fi - \fi - \fi - \catcode`\$=9 % ignore - \catcode`\&=14 % comment -\else % e-TeX - \catcode`\$=14 % comment - \catcode`\&=9 % ignore -\fi -\def\KVS@Empty{} -\long\def\KVS@FirstOfTwo#1#2{#1} -\long\def\KVS@SecondOfTwo#1#2{#2} -\long\def\KVS@IfEmpty#1{% -& \edef\KVS@Temp{\etex@unexpanded{#1}}% -$ \begingroup -$ \toks@{#1}% -$ \edef\KVS@Temp{\the\toks@}% -$ \expandafter\endgroup - \ifx\KVS@Temp\KVS@Empty - \expandafter\KVS@FirstOfTwo - \else - \expandafter\KVS@SecondOfTwo - \fi -} -\long\def\kv@normalize#1{% - \begingroup - \toks@{,#1,}% - \KVS@Comma - \KVS@SpaceComma - \KVS@CommaSpace - \KVS@CommaComma - \KVS@Equals - \KVS@SpaceEquals - \KVS@EqualsSpace - \xdef\KVS@Global{\the\toks@}% - \endgroup - \let\kv@list\KVS@Global -} -\def\comma@normalize#1{% - \begingroup - \toks@{,#1,}% - \KVS@Comma - \KVS@SpaceComma - \KVS@CommaSpace - \KVS@CommaComma - \xdef\KVS@Global{\the\toks@}% - \endgroup - \let\comma@list\KVS@Global -} -\begingroup - \lccode`\,=`\,% - \lccode`\~=`\,% -\lowercase{\endgroup - \def\KVS@Comma{% - \toks@\expandafter{\expandafter}\expandafter - \KVS@@Comma\the\toks@~\KVS@Nil - }% - \long\def\KVS@@Comma#1~#2\KVS@Nil{% - \toks@\expandafter{\the\toks@#1}% - \KVS@IfEmpty{#2}{% - }{% - \KVS@@Comma,#2\KVS@Nil - }% - }% -} -\def\KVS@SpaceComma#1{% - \def\KVS@SpaceComma{% - \expandafter\KVS@@SpaceComma\the\toks@#1,\KVS@Nil - }% -} -\KVS@SpaceComma{ } -\long\def\KVS@@SpaceComma#1 ,#2\KVS@Nil{% - \KVS@IfEmpty{#2}{% - \toks@{#1}% - }{% - \KVS@@SpaceComma#1,#2\KVS@Nil - }% -} -\def\KVS@CommaSpace{% - \expandafter\KVS@@CommaSpace\the\toks@, \KVS@Nil -} -\long\def\KVS@@CommaSpace#1, #2\KVS@Nil{% - \KVS@IfEmpty{#2}{% - \toks@{#1}% - }{% - \KVS@@CommaSpace#1,#2\KVS@Nil - }% -} -\def\KVS@CommaComma{% - \expandafter\KVS@@CommaComma\the\toks@,\KVS@Nil -} -\long\def\KVS@@CommaComma#1,,#2\KVS@Nil{% - \KVS@IfEmpty{#2}{% - \toks@{#1,}% (!) - }{% - \KVS@@CommaComma#1,#2\KVS@Nil - }% -} -\begingroup - \lccode`\==`\=% - \lccode`\~=`\=% -\lowercase{\endgroup - \def\KVS@Equals{% - \toks@\expandafter{\expandafter}\expandafter - \KVS@@Equals\the\toks@~\KVS@Nil - }% - \long\def\KVS@@Equals#1~#2\KVS@Nil{% - \edef\KVS@Temp{\the\toks@}% - \ifx\KVS@Temp\KVS@Empty - \expandafter\KVS@FirstOfTwo - \else - \expandafter\KVS@SecondOfTwo - \fi - {% - \toks@{#1}% - }{% - \toks@\expandafter{\the\toks@=#1}% - }% - \KVS@IfEmpty{#2}{% - }{% - \KVS@@Equals#2\KVS@Nil - }% - }% -} -\def\KVS@SpaceEquals#1{% - \def\KVS@SpaceEquals{% - \expandafter\KVS@@SpaceEquals\the\toks@#1=\KVS@Nil - }% -} -\KVS@SpaceEquals{ } -\long\def\KVS@@SpaceEquals#1 =#2\KVS@Nil{% - \KVS@IfEmpty{#2}{% - \toks@{#1}% - }{% - \KVS@@SpaceEquals#1=#2\KVS@Nil - }% -} -\def\KVS@EqualsSpace{% - \expandafter\KVS@@EqualsSpace\the\toks@= \KVS@Nil -} -\long\def\KVS@@EqualsSpace#1= #2\KVS@Nil{% - \KVS@IfEmpty{#2}{% - \toks@{#1}% - }{% - \KVS@@EqualsSpace#1=#2\KVS@Nil - }% -} -\long\def\kv@parse#1{% - \kv@normalize{#1}% - \expandafter\kv@parse@normalized\expandafter{\kv@list}% -} -\long\def\kv@parse@normalized#1#2{% - \KVS@Parse#1,\KVS@Nil{#2}% -} -\long\def\KVS@Parse#1,#2\KVS@Nil#3{% - \KVS@IfEmpty{#1}{% - }{% - \KVS@Process#1=\KVS@Nil{#3}% - }% - \KVS@MaybeBreak - \KVS@IfEmpty{#2}{% - }{% - \KVS@Parse#2\KVS@Nil{#3}% - }% -} -\long\def\KVS@Process#1=#2\KVS@Nil#3{% - \let\KVS@MaybeBreak\relax - \def\kv@key{#1}% - \KVS@IfEmpty{#2}{% - \let\kv@value\relax - #3{#1}{}% - }{% - \KVS@@Process{#1}#2\KVS@Nil{#3}% - }% -} -\long\def\KVS@@Process#1#2=\KVS@Nil#3{% -& \edef\kv@value{\etex@unexpanded{#2}}% -$ \begingroup -$ \toks@{#2}% -$ \xdef\KVS@Global{\the\toks@}% -$ \endgroup -$ \let\kv@value\KVS@Global - #3{#1}{#2}% -} -\let\KVS@MaybeBreak\relax -\def\KVS@break#1#2#3#4{% - \let\KVS@MaybeBreak\relax -} -\def\kv@break{% - \let\KVS@MaybeBreak\KVS@break -} -\def\comma@parse#1{% - \comma@normalize{#1}% - \expandafter\comma@parse@normalized\expandafter{\comma@list}% -} -\def\comma@parse@normalized#1#2{% - \KVS@CommaParse#1,\KVS@Nil{#2}% -} -\def\KVS@CommaParse#1,#2\KVS@Nil#3{% - \KVS@IfEmpty{#1}{% - }{% - \def\comma@entry{#1}% - #3{#1}% - }% - \KVS@MaybeBreak - \KVS@IfEmpty{#2}{% - }{% - \KVS@CommaParse#2\KVS@Nil{#3}% - }% -} -\def\comma@break{% - \let\KVS@MaybeBreak\KVS@break -} -\def\kv@handled@false{% - \let\ifkv@handled@\iffalse -} -\def\kv@handled@true{% - \let\ifkv@handled@\iftrue -} -\kv@handled@true -\def\kv@processor@default#1#2{% - \begingroup - \csname @safe@activestrue\endcsname - \let\ifincsname\iftrue - \edef\KVS@temp{\endgroup - \noexpand\KVS@ProcessorDefault{#1}{#2}% - }% - \KVS@temp -} -\long\def\KVS@ProcessorDefault#1#2#3{% - \def\kv@fam{#1}% -& \unless\ifcsname KV@#1@#2\endcsname -$ \begingroup\expandafter\expandafter\expandafter\endgroup -$ \expandafter\ifx\csname KV@#1@#2\endcsname\relax -& \unless\ifcsname KVS@#1@handler\endcsname -$ \begingroup\expandafter\expandafter\expandafter\endgroup -$ \expandafter\ifx\csname KVS@#1@handler\endcsname\relax - \kv@error@unknownkey{#1}{#2}% - \else - \kv@handled@true - \csname KVS@#1@handler\endcsname{#2}{#3}% - \relax - \ifkv@handled@ - \else - \kv@error@unknownkey{#1}{#2}% - \fi - \fi - \else - \ifx\kv@value\relax -& \unless\ifcsname KV@#1@#2@default\endcsname -$ \begingroup\expandafter\expandafter\expandafter\endgroup -$ \expandafter\ifx\csname KV@#1@#2@default\endcsname\relax - \kv@error@novalue{#1}{#2}% - \else - \csname KV@#1@#2@default\endcsname - \relax - \fi - \else - \csname KV@#1@#2\endcsname{#3}% - \fi - \fi -} -\def\kv@processor@known#1#2#3{% - \begingroup - \csname @safe@activestrue\endcsname - \let\ifincsname\iftrue - \edef\KVS@temp{\endgroup - \noexpand\KVS@ProcessorKnown{#1}\noexpand#2{#3}% - }% - \KVS@temp -} -\long\def\KVS@ProcessorKnown#1#2#3#4{% - \def\kv@fam{#1}% -& \unless\ifcsname KV@#1@#3\endcsname -$ \begingroup\expandafter\expandafter\expandafter\endgroup -$ \expandafter\ifx\csname KV@#1@#3\endcsname\relax -& \unless\ifcsname KVS@#1@handler\endcsname -$ \begingroup\expandafter\expandafter\expandafter\endgroup -$ \expandafter\ifx\csname KVS@#1@handler\endcsname\relax - \KVS@AddUnhandled#2{#3}{#4}% - \else - \kv@handled@true - \csname KVS@#1@handler\endcsname{#3}{#4}% - \relax - \ifkv@handled@ - \else - \KVS@AddUnhandled#2{#3}{#4}% - \fi - \fi - \else - \ifx\kv@value\relax -& \unless\ifcsname KV@#1@#2@default\endcsname -$ \begingroup\expandafter\expandafter\expandafter\endgroup -$ \expandafter\ifx\csname KV@#1@#3@default\endcsname\relax - \kv@error@novalue{#1}{#3}% - \else - \csname KV@#1@#3@default\endcsname - \relax - \fi - \else - \csname KV@#1@#3\endcsname{#4}% - \fi - \fi -} -\long\def\KVS@AddUnhandled#1#2#3{% -& \edef#1{% -& \ifx#1\KVS@empty -& \else -& \etex@unexpanded{#1},% -& \fi -& \etex@unexpanded{{#2}={#3}}% -& }% -$ \begingroup -$ \ifx#1\KVS@empty -$ \toks@{{#2}={#3}}% -$ \else -$ \toks@\expandafter{#1,{#2}={#3}}% -$ \fi -$ \xdef\KVS@Global{\the\toks@}% -$ \endgroup -$ \let#1\KVS@Global -} -\long\def\kv@set@family@handler#1#2{% - \begingroup - \csname @safe@activestrue\endcsname - \let\ifincsname\iftrue - \expandafter\endgroup - \expandafter\def\csname KVS@#1@handler\endcsname##1##2{#2}% -} -\long\def\kv@unset@family@handler#1#2{% - \begingroup - \csname @safe@activestrue\endcsname - \let\ifincsname\iftrue - \expandafter\endgroup - \expandafter\let\csname KVS@#1@handler\endcsname\@UnDeFiNeD -} -\def\kv@error@novalue{% - \kv@error@generic{No value specified for}% -} -\def\kv@error@unknownkey{% - \kv@error@generic{Undefined}% -} -\def\kv@error@generic#1#2#3{% - \@PackageError{kvsetkeys}{% - #1 key `#3'% - }{% - The keyval family of the key `#3' is `#2'.\MessageBreak - The setting of the key is ignored because of the error.\MessageBreak - \MessageBreak - \@ehc - }% -} -\long\def\kvsetkeys#1#2{% - \kv@parse{#2}{\kv@processor@default{#1}}% -} -\def\kvsetkeys@expandafter#1#2{% - \expandafter\kv@parse\expandafter{#2}{% - \kv@processor@default{#1}% - }% -} -\def\KVS@cmd{0}% -\def\KVS@cmd@inc{% -& \edef\KVS@cmd{\the\numexpr\KVS@cmd+1}% -$ \begingroup -$ \count255=\KVS@cmd\relax -$ \advance\count255 by 1\relax -$ \edef\x{\endgroup -$ \noexpand\def\noexpand\KVS@cmd{\number\count255}% -$ }% -$ \x -} -\def\KVS@cmd@dec{% -& \edef\KVS@cmd{\the\numexpr\KVS@cmd-1}% -$ \begingroup -$ \count255=\KVS@cmd\relax -$ \advance\count255 by -1\relax -$ \edef\x{\endgroup -$ \noexpand\def\noexpand\KVS@cmd{\number\count255}% -$ }% -$ \x -} -\def\KVS@empty{} -\def\kvsetknownkeys{% - \expandafter - \KVS@setknownkeys\csname KVS@cmd\KVS@cmd\endcsname{}% -} -\long\def\KVS@setknownkeys#1#2#3#4#5{% - \let#1\KVS@empty - \KVS@cmd@inc - #2\kv@parse#2{#5}{\kv@processor@known{#3}#1}% - \KVS@cmd@dec - \let#4=#1% -} -\def\kvsetknownkeys@expandafter{% - \expandafter - \KVS@setknownkeys - \csname KVS@cmd\KVS@cmd\endcsname\expandafter -} -\KVS@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `kvsetkeys.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/ltxcmds.sty b/Master/texmf-dist/tex/generic/oberdiek/ltxcmds.sty deleted file mode 100644 index a0a9bae430a..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/ltxcmds.sty +++ /dev/null @@ -1,752 +0,0 @@ -%% -%% This is file `ltxcmds.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% ltxcmds.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: ltxcmds -%% Version: 2016/05/16 v1.23 -%% -%% Copyright (C) -%% 2009-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 ltxcmds.dtx -%% and the derived files -%% ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv, -%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex, -%% ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex, -%% ltxcmds-test-ifboxempty.tex, ltxcmds-test-nextchar.tex, -%% ltxcmds-test-carcdr.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@ltxcmds.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{ltxcmds}{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@ltxcmds.sty\endcsname -\ProvidesPackage{ltxcmds}% - [2016/05/16 v1.23 LaTeX kernel commands for general use (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname LTXcmds@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\LTXcmds@AtEnd{% - \LTXcmds@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{36}{3}% $ -\TMP@EnsureCode{38}{4}% & -\TMP@EnsureCode{40}{12}% ( -\TMP@EnsureCode{41}{12}% ) -\TMP@EnsureCode{45}{12}% - -\TMP@EnsureCode{46}{12}% . -\TMP@EnsureCode{47}{12}% / -\TMP@EnsureCode{60}{12}% < -\TMP@EnsureCode{62}{12}% > -\TMP@EnsureCode{91}{12}% [ -\TMP@EnsureCode{96}{12}% ` -\TMP@EnsureCode{93}{12}% ] -\TMP@EnsureCode{94}{12}% ^ (superscript) (!) -\TMP@EnsureCode{124}{12}% | -\edef\LTXcmds@AtEnd{\LTXcmds@AtEnd\noexpand\endinput} -\chardef\ltx@zero=0 % -\chardef\ltx@one=1 % -\chardef\ltx@two=2 % -\chardef\ltx@active=13 % -\chardef\ltx@cclv=255 % -\def\ltx@minusone{% - -\ltx@one -} -\toksdef\ltx@LocToksA=0 % -\toksdef\ltx@LocToksB=2 % -\toksdef\ltx@LocToksC=4 % -\toksdef\ltx@LocToksD=6 % -\toksdef\ltx@LocToksE=8 % -\toksdef\ltx@GlobToksA=1 % -\toksdef\ltx@GlobToksB=3 % -\toksdef\ltx@GlobToksC=5 % -\toksdef\ltx@GlobToksD=7 % -\toksdef\ltx@GlobToksE=9 % -\dimendef\ltx@LocDimenA=0 % -\dimendef\ltx@LocDimenB=2 % -\dimendef\ltx@LocDimenC=4 % -\dimendef\ltx@LocDimenD=6 % -\dimendef\ltx@LocDimenE=8 % -\dimendef\ltx@GlobDimenA=1 % -\dimendef\ltx@GlobDimenB=3 % -\dimendef\ltx@GlobDimenC=5 % -\dimendef\ltx@GlobDimenD=7 % -\dimendef\ltx@GlobDimenE=9 % -\skipdef\ltx@LocSkipA=0 % -\skipdef\ltx@LocSkipB=2 % -\skipdef\ltx@LocSkipC=4 % -\skipdef\ltx@LocSkipD=6 % -\skipdef\ltx@LocSkipE=8 % -\skipdef\ltx@GlobSkipA=1 % -\skipdef\ltx@GlobSkipB=3 % -\skipdef\ltx@GlobSkipC=5 % -\skipdef\ltx@GlobSkipD=7 % -\skipdef\ltx@GlobSkipE=9 % -\long\def\ltx@gobble#1{} -\long\def\ltx@gobbletwo#1#2{} -\long\def\ltx@gobblethree#1#2#3{} -\long\def\ltx@gobblefour#1#2#3#4{} -\def\ltx@GobbleNum#1{% - \romannumeral - \csname ltx@zero% - \expandafter\LTXcmds@GobbleNum - \romannumeral\LTXcmds@num{#1}000{m\endcsname}% -} -\def\LTXcmds@GobbleNum#1{% - \csname LTXcmds@G#1\LTXcmds@GobbleNum -} -\long\def\LTXcmds@Gm#1{% - \endcsname -} -\long\def\ltx@firstofone#1{#1} -\long\def\ltx@firstoftwo#1#2{#1} -\long\def\ltx@secondoftwo#1#2{#2} -\long\def\ltx@firstofthree#1#2#3{#1} -\long\def\ltx@secondofthree#1#2#3{#2} -\long\def\ltx@thirdofthree#1#2#3{#3}% -\long\def\ltx@firstoffour#1#2#3#4{#1} -\long\def\ltx@secondoffour#1#2#3#4{#2} -\long\def\ltx@thirdoffour#1#2#3#4{#3}% -\long\def\ltx@fourthoffour#1#2#3#4{#4}% -\long\def\ltx@carzero#1\@nil{}% -\long\def\LTXcmds@cdrzero#1\@nil{#1} -\def\ltx@cdrzero{% - \romannumeral\LTXcmds@cdrzero\ltx@zero -} -\long\def\ltx@car#1#2\@nil{#1} -\long\def\ltx@cdr#1{% - \romannumeral\LTXcmds@cdrzero\ltx@zero -} -\long\def\ltx@cartwo#1#2#3\@nil{#1#2} -\long\def\ltx@carsecond#1#2#3\@nil{#2} -\long\def\ltx@cdrtwo#1#2{% - \romannumeral\LTXcmds@cdrzero\ltx@zero -} -\long\def\ltx@carthree#1#2#3#4\@nil{#1#2#3} -\long\def\ltx@carthird#1#2#3#4\@nil{#3} -\long\def\ltx@cdrthree#1#2#3{% - \romannumeral\LTXcmds@cdrzero\ltx@zero -} -\long\def\ltx@carfour#1#2#3#4#5\@nil{#1#2#3#4} -\long\def\ltx@carfourth#1#2#3#4#5\@nil{#4} -\long\def\ltx@cdrfour#1#2#3#4{% - \romannumeral\LTXcmds@cdrzero\ltx@zero -} -\def\ltx@CarNum#1{% - \romannumeral - \csname LTXcmds@CarNumFinish% - \expandafter\LTXcmds@CarNum - \romannumeral\LTXcmds@num{#1}000{x\endcsname}% -} -\def\LTXcmds@CarNum#1{% - \csname LTXcmds@C#1\LTXcmds@CarNum -} -\long\def\LTXcmds@Cm#1#2{% - \endcsname{#1#2}% -} -\def\LTXcmds@Cx#1{% - \endcsname{}% -} -\long\def\LTXcmds@CarNumFinish#1#2\@nil{% - \ltx@zero - #1% -} -\def\ltx@CarNumth#1{% - \romannumeral - \expandafter\expandafter\expandafter - \LTXcmds@CarNumth - \ltx@GobbleNum{#1}{}% -} -\long\def\LTXcmds@CarNumth#1#2\@nil{% - \ltx@zero - #1% -} -\def\ltx@CdrNum#1{% - \romannumeral% - \expandafter\expandafter\expandafter\ltx@cdrzero - \expandafter\expandafter\expandafter\ltx@zero - \ltx@GobbleNum{#1}% -} -\long\def\ltx@ReturnAfterFi#1\fi{\fi#1} -\long\def\ltx@ReturnAfterElseFi#1\else#2\fi{\fi#1} -\def\ltx@empty{} -\def\ltx@space{ } -\begingroup - \lccode`0=`\%\relax -\lowercase{\endgroup - \def\ltx@percentchar{0}% -} -\begingroup - \lccode`0=`\\\relax -\lowercase{\endgroup - \def\ltx@backslashchar{0}% -} -\begingroup - \lccode`0=`\#\relax -\lowercase{\endgroup - \def\ltx@hashchar{0}% -} -\begingroup - \lccode`0=`\{\relax -\lowercase{\endgroup - \def\ltx@leftbracechar{0}% -} -\begingroup - \lccode`0=`\}\relax -\lowercase{\endgroup - \def\ltx@rightbracechar{0}% -} -\def\ltx@newif#1{% - \begingroup - \escapechar=-1 % - \expandafter\endgroup - \expandafter\LTXcmds@newif\string#1\@nil -} -\begingroup - \escapechar=-1 % -\expandafter\endgroup -\expandafter\def\expandafter\LTXcmds@newif\string\if#1\@nil{% - \expandafter\edef\csname#1true\endcsname{% - \let - \expandafter\noexpand\csname if#1\endcsname - \noexpand\iftrue - }% - \expandafter\edef\csname#1false\endcsname{% - \let - \expandafter\noexpand\csname if#1\endcsname - \noexpand\iffalse - }% - \csname#1false\endcsname -} -\def\ltx@newglobalif#1{% - \begingroup - \escapechar=-1 % - \expandafter\endgroup - \expandafter\LTXcmds@newglobalif\string#1\@nil -} -\begingroup - \escapechar=-1 % -\expandafter\endgroup -\expandafter -\def\expandafter\LTXcmds@newglobalif\string\if#1\@nil{% - \expandafter\edef\csname#1true\endcsname{% - \global\let - \expandafter\noexpand\csname if#1\endcsname - \noexpand\iftrue - }% - \expandafter\edef\csname#1false\endcsname{% - \global\let - \expandafter\noexpand\csname if#1\endcsname - \noexpand\iffalse - }% - \csname#1false\endcsname -} -\def\ltx@LocalExpandAfter{% - \begingroup - \expandafter\expandafter\expandafter - \endgroup - \expandafter -} -\ltx@LocalExpandAfter -\ifx\csname ifcsname\endcsname\relax - \def\ltx@ifundefined#1{% - \expandafter\ifx\csname #1\endcsname\relax - \expandafter\ltx@firstoftwo - \else - \expandafter\ltx@secondoftwo - \fi - }% - \def\ltx@IfUndefined#1{% - \begingroup\expandafter\expandafter\expandafter\endgroup - \expandafter\ifx\csname #1\endcsname\relax - \expandafter\ltx@firstoftwo - \else - \expandafter\ltx@secondoftwo - \fi - }% - \expandafter\ltx@gobble -\else - \expandafter\ltx@firstofone -\fi -{% - \def\ltx@ifundefined#1{% - \ifcsname #1\endcsname - \expandafter\ifx\csname #1\endcsname\relax - \expandafter\expandafter\expandafter\ltx@firstoftwo - \else - \expandafter\expandafter\expandafter\ltx@secondoftwo - \fi - \else - \expandafter\ltx@firstoftwo - \fi - }% - \let\ltx@IfUndefined\ltx@ifundefined -} -\def\ltx@RemovePrefix#1>{} -\def\ltx@StripPrefix{% - \expandafter\ltx@RemovePrefix -} -\def\ltx@onelevel@sanitize#1{% - \edef#1{% - \expandafter - \ltx@RemovePrefix\meaning#1% - }% -} -\def\ltx@clsextension{cls} -\def\ltx@pkgextension{sty} -\def\ltx@iffileloaded#1{% - \ltx@ifundefined{ver@#1}\ltx@secondoftwo\ltx@firstoftwo -} -\def\ltx@ifclassloaded#1{% - \ltx@iffileloaded{#1.\ltx@clsextension}% -} -\def\ltx@ifpackageloaded#1{% - \ltx@iffileloaded{#1.\ltx@pkgextension}% -} -\def\ltx@iffilelater#1#2{% - \ltx@iffileloaded{#1}{% - \expandafter\LTXcmds@IfLater\expandafter{% - \number - \expandafter\expandafter\expandafter\LTXcmds@ParseVersion - \expandafter\expandafter\expandafter{% - \csname ver@#1\endcsname - }% - \expandafter}\expandafter{% - \number - \expandafter\LTXcmds@ParseVersion\expandafter{#2}% - }% - }\ltx@secondoftwo -} -\def\LTXcmds@IfLater#1#2{% - \ifcase 0% - \ifnum#1<19940101 % - \else - \ifnum#2<19940101 % - \else - \ifnum#2>#1 % - \else - 1% - \fi - \fi - \fi - \ltx@space - \expandafter\ltx@secondoftwo - \else - \expandafter\ltx@firstoftwo - \fi -} -\def\ltx@ifclasslater#1{% - \ltx@iffilelater{#1.\ltx@clsextension}% -} -\def\ltx@ifpackagelater#1{% - \ltx@iffilelater{#1.\ltx@pkgextension}% -} -\ltx@IfUndefined{pdfmatch}{% - \def\LTXcmds@ParseVersion#1{% - \LTXcmds@@ParseVersion#10000/00/00\@nil - }% - \def\LTXcmds@@ParseVersion#1#2#3#4/#5#6/#7#8#9\@nil{% - #1#2#3#4#5#6#7#8% - }% -}{% - \def\LTXcmds@ParseVersion#1{% - \ifnum\pdfmatch{% - ^% - (199[4-9]|[2-9][0-9][0-9][0-9])/% - (0[1-9]|1[0-2])/% - (0[1-9]|[1-2][0-9]|3[0-1])% - }{#1}=1 % - \ltx@StripPrefix\pdflastmatch1 % - \ltx@StripPrefix\pdflastmatch2 % - \ltx@StripPrefix\pdflastmatch3 % - \else - 0% - \fi - }% -} -\long\def\ltx@GlobalAppendToMacro#1#2{% - \ifx\ltx@undefined#1% - \let#1\ltx@empty - \else - \ifx\relax#1% - \let#1\ltx@empty - \fi - \fi - \begingroup - \ltx@LocToksA\expandafter{#1#2}% - \xdef#1{\the\ltx@LocToksA}% - \endgroup -} -\long\def\ltx@LocalAppendToMacro#1#2{% - \global\let\LTXcmds@gtemp#1% - \ifx\ltx@undefined\LTXcmds@gtemp - \global\let\LTXcmds@gtemp\ltx@empty - \else - \ifx\relax\LTXcmds@gtemp - \global\letLTXcmds@gtemp\ltx@empty - \fi - \fi - \begingroup - \ltx@LocToksA\expandafter{\LTXcmds@gtemp#2}% - \xdef\LTXcmds@gtemp{\the\ltx@LocToksA}% - \endgroup - \let#1\LTXcmds@gtemp -} -\long\def\ltx@GlobalPrependToMacro#1#2{% - \ifx\ltx@undefined#1% - \let#1\ltx@empty - \else - \ifx\relax#1% - \let#1\ltx@empty - \fi - \fi - \begingroup - \ltx@LocToksA{#2}% - \ltx@LocToksB\expandafter{#1}% - \xdef#1{\the\ltx@LocToksA\the\ltx@LocToksB}% - \endgroup -} -\long\def\ltx@LocalPrependToMacro#1#2{% - \global\let\LTXcmds@gtemp#1% - \ifx\ltx@undefined\LTXcmds@gtemp - \global\let\LTXcmds@gtemp\ltx@empty - \else - \ifx\relax\LTXcmds@gtemp - \global\letLTXcmds@gtemp\ltx@empty - \fi - \fi - \begingroup - \ltx@LocToksA{#2}% - \ltx@LocToksB\expandafter{\LTXcmds@gtemp}% - \xdef\LTXcmds@gtemp{\the\ltx@LocToksA\the\ltx@LocToksB}% - \endgroup - \let#1\LTXcmds@gtemp -} -\long\def\ltx@ifnextchar#1#2#3{% - \begingroup - \let\LTXcmds@CharToken= #1\relax - \ltx@LocToksA{\endgroup#2}% - \ltx@LocToksB{\endgroup#3}% - \futurelet\LTXcmds@LetToken\LTXcmds@ifnextchar -} -\def\LTXcmds@ifnextchar{% - \ifx\LTXcmds@LetToken\LTXcmds@CharToken - \the\expandafter\ltx@LocToksA - \else - \expandafter - \ifx\csname LTXcmds@LetToken\endcsname\LTXcmds@SpaceToken - \expandafter\expandafter\expandafter\LTXcmds@@ifnextchar - \else - \the\expandafter\expandafter\expandafter\ltx@LocToksB - \fi - \fi -} -\def\LTXcmds@@ifnextchar{% - \expandafter\futurelet - \expandafter\LTXcmds@LetToken - \expandafter\LTXcmds@ifnextchar - \romannumeral-`\.% -} -\ltx@firstofone{\let\LTXcmds@SpaceToken= } % -\long\def\ltx@ifnextchar@nospace#1#2#3{% - \begingroup - \let\LTXcmds@CharToken= #1\relax - \ltx@LocToksA{\endgroup#2}% - \ltx@LocToksB{\endgroup#3}% - \futurelet\LTXcmds@LetToken\LTXcmds@ifnextchar@nospace -} -\def\LTXcmds@ifnextchar@nospace{% - \the - \ifx\LTXcmds@LetToken\LTXcmds@CharToken - \expandafter\ltx@LocToksA - \else - \expandafter\ltx@LocToksB - \fi -} -\ltx@IfUndefined{quitvmode}{% - \ltx@IfUndefined{leavevmode}{% - \ltx@IfUndefined{voidb@x}{% - \ltx@IfUndefined{newbox}{% - \def\ltx@leavevmode{% - \begingroup - \setbox\ltx@zero=\hbox{}% - \begingroup - \setbox\ltx@zero=\hbox{\box\ltx@zero}% - \endgroup - \unhbox\ltx@zero - \endgroup - }% - }{% - \csname newbox\endcsname\LTXcmds@VoidBox - \ifvoid\LTXcmds@VoidBox - \else - \setbox\LTXcmds@VoidBox=\hbox{}% - \begingroup - \setbox\LTXcmds@VoidBox=\hbox{\box\LTXcmds@VoidBox}% - \endgroup - \fi - \def\ltx@leavevmode{\unhbox\LTXcmds@VoidBox}% - }% - }{% - \def\ltx@leavevmode{\unhbox\voidb@x}% - }% - }{% - \let\ltx@leavevmode\leavevmode - }% -}{% - \let\ltx@leavevmode\quitvmode -} -\def\ltx@mbox{% - \ltx@leavevmode - \hbox -} -\ltx@IfUndefined{numexpr}{% - \def\LTXcmds@num#1{% - \expandafter\ltx@firstofone\expandafter{% - \number#1% - }% - }% -}{% - \def\LTXcmds@num#1{% - \expandafter\ltx@firstofone\expandafter{% - \the\numexpr#1% - }% - }% -} -\ltx@IfUndefined{detokenize}{% - \def\LTXcmds@temp#1{% - \long\def\ltx@ifempty##1{% - \romannumeral0% - \iffalse{\fi - \expandafter\ltx@gobble\expandafter{% - \expandafter{\string##1}% - \expandafter\ltx@gobble\string - }% - \expandafter\ltx@firstofthree\expandafter - {\iffalse}\fi - \expandafter#1\ltx@secondoftwo - }% - \expandafter#1\ltx@firstoftwo - }% - \long\def\ltx@ifblank##1{% - \romannumeral0% - \iffalse{\fi - \expandafter\expandafter\expandafter\ltx@gobble - \expandafter\expandafter\expandafter{% - \expandafter\expandafter\expandafter{% - \expandafter\string\ltx@gobble##1.% - }% - \expandafter\ltx@gobble\string - }% - \expandafter\ltx@firstofthree\expandafter - {\iffalse}\fi - \expandafter#1\ltx@secondoftwo - }% - \expandafter#1\ltx@firstoftwo - }% - }% - \LTXcmds@temp{ }% -}{% - \long\def\ltx@ifempty#1{% - \romannumeral% - \csname - LTXcmds@ifempty% - \ifcat$\detokenize{#1}$% - @% - \fi - \endcsname - }% - \long\def\LTXcmds@ifempty@#1#2{0 #1}% - \long\def\LTXcmds@ifempty#1#2{0 #2}% - \long\def\ltx@ifblank#1{% - \romannumeral% - \csname - LTXcmds@ifempty% - \ifcat$\detokenize\expandafter{\ltx@gobble#1.}$% - @% - \fi - \endcsname - }% -} -\long\def\ltx@zapspace#1{% - \romannumeral - \LTXcmds@zapspace\ltx@zero#1 \@nil -} -\long\def\LTXcmds@zapspace#1 #2\@nil{% - \ltx@ifempty{#2}{% - #1% - }{% - \LTXcmds@zapspace#1#2\@nil - }% -} -\ltx@IfUndefined{lastnodetype}{% - \catcode`\$=9 % - \catcode`\&=14 % -}{% - \catcode`\$=14 % - \catcode`\&=9 % -} -\def\ltx@IfBoxEmpty#1{% - \ifvoid#1\relax - \expandafter\ltx@secondoftwo - \else -& \begingroup -& \setbox\ltx@zero=\ifhbox#1\hbox\else\vbox\fi{% -& \ifhmode\unhcopy\else\unvcopy\fi#1\relax -& \expandafter -& }% -& \expandafter\endgroup -& \ifnum\lastnodetype<\ltx@zero -& \expandafter\expandafter\expandafter\ltx@firstoftwo -& \else -& \expandafter\expandafter\expandafter\ltx@secondoftwo -& \fi -$ \begingroup -$ \setbox\ltx@zero=\ifhbox#1\hbox\else\vbox\fi{% -$ \penalty\ltx@one -$ \ifhmode\unhcopy\else\unvcopy\fi#1\relax -$ \expandafter -$ }% -$ \ifnum\lastpenalty=\ltx@one -$ \endgroup -$ \begingroup -$ \setbox\ltx@zero=\ifhbox#1\hbox\else\vbox\fi{% -$ \penalty\ltx@two -$ \ifhmode\unhcopy\else\unvcopy\fi#1\relax -$ \expandafter -$ }% -$ \ifnum\lastpenalty=\ltx@two -$ \def\next{\endgroup\expandafter\ltx@firstoftwo}% -$ \else -$ \def\next{\endgroup\expandafter\ltx@secondoftwo}% -$ \fi -$ \else -$ \def\next{\endgroup\expandafter\ltx@secondoftwo}% -$ \fi -$ \next - \fi -} -\def\ltx@IfBoxVoidOrEmpty#1{% - \ifvoid#1\relax - \expandafter\ltx@thirdoffour - \fi - \ltx@IfBoxEmpty{#1}% -} -\LTXcmds@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `ltxcmds.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/soulutf8.sty b/Master/texmf-dist/tex/generic/oberdiek/soulutf8.sty deleted file mode 100644 index cfec8cee68c..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/soulutf8.sty +++ /dev/null @@ -1,697 +0,0 @@ -%% -%% This is file `soulutf8.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% soulutf8.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: soulutf8 -%% Version: 2016/05/16 v1.1 -%% -%% Copyright (C) -%% 2007 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 soulutf8.dtx -%% and the derived files -%% soulutf8.sty, soulutf8.pdf, soulutf8.ins, soulutf8.drv, -%% soulutf8-test1.tex, soulutf8-test2.tex, soulutf8-test3.tex, -%% soulutf8-test4.tex, soulutf8-test5.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@soulutf8.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{soulutf8}{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@soulutf8.sty\endcsname -\ProvidesPackage{soulutf8}% - [2016/05/16 v1.1 Permit use of UTF-8 characters in soul (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname SOuL@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\SOuL@AtEnd{% - \SOuL@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{10}{12}% ^^J -\TMP@EnsureCode{33}{12}% ! -\TMP@EnsureCode{34}{12}% " -\TMP@EnsureCode{36}{3}% $ -\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}{12}% : -\TMP@EnsureCode{60}{12}% < -\TMP@EnsureCode{62}{12}% > -\TMP@EnsureCode{91}{12}% [ -\TMP@EnsureCode{93}{12}% ] -\TMP@EnsureCode{94}{7}% ^ -\TMP@EnsureCode{96}{12}% ` -\TMP@EnsureCode{126}\active % ~ -\TMP@EnsureCode{128}{12}% ^^80 -\TMP@EnsureCode{147}{12}% ^^93 -\TMP@EnsureCode{148}{12}% ^^94 -\TMP@EnsureCode{160}{12}% ^^a0 -\TMP@EnsureCode{194}{12}% ^^c2 -\TMP@EnsureCode{226}{12}% ^^e2 -\edef\SOuL@AtEnd{\SOuL@AtEnd\noexpand\endinput} -\ifx\documentclass\@undefined - \expandafter\ifx\csname SOUL@\endcsname\relax - \let\SOuL@orgDeclareRobustCommand\DeclareRobustCommand - \let\SOuL@orgnewcommand \newcommand - \let\SOuL@orgDeclareOption \DeclareOption - \let\SOuL@orgPackageError \PackageError - \def\SOuL@restorelatexcmds{% - \let\DeclareRobustCommand\SOuL@orgDeclareRobustCommand - \let\newcommand \SOuL@orgnewcommand - \let\DeclareOption \SOuL@orgDeclareOption - \let\PackageError \SOuL@orgPackageError - }% - \input soul.sty\relax - \SOuL@restorelatexcmds - \fi - \input infwarerr.sty\relax - \let\SOuL@orgSOUL@error\SOUL@error - \def\SOUL@error{% - \begingroup - \let\PackageError\@PackageError - \SOuL@orgSOUL@error - \endgroup - }% - \input etexcmds.sty\relax - \expandafter\ifx\csname @onelevel@sanitize\endcsname\relax - \def\@onelevel@sanitize#1{% - \edef#1{% - \expandafter\strip@prefix\meaning#1% - }% - }% - \def\strip@prefix#1>{}% - \fi -\else - \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{soul}}% - \ProcessOptions\relax - \RequirePackage{soul}[2003/11/17]% - \RequirePackage{infwarerr}[2016/05/16]% - \RequirePackage{etexcmds}[2016/05/16]% -\fi -\ifetex@unexpanded - \catcode33=14 % '!': comment - \catcode43=9 % '+': ignore -\else - \catcode33=9 % '!': ignore - \catcode43=14 % '+': comment -\fi -\def\SOuL@redefine#1{% - \begingroup - \def\SOuL@cmd{#1}% - \afterassignment\SOuL@cmdcheck - \def\SOuL@temp -} -\def\SOuL@cmdcheck{% - \expandafter\ifx\SOuL@cmd\SOuL@temp - \else - \edef\SOuL@temp*{\expandafter\string\SOuL@cmd}% - \@PackageWarningNoLine{soulutf8}{% - Command \SOuL@temp* has changed.\MessageBreak - Supported versions of package `soul': 2003/11/17.\MessageBreak - Depending on the unknown changes the redefinition\MessageBreak - of \SOuL@temp* may not behave correctly% - }% - \fi - \expandafter\endgroup - \expandafter\def\SOuL@cmd -} -\SOuL@redefine\SOUL@eval{% - \def\SOUL@n*##1{\SOUL@scan}% - \if\noexpand\SOUL@@\SOUL@spc - \else - \SOUL@ignorespacesfalse - \fi - \ifnum\SOUL@minus=\thr@@ - \SOUL@flushminus - \else\ifnum\SOUL@comma=\tw@ - \SOUL@flushcomma - \else\ifnum\SOUL@apo=\tw@ - \SOUL@flushapo - \else\ifnum\SOUL@grave=\tw@ - \SOUL@flushgrave - \fi\fi\fi\fi - \ifx\SOUL@@-\else\SOUL@flushminus\fi - \ifx\SOUL@@,\else\SOUL@flushcomma\fi - \ifx\SOUL@@'\else\SOUL@flushapo\fi - \ifx\SOUL@@`\else\SOUL@flushgrave\fi - \ifx\SOUL@@-% - \advance\SOUL@minus\@ne - \else\ifx\SOUL@@,% - \advance\SOUL@comma\@ne - \else\ifx\SOUL@@'% - \advance\SOUL@apo\@ne - \else\ifx\SOUL@@`% - \advance\SOUL@grave\@ne - \else - \SOUL@flushminus - \SOUL@flushcomma - \SOUL@flushapo - \SOUL@flushgrave - \ifx\SOUL@@\SOUL@stop - \def\SOUL@n*{% - \SOUL@doword - \SOUL@eventuallyexhyphen\null - }% - \else\ifx\SOUL@@\par - \def\SOUL@n*\par{\par\leavevmode\SOUL@scan}% - \else\if\noexpand\SOUL@@\SOUL@spc - \SOUL@doword - \SOUL@eventuallyexhyphen\null - \ifSOUL@ignorespaces - \else - \SOUL@everyspace{}% - \fi - \def\SOUL@n* {\SOUL@scan}% - \else\ifx\SOUL@@\\% - \SOUL@doword - \SOUL@eventuallyexhyphen\null - \SOUL@everyspace{\unskip\nobreak\hfil\break}% - \SOUL@ignorespacestrue - \else\ifx\SOUL@@~% - \SOUL@doword - \SOUL@eventuallyexhyphen\null - \SOUL@everyspace{\nobreak}% - \else\ifx\SOUL@@\slash - \SOUL@doword - \SOUL@eventuallyexhyphen{/}% - \SOUL@exhyphen{/}% - \else\ifx\SOUL@@\mbox - \def\SOUL@n*{\SOUL@addprotect}% - \else\ifx\SOUL@@\hbox - \def\SOUL@n*{\SOUL@addprotect}% - \else\ifx\SOUL@@\soulomit - \def\SOUL@n*\soulomit##1{% - \SOUL@doword - {\spaceskip\SOUL@spaceskip##1}% - \SOUL@scan - }% - \else\ifx\SOUL@@\break - \SOUL@doword - \break - \else\ifx\SOUL@@\linebreak - \SOUL@doword - \SOUL@everyspace{\linebreak}% - \else\ifcat\bgroup\noexpand\SOUL@@ - \def\SOUL@n*{\SOUL@addgroup{}}% - \else\ifcat$\noexpand\SOUL@@ - \def\SOUL@n*{\SOUL@addmath}% - \else - \def\SOUL@n*{\SOUL@dotoken}% - \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi - \fi\fi\fi\fi - \SOUL@n*% -}{% - \def\SOUL@n*##1{\SOUL@scan}% - \if\noexpand\SOUL@@\SOUL@spc - \else - \SOUL@ignorespacesfalse - \fi - \ifnum\SOUL@minus=\thr@@ - \SOUL@flushminus - \else\ifnum\SOUL@comma=\tw@ - \SOUL@flushcomma - \else\ifnum\SOUL@apo=\tw@ - \SOUL@flushapo - \else\ifnum\SOUL@grave=\tw@ - \SOUL@flushgrave - \fi\fi\fi\fi - \ifx\SOUL@@-\else\SOUL@flushminus\fi - \ifx\SOUL@@,\else\SOUL@flushcomma\fi - \ifx\SOUL@@'\else\SOUL@flushapo\fi - \ifx\SOUL@@`\else\SOUL@flushgrave\fi - \ifx\SOUL@@-% - \advance\SOUL@minus\@ne - \else\ifx\SOUL@@,% - \advance\SOUL@comma\@ne - \else\ifx\SOUL@@'% - \advance\SOUL@apo\@ne - \else\ifx\SOUL@@`% - \advance\SOUL@grave\@ne - \else - \SOUL@flushminus - \SOUL@flushcomma - \SOUL@flushapo - \SOUL@flushgrave - \ifx\SOUL@@\SOUL@stop - \def\SOUL@n*{% - \SOUL@doword - \SOUL@eventuallyexhyphen\null - }% - \else\ifx\SOUL@@\par - \def\SOUL@n*\par{\par\leavevmode\SOUL@scan}% - \else\if\noexpand\SOUL@@\SOUL@spc - \SOUL@doword - \SOUL@eventuallyexhyphen\null - \ifSOUL@ignorespaces - \else - \SOUL@everyspace{}% - \fi - \def\SOUL@n* {\SOUL@scan}% - \else\ifx\SOUL@@\\% - \SOUL@doword - \SOUL@eventuallyexhyphen\null - \SOUL@everyspace{\unskip\nobreak\hfil\break}% - \SOUL@ignorespacestrue - \else\ifx\SOUL@@~% - \SOUL@doword - \SOUL@eventuallyexhyphen\null - \SOUL@everyspace{\nobreak}% - \else\ifx\SOUL@@\slash - \SOUL@doword - \SOUL@eventuallyexhyphen{/}% - \SOUL@exhyphen{/}% - \else\ifx\SOUL@@\mbox - \def\SOUL@n*{\SOUL@addprotect}% - \else\ifx\SOUL@@\hbox - \def\SOUL@n*{\SOUL@addprotect}% - \else\ifx\SOUL@@\soulomit - \def\SOUL@n*\soulomit##1{% - \SOUL@doword - {\spaceskip\SOUL@spaceskip##1}% - \SOUL@scan - }% - \else\ifx\SOUL@@\break - \SOUL@doword - \break - \else\ifx\SOUL@@\linebreak - \SOUL@doword - \SOUL@everyspace{\linebreak}% - \else\ifcat\bgroup\noexpand\SOUL@@ - \def\SOUL@n*{\SOUL@addgroup{}}% - \else\ifcat$\noexpand\SOUL@@ - \def\SOUL@n*{\SOUL@addmath}% - \else - \SOuL@analyzeutfviii - \ifcase\SOuL@octets - \SOuL@analyzeutfviiix - \fi - \ifcase\SOuL@octets - \def\SOUL@n*{\SOUL@dotoken}% - \or % 1 - \or % 2 - \def\SOUL@n*{\SOuL@addtwooctets}% - \or % 3 - \def\SOUL@n*{\SOuL@addthreeoctets}% - \or % 4 - \def\SOUL@n*{\SOuL@addfouroctets}% - \fi - \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi - \fi\fi\fi\fi - \SOUL@n*% -} -\def\SOuL@defsanitizedstring#1#2{% - \expandafter\def\csname SOuL@string#1\endcsname{#2}% - \expandafter\@onelevel@sanitize\csname SOuL@string#1\endcsname -} -\SOuL@defsanitizedstring{UTFviii}{UTFviii@} -\SOuL@defsanitizedstring{octets}{@octets} -\SOuL@defsanitizedstring{two}{two} -\SOuL@defsanitizedstring{three}{three} -\SOuL@defsanitizedstring{four}{four} -\SOuL@defsanitizedstring{macrocolon}{macro:} -\SOuL@defsanitizedstring{csnameu}{csname u8-} -\SOuL@defsanitizedstring{undeferr}{utf@viii@undeferr} -\def\SOuL@stringendash{^^e2^^80^^93} -\def\SOuL@stringemdash{^^e2^^80^^94} -\def\SOuL@stringnobreakspace{^^c2^^a0} -\edef\SOuL@charhash{\string #} -\edef\SOuL@chartwo{\string 2} -\edef\SOuL@charthree{\string 3} -\def\SOuL@empty{} -\begingroup - \edef\x{\endgroup - \def\noexpand\SOuL@analyzeutfviii{% - \noexpand\expandafter\noexpand\SOuL@checkutfviii - \noexpand\meaning\noexpand\SOUL@@ - \SOuL@stringUTFviii\SOuL@stringoctets - \noexpand\@nil - }% - \def\noexpand\SOuL@checkutfviii - ##1\SOuL@stringUTFviii##2\SOuL@stringoctets##3\noexpand\@nil - }% -\x{% - \def\SOuL@temp{#2}% - \chardef\SOuL@octets=% - \ifx\SOuL@temp\SOuL@stringtwo - \tw@ - \else\ifx\SOuL@temp\SOuL@stringthree - \thr@@ - \else\ifx\SOuL@temp\SOuL@stringfour - 4 % - \else - \z@ - \fi\fi\fi -} -\begingroup - \edef\x{\endgroup - \def\noexpand\SOuL@analyzeutfviiix{% - \noexpand\expandafter\noexpand\SOuL@checkutfviiix - \noexpand\meaning\noexpand\SOUL@@ - \SOuL@stringmacrocolon\SOuL@charhash1{}{}{}{}% - \SOuL@stringcsnameu\SOuL@stringundeferr - \noexpand\@nil - }% - \def\noexpand\SOuL@checkutfviiix - ##1\SOuL@stringmacrocolon\SOuL@charhash1##2##3##4##5##6% - \SOuL@stringcsnameu##7\SOuL@stringundeferr##8\noexpand\@nil - }% -\x{% - \def\SOuL@temp{#7}% - \ifx\SOuL@temp\SOuL@empty - \chardef\SOuL@octets=\z@ - \else - \def\SOuL@temp{#5}% - \ifx\SOuL@temp\SOuL@charthree - \chardef\SOuL@octets=4 % - \else - \def\SOuL@temp{#3}% - \ifx\SOuL@temp\SOuL@chartwo - \chardef\SOuL@octets=\thr@@ - \else - \chardef\SOuL@octets=\tw@ - \fi - \fi - \fi -} -\def\SOuL@addtwooctets#1#2{% - \def\SOuL@temp{#1#2}% - \@onelevel@sanitize\SOuL@temp - \ifx\SOuL@temp\SOuL@stringnobreakspace - \SOUL@doword - \SOUL@eventuallyexhyphen\null - \SOUL@everyspace{\nobreak}% - \let\SOuL@next\SOUL@scan - \else - \def\SOuL@next{% -! \SOUL@addtoken{{\noexpand#1\noexpand#2}}% -+ \SOUL@addtoken{{\etex@unexpanded{#1#2}}}% - }% - \fi - \SOuL@next -} -\def\SOuL@addthreeoctets#1#2#3{% - \def\SOuL@temp{#1#2#3}% - \@onelevel@sanitize\SOuL@temp - \ifx\SOuL@temp\SOuL@stringendash - \SOUL@doword - \SOUL@eventuallyexhyphen{-}% - \SOUL@exhyphen{--}% - \let\SOuL@next\SOUL@scan - \else - \ifx\SOuL@temp\SOuL@stringemdash - \SOUL@doword - \SOUL@eventuallyexhyphen{-}% - \SOUL@exhyphen{---}% - \let\SOuL@next\SOUL@scan - \else - \def\SOuL@next{% -! \SOUL@addtoken{{\noexpand#1\noexpand#2\noexpand#3}}% -+ \SOUL@addtoken{{\etex@unexpanded{#1#2#3}}}% - }% - \fi - \fi - \SOuL@next -} -\def\SOuL@addfouroctets#1#2#3#4{% -! \SOUL@addtoken{{\noexpand#1\noexpand#2\noexpand#3\noexpand#4}}% -+ \SOUL@addtoken{{\etex@unexpanded{#1#2#3#4}}}% -} -\SOuL@redefine\SOUL@splittoken#1#2\SOUL@stop{% - \global\SOUL@token={#1}% - \global\SOUL@word={#2}% -}#1{% - \global\SOUL@token={#1}% - \SOuL@remainingtoken\relax -} -\def\SOuL@remainingtoken#1\SOUL@stop{% - \global\SOUL@word=\expandafter{\@gobble#1}% -} -\SOuL@redefine\SOUL@flushcomma{% - \ifcase\SOUL@comma - \or - \edef\x{\SOUL@word={\the\SOUL@word,}}\x - \or - \edef\x{\SOUL@word={\the\SOUL@word{{,,}}}}\x - \fi - \SOUL@comma\z@ -}{% - \ifcase\SOUL@comma - \or - \edef\x{\SOUL@word={\the\SOUL@word,}}\x - \or - \edef\x{\SOUL@word={\the\SOUL@word{,,}}}\x - \fi - \SOUL@comma\z@ -} -\SOuL@redefine\SOUL@flushapo{% - \ifcase\SOUL@apo - \or - \edef\x{\SOUL@word={\the\SOUL@word'}}\x - \or - \edef\x{\SOUL@word={\the\SOUL@word{{''}}}}\x - \fi - \SOUL@apo\z@ -}{% - \ifcase\SOUL@apo - \or - \edef\x{\SOUL@word={\the\SOUL@word'}}\x - \or - \edef\x{\SOUL@word={\the\SOUL@word{''}}}\x - \fi - \SOUL@apo\z@ -} -\SOuL@redefine\SOUL@flushgrave{% - \ifcase\SOUL@grave - \or - \edef\x{\SOUL@word={\the\SOUL@word`}}\x - \or - \edef\x{\SOUL@word={\the\SOUL@word{{``}}}}\x - \fi - \SOUL@grave\z@ -}{% - \ifcase\SOUL@grave - \or - \edef\x{\SOUL@word={\the\SOUL@word`}}\x - \or - \edef\x{\SOUL@word={\the\SOUL@word{``}}}\x - \fi - \SOUL@grave\z@ -} -\SOuL@redefine\SOUL@addgroup#1#2{% - {% - \let\protect\noexpand - \edef\x{% - \global\SOUL@word={% - \the\SOUL@word - {{\noexpand#1#2}}% - }% - }% - \x - }% - \SOUL@scan -}#1#2{% - \begingroup - \let\protect\noexpand - \edef\x{\endgroup - \SOUL@word={% - \the\SOUL@word -! {\noexpand#1{#2}}% -+ {\etex@unexpanded{#1{#2}}}% - }% - }% - \x - \SOUL@scan -} -\SOuL@redefine\SOUL@addmath$#1${% - {% - \let\protect\noexpand - \edef\x{% - \global\SOUL@word={% - \the\SOUL@word - {{\hbox{$#1$}}}% - }% - }% - \x - }% - \SOUL@scan -}$#1${% - \begingroup - \let\protect\noexpand - \edef\x{\endgroup - \SOUL@word={% - \the\SOUL@word -! {\hbox{$#1$}}% -+ {\etex@unexpanded{\hbox{$#1$}}}% - }% - }% - \x - \SOUL@scan -} -\SOuL@redefine\SOUL@addprotect#1#2{% - {% - \let\protect\noexpand - \edef\x{% - \global\SOUL@word={% - \the\SOUL@word - {{\hbox{#2}}}% - }% - }% - \x - }% - \SOUL@scan -}#1#2{% - \begingroup - \let\protect\noexpand - \edef\x{\endgroup - \SOUL@word={% - \the\SOUL@word -! {\hbox{#2}}% -+ {\etex@unexpanded{\hbox{#2}}}% - }% - }% - \x - \SOUL@scan -} -+ \SOuL@redefine\SOUL@addtoken#1{% -+ \edef\x{% -+ \SOUL@word={% -+ \the\SOUL@word -+ \noexpand#1% -+ }% -+ }% -+ \x -+ \SOUL@scan -+ }#1{% -+ \edef\x{% -+ \SOUL@word={% -+ \the\SOUL@word -+ \etex@unexpanded{#1}% -+ }% -+ }% -+ \x -+ \SOUL@scan -+ }% -\SOuL@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `soulutf8.sty'. diff --git a/Master/texmf-dist/tex/generic/oberdiek/uniquecounter.sty b/Master/texmf-dist/tex/generic/oberdiek/uniquecounter.sty deleted file mode 100644 index d10ddc2a7fb..00000000000 --- a/Master/texmf-dist/tex/generic/oberdiek/uniquecounter.sty +++ /dev/null @@ -1,242 +0,0 @@ -%% -%% This is file `uniquecounter.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% uniquecounter.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: uniquecounter -%% Version: 2016/05/16 v1.3 -%% -%% Copyright (C) -%% 2009, 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 uniquecounter.dtx -%% and the derived files -%% uniquecounter.sty, uniquecounter.pdf, uniquecounter.ins, -%% uniquecounter.drv, uniquecounter-example.tex, -%% uniquecounter-test1.tex, uniquecounter-test2.tex, -%% uniquecounter-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@uniquecounter.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{uniquecounter}{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@uniquecounter.sty\endcsname -\ProvidesPackage{uniquecounter}% - [2016/05/16 v1.3 Provide unlimited unique counter (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname uqc@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\uqc@AtEnd{% - \uqc@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{33}{12}% ! -\TMP@EnsureCode{39}{12}% ' -\TMP@EnsureCode{42}{12}% * -\TMP@EnsureCode{43}{12}% + -\TMP@EnsureCode{46}{12}% . -\TMP@EnsureCode{47}{12}% / -\TMP@EnsureCode{91}{12}% [ -\TMP@EnsureCode{93}{12}% ] -\TMP@EnsureCode{96}{12}% ` -\edef\uqc@AtEnd{\uqc@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{bigintcalc}[2007/11/11]% - \TMP@RequirePackage{infwarerr}[2007/09/09]% -\else - \RequirePackage{bigintcalc}[2007/11/11]% - \RequirePackage{infwarerr}[2007/09/09]% -\fi -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname numexpr\endcsname\relax - \def\uqc@IncNum#1{% - \begingroup - \count@=\csname uqc@cnt@#1\endcsname\relax - \advance\count@\@ne - \expandafter\xdef\csname uqc@cnt@#1\endcsname{% - \number\count@ - }% - \ifnum\count@=2147483647 % - \global\expandafter\let\csname uqc@inc@#1\endcsname - \uqc@IncBig - \fi - \endgroup - }% -\else - \def\uqc@IncNum#1{% - \expandafter\xdef\csname uqc@cnt@#1\endcsname{% - \number\numexpr\csname uqc@cnt@#1\endcsname+1% - }% - \ifnum\csname uqc@cnt@#1\endcsname=2147483647 % - \global\expandafter\let\csname uqc@inc@#1\endcsname - \uqc@IncBig - \fi - }% -\fi -\def\uqc@IncBig#1{% - \expandafter\xdef\csname uqc@cnt@#1\endcsname{% - \expandafter\expandafter\expandafter - \BigIntCalcInc\csname uqc@cnt@#1\endcsname!% - }% -} -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname newcommand\endcsname\relax - \def\uqc@Def#1{\def#1##1}% -\else - \def\uqc@Def#1{\newcommand*{#1}[1]}% -\fi -\uqc@Def\UniqueCounterNew{% - \expandafter\ifx\csname uqc@cnt@#1\endcsname\relax - \expandafter\xdef\csname uqc@cnt@#1\endcsname{0}% - \global\expandafter\let\csname uqc@inc@#1\endcsname\uqc@IncNum - \@PackageInfo{uniquecounter}{New unique counter `#1'}% - \else - \@PackageError{uniquecounter}{Unique counter `#1' is already defined}\@ehc - \fi -} -\uqc@Def\UniqueCounterIncrement{% - \expandafter\ifx\csname uqc@cnt@#1\endcsname\relax - \@PackageError{uniquecounter}{Unique counter `#1' is undefined}\@ehc - \else - \csname uqc@inc@#1\endcsname{#1}% - \fi -} -\uqc@Def\UniqueCounterGet{% - \csname uqc@cnt@#1\endcsname -} -\uqc@Def\UniqueCounterCall{% - \expandafter\ifx\csname uqc@cnt@#1\endcsname\relax - \@PackageError{uniquecounter}{Unique counter `#1' is undefined}\@ehc - \expandafter\uqc@Call\expandafter0% - \else - \UniqueCounterIncrement{#1}% - \expandafter\expandafter\expandafter\uqc@Call - \expandafter\expandafter\expandafter{% - \csname uqc@cnt@#1\expandafter\endcsname\expandafter - }% - \fi -} -\long\def\uqc@Call#1#2{#2{#1}}% -\uqc@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `uniquecounter.sty'. diff --git a/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty b/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty deleted file mode 100644 index c97dfa4e289..00000000000 --- a/Master/texmf-dist/tex/latex/oberdiek/auxhook.sty +++ /dev/null @@ -1,144 +0,0 @@ -%% -%% This is file `auxhook.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% auxhook.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: auxhook -%% Version: 2016/05/16 v1.4 -%% -%% Copyright (C) -%% 2006, 2007, 2009, 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 -%% -%% -%% This work consists of the main source file auxhook.dtx -%% and the derived files -%% auxhook.sty, auxhook.pdf, auxhook.ins, auxhook.drv. -%% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{auxhook}% - [2016/05/16 v1.4 Hooks for auxiliary files (HO)]% -\providecommand*{\@beginmainauxhook}{} -\providecommand*{\@beginpartauxhook}{} -\ifx\AtBeginDocument\@firstofone - \global\let\@beginmainauxhook\relax -\else - \g@addto@macro{\@beginmainauxhook}{% - \global\let\@beginmainauxhook\relax - }% -\fi -\newcommand{\AddLineBeginMainAux}[1]{% - \ifx\@beginmainauxhook\relax - \if@filesw - \PackageInfo{auxhook}{% - \@backslashchar AddLineBeginMainAux comes a little late,% - \MessageBreak - because the main .aux file is already opened% - }% - \immediate\write\@mainaux{#1}% - \fi - \else - \g@addto@macro\@beginmainauxhook{% - \immediate\write\@mainaux{#1}% - }% - \fi -} -\newcommand{\AddLineBeginPartAux}[1]{% - \g@addto@macro\@beginpartauxhook{% - \immediate\write\@partaux{#1}% - }% -} -\newcommand{\AddLineBeginAux}[1]{% - \AddLineBeginMainAux{#1}% - \AddLineBeginPartAux{#1}% -} -\begingroup - \@ifundefined{beamer@origdocument}{% - \def\auxhook@document{\document}% - }{% - \def\auxhook@document{\beamer@origdocument}% - }% - \long\def\y#1\immediate\write\@mainaux#2#3\auxhook@nil{% - \toks@{% - #1\immediate\write\@mainaux{#2}% - \@beginmainauxhook - #3% - }% - \expandafter\xdef\auxhook@document{\the\toks@}% - \endgroup - }% - \long\def\x#1\immediate\write\@mainaux#2#3\auxhook@nil{% - \toks@{#3}% - \edef\x{\the\toks@}% - \ifx\x\@empty - \PackageWarningNoLine{auxhook}{% - Cannot patch \expandafter\string\auxhook@document,% - \MessageBreak - using \string\AtBeginDocument\space instead% - }% - \endgroup - \AtBeginDocument{% - \if@filesw - \@beginmainauxhook - \fi - }% - \else - \expandafter\expandafter\expandafter\y\auxhook@document - \auxhook@nil - \fi - }% -\expandafter\expandafter\expandafter\x\auxhook@document - \immediate\write\@mainaux{}\auxhook@nil -\begingroup - \long\def\y#1\immediate\write\@partaux#2#3\auxhook@nil#4{% - \endgroup - \def#4##1 {% - #1\immediate\write\@partaux{#2}% - \@beginpartauxhook - #3% - }% - }% - \long\def\x#1\immediate\write\@partaux#2#3\auxhook@nil#4{% - \toks@{#3}% - \edef\x{\the\toks@}% - \ifx\x\@empty - \PackageWarningNoLine{auxhook}{% - Cannot patch \string#4,\MessageBreak - patch dropped% - }% - \endgroup - \else - \expandafter\y#4{##1} \auxhook@nil#4% - \fi - }% -\@ifundefined{ReFiCh@org@include}{% - \expandafter\x\@include{#1} % - \immediate\write\@partaux{}\auxhook@nil\@include -}{% - \expandafter\x\ReFiCh@org@include{#1} % - \immediate\write\@partaux{}\auxhook@nil\ReFiCh@org@include -}% -\endinput -%% -%% End of file `auxhook.sty'. diff --git a/Master/texmf-dist/tex/latex/oberdiek/hycolor.sty b/Master/texmf-dist/tex/latex/oberdiek/hycolor.sty deleted file mode 100644 index 3a0b4147a56..00000000000 --- a/Master/texmf-dist/tex/latex/oberdiek/hycolor.sty +++ /dev/null @@ -1,576 +0,0 @@ -%% -%% This is file `hycolor.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% hycolor.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: hycolor -%% Version: 2016/05/16 v1.8 -%% -%% 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 -%% -%% -%% This work consists of the main source file hycolor.dtx -%% and the derived files -%% hycolor.sty, hycolor.pdf, hycolor.ins, hycolor.drv, -%% xcolor-patch.sty, hycolor-test1.tex, hycolor-test2.tex, -%% hycolor-test3.tex, hycolor-test-xcol1.tex, -%% hycolor-test-xcol2.tex, hycolor-test-xcol3.tex, -%% hycolor-test-xcol4.tex. -%% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{hycolor}% - [2016/05/16 v1.8 Color options for hyperref/bookmark (HO)]% -\RequirePackage{xcolor-patch}[2016/05/16] -\begingroup - \catcode`\!=13 % - \catcode`\:=13 % - \catcode`\-=13 % - \catcode`\+=13 % - \catcode`\;=13 % - \catcode`\"=13 % - \catcode`\>=13 % - \edef\x{% - \def\noexpand!{\string!}% - \def\noexpand:{\string:}% - \def\noexpand-{\string-}% - \def\noexpand+{\string+}% - \def\noexpand;{\string;}% - \def\noexpand"{\string"}% - \def\noexpand>{\string>}% - }% - \def\y#1{\endgroup - \def\HyColor@DefSanitized##1##2{% - \begingroup - \csname @safe@activestrue\endcsname - #1% - \edef\x{\endgroup - \def\noexpand##1{##2}% - }% - \x - \@onelevel@sanitize##1% - }% - }% -\expandafter\y\expandafter{\x} -\def\HyColor@NormalizeNum#1#2{% - \ifdim#1pt<\z@ - \def#2{0}% - \else - \edef#2{\zap@space#1 \@empty}% - \expandafter\HyColor@CheckDot#2..\@nil#2% - \fi -} -\def\HyColor@CheckDot#1.#2.#3\@nil#4{% - \ifnum0#1<\@ne - \ifx\\#2\\% - \def#4{0}% - \else - \edef#4{\HyColor@ReverseString#2\@nil{}}% - \edef#4{\expandafter\HyColor@StripLeadingZeros#4\@empty}% - \ifx#4\@empty - \def#4{0}% - \else - \edef#4{.\expandafter\HyColor@ReverseString#4\@nil{}}% - \fi - \fi - \else - \def#4{1}% - \fi -} -\def\HyColor@ReverseString#1#2\@nil#3{% - \ifx\\#2\\% - #1#3% - \else - \@ReturnAfterFi{% - \HyColor@ReverseString#2\@nil{#1#3}% - }% - \fi -} -\long\def\@ReturnAfterFi#1\fi{\fi#1} -\def\HyColor@StripLeadingZeros#1{% - \ifx#10% - \expandafter\HyColor@StripLeadingZeros - \else - #1% - \fi -} -\def\HyColor@NormalizeCommaRGB#1,#2,#3\@nil#4{% - \HyColor@NormalizeNum{#1}\HyColor@temp - \let#4\HyColor@temp - \HyColor@NormalizeNum{#2}\HyColor@temp - \edef#4{#4 \HyColor@temp}% - \HyColor@NormalizeNum{#3}\HyColor@temp - \edef#4{#4 \HyColor@temp}% -} -\def\HyColor@NormalizeCommaCMYK#1,#2,#3,#4\@nil#5{% - \HyColor@NormalizeNum{#1}\HyColor@temp - \let#5\HyColor@temp - \HyColor@NormalizeNum{#2}\HyColor@temp - \edef#5{#5 \HyColor@temp}% - \HyColor@NormalizeNum{#3}\HyColor@temp - \edef#5{#5 \HyColor@temp}% - \HyColor@NormalizeNum{#4}\HyColor@temp - \edef#5{#5 \HyColor@temp}% -} -\def\HyColor@BookmarkColor#1#2#3#4{% - \HyColor@IfModel{#1}{% - \HyColor@IfXcolor{% - \convertcolorspec\HyColor@model\HyColor@values - \HyColor@model@rgb#2% - \expandafter\HyColor@NormalizeCommaRGB#2\@nil#2% - }{% - \ifx\HyColor@model\HyColor@model@rgb - \expandafter\HyColor@NormalizeCommaRGB\HyColor@values\@nil#2% - \else - \ifx\HyColor@model\HyColor@model@gray - \expandafter\HyColor@NormalizeNum - \expandafter{\HyColor@values}#2% - \edef#2{#2 #2 #2}% - \else - \let#2\@empty - \HyColor@ErrorModelNoXcolor{#3}{#4}% - \fi - \fi - }% - }{% - \let#2\HyColor@values - \ifx#2\@empty - \else - \HyColor@IfXcolor{% - \extractcolorspec{#1}#2% - \expandafter\convertcolorspec#2\HyColor@model@rgb#2% - \expandafter\HyColor@NormalizeCommaRGB#2\@nil#2% - }{% - \let#2\@empty - \HyColor@ErrorSpecNoXcolor{#3}{#4}% - }% - \fi - }% -} -\def\HyColor@ErrorModelNoXcolor#1#2{% - \PackageError{#1}{% - Color model `\HyColor@model' is not supported\MessageBreak - without package `xcolor' in\MessageBreak - `#2=[\HyColor@model]{\HyColor@values}'% - }\@ehc -} -\def\HyColor@ErrorSpecNoXcolor#1#2{% - \PackageError{#1}{% - This color specification is not supported\MessageBreak - without package `xcolor' in\MessageBreak - `#2=\HyColor@values'% - }\@ehc -} -\def\HyColor@IfModel#1{% - \@ifnextchar[{% - \HyColor@WithModel - }{% - \HyColor@WithoutModel - }% - #1\@nil -} -\def\HyColor@WithModel[#1]#2\@nil{% - \HyColor@DefSanitized\HyColor@model{#1}% - \HyColor@DefSanitized\HyColor@values{#2}% - \@firstoftwo -} -\def\HyColor@WithoutModel#1\@nil{% - \let\HyColor@model\relax - \HyColor@DefSanitized\HyColor@values{#1}% - \@secondoftwo -} -\long\def\@ReturnAfterFi#1\fi{\fi#1} -\def\HyColor@IfXcolor{% - \begingroup\expandafter\expandafter\expandafter\endgroup - \expandafter\ifx\csname convertcolorspec\endcsname\relax - \expandafter\@secondoftwo - \else - \expandafter\@firstoftwo - \fi -} -\def\HyColor@model@empty{empty} -\@onelevel@sanitize\HyColor@model@empty -\def\HyColor@model@gray{gray} -\@onelevel@sanitize\HyColor@model@gray -\def\HyColor@model@rgb{rgb} -\@onelevel@sanitize\HyColor@model@rgb -\def\HyColor@model@cmyk{cmyk} -\@onelevel@sanitize\HyColor@model@cmyk -\def\HyColor@model@Gray{Gray} -\@onelevel@sanitize\HyColor@model@Gray -\def\HyColor@UseColor#1{% - \ifx#1\relax - \else - \ifx#1\@empty - \else - \expandafter\HyColor@@UseColor#1\@nil - \fi - \fi -} -\def\HyColor@@UseColor{% - \@ifnextchar[\HyColor@@@UseColor\HyColor@@@@UseColor -} -\def\HyColor@@@UseColor[#1]#2\@nil{% - \color[{#1}]{#2}% -} -\def\HyColor@@@@UseColor#1\@nil{% - \color{#1}% -} -\def\HyColor@HyperrefColor#1#2{% - \HyColor@IfModel{#1}{% - \edef#2{[{\HyColor@model}]{\HyColor@values}}% - }{% - \let#2\HyColor@values - \ifx#2\@empty - \let#2\relax - \fi - }% -} -\def\HyColor@XZeroOneThreeFour#1#2#3#4{% - \HyColor@IfModel{#1}{% - \ifx\HyColor@model\HyColor@model@empty - \let#2\@empty - \else\ifx\HyColor@model\HyColor@model@gray - \expandafter\HyColor@NormalizeNum - \expandafter{\HyColor@values}#2% - \else\ifx\HyColor@model\HyColor@model@rgb - \expandafter\HyColor@NormalizeCommaRGB\HyColor@values\@nil#2% - \else\ifx\HyColor@model\HyColor@model@cmyk - \expandafter\HyColor@NormalizeCommaCMYK\HyColor@values\@nil#2% - \else\ifx\HyColor@model\HyColor@model@Gray - \HyColor@IfXcolor{% - \convertcolorspec\HyColor@model\HyColor@values - \HyColor@model@gray#2% - \expandafter\HyColor@NormalizeNum\expandafter{#2}#2% - \let\HyColor@model\HyColor@model@gray - }{% - \let#2\relax - \HyColor@ErrorModelNoXcolor{#3}{#4}% - }% - \else - \HyColor@IfXcolor{% - \convertcolorspec\HyColor@model\HyColor@values - \HyColor@model@rgb#2% - \expandafter\HyColor@NormalizeCommaRGB#2\@nil#2% - \let\HyColor@model\HyColor@model@rgb - }{% - \let#2\relax - \HyColor@ErrorModelNoXcolor{#3}{#4}% - }% - \fi\fi\fi\fi\fi - }{% - \let#2\HyColor@values - \ifx#2\@empty - \let#2\relax - \else - \expandafter\HyColor@IfRGB\expandafter{\HyColor@values}{% - \expandafter\HyColor@NormalizeCommaRGB\HyColor@values\@nil#2% - }{% - \HyColor@IfXcolor{% - \expandafter\extractcolorspec\expandafter{\HyColor@values}#2% - \edef\HyColor@model{\expandafter\@firstoftwo#2}% - \edef\HyColor@values{\expandafter\@secondoftwo#2}% - \ifx\HyColor@model\HyColor@model@gray - \expandafter\HyColor@NormalizeNum\expandafter - {\HyColor@values}#2% - \else\ifx\HyColor@model\HyColor@model@rgb - \expandafter\HyColor@NormalizeCommaRGB - \HyColor@values\@nil#2% - \else\ifx\HyColor@model\HyColor@model@cmyk - \expandafter\HyColor@NormalizeCommaCMYK - \HyColor@values\@nil#2% - \else\ifx\HyColor@model\HyColor@model@Gray - \convertcolorspec\HyColor@model\HyColor@values - \HyColor@model@gray#2% - \expandafter\HyColor@NormalizeNum\expandafter - {\HyColor@values}#2% - \let\HyColor@model\HyColor@model@gray - \else - \convertcolorspec\HyColor@model\HyColor@values - \HyColor@model@rgb#2% - \expandafter\HyColor@NormalizeCommaRGB#2\@nil#2% - \let\HyColor@model\HyColor@model@rgb - \fi\fi\fi\fi - }{% - \let#2\relax - \HyColor@ErrorSpecNoXcolor{#3}{#4}% - }% - }% - \fi - }% -} -\let\HyColor@FieldBColor\HyColor@XZeroOneThreeFour -\def\HyColor@FieldColor#1#2#3#4{% - \let\HyColor@model\@empty - \HyColor@XZeroOneThreeFour{#1}{#2}{#3}{#4}% - \ifx#2\relax - \let#2\@empty - \else - \ifx#2\@empty - \else - \ifx\HyColor@model\HyColor@model@gray - \edef#2{#2 g}% - \else\ifx\HyColor@model\HyColor@model@rgb - \edef#2{#2 rg}% - \else\ifx\HyColor@model\HyColor@model@cmyk - \edef#2{#2 k}% - \else - \PackageError{#3}{Internal error: unsupported color model}\@ehc - \fi\fi\fi - \fi - \fi -} -\newif\ifHyColor@result -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname pdfmatch\endcsname\relax - \expandafter\@firstoftwo -\else - \expandafter\@secondoftwo -\fi -{% - \begingroup - \def\x#1{\endgroup - \def\HyColor@IfRGB##1{% - \HyColor@@IfRGB##1#1#1#1\@nil - }% - }% - \x{ }% - \edef\HyColor@TwoSpaces{\space\space}% - \def\HyColor@@IfRGB#1 #2 #3 #4\@nil{% - \HyColor@resulttrue - \def\HyColor@temp{#4}% - \ifx\HyColor@temp\HyColor@TwoSpaces - \HyColor@CheckNum{#1}% - \ifHyColor@result - \HyColor@CheckNum{#2}% - \ifHyColor@result - \HyColor@CheckNum{#3}% - \fi - \fi - \else - \HyColor@resultfalse - \fi - \ifHyColor@result - \let\HyColor@model\HyColor@model@rgb - \edef\HyColor@values{#1,#2,#3}% - \expandafter\@firstoftwo - \else - \expandafter\@secondoftwo - \fi - }% - \def\HyColor@zero{0}% - \def\HyColor@one{1}% - \def\HyColor@dot{.}% - \def\HyColor@CheckNum#1{% - \def\HyColor@temp{#1}% - \ifx\HyColor@temp\@empty - \HyColor@resultfalse - \else - \edef\HyColor@temp{\@car#1\@nil}% - \ifx\HyColor@temp\HyColor@zero - \else - \ifx\HyColor@temp\HyColor@one - \else - \ifx\HyColor@temp\HyColor@dot - \else - \HyColor@resultfalse - \fi - \fi - \fi - \fi - }% -}{% - \def\HyColor@MatchNum{% - (0*1\string\.0*|0*1|0+\string\.?[0-9]*|\string\.[0-9]+)% - }% - \def\HyColor@IfRGB#1{% - \ifnum\pdfmatch{^\HyColor@MatchNum\space\HyColor@MatchNum - \space\HyColor@MatchNum$}{#1}>\z@ - \let\HyColor@model\HyColor@model@rgb - \edef\HyColor@values{% - \expandafter\strip@prefix\pdflastmatch1,% - \expandafter\strip@prefix\pdflastmatch2,% - \expandafter\strip@prefix\pdflastmatch3% - }% - \HyColor@resulttrue - \expandafter\@firstoftwo - \else - \HyColor@resultfalse - \expandafter\@secondoftwo - \fi - }% -} -\def\HyColor@HyperrefBorderColor#1#2#3#4{% - \HyColor@IfModel{#1}{% - \HyColor@IfXcolor{% - \convertcolorspec\HyColor@model\HyColor@values - \HyColor@model@rgb#2% - \expandafter\HyColor@NormalizeCommaRGB#2\@nil#2% - }{% - \ifx\HyColor@model\HyColor@model@rgb - \expandafter\HyColor@NormalizeCommaRGB\HyColor@values\@nil#2% - \else - \ifx\HyColor@model\HyColor@model@gray - \expandafter\HyColor@NormalizeNum - \expandafter{\HyColor@values}#2% - \edef#2{#2 #2 #2}% - \else - \let#2\relax - \HyColor@ErrorModelNoXcolor{#3}{#4}% - \fi - \fi - }% - }{% - \let#2\HyColor@values - \ifx#2\@empty - \let#2\relax - \else - \expandafter\HyColor@IfRGB\expandafter{\HyColor@values}{% - \expandafter\HyColor@NormalizeCommaRGB\HyColor@values\@nil#2% - }{% - \HyColor@IfXcolor{% - \extractcolorspec{#1}#2% - \expandafter\convertcolorspec#2\HyColor@model@rgb#2% - \expandafter\HyColor@NormalizeCommaRGB#2\@nil#2% - }{% - \let#2\relax - \HyColor@ErrorSpecNoXcolor{#3}{#4}% - }% - }% - \fi - }% -} -\def\HyColor@DetectPdfVersion{% - \begingroup\expandafter\expandafter\expandafter\endgroup - \expandafter\ifx\csname Hy@pdfversion\endcsname\relax - \global\chardef\HyColor@PdfVersion=0 % - \else - \global\chardef\HyColor@PdfVersion=\Hy@pdfversion\relax - \fi - \global\let\HyColor@DetectPdfVersion\relax -} -\def\HyColor@SpaceToComma#1 #2\@nil{% - #1% - \ifx\relax#2\relax - \expandafter\@gobble - \else - ,% - \expandafter\@firstofone - \fi - {% - \HyColor@SpaceToComma#2\@nil - }% -}% -\def\HyColor@AttachfileColor#1#2#3#4#5#6{% - \def#2{#1}% - \ifx#2\@empty - \let#3\@gobble - \let#4\@empty - \else - \HyColor@resultfalse - \HyColor@XZeroOneThreeFour{#1}#3{#5}{#6}% - \ifHyColor@result - \edef#2{% - [rgb]{\expandafter\HyColor@SpaceToComma#3 \@nil}% - }% - \fi - \ifx\HyColor@model\HyColor@model@rgb - \edef#4{/C[#3]}% hash-ok - \edef#3##1{% - #3 % - \noexpand\csname atfi@SETRGBCOLOR##1\noexpand\endcsname - }% - \else - \ifx\HyColor@model\HyColor@model@gray - \HyColor@DetectPdfVersion - \ifnum\HyColor@PdfVersion<7 % - \edef#4{/C[#3 #3 #3]}% hash-ok - \else - \edef#4{/C[#3]}% hash-ok - \fi - \edef#3##1{% - #3 % - \noexpand\csname atfi@SETGRAYCOLOR##1\noexpand\endcsname - }% - \else - \ifx\HyColor@model\HyColor@model@cmyk - \HyColor@DetectPdfVersion - \ifnum\HyColor@PdfVersion<7 % - \HyColor@IfModel{#1}{% - \HyColor@IfXcolor{% - \convertcolorspec\HyColor@model\HyColor@values - \HyColor@model@rgb#4% - \expandafter\HyColor@NormalizeCommaRGB#4\@nil#4% - \edef#4{/C[#4]}% hash-ok - }{% - \let#4\@empty - \HyColor@ErrorModelNoXcolor{#5}{#6}% - }% - }{% - \HyColor@IfXcolor{% - \extractcolorspec{#1}#4% - \expandafter\convertcolorspec#4% - \HyColor@model@rgb#4% - \expandafter\HyColor@NormalizeCommaRGB#4\@nil#4% - \edef#4{/C[#4]}% hash-ok - }{% - \let#4\@empty - \HyColor@ErrorSpecNoXcolor{#5}{#6}% - }% - }% - \else - \edef#4{/C[#3]}% hash-ok - \fi - \edef#3##1{% - #3 % - \noexpand\csname atfi@SETCMYKCOLOR##1\noexpand\endcsname - }% - \else - \ifx\HyColor@model\HyColor@model@empty - \PackageError{#5}{% - Color model `empty' is not permitted for option `#6'% - }\@ehc - \let#2\@empty - \let#3\@gobble - \let#4\@empty - \else - \ifx\HyColor@model\relax % (missing xcolor) - \let#3\@gobble - \let#4\@empty - \else - \PackageError{#5}{% - Internal error: unsupported color model% - }\@ehc - \fi - \fi - \fi - \fi - \fi - \fi -} -%% \section{Installation} -\endinput -%% -%% End of file `hycolor.sty'. diff --git a/Master/texmf-dist/tex/latex/oberdiek/refcount.sty b/Master/texmf-dist/tex/latex/oberdiek/refcount.sty deleted file mode 100644 index 5b5fb667f81..00000000000 --- a/Master/texmf-dist/tex/latex/oberdiek/refcount.sty +++ /dev/null @@ -1,403 +0,0 @@ -%% -%% This is file `refcount.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% refcount.dtx (with options: `package') -%% -%% This is a generated file. -%% -%% Project: refcount -%% Version: 2016/05/16 v3.5 -%% -%% Copyright (C) -%% 1998, 2000, 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 -%% -%% -%% This work consists of the main source file refcount.dtx -%% and the derived files -%% refcount.sty, refcount.pdf, refcount.ins, refcount.drv, -%% refcount-test1.tex, refcount-test2.tex, refcount-test3.tex, -%% refcount-test4.tex, refcount-test5.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@refcount.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{refcount}{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@refcount.sty\endcsname -\ProvidesPackage{refcount}% - [2016/05/16 v3.5 Data extraction from label references (HO)]% -\begingroup\catcode61\catcode48\catcode32=10\relax% - \catcode13=5 % ^^M - \endlinechar=13 % - \catcode123=1 % { - \catcode125=2 % } - \catcode64=11 % @ - \def\x{\endgroup - \expandafter\edef\csname rc@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\rc@AtEnd{% - \rc@AtEnd - \catcode#1=\the\catcode#1\relax - }% - \catcode#1=#2\relax -} -\TMP@EnsureCode{33}{12}% ! -\TMP@EnsureCode{39}{12}% ' -\TMP@EnsureCode{42}{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\rc@AtEnd{\rc@AtEnd\noexpand\endinput} -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname RequirePackage\endcsname\relax - \input ltxcmds.sty\relax - \input infwarerr.sty\relax -\else - \RequirePackage{ltxcmds}[2011/11/09]% - \RequirePackage{infwarerr}[2010/04/08]% -\fi -\ltx@IfUndefined{@ifdefinable}{% - \def\rc@IfDefinable#1{% - \ifx#1\ltx@undefined - \expandafter\ltx@firstofone - \else - \ifx#1\relax - \expandafter\expandafter\expandafter\ltx@firstofone - \else - \@PackageError{refcount}{% - Command \string#1 is already defined.\MessageBreak - It will not redefined by this package% - }\@ehc - \expandafter\expandafter\expandafter\ltx@gobble - \fi - \fi - }% -}{% - \let\rc@IfDefinable\@ifdefinable -} -\ltx@IfUndefined{protected}{% - \ltx@IfUndefined{DeclareRobustCommand}{% - \def\rc@RobustDefOne#1#2#3#4{% - \rc@IfDefinable#3{% - #1\def#3##1{#4}% - }% - }% - \def\rc@RobustDefZero#1#2{% - \rc@IfDefinable#1{% - \def#1{#2}% - }% - }% - }{% - \def\rc@RobustDefOne#1#2#3#4{% - \rc@IfDefinable#3{% - \DeclareRobustCommand#2#3[1]{#4}% - }% - }% - \def\rc@RobustDefZero#1#2{% - \rc@IfDefinable#1{% - \DeclareRobustCommand#1{#2}% - }% - }% - }% -}{% - \def\rc@RobustDefOne#1#2#3#4{% - \rc@IfDefinable#3{% - \protected#1\def#3##1{#4}% - }% - }% - \def\rc@RobustDefZero#1#2{% - \rc@IfDefinable#1{% - \protected\def#1{#2}% - }% - }% -} -\ltx@IfUndefined{newcommand}{% - \def\rc@newcommand*#1[#2]#3{% hash-ok - \rc@IfDefinable#1{% - \ifcase#2 % - \def#1{#3}% - \or - \def#1##1{#3}% - \or - \def#1##1##2{#3}% - \else - \rc@InternalError - \fi - }% - }% -}{% - \let\rc@newcommand\newcommand -} -\rc@RobustDefOne\long{}\setrefcountdefault{% - \def\rc@default{#1}% -} -\setrefcountdefault{0} -\ltx@IfUndefined{G@refundefinedtrue}{% - \rc@RobustDefOne{}{*}\refused{% - \begingroup - \csname @safe@activestrue\endcsname - \ltx@IfUndefined{r@#1}{% - \protect\G@refundefinedtrue - \rc@WarningUndefined{#1}% - }{}% - \endgroup - }% -}{% - \rc@RobustDefOne{}{*}\refused{% - \begingroup - \csname @safe@activestrue\endcsname - \ltx@IfUndefined{r@#1}{% - \csname protect\expandafter\endcsname - \csname G@refundefinedtrue\endcsname - \rc@WarningUndefined{#1}% - }{}% - \endgroup - }% -} -\ltx@IfUndefined{@latex@warning}{% - \def\rc@WarningUndefined#1{% - \ltx@ifundefined{thepage}{% - \def\thepage{\number\count0 }% - }{}% - \@PackageWarning{refcount}{% - Reference `#1' on page \thepage\space undefined% - }% - }% -}{% - \def\rc@WarningUndefined#1{% - \@latex@warning{% - Reference `#1' on page \thepage\space undefined% - }% - }% -} -\def\rc@set#1#2#3#4{% - \begingroup - \csname @safe@activestrue\endcsname - \refused{#4}% - \expandafter\rc@@set\csname r@#4\endcsname{#1}{#2}{#3}% - \endgroup -} -\def\rc@@set#1#2#3#4{% - \ifx#1\relax - #2{#4}{\rc@default}% - \else - #2{#4}{% - \expandafter#3#1\rc@default\rc@default\@nil - }% - \fi -} -\rc@RobustDefZero\setcounterref{% - \rc@set\setcounter\ltx@car -} -\rc@RobustDefZero\addtocounterref{% - \rc@set\addtocounter\ltx@car -} -\rc@RobustDefZero\setcounterpageref{% - \rc@set\setcounter\ltx@carsecond -} -\rc@RobustDefZero\addtocounterpageref{% - \rc@set\addtocounter\ltx@carsecond -} -\rc@newcommand*{\getrefnumber}[1]{% - \romannumeral - \ltx@ifundefined{r@#1}{% - \expandafter\ltx@zero - \rc@default - }{% - \expandafter\expandafter\expandafter\rc@extract@ - \expandafter\expandafter\expandafter!% - \csname r@#1\expandafter\endcsname - \expandafter{\rc@default}\@nil - }% -} -\rc@newcommand*{\getpagerefnumber}[1]{% - \romannumeral - \ltx@ifundefined{r@#1}{% - \expandafter\ltx@zero - \rc@default - }{% - \expandafter\expandafter\expandafter\rc@extract@page - \expandafter\expandafter\expandafter!% - \csname r@#1\expandafter\expandafter\expandafter\endcsname - \expandafter\expandafter\expandafter{% - \expandafter\rc@default - \expandafter}\expandafter{\rc@default}\@nil - }% -} -\rc@newcommand*{\getrefbykeydefault}[2]{% - \romannumeral - \expandafter\rc@getrefbykeydefault - \csname r@#1\expandafter\endcsname - \csname rc@extract@#2\endcsname -} -\long\def\rc@getrefbykeydefault#1#2#3{% - \ifx#1\relax - % reference is undefined - \ltx@ReturnAfterElseFi{% - \ltx@zero - #3% - }% - \else - \ltx@ReturnAfterFi{% - \ifx#2\relax - % extract method is missing - \ltx@ReturnAfterElseFi{% - \ltx@zero - #3% - }% - \else - \ltx@ReturnAfterFi{% - \expandafter - \rc@generic#1{#3}{#3}{#3}{#3}{#3}\@nil#2{#3}% - }% - \fi - }% - \fi -} -\long\def\rc@generic#1#2\@nil#3#4{% - #3{#1\TR@TitleReference\@empty{#4}\@nil}{#1}#2\@nil -} -\long\def\rc@extract@#1#2#3\@nil{% - \ltx@zero - #2% -} -\long\def\rc@extract@page#1#2#3#4\@nil{% - \ltx@zero - #3% -} -\long\def\rc@extract@name#1#2#3#4#5\@nil{% - \ltx@zero - #4% -} -\long\def\rc@extract@anchor#1#2#3#4#5#6\@nil{% - \ltx@zero - #5% -} -\long\def\rc@extract@url#1#2#3#4#5#6#7\@nil{% - \ltx@zero - #6% -} -\long\def\rc@extract@title#1#2\@nil{% - \rc@@extract@title#1% -} -\long\def\rc@@extract@title#1\TR@TitleReference#2#3#4\@nil{% - \ltx@zero - #3% -} -\rc@newcommand*{\IfRefUndefinedExpandable}[1]{% - \ltx@ifundefined{r@#1}\ltx@firstoftwo\ltx@secondoftwo -} -\rc@RobustDefOne{}*\IfRefUndefinedBabel{% - \begingroup - \csname safe@actives@true\endcsname - \expandafter\expandafter\expandafter\endgroup - \expandafter\ifx\csname r@#1\endcsname\relax - \expandafter\ltx@firstoftwo - \else - \expandafter\ltx@secondoftwo - \fi -} -\rc@AtEnd% -%% \section{Installation} -\endinput -%% -%% End of file `refcount.sty'. diff --git a/Master/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty b/Master/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty deleted file mode 100644 index 8e8a828bea5..00000000000 --- a/Master/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty +++ /dev/null @@ -1,197 +0,0 @@ -%% -%% This is file `xcolor-patch.sty', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% hycolor.dtx (with options: `xcolor') -%% -%% This is a generated file. -%% -%% Project: hycolor -%% Version: 2016/05/16 v1.8 -%% -%% 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 -%% -%% -%% This work consists of the main source file hycolor.dtx -%% and the derived files -%% hycolor.sty, hycolor.pdf, hycolor.ins, hycolor.drv, -%% xcolor-patch.sty, hycolor-test1.tex, hycolor-test2.tex, -%% hycolor-test3.tex, hycolor-test-xcol1.tex, -%% hycolor-test-xcol2.tex, hycolor-test-xcol3.tex, -%% hycolor-test-xcol4.tex. -%% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{xcolor-patch}[2016/05/16 xcolor patch] -\RequirePackage{hopatch}[2016/05/16] -\hopatch@AfterPackage{xcolor}{% - \long\def\reserved@a#1#2#3{% - \long\def\@@tmp##1##2{% - \ifx#1##1% - \toks@{##2}% - \expandafter\remove@to@nnil - \else - \expandafter\@@tmp - \fi - }% - \@@tmp#2#1{#3}\@nnil\the\toks@ - }% - \ifx\XC@ifxcase\reserved@a - \long\def\XC@ifxcase#1#2#3{% - \long\def\XC@if@##1##2{% - \ifx#1##1% - \toks@{##2}% - \expandafter\remove@to@nnil - \else - \expandafter\XC@if@ - \fi - }% - \XC@if@#2#1{#3}\@nnil - \the\toks@ - }% - \fi - \long\def\reserved@a#1#2#3{% - \long\def\@@tmp##1##2{% - \@expandtwoargs\in@{,#1,}{,##1,}% - \ifin@ - \toks@{##2}% - \expandafter\remove@to@nnil - \else - \expandafter\@@tmp - \fi - }% - \@@tmp#2{#1}{#3}\@nnil - \the\toks@ - }% - \ifx\XC@ifcase\reserved@a - \long\def\XC@ifcase#1#2#3{% - \long\def\XC@if@##1##2{% - \@expandtwoargs\in@{,#1,}{,##1,}% - \ifin@ - \toks@{##2}% - \expandafter\remove@to@nnil - \else - \expandafter\XC@if@ - \fi - }% - \XC@if@#2{#1}{#3}\@nnil - \the\toks@ - }% - \fi - \def\reserved@a#1,{% - \XC@ifxcase\tm{% - \XC@mod@rgb{% - \XC@calcN{#1}\@@tmp - \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}% - }% - \XC@mod@cmy{% - \XC@calcC{#1}\@@tmp - \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}% - }% - \XC@mod@cmyk{% - \XC@calcC{#1}\@@tmp - \edef\@@tmp{0,0,0,\@@tmp}% - }% - \XC@mod@RGB{% - \edef\@@scl{\rangeRGB}% - \XC@calcM{#1}\@@tmp - \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}% - }% - \XC@mod@HTML{% - \edef\@@scl{\@cclv}% - \XC@calcM{#1}\@@tmp - \XC@calcH\@@tmp\@@tmp - \edef\@@tmp{\@@tmp\@@tmp\@@tmp}% - }% - \XC@mod@HSB{% - \edef\@@scl{\rangeHSB}% - \XC@calcM{#1}\@@tmp - \edef\@@tmp{0,0,\@@tmp}% - }% - \XC@mod@Gray{% - \edef\@@scl{\rangeGray}% - \XC@calcM{#1}\@@tmp - }% - }% - {% - \XC@calcN{#1}\@@tmp - \edef\@@tmp{0,0,\@@tmp}% - }% - }% - \ifx\XC@cnv@gray\reserved@a - \def\XC@cnv@gray#1,{% - \XC@ifxcase\tm{% - \XC@mod@rgb{% - \XC@calcN{#1}\@@tmp - \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}% - }% - \XC@mod@gray{}% - \XC@mod@cmy{% - \XC@calcC{#1}\@@tmp - \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}% - }% - \XC@mod@cmyk{% - \XC@calcC{#1}\@@tmp - \edef\@@tmp{0,0,0,\@@tmp}% - }% - \XC@mod@RGB{% - \edef\@@scl{\rangeRGB}% - \XC@calcM{#1}\@@tmp - \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}% - }% - \XC@mod@HTML{% - \edef\@@scl{\@cclv}% - \XC@calcM{#1}\@@tmp - \XC@calcH\@@tmp\@@tmp - \edef\@@tmp{\@@tmp\@@tmp\@@tmp}% - }% - \XC@mod@HSB{% - \edef\@@scl{\rangeHSB}% - \XC@calcM{#1}\@@tmp - \edef\@@tmp{0,0,\@@tmp}% - }% - \XC@mod@Gray{% - \edef\@@scl{\rangeGray}% - \XC@calcM{#1}\@@tmp - }% - }% - {% - \XC@calcN{#1}\@@tmp - \edef\@@tmp{0,0,\@@tmp}% - }% - }% - \fi - \@ifundefined{XC@frameb@x }{% - \expandafter\let\csname XC@frameb@x \endcsname\XC@frameb@x - \edef\XC@frameb@x{% - \noexpand\protect - \expandafter\noexpand\csname XC@frameb@x \endcsname - }% - \expandafter\ifx\csname XC@frameb@x \endcsname\@frameb@x - \let\@frameb@x\XC@frameb@x - \fi - }{}% -} -%% \section{Installation} -\endinput -%% -%% End of file `xcolor-patch.sty'. -- cgit v1.2.3