summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-10-25 20:14:24 +0000
committerKarl Berry <karl@freefriends.org>2022-10-25 20:14:24 +0000
commitb67e09e496eb5a847757d0586cea6ca2929afab0 (patch)
tree1c4c3ca5ca50ca6cf16ec9b8dde086da418a7ff1 /Master/texmf-dist/tex/luatex
parentb3a1bb575cfbd99e6036e90235662a30d5e25e13 (diff)
penlight (25oct22)
git-svn-id: svn://tug.org/texlive/trunk@64811 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex')
-rw-r--r--Master/texmf-dist/tex/luatex/penlight/penlight.sty12
-rw-r--r--Master/texmf-dist/tex/luatex/penlight/penlightextras.lua7
2 files changed, 8 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/luatex/penlight/penlight.sty b/Master/texmf-dist/tex/luatex/penlight/penlight.sty
index 5af886786e4..8180a839acf 100644
--- a/Master/texmf-dist/tex/luatex/penlight/penlight.sty
+++ b/Master/texmf-dist/tex/luatex/penlight/penlight.sty
@@ -1,5 +1,5 @@
% Kale Ewasiuk (kalekje@gmail.com)
-% 2022-10-22
+% 2022-10-24
% Copyright (C) 2021-2022 Kale Ewasiuk
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -22,19 +22,19 @@
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
% OR OTHER DEALINGS IN THE SOFTWARE.
-\ProvidesPackage{penlight}[2022-10-22]
+\ProvidesPackage{penlight}[2022-10-24]
\RequirePackage{luacode}
-\IfFileExists{luakeys.lua}{}{\PackageError{penlight}{This package requires that luakeys be installed}{help text}}
+\IfFileExists{luakeys.lua}{}{\PackageError{penlight}{This package requires that luakeys be installed}{}}
\DeclareOption{pl}{\luadirect{
- pl = require('penlight')
+ pl = require'penlight'
__PENLIGHT__ = 'pl'
}}
\DeclareOption{penlight}{\luadirect{
- penlight = require('penlight')
+ penlight = require'penlight'
__PENLIGHT__ = 'penlight'
}}
@@ -52,7 +52,7 @@
\luadirect{
if __PENLIGHT__ == nil then
- tex.print('\\PackageError{penlight}{penlight or pl option must be passed to penlight as the first option}{}')
+ tex.sprint('\\PackageError{penlight}{"penlight" or "pl" option must be passed to penlight as the first option}{}')
end
}
diff --git a/Master/texmf-dist/tex/luatex/penlight/penlightextras.lua b/Master/texmf-dist/tex/luatex/penlight/penlightextras.lua
index a6a5c1ff0aa..7d0a7eb6b50 100644
--- a/Master/texmf-dist/tex/luatex/penlight/penlightextras.lua
+++ b/Master/texmf-dist/tex/luatex/penlight/penlightextras.lua
@@ -1,5 +1,5 @@
--% Kale Ewasiuk (kalekje@gmail.com)
---% 2022-10-22
+--% 2022-10-24
--% Copyright (C) 2021-2022 Kale Ewasiuk
--%
--% Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -775,10 +775,7 @@ end
-
-
-
-if _PL_GLOBALS__ then
+if pl.hasval(__PL_GLOBALS__) then
__PL_EXTRAS__ = 2
-- iterators
kpairs = pl.utils.kpairs