diff options
author | Karl Berry <karl@freefriends.org> | 2014-11-08 23:51:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-11-08 23:51:15 +0000 |
commit | 9a870ba0873e5855067323ca60f8211fedfa23cc (patch) | |
tree | e5d74dfe6a59a441aefbe010a4818ab72a71a775 /Master/texmf-dist/tex/generic/xint/xintfrac.sty | |
parent | 4435db29aea2c716c788f96372d03d17a7cc6486 (diff) |
xint (8nov14)
git-svn-id: svn://tug.org/texlive/trunk@35545 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/xint/xintfrac.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/xint/xintfrac.sty | 62 |
1 files changed, 8 insertions, 54 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xintfrac.sty b/Master/texmf-dist/tex/generic/xint/xintfrac.sty index 1a92682ecc7..1d0231e7629 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 v1.1 (2014/10/28) +%% The xint bundle v1.1a (2014/11/07) %% Copyright (C) 2013-2014 by Jean-Francois Burnol %% xintfrac: Expandable operations on fractions %% --------------------------------------------------------------- @@ -70,7 +70,7 @@ \XINTsetupcatcodes% defined in xintkernel.sty \XINT_providespackage \ProvidesPackage{xintfrac}% - [2014/10/28 v1.1 Expandable operations on fractions (jfB)]% + [2014/11/07 v1.1a Expandable operations on fractions (jfB)]% \chardef\xint_c_xviii 18 \def\XINT_cntSgnFork #1% {% @@ -769,12 +769,12 @@ \def\XINT_tfrac_zero #1\Z { 0/1[0]}% \def\XINT_tfrac_P #1/#2\Z {\expandafter\XINT_rez_AB \romannumeral0\xintiirem{#1}{#2}\Z {0}{#2}}% -\def\XINTinFloatFrac {\romannumeral0\XINTinfloatfrac [\XINTdigits]}% -\def\XINTinfloatfrac [#1]#2% +\def\XINTinFloatFracdigits {\romannumeral0\XINTinfloatfracdigits }% +\def\XINTinfloatfracdigits #1% {% - \expandafter\XINT_infloatfrac_a\expandafter {\romannumeral0\xinttfrac{#2}}{#1}% + \expandafter\XINT_infloatfracdg_a\expandafter {\romannumeral0\xinttfrac{#1}}% }% -\def\XINT_infloatfrac_a #1#2{\XINTinFloat [#2]{#1}}% +\def\XINT_infloatfracdg_a {\XINTinfloat [\XINTdigits]}% \def\xintTrunc {\romannumeral0\xinttrunc }% \def\xintiTrunc {\romannumeral0\xintitrunc }% \def\xinttrunc #1% @@ -1409,7 +1409,7 @@ {\expandafter\XINT_pfloat_c \romannumeral0\expandafter\XINT_split_fromleft_loop \expandafter {\the\numexpr #1+#2-\xint_c_i}#3\W\W\W\W\W\W\W\W\Z }% -\def\XINT_pfloat_c #1#2{ #1.#2}% #2 peut ^^eatre vide +\def\XINT_pfloat_c #1#2{ #1.#2}% #2 peut \^etre vide \def\XINT_pfloat_B #1#2#3% {\expandafter\XINT_pfloat_C \romannumeral0\XINT_dsx_zeroloop {\numexpr -#1-#2}{}\Z {}#3}% @@ -1741,7 +1741,7 @@ \def\xintDivFloor {\romannumeral0\xintdivfloor }% \def\xintdivfloor #1#2{\xintfloor{\xintDiv {#1}{#2}}}% \def\xintDivTrunc {\romannumeral0\xintdivtrunc }% -\def\xintdivtrunc #1#2{\xintitrunc 0{\xintDiv {#1}{#2}}}% +\def\xintdivtrunc #1#2{\xintttrunc {\xintDiv {#1}{#2}}}% \def\xintDivRound {\romannumeral0\xintdivround }% \def\xintdivround #1#2{\xintiround 0{\xintDiv {#1}{#2}}}% \def\xintMod {\romannumeral0\xintmod }% @@ -2134,28 +2134,6 @@ \expandafter\XINT_FL_Div_b\romannumeral0\XINTinfloat [#1]{#3}#2% }% \def\XINT_FL_Div_b #1[#2]#3[#4]{\xintE{#3/#1}{#4-#2}}% -\def\XINTinFloatSum {\romannumeral0\XINTinfloatsum }% -\def\XINTinfloatsum #1{\expandafter\XINT_floatsum_a\romannumeral-`0#1\relax }% -\def\XINT_floatsum_a #1{\expandafter\XINT_floatsum_b - \romannumeral0\XINTinfloat[\XINTdigits]{#1}\Z }% -\def\XINT_floatsum_b #1\Z #2% - {\expandafter\XINT_floatsum_c\romannumeral-`0#2\Z {#1}\Z}% -\def\XINT_floatsum_c #1% - {\xint_gob_til_relax #1\XINT_floatsum_e\relax\XINT_floatsum_d #1}% -\def\XINT_floatsum_d #1\Z - {\expandafter\XINT_floatsum_b\romannumeral0\XINTinfloatadd {#1}}% -\def\XINT_floatsum_e #1\Z #2\Z { #2}% -\def\XINTinFloatPrd {\romannumeral0\XINTinfloatprd }% -\def\XINTinfloatprd #1{\expandafter\XINT_floatprd_a\romannumeral-`0#1\relax }% -\def\XINT_floatprd_a #1{\expandafter\XINT_floatprd_b - \romannumeral0\XINTinfloat[\XINTdigits]{#1}\Z }% -\def\XINT_floatprd_b #1\Z #2% - {\expandafter\XINT_floatprd_c\romannumeral-`0#2\Z {#1}\Z}% -\def\XINT_floatprd_c #1% - {\xint_gob_til_relax #1\XINT_floatprd_e\relax\XINT_floatprd_d #1}% -\def\XINT_floatprd_d #1\Z - {\expandafter\XINT_floatprd_b\romannumeral0\XINTinfloatmul {#1}}% -\def\XINT_floatprd_e #1\Z #2\Z { #2}% \def\xintFloatPow {\romannumeral0\xintfloatpow}% \def\xintfloatpow #1{\XINT_flpow_chkopt \xintfloat #1\xint_relax }% \def\XINTinFloatPow {\romannumeral0\XINTinfloatpow }% @@ -2590,30 +2568,6 @@ {\xintHalf{\xintiiQuo{\XINT_dsx_addzerosnofuss {#4}{#2}}{#3}}}}% }% \def\XINT_flsqrt_big_end_b #1#2{#2[#1]}% -\def\XINTinFloatMaxof {\romannumeral0\XINTinfloatmaxof }% -\def\XINTinfloatmaxof #1{\expandafter\XINT_flmaxof_a\romannumeral-`0#1\relax }% -\def\XINT_flmaxof_a #1{\expandafter\XINT_flmaxof_b - \romannumeral0\XINTinfloat [\XINTdigits]{#1}\Z }% -\def\XINT_flmaxof_b #1\Z #2% - {\expandafter\XINT_flmaxof_c\romannumeral-`0#2\Z {#1}\Z}% -\def\XINT_flmaxof_c #1% - {\xint_gob_til_relax #1\XINT_flmaxof_e\relax\XINT_flmaxof_d #1}% -\def\XINT_flmaxof_d #1\Z - {\expandafter\XINT_flmaxof_b\romannumeral0\xintmax - {\XINTinFloat [\XINTdigits]{#1}}}% -\def\XINT_flmaxof_e #1\Z #2\Z { #2}% -\def\XINTinFloatMinof {\romannumeral0\XINTinfloatminof }% -\def\XINTinfloatminof #1{\expandafter\XINT_flminof_a\romannumeral-`0#1\relax }% -\def\XINT_flminof_a #1{\expandafter\XINT_flminof_b - \romannumeral0\XINTinfloat [\XINTdigits]{#1}\Z }% -\def\XINT_flminof_b #1\Z #2% - {\expandafter\XINT_flminof_c\romannumeral-`0#2\Z {#1}\Z}% -\def\XINT_flminof_c #1% - {\xint_gob_til_relax #1\XINT_flminof_e\relax\XINT_flminof_d #1}% -\def\XINT_flminof_d #1\Z - {\expandafter\XINT_flminof_b\romannumeral0\xintmin - {\XINTinFloat [\XINTdigits]{#1}}}% -\def\XINT_flminof_e #1\Z #2\Z { #2}% \XINT_restorecatcodes_endinput% \endinput %% |