diff options
author | Karl Berry <karl@freefriends.org> | 2023-11-18 20:57:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-11-18 20:57:26 +0000 |
commit | 26d6f3fd916b1baebe24ab80e72212299d4f42fd (patch) | |
tree | 3c9f422f4caf0b4cfc592242ceaab00ab5fecab4 /Master | |
parent | 20a29963ee878b99f56b77e7e8b62ff9e6fcf10c (diff) |
luagcd, luamodulartables, luatruthtable (18nov23)
git-svn-id: svn://tug.org/texlive/trunk@68893 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luagcd/README.txt | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luagcd/luagcd.pdf | bin | 147517 -> 101670 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamodulartables/README.txt | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.pdf | bin | 321494 -> 260958 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luatruthtable/README.txt | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luatruthtable/luatruthtable.pdf | bin | 116768 -> 116612 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty | 22 | ||||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty | 7 | ||||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty | 7 | ||||
-rwxr-xr-x | Master/tlpkg/bin/c2lx | 2 |
12 files changed, 33 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/lualatex/luagcd/README.txt b/Master/texmf-dist/doc/lualatex/luagcd/README.txt index edd1bc9b5b7..f08e8e1641c 100644 --- a/Master/texmf-dist/doc/lualatex/luagcd/README.txt +++ b/Master/texmf-dist/doc/lualatex/luagcd/README.txt @@ -1,3 +1,8 @@ +# The luagcd package +# version 1.1 +# Authors: Chetan Shirore and Ajit Kumar +# Email: mathsbeauty@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. diff --git a/Master/texmf-dist/doc/lualatex/luagcd/luagcd.pdf b/Master/texmf-dist/doc/lualatex/luagcd/luagcd.pdf Binary files differindex e8ef34b6c2d..40abaf8bec9 100644 --- a/Master/texmf-dist/doc/lualatex/luagcd/luagcd.pdf +++ b/Master/texmf-dist/doc/lualatex/luagcd/luagcd.pdf diff --git a/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex b/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex index 980c0245890..13fb03402c5 100644 --- a/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex +++ b/Master/texmf-dist/doc/lualatex/luagcd/luagcd.tex @@ -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@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. diff --git a/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt b/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt index c31de1b6520..14a2ec04ea6 100644 --- a/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt +++ b/Master/texmf-dist/doc/lualatex/luamodulartables/README.txt @@ -1,3 +1,8 @@ +# The luamodulartables package +# version 1.1 +# Authors: Chetan Shirore and Ajit Kumar +# Email: mathsbeauty@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. diff --git a/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.pdf b/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.pdf Binary files differindex 2a09a115bb1..4a05f159a09 100644 --- a/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.pdf +++ b/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.pdf diff --git a/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex b/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex index 02e7fe884bd..0ec7a417579 100644 --- a/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex +++ b/Master/texmf-dist/doc/lualatex/luamodulartables/luamodulartables.tex @@ -22,7 +22,7 @@ hyperref,multirow,multicol,enumitem} \addbibresource{luamodular} \begin{document} \title{The luamodulartables 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|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. diff --git a/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt b/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt index 3e6ca97d21e..c2a9938360e 100644 --- a/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt +++ b/Master/texmf-dist/doc/lualatex/luatruthtable/README.txt @@ -1,5 +1,5 @@ # The luatruthtable package -# version 1.2 +# version 1.3 # Authors: Chetan Shirore and Ajit Kumar # Email: mathsbeauty@gmail.com diff --git a/Master/texmf-dist/doc/lualatex/luatruthtable/luatruthtable.pdf b/Master/texmf-dist/doc/lualatex/luatruthtable/luatruthtable.pdf Binary files differindex bdc5afdfdcd..7601c458e50 100644 --- a/Master/texmf-dist/doc/lualatex/luatruthtable/luatruthtable.pdf +++ b/Master/texmf-dist/doc/lualatex/luatruthtable/luatruthtable.pdf diff --git a/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty b/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty index 12a5106ac34..6f2e64aaf17 100644 --- a/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty +++ b/Master/texmf-dist/tex/lualatex/luagcd/luagcd.sty @@ -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 @@ function findgcd2(a,b) 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 @@ function findgcd(...) 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 @@ function inputcheck ( ... ) 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 @@ end " 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 @@ return ("The gcd of " .. val1 .." and " .. val2 .. " is " .. gcd .. " 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 diff --git a/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty b/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty index 6e43c97bf09..0858c00bc87 100644 --- a/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty +++ b/Master/texmf-dist/tex/lualatex/luamodulartables/luamodulartables.sty @@ -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 @@ function modulomult(n,label, headline, midline) end return (str2) end - +-- Defining function for modular addition. function moduloadd(n,label, headline, midline) label = label or '$+$' headline = headline or '' diff --git a/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty b/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty index c839b98700c..a3a44818596 100644 --- a/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty +++ b/Master/texmf-dist/tex/lualatex/luatruthtable/luatruthtable.sty @@ -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 @@ local function toBinary(x,y) end return res end - +-- Define logical operators. local function _not(a) if a ==0 then return 1 else return 0 end diff --git a/Master/tlpkg/bin/c2lx b/Master/tlpkg/bin/c2lx index 70db55e0993..b7125c9fbc7 100755 --- a/Master/tlpkg/bin/c2lx +++ b/Master/tlpkg/bin/c2lx @@ -40,7 +40,7 @@ elif test "x$1" = xjxu; then 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" |