diff options
author | Karl Berry <karl@freefriends.org> | 2018-05-19 23:28:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-05-19 23:28:16 +0000 |
commit | 191a9434e66d18ae2ca926de04deeef76a693f17 (patch) | |
tree | 17aa6c5603fcb8f65fab4d8c3cc41c8f3d1fc4b9 /Master/texmf-dist/tex/generic/xint/xintfrac.sty | |
parent | d5975620549112823d69c164a8e1d06cb83398c2 (diff) |
xint (19may18)
git-svn-id: svn://tug.org/texlive/trunk@47772 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 | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xintfrac.sty b/Master/texmf-dist/tex/generic/xint/xintfrac.sty index 4c727e3f522..3edaf936f19 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.3a 2018/03/07 +%% The xint bundle 1.3b 2018/05/18 %% Copyright (C) 2013-2018 by Jean-Francois Burnol %% xintfrac: Expandable operations on fractions %% --------------------------------------------------------------- @@ -75,7 +75,7 @@ \XINTsetupcatcodes% defined in xintkernel.sty \XINT_providespackage \ProvidesPackage{xintfrac}% - [2018/03/07 1.3a Expandable operations on fractions (JFB)]% + [2018/05/18 1.3b Expandable operations on fractions (JFB)]% \def\XINT_cntSgnFork #1% {% \ifcase #1\expandafter\xint_secondofthree @@ -3222,6 +3222,35 @@ \ifnum#3<\xint_c_\xint_dothis\xint_secondoftwo_thenstop\fi \xint_orthat\xint_firstoftwo_thenstop }% +\def\XINTinRandomFloatS{\romannumeral0\XINTinrandomfloatS}% +\def\XINTinRandomFloatSdigits{\XINTinRandomFloatS[\XINTdigits]}% +\def\XINTinrandomfloatS[#1]% +{% + \expandafter\XINT_inrandomfloatS\the\numexpr\xint_c_-(#1)\xint: +}% +\def\XINT_inrandomfloatS-#1\xint: +{% + \expandafter\XINT_inrandomfloatS_a + \romannumeral0\xintrandomdigits{#1}[-#1]% +}% +\def\XINT_inrandomfloatS_a#1% +{% + \if#10\xint_dothis{\XINT_inrandomfloatS_b}\fi + \xint_orthat{ #1}% +}%[ +\def\XINT_inrandomfloatS_b#1% +{% + \if#1[\xint_dothis{\XINT_inrandomfloatS_zero}\fi% ] + \if#10\xint_dothis{\XINT_inrandomfloatS_b}\fi + \xint_orthat{ #1}% +}%[ +\def\XINT_inrandomfloatS_zero#1]{ 0[0]}% +\def\XINTinRandomFloatSixteen% +{% + \romannumeral0\expandafter\XINT_inrandomfloatS_a + \romannumeral`&&@\expandafter\XINT_eightrandomdigits + \romannumeral`&&@\XINT_eightrandomdigits[-16]% +}% \XINT_restorecatcodes_endinput% \endinput %% |