summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/luamaths/luamaths.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/latex/luamaths/luamaths.sty')
-rw-r--r--macros/luatex/latex/luamaths/luamaths.sty9
1 files changed, 5 insertions, 4 deletions
diff --git a/macros/luatex/latex/luamaths/luamaths.sty b/macros/luatex/latex/luamaths/luamaths.sty
index 48c285b61b..59fd29f434 100644
--- a/macros/luatex/latex/luamaths/luamaths.sty
+++ b/macros/luatex/latex/luamaths/luamaths.sty
@@ -1,21 +1,22 @@
% The luamaths package
-% version 1.5
+% version 1.6
% 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{luamaths}[1.5]
+\ProvidesPackage{luamaths}[1.6]
\RequirePackage{xkeyval}
\RequirePackage{amsmath}
\RequirePackage{luacode}
\begin{luacode*}
+--load luamaths-complex and luamaths-fractions modules.
local complex = require "luamaths-complex"
local lfrac = require "luamaths-fractions"
-
+--define lua function for evaluating expressions.
function mathop(...)
inf = math.huge
return ...
end
-
+--define lua function for rounding numbers.
function mathround(num, numDecimalPlaces)
if num==math.floor(num) then
return math.floor(num)