diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/xint/xintfrac.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/xint/xintfrac.sty | 64 |
1 files changed, 56 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xintfrac.sty b/Master/texmf-dist/tex/generic/xint/xintfrac.sty index 7bd7db6272c..4dda12fb0c2 100644 --- a/Master/texmf-dist/tex/generic/xint/xintfrac.sty +++ b/Master/texmf-dist/tex/generic/xint/xintfrac.sty @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% --------------------------------------------------------------- -%% The xint bundle 1.2n 2017/08/06 +%% The xint bundle 1.2o 2017/08/29 %% Copyright (C) 2013-2017 by Jean-Francois Burnol %% xintfrac: Expandable operations on fractions %% --------------------------------------------------------------- @@ -70,7 +70,31 @@ \XINTsetupcatcodes% defined in xintkernel.sty \XINT_providespackage \ProvidesPackage{xintfrac}% - [2017/08/06 1.2n Expandable operations on fractions (JFB)]% + [2017/08/29 1.2o Expandable operations on fractions (JFB)]% +\def\xintSgn {\romannumeral0\xintsgn }% deprecated from xintcore +\def\xintCmp {\romannumeral0\xintcmp }% deprecated from xintcore +\def\xintEq {\romannumeral0\xinteq }% deprecated from xint +\def\xintNeq #1#2% renamed into \xintNotEq + {\romannumeral0\XINT_signaldeprecated{xintfrac}{xintNeq}\xintifeq {#1}{#2}{0}{1}}% +\def\xintNotEq #1#2{\romannumeral0\xintifeq {#1}{#2}{0}{1}}% +\def\xintGt {\romannumeral0\xintgt }% +\def\xintLt {\romannumeral0\xintlt }% +\def\xintGtorEq #1#2{\romannumeral0\xintiflt {#1}{#2}{0}{1}}% +\def\xintLtorEq #1#2{\romannumeral0\xintifgt {#1}{#2}{0}{1}}% +\def\xintIsZero {\romannumeral0\xintiszero }% +\def\xintIsNotZero{\romannumeral0\xintisnotzero }% +\def\xintIsOne {\romannumeral0\xintisone }% +\def\xintOdd {\romannumeral0\xintodd }% +\def\xintEven {\romannumeral0\xinteven }% +\def\xintifSgn{\romannumeral0\xintifsgn }% +\def\xintifCmp{\romannumeral0\xintifcmp }% +\def\xintifEq {\romannumeral0\xintifeq }% +\def\xintifGt {\romannumeral0\xintifgt }% +\def\xintifLt {\romannumeral0\xintiflt }% +\def\xintifZero {\romannumeral0\xintifzero }% +\def\xintifNotZero{\romannumeral0\xintifnotzero }% +\def\xintifOne {\romannumeral0\xintifone }% +\def\xintifOdd {\romannumeral0\xintifodd }% \def\XINT_cntSgnFork #1% {% \ifcase #1\expandafter\xint_secondofthree @@ -843,7 +867,6 @@ }% \def\xintTTrunc {\romannumeral0\xintttrunc }% \def\xintttrunc {\xintitrunc\xint_c_}% -\let\xintNum \xintTTrunc \let\xintnum \xintttrunc \def\xintRound {\romannumeral0\xintround }% \def\xintiRound {\romannumeral0\xintiround }% @@ -1338,17 +1361,31 @@ \expandafter\XINT_fpow_pos_B\expandafter {#3}{#1}{#2}% }% \def\XINT_fpow_pos_B #1#2{\XINT_outfrac {#2}{#1}}% -\def\xintifac #1{\expandafter\XINT_fac_fork\the\numexpr \xintNum{#1}.}% +\def\xintifac #1{\expandafter\XINT_fac_fork\the\numexpr\xintNum{#1}.}% +\def\xintFac {\romannumeral0\xintfac}% +\def\xintfac #1{\expandafter\XINT_fac_fork\the\numexpr\xintNum{#1}.[0]}% \def\xintibinomial #1#2% {% \expandafter\XINT_binom_pre \the\numexpr\xintNum{#1}\expandafter.\the\numexpr\xintNum{#2}.% }% +\def\xintBinomial {\romannumeral0\xintbinomial}% +\def\xintbinomial #1#2% +{% + \expandafter\XINT_binom_pre + \the\numexpr\xintNum{#1}\expandafter.\the\numexpr\xintNum{#2}.[0]% +}% \def\xintipfactorial #1#2% {% \expandafter\XINT_pfac_fork \the\numexpr\xintNum{#1}\expandafter.\the\numexpr\xintNum{#2}.% }% +\def\xintPFactorial {\romannumeral0\xintpfactorial}% +\def\xintpfactorial #1#2% +{% + \expandafter\XINT_pfac_fork + \the\numexpr\xintNum{#1}\expandafter.\the\numexpr\xintNum{#2}.[0]% +}% \def\xintPrd {\romannumeral0\xintprd }% \def\xintprd #1{\expandafter\XINT_fprdexpr \romannumeral`&&@#1\xint:}% \def\XINT_fprdexpr {\XINT_fprod_loop_a {1/1[0]}}% @@ -2263,7 +2300,7 @@ }% \def\XINT_flpowerh_a #1;% {% - \if0\xintiiLDg{#1}\expandafter\XINT_flpowerh_int + \if0\xintLDg{#1}\expandafter\XINT_flpowerh_int \else\expandafter\XINT_flpowerh_b \fi #1.% }% @@ -2280,7 +2317,7 @@ }% \def\XINT_flpowerh_c #1.% {% - \ifodd\xintiiLDg{#1} %<- intentional space + \ifodd\xintLDg{#1} %<- intentional space \expandafter\XINT_flpowerh_d\else\expandafter\XINT_flpowerh_e \fi #1.% }% @@ -2357,7 +2394,7 @@ \def\XINT_flpower_loopI #1.% {% \if1\XINT_isOne {#1}\xint_dothis\XINT_flpower_ItoIII\fi - \ifodd\xintiiLDg{#1} %<- intentional space + \ifodd\xintLDg{#1} %<- intentional space \xint_dothis{\expandafter\XINT_flpower_loopI_odd}\fi \xint_orthat{\expandafter\XINT_flpower_loopI_even}% \romannumeral0\XINT_half @@ -2386,7 +2423,7 @@ \def\XINT_flpower_loopII #1.% {% \if1\XINT_isOne{#1}\xint_dothis\XINT_flpower_IItoIII\fi - \ifodd\xintiiLDg{#1} %<- intentional space + \ifodd\xintLDg{#1} %<- intentional space \xint_dothis{\expandafter\XINT_flpower_loopII_odd}\fi \xint_orthat{\expandafter\XINT_flpower_loopII_even}% \romannumeral0\XINT_half#1\xint_bye\xint_Bye345678\xint_bye @@ -3025,6 +3062,17 @@ {\romannumeral0\XINTinfloat[#1]{#3}}{#1}}% \def\XINT_infloatmod #1#2{\expandafter\XINT_infloatmod_a\expandafter {#2}{#1}}% \def\XINT_infloatmod_a #1#2#3{\XINTinfloat [#3]{\xintMod {#2}{#1}}}% +\ifdefined\documentclass\ifdefined\AtEndDocument + \AtEndDocument{% +\XINT_ifFlagRaised{Deprecated-xintfrac}% + {\PackageError{xintfrac} +{Usage of deprecated macros!} +{This deprecated macro from xintfrac.sty has been detected:\MessageBreak +\string\xintNeq\space(use \string\xintNotEq\space or xint's \string\xintiiNotEq!)\MessageBreak +It will get removed at some future release.}}% + {% no deprecated macro used (at top level...) + }% +}\fi\fi \XINT_restorecatcodes_endinput% \endinput %% |