summaryrefslogtreecommitdiff
path: root/macros/luatex/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-21 03:02:55 +0000
committerNorbert Preining <norbert@preining.info>2023-11-21 03:02:55 +0000
commitff01be90452ac7aec530af4623f334ca21869cc5 (patch)
treec6cce3ca77cbf7d86029297394b55c965199c062 /macros/luatex/latex
parent682900f29e7ea9d31046e9541be14fd749b2eb17 (diff)
CTAN sync 202311210302
Diffstat (limited to 'macros/luatex/latex')
-rw-r--r--macros/luatex/latex/lualinalg/README.txt2
-rw-r--r--macros/luatex/latex/lualinalg/lualinalg.pdfbin269684 -> 269796 bytes
-rw-r--r--macros/luatex/latex/lualinalg/lualinalg.sty20
-rw-r--r--macros/luatex/latex/luanumint/README.txt2
-rw-r--r--macros/luatex/latex/luanumint/luanumint.pdfbin159787 -> 159929 bytes
-rw-r--r--macros/luatex/latex/luanumint/luanumint.sty22
-rw-r--r--macros/luatex/latex/luaplot/README.txt7
-rw-r--r--macros/luatex/latex/luaplot/luaplot.pdfbin147672 -> 154541 bytes
-rw-r--r--macros/luatex/latex/luaplot/luaplot.sty12
-rw-r--r--macros/luatex/latex/luaplot/luaplot.tex2
10 files changed, 33 insertions, 34 deletions
diff --git a/macros/luatex/latex/lualinalg/README.txt b/macros/luatex/latex/lualinalg/README.txt
index a3b301cfe1..d15949ecbc 100644
--- a/macros/luatex/latex/lualinalg/README.txt
+++ b/macros/luatex/latex/lualinalg/README.txt
@@ -1,5 +1,5 @@
# The lualinalg package
-# version 1.8
+# version 1.9
# Authors: Chetan Shirore and Ajit Kumar
# Email: mathsbeauty@gmail.com
diff --git a/macros/luatex/latex/lualinalg/lualinalg.pdf b/macros/luatex/latex/lualinalg/lualinalg.pdf
index 7981b4258c..0845c7d77c 100644
--- a/macros/luatex/latex/lualinalg/lualinalg.pdf
+++ b/macros/luatex/latex/lualinalg/lualinalg.pdf
Binary files differ
diff --git a/macros/luatex/latex/lualinalg/lualinalg.sty b/macros/luatex/latex/lualinalg/lualinalg.sty
index 55d0542b93..a68bcca580 100644
--- a/macros/luatex/latex/lualinalg/lualinalg.sty
+++ b/macros/luatex/latex/lualinalg/lualinalg.sty
@@ -1,9 +1,9 @@
-% The lualinalg package
+% The lualinalg package.
% Authors: Chetan Shirore and Ajit Kumar
-% Version 1.8, Date=23-Aug-2023
+% Version 1.9.
% 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{lualinalg}[1.8]
+\ProvidesPackage{lualinalg}[1.9]
\RequirePackage{xkeyval}
\RequirePackage{amsmath}
\RequirePackage{luamaths}
@@ -11,12 +11,12 @@
\begin{luacode*}
-- matrices part
-matrices = {}
+matrices = {} -- global registry to store matrices.
matrix = {} --module
local matrix_meta = {}
-
+-- Adding functions to the matrix module.
function matrix.new(matrix, rows, columns, str)
if type(rows) == "table" then
for i = 1, #rows do
@@ -895,7 +895,7 @@ function matrix.chqeql(m1, m2)
return true
end
-
+-- Setting Meta-operations in the matrix module.
matrix_meta.__tostring = function(...)
return matrix.show(...)
end
@@ -948,12 +948,12 @@ end
-- vector part
-vectors = {}
+vectors = {} -- global registry to store vectors.
-vector = {} --module
+vector = {} --module.
local vector_meta = {}
-
+-- Adding functions to the vector module.
function vector.new(vector, rows, columns, n)
if columns ~= "e" and columns ~= "zero" then
local tbl = {}
@@ -1267,7 +1267,7 @@ function vector.chqeql(v1, v2)
end
return true
end
-
+-- Setting Meta-operations in the vector module.
vector_meta.__tostring = function(...)
return vector.show(...)
end
diff --git a/macros/luatex/latex/luanumint/README.txt b/macros/luatex/latex/luanumint/README.txt
index ffb6056f14..b55f54224d 100644
--- a/macros/luatex/latex/luanumint/README.txt
+++ b/macros/luatex/latex/luanumint/README.txt
@@ -1,5 +1,5 @@
# The luanumint package
-# version 1.1
+# version 1.2
# Authors: Chetan Shirore and Ajit Kumar
# Email: mathsbeauty@gmail.com
diff --git a/macros/luatex/latex/luanumint/luanumint.pdf b/macros/luatex/latex/luanumint/luanumint.pdf
index cf0fd4476f..8136c36399 100644
--- a/macros/luatex/latex/luanumint/luanumint.pdf
+++ b/macros/luatex/latex/luanumint/luanumint.pdf
Binary files differ
diff --git a/macros/luatex/latex/luanumint/luanumint.sty b/macros/luatex/latex/luanumint/luanumint.sty
index 95eccf22bb..e873d15da7 100644
--- a/macros/luatex/latex/luanumint/luanumint.sty
+++ b/macros/luatex/latex/luanumint/luanumint.sty
@@ -1,9 +1,9 @@
% The luanumint package
-% version 1.1
+% version 1.2
% 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.1]
+\ProvidesPackage{luanumint}[1.2]
\RequirePackage{luacode,breqn,xkeyval}
\begin{luacode*}
function checksign(x)
@@ -13,12 +13,12 @@ function checksign(x)
return ''
end
end
-
+-- Function to round off numbers.
function mathrnd(num, numDecimalPlaces)
local mult = 10^(numDecimalPlaces or 0)
return math.floor(num * mult + 0.5) / mult
end
-
+-- Function for the midpoint rule.
function luamidpt (f,a,b,n,trun)
local trun = trun or 4
local h = (b - a) / n
@@ -30,7 +30,7 @@ function luamidpt (f,a,b,n,trun)
end
return mathrnd(sum*h,trun)
end
-
+-- Function for the midpoint rule with steps.
function luamidptSteps (f,a,b,n,nm,trun)
local trun = trun or 4
local nm = nm or "f"
@@ -54,7 +54,7 @@ function luamidptSteps (f,a,b,n,nm,trun)
end
return str .."\\right] \\\\ = "..otstr.."\\right) \\\\ = "..mathrnd(sum*mathrnd(h,trun),trun)
end
-
+-- Function for the Trapezoidal rule.
function luatrapz (f,a,b,n,trun)
local trun = trun or 4
local h = (b - a) / n
@@ -70,7 +70,7 @@ function luatrapz (f,a,b,n,trun)
end
return mathrnd(sum*h/2,trun)
end
-
+-- Function for the Trapezoidal rule with Steps.
function luatrapzsteps (f,a,b,n,nm,trun)
local trun = trun or 4
local nm = nm or "f"
@@ -99,7 +99,7 @@ function luatrapzsteps (f,a,b,n,nm,trun)
end
return str .."\\right] \\\\ = "..otstr.."\\right) \\\\ = "..mathrnd(sum*mathrnd(h/2,trun),trun)
end
-
+-- Function for the Simpsons one-third rule.
function luasimpsononethird (f,a,b,n,trun)
if (not(n % 2 == 0)) then error("Number of subintervals should be even.") end
local trun = trun or 4
@@ -120,7 +120,7 @@ function luasimpsononethird (f,a,b,n,trun)
end
return mathrnd(sum*h/3,trun)
end
-
+-- Function for the Simpsons one-third rule with steps.
function luasimpsononethirdsteps (f,a,b,n,nm,trun)
if (not(n % 2 == 0)) then error("Number of subintervals should be even.") end
local trun = trun or 4
@@ -155,7 +155,7 @@ function luasimpsononethirdsteps (f,a,b,n,nm,trun)
end
return str .."\\right] \\\\ = "..otstr.."\\right) \\\\ = "..mathrnd(sum*mathrnd(h/3,trun),trun)
end
-
+-- Function for the Simpsons three-eighth rule.
function luasimpsonthreight (f,a,b,n,trun)
if (not(n % 3 == 0)) then error("No. of sub-intervals should be multiple of 3.") end
local trun = trun or 4
@@ -177,7 +177,7 @@ function luasimpsonthreight (f,a,b,n,trun)
end
return mathrnd(sum*3*h/8,trun)
end
-
+-- Function for the Simpsons three-eighth rule with steps.
function luasimpsonthreightsteps (f,a,b,n,nm,trun)
if (not(n % 3 == 0)) then error("No. of sub-intervals should be multip.") end
local trun = trun or 4
diff --git a/macros/luatex/latex/luaplot/README.txt b/macros/luatex/latex/luaplot/README.txt
index fd7337a128..6be75bd0a8 100644
--- a/macros/luatex/latex/luaplot/README.txt
+++ b/macros/luatex/latex/luaplot/README.txt
@@ -1,8 +1,7 @@
-# The luaplot package
-
-# version 1.4
-
+# The luplot package.
+# version 1.5
# Authors: Chetan Shirore and Ajit Kumar
+# Email: mathsbeauty@gmail.com
# Introduction
The luaplot package is developed using Lua to plot graphs of real-valued functions of a real variable in LaTeX. It is developed with the MetaPost system and luamplib and luacode packages. It provides an easy way for plotting graphs of standard mathematical functions. There is no particular environment in the package for plotting graphs. It also works inside floating environments of LaTeX like tables and figures. The compilation time to plot several graphs in LaTeX using the luaplot package is significantly less with LuaLaTeX engine.
diff --git a/macros/luatex/latex/luaplot/luaplot.pdf b/macros/luatex/latex/luaplot/luaplot.pdf
index 0befb7166d..8a9a03ae6b 100644
--- a/macros/luatex/latex/luaplot/luaplot.pdf
+++ b/macros/luatex/latex/luaplot/luaplot.pdf
Binary files differ
diff --git a/macros/luatex/latex/luaplot/luaplot.sty b/macros/luatex/latex/luaplot/luaplot.sty
index db1b5e1aea..490cfa12f0 100644
--- a/macros/luatex/latex/luaplot/luaplot.sty
+++ b/macros/luatex/latex/luaplot/luaplot.sty
@@ -1,15 +1,15 @@
-% luaplot package
-% version 1.4
+% The luaplot package.
+% Version 1.5.
% 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{luaplot}[1.4]
+\ProvidesPackage{luaplot}[1.5]
\RequirePackage{xkeyval}
\RequirePackage{luacode}
\RequirePackage{tikz}
\RequirePackage{luamplib}
\begin{luacode}
-
+-- compatibility of number formats with the MetaPost system.
function checknumber(x)
if string.find(x, "e") then
return string.format("%.12f",x)
@@ -17,7 +17,7 @@ function checknumber(x)
return x
end
end
-
+-- Determining plot points with Lua for the MetaPost system.
function luapath (f,a,b,n,myclr)
local mytbl ={}
local s = ""
@@ -50,7 +50,7 @@ function luapath (f,a,b,n,myclr)
end
return finalstr
end
-
+-- Determining plot points with Lua for the tikz package.
function luatikzpath (f,a,b,n)
local s = ""
s = s.."(" .. a .."," .. f(a) ..")"
diff --git a/macros/luatex/latex/luaplot/luaplot.tex b/macros/luatex/latex/luaplot/luaplot.tex
index 03928af99f..1377c50b9d 100644
--- a/macros/luatex/latex/luaplot/luaplot.tex
+++ b/macros/luatex/latex/luaplot/luaplot.tex
@@ -22,7 +22,7 @@
\addbibresource{luaplot}
\begin{document}
\title{The luaplot package in LaTeX}
-\author{Chetan Shirore and Ajit Kumar}
+\author{Chetan Shirore\thanks{Email id: mathsbeauty@gmail.com} \space and Ajit Kumar}
\maketitle
\section{Introduction}