From 8670e7c083a28342f15202694a11870d188ac3b9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 14 Oct 2015 22:31:01 +0000 Subject: bnumexpr (14oct15) git-svn-id: svn://tug.org/texlive/trunk@38638 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/bnumexpr/bnumexpr.sty | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/tex/latex/bnumexpr') diff --git a/Master/texmf-dist/tex/latex/bnumexpr/bnumexpr.sty b/Master/texmf-dist/tex/latex/bnumexpr/bnumexpr.sty index b1b74a6b82b..03e6dad670c 100644 --- a/Master/texmf-dist/tex/latex/bnumexpr/bnumexpr.sty +++ b/Master/texmf-dist/tex/latex/bnumexpr/bnumexpr.sty @@ -25,7 +25,7 @@ %% Copyright (C) 2014-2015 by Jean-Francois Burnol %% \NeedsTeXFormat{LaTeX2e}% -\ProvidesPackage{bnumexpr}[2015/10/13 v1.2 Expressions with big integers (jfB)]% +\ProvidesPackage{bnumexpr}[2015/10/14 v1.2a Expressions with big integers (jfB)]% \edef\BNErestorecatcodes {\catcode`\noexpand\!\the\catcode`\! \catcode`\noexpand\?\the\catcode`\? \catcode`\noexpand\_\the\catcode`\_ @@ -66,8 +66,8 @@ \catcode`! 3 \def\bnumexprsetup #1{\BNE_parsekeys #1,=!,}% \def\BNE_parsekeys #1=#2#3,{\ifx!#2\expandafter\BNE_parsedone\fi - \edef\BNE_tmpc{\xint_zapspaces #1 \xint_gobble_i}% - \expandafter\let\csname BNE_Op_\BNE_tmpc\endcsname=#2\BNE_parsekeys + \expandafter +\let\csname BNE_Op_\xint_zapspaces #1 \xint_gobble_i\endcsname=#2\BNE_parsekeys }% \catcode`! 11 \def\BNE_parsedone #1\BNE_parsekeys {}% @@ -304,17 +304,14 @@ \BNE_tmpb *{vii}{BNE_Op_mul}% \BNE_tmpb /{vii}{BNE_Op_divround}% \BNE_tmpb ^{viii}{BNE_Op_pow}% -\expandafter\def\csname BNE_itself_**\endcsname {**}% +\expandafter\def\csname BNE_itself_**\endcsname {^}% shortcut for alias \expandafter\def\csname BNE_itself_//\endcsname {//}% \expandafter\def\csname BNE_itself_/:\endcsname {/:}% -\BNE_tmpb {**}{viii}{BNE_Op_pow}% \BNE_tmpb {//}{vii}{BNE_Op_divtrunc}% \BNE_tmpb {/:}{vii}{BNE_Op_mod}% \let\BNE_precedence_! \xint_c_x -\def\BNE_tmpa #1{\def\BNE_op_! ##1{\expandafter\BNE_getop - \csname .=#1{\BNE_unlock ##1}\endcsname - }}% -\BNE_tmpa\BNE_Op_fac +\def\BNE_op_! #1% + {\expandafter\BNE_getop\csname .=\BNE_Op_fac{\BNE_unlock #1}\endcsname }% \def\BNE_tmpa #1% {% \expandafter\BNE_tmpb -- cgit v1.2.3