diff options
author | Karl Berry <karl@freefriends.org> | 2023-11-17 22:04:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-11-17 22:04:28 +0000 |
commit | aeb7497eda15cbf667226a1ad2e8e76d048d3343 (patch) | |
tree | 9ade899b85e127584724fe95c4d4d8c127d0ed83 /Master/texmf-dist/tex | |
parent | e237f11686b90fadbb89f7a4376711ea865f0ffa (diff) |
luacomplex, luamaths, luaset (17nov23)
git-svn-id: svn://tug.org/texlive/trunk@68883 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luacomplex/luacomplex.sty | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luamaths/luamaths.sty | 9 | ||||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luaset/luaset.sty | 10 |
3 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/lualatex/luacomplex/luacomplex.sty b/Master/texmf-dist/tex/lualatex/luacomplex/luacomplex.sty index c863f5cd0f4..334fa1f75f7 100644 --- a/Master/texmf-dist/tex/lualatex/luacomplex/luacomplex.sty +++ b/Master/texmf-dist/tex/lualatex/luacomplex/luacomplex.sty @@ -1,9 +1,9 @@ % The luacomplex package -% Version 1.3 Date: 08-Aug-2023 +% Version 1.4 Date: 17-Nov-2023 % 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{luacomplex}[1.3] +\ProvidesPackage{luacomplex}[1.4] \RequirePackage{xkeyval} \RequirePackage{amsmath} \RequirePackage{luacode} @@ -19,9 +19,9 @@ setmetatable(_ENV, {__index = complexZ}) return setmetatable(cp,mt) end - -- create constant 'i' + -- create constant 'i'. CM.i = CM.new(0, 1) - + -- adding functions to the CM module. function CM.add (c1, c2) return CM.new(c1.r + c2.r, c1.i + c2.i) end diff --git a/Master/texmf-dist/tex/lualatex/luamaths/luamaths.sty b/Master/texmf-dist/tex/lualatex/luamaths/luamaths.sty index 48c285b61b0..59fd29f4345 100644 --- a/Master/texmf-dist/tex/lualatex/luamaths/luamaths.sty +++ b/Master/texmf-dist/tex/lualatex/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) diff --git a/Master/texmf-dist/tex/lualatex/luaset/luaset.sty b/Master/texmf-dist/tex/lualatex/luaset/luaset.sty index 2a4821d3652..4b2fac6655b 100644 --- a/Master/texmf-dist/tex/lualatex/luaset/luaset.sty +++ b/Master/texmf-dist/tex/lualatex/luaset/luaset.sty @@ -1,23 +1,23 @@ % luaset package -% version 1.0 +% version 1.1 % Authors: Chetan Shirore and Ajit Kumar % Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt. -\ProvidesPackage{luaset}[1.0] +\ProvidesPackage{luaset}[1.1] \RequirePackage{xkeyval} \RequirePackage{amsmath} \RequirePackage{luacode} \RequirePackage{luamaths} \begin{luacode*} -sets = {} -Set = {} +sets = {} -- global registry for sets. +Set = {} -- the module. local mt = { __tostring = function(self) return "\\{" .. table.concat(table.sortedkeys(self), ", ") .. "\\}" end } - +-- Adding functions to the module. function Set.new(str) str = str or "" local set = {} |