diff options
Diffstat (limited to 'macros/luatex/latex/luanumint/luanumint.sty')
-rw-r--r-- | macros/luatex/latex/luanumint/luanumint.sty | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/macros/luatex/latex/luanumint/luanumint.sty b/macros/luatex/latex/luanumint/luanumint.sty index aca4de0215..95eccf22bb 100644 --- a/macros/luatex/latex/luanumint/luanumint.sty +++ b/macros/luatex/latex/luanumint/luanumint.sty @@ -1,9 +1,9 @@ % The luanumint package -% version 1.0 +% version 1.1 % Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt. %Authors: Chetan Shirore and Ajit Kumar -\ProvidesPackage{luanumint}[1.0] +\ProvidesPackage{luanumint}[1.1] \RequirePackage{luacode,breqn,xkeyval} \begin{luacode*} function checksign(x) @@ -215,11 +215,11 @@ end \end{luacode*} % ========= KEY DEFINITIONS ========= -\define@key{someop}{a}{\def\mop@one{#1}}% -\define@key{someop}{b}{\def\mop@two{#1}}% -\define@key{someop}{n}{\def\mop@three{#1}}% -\define@key{someop}{func}{\def\mop@four{#1}}% -\define@key{someop}{trun}{\def\mop@five{#1}}% +\define@key{someop}{a}{\def\mop@onex{#1}}% +\define@key{someop}{b}{\def\mop@twox{#1}}% +\define@key{someop}{n}{\def\mop@threex{#1}}% +\define@key{someop}{func}{\def\mop@fourx{#1}}% +\define@key{someop}{trun}{\def\mop@fivex{#1}}% % ========= KEY DEFAULTS ========= \setkeys{someop}{a=0}% \setkeys{someop}{b=1}% @@ -232,7 +232,7 @@ end \directlua{% tempsubexp = "("..\luastring{#2}..")" local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() -tex.print(luamidpt(f,\mop@one,\mop@two,\mop@three,\mop@five)) +tex.print(luamidpt(f,\mop@onex,\mop@twox,\mop@threex,\mop@fivex)) }% }% }% @@ -242,7 +242,7 @@ tex.print(luamidpt(f,\mop@one,\mop@two,\mop@three,\mop@five)) \directlua{% tempsubexp = "("..\luastring{#2}..")" -local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luamidptSteps(f,\mop@one,\mop@two,\mop@three,'\mop@four',\mop@five)) +local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luamidptSteps(f,\mop@onex,\mop@twox,\mop@threex,'\mop@fourx',\mop@fivex)) }% \endgroup}% @@ -251,7 +251,7 @@ local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)( \directlua{% tempsubexp = "("..\luastring{#2}..")" local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() -tex.print(luatrapz(f,\mop@one,\mop@two,\mop@three,\mop@five)) +tex.print(luatrapz(f,\mop@onex,\mop@twox,\mop@threex,\mop@fivex)) }% }% }% @@ -260,7 +260,7 @@ tex.print(luatrapz(f,\mop@one,\mop@two,\mop@three,\mop@five)) \setkeys{someop}{#1}% \directlua{% tempsubexp = "("..\luastring{#2}..")" -local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luatrapzsteps(f,\mop@one,\mop@two,\mop@three,'\mop@four',\mop@five)) +local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luatrapzsteps(f,\mop@onex,\mop@twox,\mop@threex,'\mop@fourx',\mop@fivex)) }% \endgroup}% @@ -268,7 +268,7 @@ local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)( \setkeys{someop}{#1}% \directlua{% tempsubexp = "("..\luastring{#2}..")" -local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.print(luasimpsononethird(f,\mop@one,\mop@two,\mop@three,\mop@five)) +local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.print(luasimpsononethird(f,\mop@onex,\mop@twox,\mop@threex,\mop@fivex)) }% }% }% @@ -277,7 +277,7 @@ local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)( \setkeys{someop}{#1}% \directlua{% tempsubexp = "("..\luastring{#2}..")" -local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsononethirdsteps(f,\mop@one,\mop@two,\mop@three,'\mop@four',\mop@five)) +local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsononethirdsteps(f,\mop@onex,\mop@twox,\mop@threex,'\mop@fourx',\mop@fivex)) }% \endgroup}% @@ -286,7 +286,7 @@ local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)( \setkeys{someop}{#1}% \directlua{% tempsubexp = "("..\luastring{#2}..")" -local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.print(luasimpsonthreight(f,\mop@one,\mop@two,\mop@three,\mop@five)) +local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.print(luasimpsonthreight(f,\mop@onex,\mop@twox,\mop@threex,\mop@fivex)) }% }% }% @@ -295,7 +295,7 @@ local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)( \setkeys{someop}{#1}% \directlua{% tempsubexp = "("..\luastring{#2}..")" -local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsonthreightsteps(f,\mop@one,\mop@two,\mop@three,'\mop@four',\mop@five)) +local f = load("return function(x) return " ..tempsubexp.. "end",nil,"t",math)() tex.sprint(luasimpsonthreightsteps(f,\mop@onex,\mop@twox,\mop@threex,'\mop@fourx',\mop@fivex)) }% \endgroup}% \endinput
\ No newline at end of file |