texlive[68893] Master: luagcd, luamodulartables, luatruthtable
commits+karl at tug.org
commits+karl at tug.org
Sat Nov 18 21:57:27 CET 2023
Revision: 68893
https://tug.org/svn/texlive?view=revision&revision=68893
Author: karl
Date: 2023-11-18 21:57:26 +0100 (Sat, 18 Nov 2023)
Log Message:
-----------
luagcd, luamodulartables, luatruthtable (18nov23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/lualatex/luagcd/README.txt
trunk/Master/texmf-dist/doc/lualatex/luagcd/luagcd.pdf
trunk/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex
trunk/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt
trunk/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.pdf
trunk/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex
trunk/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt
trunk/Master/texmf-dist/doc/lualatex/luatruthtable/luatruthtable.pdf
trunk/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty
trunk/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty
trunk/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty
trunk/Master/tlpkg/bin/c2lx
Modified: trunk/Master/texmf-dist/doc/lualatex/luagcd/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luagcd/README.txt 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/doc/lualatex/luagcd/README.txt 2023-11-18 20:57:26 UTC (rev 68893)
@@ -1,3 +1,8 @@
+# The luagcd package
+# version 1.1
+# Authors: Chetan Shirore and Ajit Kumar
+# Email: mathsbeauty at gmail.com
+
# Introduction
Using Lua, the luagcd package is developed to find the greatest common divisor (gcd) of integers in LaTeX.
The package provides commands to obtain step-by-step computation of gcd of two integers by using the Euclidean algorithm.
Modified: trunk/Master/texmf-dist/doc/lualatex/luagcd/luagcd.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex 2023-11-18 20:57:26 UTC (rev 68893)
@@ -19,7 +19,7 @@
\usepackage[backend=bibtex]{biblatex}
\begin{document}
\title{The luagcd Package in LaTeX}
-\author{Chetan Shirore and Dr. Ajit Kumar}
+\author{Chetan Shirore\thanks{Email id: mathsbeauty at gmail.com} \space and Ajit Kumar}
\maketitle
\section{Introduction}\label{section:introduction}
Using Lua, the \verb|luagcd| package is developed to find the \textbf{greatest common divisor (gcd)} of integers in LaTeX. It provides an easy way to find gcd of two or more integers inside LaTeX documents. The package provides commands to obtain step-by-step computation of gcd of two integers by using Euclidean algorithm. In addition, the package has the command to express gcd of two integers as a linear combination. The Bezout’s Identity can be verified for any two integers using commands in the package. No particular environment is required for the use of commands in the package. It is written in Lua, and the TeX file has to be compiled with the LuaLaTeX engine.
Modified: trunk/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt 2023-11-18 20:57:26 UTC (rev 68893)
@@ -1,3 +1,8 @@
+# The luamodulartables package
+# version 1.1
+# Authors: Chetan Shirore and Ajit Kumar
+# Email: mathsbeauty at gmail.com
+
# Introduction
The luamodulartables package is developed to generate modular addition and multiplication tables for positive integers. It provides an easy way to generate modular addition and modular multiplication tables for positive integers in LaTeX documents. The commands in the package have optional arguments for the formatting of tables. These commands can be used in an environment similar to a tabular or array environment. The commands can also be used with the booktabs package, which provides nice formatting of tables in LaTeX. It is written in Lua, and TeX file is to be compiled with LuaLaTeX engine.
Modified: trunk/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex 2023-11-18 20:57:26 UTC (rev 68893)
@@ -22,7 +22,7 @@
\addbibresource{luamodular}
\begin{document}
\title{The luamodulartables Package in LaTeX}
-\author{Chetan Shirore and Dr. Ajit Kumar}
+\author{Chetan Shirore\thanks{Email id: mathsbeauty at gmail.com} \space and Ajit Kumar}
\maketitle
\section{Introduction}\label{section:introduction}
The \verb|luamodulartables| package is developed to generate modular addition and multiplication tables for positive integers. It provides an easy way to generate modular addition and modular multiplication tables for positive integers in LaTeX documents. The commands in the package have optional arguments for the formatting of tables. These commands can be used in an environment similar to a \verb|tabular| or \verb|array| environment. The commands can also be used with the \verb|booktabs| package, which provides nice formatting of tables in LaTeX. It is written in Lua, and TeX file is to be compiled with LuaLaTeX engine.
Modified: trunk/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt 2023-11-18 20:57:26 UTC (rev 68893)
@@ -1,5 +1,5 @@
# The luatruthtable package
-# version 1.2
+# version 1.3
# Authors: Chetan Shirore and Ajit Kumar
# Email: mathsbeauty at gmail.com
Modified: trunk/Master/texmf-dist/doc/lualatex/luatruthtable/luatruthtable.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty 2023-11-18 20:57:26 UTC (rev 68893)
@@ -1,12 +1,12 @@
% luagcd 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{luagcd}[1.0]
+\ProvidesPackage{luagcd}[1.1]
\RequirePackage{luacode}
\begin{luacode*}
-function findgcd2(a,b)
+function findgcd2(a,b) -- function to find gcd of 2 numbers.
a = math.abs(a)
b = math.abs(b)
if b ~= 0 then
@@ -16,7 +16,7 @@
end
end
-function findgcd(...)
+function findgcd(...) -- function to find gcd of 2 or more numbers.
local tbl = table.pack(...)
if #(tbl) > 2 then
local rem = table.remove(tbl,1)
@@ -27,7 +27,7 @@
end
end
-function inputcheck ( ... )
+function inputcheck ( ... ) -- validating input.
local tbl = table.pack(...)
for _, v in ipairs(tbl) do
if type(v) ~= 'number' then
@@ -39,14 +39,14 @@
end
end
end
-
-function luagcd(...)
+- function to find gcd with input validatiion.
+function luagcd(...) -
inputcheck(...)
return findgcd(...)
end
-
-function stepbystepgcd(a,b,sep)
+-- function to find gcd of 2 numbers with steps.
+function stepbystepgcd(a,b,sep)
if type(a) ~= 'number' or type(b) ~= 'number' then
error('Only numbers are expected.')
return
@@ -100,7 +100,7 @@
" is the last non-zero remainder and it is " ..t.. "."
end
end
-
+-- function to express gcd of 2 numbers as an integer linear combination.
function lincombgcd (a,b)
local val1,val2 = a,b
if type(a) ~= 'number' or type(b) ~= 'number' then
@@ -200,7 +200,7 @@
" and the equation $" .. coeff1 .."x" .. op .. coeff2 .."y = "
..gcd .. "$ has a solution $(x,y) = (" .. e_3 .. "," .. f_3 ..")$.")
end
-
+-- function to express gcd of 2 numbers as an integer linear combination with steps.
function lincombgcdstepbystep (a,b)
local val1,val2 = a,b
if type(a) ~= 'number' or type(b) ~= 'number' then
Modified: trunk/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty 2023-11-18 20:57:26 UTC (rev 68893)
@@ -1,5 +1,5 @@
-% luamodulartables
-% version 1.0
+% The luamodulartables package.
+% 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.
@@ -7,6 +7,7 @@
\RequirePackage{xkeyval}
\RequirePackage{luacode}
\begin{luacode*}
+-- Defining function for modular multiplication.
function modulomult(n,label, headline, midline)
label = label or '$\\times$'
headline = headline or ''
@@ -33,7 +34,7 @@
end
return (str2)
end
-
+-- Defining function for modular addition.
function moduloadd(n,label, headline, midline)
label = label or '$+$'
headline = headline or ''
Modified: trunk/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty 2023-11-18 20:57:26 UTC (rev 68893)
@@ -1,13 +1,14 @@
% The luatruthtable package
% Authors: Chetan Shirore and Ajit Kumar
-% Version 1.2, Date=15-Aug-2023
+% Version 1.3, 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.
-\ProvidesPackage{luatruthtable}[1.2]
+\ProvidesPackage{luatruthtable}[1.3]
\RequirePackage{xkeyval}
\RequirePackage{amsmath}
\RequirePackage{luacode}
\begin{luacode*}
+-- Function to convert decimal number to binary number.
local function toBinary(x,y)
y = y or math.max(1, select(2, math.frexp(x)))
local res = {}
@@ -17,7 +18,7 @@
end
return res
end
-
+-- Define logical operators.
local function _not(a)
if a ==0 then return 1
else return 0 end
Modified: trunk/Master/tlpkg/bin/c2lx
===================================================================
--- trunk/Master/tlpkg/bin/c2lx 2023-11-18 20:55:59 UTC (rev 68892)
+++ trunk/Master/tlpkg/bin/c2lx 2023-11-18 20:57:26 UTC (rev 68893)
@@ -40,7 +40,7 @@
pkgs="$pkgs create-theorem crefthe projlib q-and-a"
elif test "x$1" = xluamath-all; then
shift; label=luamath-all # not really all
- pkgs="luacomplex luamaths luaset"
+ pkgs="luagcd luamodulartables luatruthtable" #luacomplex luamaths luaset
elif test "x$1" = xminim-all; then
shift; label=minim
pkgs="minim-hatching minim-math minim-mp minim-pdf minim-xmp minim"
More information about the tex-live-commits
mailing list.