summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-10-14 22:31:01 +0000
committerKarl Berry <karl@freefriends.org>2015-10-14 22:31:01 +0000
commit8670e7c083a28342f15202694a11870d188ac3b9 (patch)
treeaf2d86afc8b75364089f0ff66ac9496f002efc5c /Master/texmf-dist/tex
parentd8affc4836b36f9a08f2502e9650bf302952561c (diff)
bnumexpr (14oct15)
git-svn-id: svn://tug.org/texlive/trunk@38638 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/bnumexpr/bnumexpr.sty15
1 files changed, 6 insertions, 9 deletions
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