summaryrefslogtreecommitdiff
path: root/macros/luatex/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-18 03:01:07 +0000
committerNorbert Preining <norbert@preining.info>2023-11-18 03:01:07 +0000
commitbcd1a2a7dfe36b38f10a8fa23b4b6f0c325ca899 (patch)
tree2df3f6c998a7a44c9c5365c0ab78e7c152bc0082 /macros/luatex/latex
parentd91bb5cad66508ec34d77ea60c0a02c79308edef (diff)
CTAN sync 202311180301
Diffstat (limited to 'macros/luatex/latex')
-rw-r--r--macros/luatex/latex/luacomplex/README.txt2
-rw-r--r--macros/luatex/latex/luacomplex/luacomplex.pdfbin109293 -> 109270 bytes
-rw-r--r--macros/luatex/latex/luacomplex/luacomplex.sty8
-rw-r--r--macros/luatex/latex/luamaths/README.txt2
-rw-r--r--macros/luatex/latex/luamaths/luamaths.pdfbin146829 -> 146948 bytes
-rw-r--r--macros/luatex/latex/luamaths/luamaths.sty9
-rw-r--r--macros/luatex/latex/luaset/README.txt5
-rw-r--r--macros/luatex/latex/luaset/luaset.pdfbin134778 -> 98351 bytes
-rw-r--r--macros/luatex/latex/luaset/luaset.sty10
-rw-r--r--macros/luatex/latex/luaset/luaset.tex2
10 files changed, 22 insertions, 16 deletions
diff --git a/macros/luatex/latex/luacomplex/README.txt b/macros/luatex/latex/luacomplex/README.txt
index 6445382ed6..c61ae7ead8 100644
--- a/macros/luatex/latex/luacomplex/README.txt
+++ b/macros/luatex/latex/luacomplex/README.txt
@@ -1,5 +1,5 @@
# The luacomplex package
-# version 1.3
+# version 1.4
# Authors: Chetan Shirore and Ajit Kumar
# Email: mathsbeauty@gmail.com
diff --git a/macros/luatex/latex/luacomplex/luacomplex.pdf b/macros/luatex/latex/luacomplex/luacomplex.pdf
index fba9194c8d..66fdc00645 100644
--- a/macros/luatex/latex/luacomplex/luacomplex.pdf
+++ b/macros/luatex/latex/luacomplex/luacomplex.pdf
Binary files differ
diff --git a/macros/luatex/latex/luacomplex/luacomplex.sty b/macros/luatex/latex/luacomplex/luacomplex.sty
index c863f5cd0f..334fa1f75f 100644
--- a/macros/luatex/latex/luacomplex/luacomplex.sty
+++ b/macros/luatex/latex/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/macros/luatex/latex/luamaths/README.txt b/macros/luatex/latex/luamaths/README.txt
index 30ceca2301..bee9f34303 100644
--- a/macros/luatex/latex/luamaths/README.txt
+++ b/macros/luatex/latex/luamaths/README.txt
@@ -1,5 +1,5 @@
# The luamaths package
-# version 1.5
+# version 1.6
# Authors: Chetan Shirore and Ajit Kumar
# Email: mathsbeauty@gmail.com
diff --git a/macros/luatex/latex/luamaths/luamaths.pdf b/macros/luatex/latex/luamaths/luamaths.pdf
index 5713dfa7de..ef4f5efdad 100644
--- a/macros/luatex/latex/luamaths/luamaths.pdf
+++ b/macros/luatex/latex/luamaths/luamaths.pdf
Binary files differ
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)
diff --git a/macros/luatex/latex/luaset/README.txt b/macros/luatex/latex/luaset/README.txt
index ca7ffb3860..aafb0297cd 100644
--- a/macros/luatex/latex/luaset/README.txt
+++ b/macros/luatex/latex/luaset/README.txt
@@ -1,3 +1,8 @@
+# The luaset package
+# version 1.1
+# Authors: Chetan Shirore and Ajit Kumar
+# Email: mathsbeauty@gmail.com
+
# Introduction
The luaset package is developed to define finite sets and perform operations on them inside LaTeX documents.
There is no particular environment in the package for performing set operations.
diff --git a/macros/luatex/latex/luaset/luaset.pdf b/macros/luatex/latex/luaset/luaset.pdf
index 4e4545be84..48e89f284b 100644
--- a/macros/luatex/latex/luaset/luaset.pdf
+++ b/macros/luatex/latex/luaset/luaset.pdf
Binary files differ
diff --git a/macros/luatex/latex/luaset/luaset.sty b/macros/luatex/latex/luaset/luaset.sty
index 2a4821d365..4b2fac6655 100644
--- a/macros/luatex/latex/luaset/luaset.sty
+++ b/macros/luatex/latex/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 = {}
diff --git a/macros/luatex/latex/luaset/luaset.tex b/macros/luatex/latex/luaset/luaset.tex
index 5a1a08534a..69643111b9 100644
--- a/macros/luatex/latex/luaset/luaset.tex
+++ b/macros/luatex/latex/luaset/luaset.tex
@@ -19,7 +19,7 @@
\usepackage[backend=bibtex]{biblatex}
\begin{document}
\title{The luaset Package in LaTeX}
-\author{Chetan Shirore and Dr. Ajit Kumar}
+\author{Chetan Shirore\thanks{Email id: mathsbeauty@gmail.com} \space and Ajit Kumar}
\maketitle
\section{Introduction}\label{section:introduction}
The \verb|luaset| package is developed to define finite sets and perform operations on finite sets inside LaTeX documents. There is no particular environment in the package for performing set operations. The package commands can be used in any environment (including the mathematics environment). It is written in Lua, and tex file is to be compiled with the LuaLaTeX engine. The time required for performing set operations is not an issue while compiling with LuaLaTeX. There is no need to install Lua on the users' system as tex distributions (TeXLive or MikTeX) come bundled with LuaLaTeX. The package is helps to perform set operations (union, intersection, difference, etcetera) in LaTeX documents. It may also save the users' efforts to copy sets from other software (which may not be in LaTeX compatible format) and to use them in a tex file. The package supports the nesting of commands for multiple operations.